Index: ssts-web/src/main/webapp/disinfectsystem/config/dgszyy/print/printConfig.js =================================================================== diff -u -r14795 -r14877 --- ssts-web/src/main/webapp/disinfectsystem/config/dgszyy/print/printConfig.js (.../printConfig.js) (revision 14795) +++ ssts-web/src/main/webapp/disinfectsystem/config/dgszyy/print/printConfig.js (.../printConfig.js) (revision 14877) @@ -700,6 +700,11 @@ } } +//外部代理灭菌大标签配置 +var largeLabel_foreignProxyDisinfectionConfig = { + customPrint:printLargeLabelForeignProxyDisinfection +}; + //大标签配置,100x80mm var largeLabelConfig = { customPrint:printLargeLabel, @@ -847,7 +852,48 @@ // alert(materialsTab) return materialsTab; } - +function printLargeLabelForeignProxyDisinfection(obj){ + doGetLodop(); + // 设置默认字体 + setDefaultFontNameSizeBold('宋体',14,1); + // 默认条码属性 + LODOP.SET_PRINT_STYLE('ShowBarText', true); + LODOP.SET_PRINT_STYLE('FontSize', 6); + LODOP.SET_PRINT_STYLE('NotOnlyHighPrecision', true); + + LODOP.ADD_PRINT_TEXT("1mm","0mm","RightMargin:0mm","BottomMargin:0mm", obj.name); + setFontSizeBold(14,1);// 设置字体 + setAlignment('center');// 对齐 + + LODOP.ADD_PRINT_TEXT("15mm","0mm","RightMargin:0mm","10px", "科室:"+obj.depart); + setFontSizeBold(13,0);// 设置字体 + setAlignment('center');// 居中对齐 + + LODOP.ADD_PRINT_TEXT("29mm","0mm","RightMargin:0mm","BottomMargin:0mm", "灭菌程序:"+obj.sterilingType); + setFontSizeBold(13,0);// 设置字体 + setAlignment('center');// 居中对齐 + +// LODOP.ADD_PRINT_TEXT("6mm","55mm","50mm","10px", "审核员:"+obj.reviewer); + LODOP.ADD_PRINT_TEXT("43mm","5mm","50mm","10px", "灭菌日期:"+obj.sterilizationDate); + setFontSizeBold(13,0);// 设置字体 + LODOP.ADD_PRINT_TEXT("43mm","55mm","50mm","10px", "失效日期:"+obj.validDate); + setFontSizeBold(13,0);// 设置字体 + + // 打印表格 +// var tableStr = getMaterialsTabHtml_largeLabel(obj); +// addPrintTable(tableStr,"14mm","0mm","RightMargin:0mm","42mm"); +// setAlignment('center');// 居中对齐 + LODOP.ADD_PRINT_TEXT("67mm","0mm","RightMargin:50mm","BottomMargin:0mm", obj.name); + setFontSizeBold(11,1);// 设置字体 + setAlignment('center');// 居中对齐 + LODOP.ADD_PRINT_TEXT("67mm","50mm","RightMargin:0mm","BottomMargin:0mm", obj.name); + setFontSizeBold(11,1);// 设置字体 + setAlignment('center');// 居中对齐 + + LODOP.ADD_PRINT_BARCODE("57mm","55mm","40mm","8mm","128Auto", obj.barcode);// 条码1 + LODOP.ADD_PRINT_BARCODE("71mm","5mm","40mm","8mm","128Auto", obj.barcode);// 条码2 + LODOP.ADD_PRINT_BARCODE("71mm","55mm","40mm","8mm","128Auto", obj.barcode);// 条码3 +} function printLargeLabel(obj){ doGetLodop(); // 设置默认字体 @@ -1363,6 +1409,8 @@ exLargeLabel : exLargeLabelConfig, // 外部代理灭菌标签 foreignProxyDisinfectionLabel : foreignProxyDisinfectionLabelConfig, + // 外部代理灭菌大标签标签 + largeLabel_foreignProxyDisinfection:largeLabel_foreignProxyDisinfectionConfig, //外来器械申请单 foreignTousseAppliation : foreignTousseAppliationPrintConfig, // 标识牌