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 += "
"; + htmlTable += "

"+headerContent0.label+"

"; + htmlTable += ""+headerContent1.label + ' ' + printUser+""; + htmlTable += ""+headerContent2.label + ' ' + startDateTime+""; + htmlTable += ""+headerContent3.label + ' ' + endDateTime+""; + htmlTable += ""+headerContent4.label + ' ' + printDate+""; + htmlTable += "
"; }else { - LODOP.SET_PRINT_STYLE("FontSize",17); - LODOP.ADD_PRINT_TEXT(5,300,"100%",5,"CSSD每日回收登记表"); - LODOP.SET_PRINT_STYLE("FontSize",11); - LODOP.ADD_PRINT_TEXT(35,12,"100%",5,"制单人: " + printUser); - LODOP.ADD_PRINT_TEXT(35,162,"100%",5,"开始时间:" + startDateTime); - LODOP.ADD_PRINT_TEXT(35,412,"100%",5,"结束时间: " + endDateTime); - LODOP.ADD_PRINT_TEXT(35,662,"100%",5,"打印时间: " + printDate); + htmlTable += "
"; + htmlTable += "

CSSD每日回收登记表

"; + htmlTable += "制单人:"+ ' ' + printUser+""; + htmlTable += "开始时间:"+ ' ' + startDateTime+""; + htmlTable += "结束时间:"+ ' ' + endDateTime+""; + htmlTable += "打印时间:"+ ' ' + printDate+""; + htmlTable += "
"; } if(params){ - LODOP.SET_PRINT_STYLE("FontSize",11); - LODOP.ADD_PRINT_TEXT(55,12,"100%",5,"任务组: " + params.taskGroupNames); - LODOP.ADD_PRINT_TEXT(75,12,"100%",5,"器械包分组:" + params.tousseGroupNames); - LODOP.ADD_PRINT_TEXT(95,12,"100%",5,"回收科室分组: " + params.deptGroupNames); + htmlTable += "
"; + htmlTable += "
任务组:"+ ' ' + params.taskGroupNames+"
"; + htmlTable += "
器械包分组:"+ ' ' + params.tousseGroupNames+"
"; + htmlTable += "
回收科室分组:"+ ' ' + params.deptGroupNames+"
"; + htmlTable += "
"; } if(configTable){ - var htmlTable = ""; + htmlTable += ""; for(var i=0;i 0){ for(var i = 0; i < departmentGroupNames.length;++i){ @@ -1370,10 +1367,9 @@ } } htmlContent = "" + htmlTable + ""; - LODOP.ADD_PRINT_HTM(115,5,"100%","100%",htmlContent); - + LODOP.ADD_PRINT_HTM(10,5,"100%","96%",htmlContent); LODOP.SET_PRINT_STYLE("ItemType",2); - LODOP.ADD_PRINT_TEXT(5,"90%","90%",5,"第#页/共&页"); + LODOP.ADD_PRINT_TEXT("98%","88%","90%",5,"第#页/共&页"); LODOP.SET_PRINT_STYLE("ItemType",0); if(printType == 0){//直接打印 Index: ssts-web/src/main/webapp/disinfectsystem/config/dgsetyy/print/recyclingDetailPrintConfig.js =================================================================== diff -u -r32040 -r32065 --- ssts-web/src/main/webapp/disinfectsystem/config/dgsetyy/print/recyclingDetailPrintConfig.js (.../recyclingDetailPrintConfig.js) (revision 32040) +++ ssts-web/src/main/webapp/disinfectsystem/config/dgsetyy/print/recyclingDetailPrintConfig.js (.../recyclingDetailPrintConfig.js) (revision 32065) @@ -1,10 +1,10 @@ { "headerContent" : [//表格头定义 - {"label" : "CSSD每日回收登记表", "dataIndex" : "", "fontSize" : 17, "position" : [5,300,"100%",5]}, // 标题 - {"label" : "制单人:", "dataIndex" : "applicant", "fontSize" : 11, "position" : [35,12,"100%",5]}, - {"label" : "开始时间:", "dataIndex" : "startTime", "fontSize" : 11, "position" : [35,162,"100%",5]}, - {"label" : "结束时间:", "dataIndex" : "endTime", "fontSize" : 11, "position" : [35,412,"100%",5]}, - {"label" : "打印时间:", "dataIndex" : "endTime", "fontSize" : 11, "position" : [35,662,"100%",5]} + {"label" : "CSSD每日回收登记表", "dataIndex" : "", "fontSize" : 17}, // 标题 + {"label" : "制单人:", "dataIndex" : "applicant", "fontSize" : 14, "position" : [35,0,"100%",5]}, + {"label" : "开始时间:", "dataIndex" : "startTime", "fontSize" : 14, "position" : [35,130,"100%",5]}, + {"label" : "结束时间:", "dataIndex" : "endTime", "fontSize" : 14, "position" : [35,350,"100%",5]}, + {"label" : "打印时间:", "dataIndex" : "printDate", "fontSize" : 14, "position" : [35,570,"100%",5]} ], "tables": [ // 表格定义,数组类型,支持可以定义多个表格 {