Index: ssts-web/src/main/webapp/disinfectsystem/packing/printRecyclingDetailWin.js =================================================================== diff -u -r32040 -r32065 --- ssts-web/src/main/webapp/disinfectsystem/packing/printRecyclingDetailWin.js (.../printRecyclingDetailWin.js) (revision 32040) +++ ssts-web/src/main/webapp/disinfectsystem/packing/printRecyclingDetailWin.js (.../printRecyclingDetailWin.js) (revision 32065) @@ -613,14 +613,9 @@ recyDepartmentGroupDepartCodes = (recyDepartmentGroupDepartCodes.split(',')[0] == 'all')?'all':recyDepartmentGroupDepartCodes; } - var taskGroupNames = Ext.getCmp('taskGroupName').getValue() || ''; - taskGroupNames = (taskGroupNames == '')?taskGroupNames:taskGroupNames.substr(3); - + var taskGroupNames = Ext.getCmp('taskGroupName').getRawValue() || ''; var tousseGroupNames = Ext.getCmp('tousseGroupName').getRawValue() || ''; - tousseGroupNames = (tousseGroupNames == '全部')?tousseGroupItemArray.join(','):tousseGroupNames; - var deptGroupNames = Ext.getCmp('deptGroupName').getRawValue() || ''; - deptGroupNames = (deptGroupNames == '全部')?deptGroupItemArray.join(','):deptGroupNames; var params = { taskGroupNames:taskGroupNames, tousseGroupNames:tousseGroupNames, @@ -637,8 +632,8 @@ } var period = parseInt(d2 - d1); if (period > (48*3600*1000)){ - //alert('开始时间、结束时间跨度不能超过两天!!'); - //return ; + alert('开始时间、结束时间跨度不能超过两天!!'); + return ; } //东莞市中医院定制开发 @@ -1145,6 +1140,7 @@ var printUser = recyclingDetail.printUser || ''; var printDate = recyclingDetail.printDate || ''; var configTable = recyclingDetail['配置文件']; + var htmlTable = ""; if(configTable.headerContent && configTable.headerContent.length > 0){ var headerContent0 = configTable.headerContent[0]; var position0 = headerContent0.position; @@ -1156,30 +1152,31 @@ var position2 = headerContent2.position; var position3 = headerContent3.position; var position4 = headerContent4.position; - LODOP.SET_PRINT_STYLE("FontSize",headerContent0.fontSize); - LODOP.ADD_PRINT_TEXT(position0[0],position0[1],position0[2],position0[3],headerContent0.label); - LODOP.SET_PRINT_STYLE("FontSize",headerContent1.fontSize); - LODOP.ADD_PRINT_TEXT(position1[0],position1[1],position1[2],position1[3],headerContent1.label + ' ' + printUser); - LODOP.ADD_PRINT_TEXT(position2[0],position2[1],position2[2],position2[3],headerContent2.label + ' ' + startDateTime); - LODOP.ADD_PRINT_TEXT(position3[0],position3[1],position3[2],position3[3],headerContent3.label + ' ' + endDateTime); - LODOP.ADD_PRINT_TEXT(position4[0],position4[1],position4[2],position4[3],headerContent4.label + ' ' + printDate); + htmlTable += "
"+headerContent0.label+"
"; + htmlTable += ""+headerContent1.label + ' ' + printUser+""; + htmlTable += ""+headerContent2.label + ' ' + startDateTime+""; + htmlTable += ""+headerContent3.label + ' ' + endDateTime+""; + htmlTable += ""+headerContent4.label + ' ' + printDate+""; + htmlTable += "CSSD每日回收登记表
"; + htmlTable += "制单人:"+ ' ' + printUser+""; + htmlTable += "开始时间:"+ ' ' + startDateTime+""; + htmlTable += "结束时间:"+ ' ' + endDateTime+""; + htmlTable += "打印时间:"+ ' ' + printDate+""; + htmlTable += "