Index: ssts-web/src/main/webapp/disinfectsystem/print/print.js
===================================================================
diff -u -r26725 -r26799
--- ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 26725)
+++ ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 26799)
@@ -1182,6 +1182,57 @@
obj.defaultPrintFun();
}
}
+function CreateStorageLocation(barcode,name,unitName,storageLocationCode,simpleName) {
+ doGetLodop();
+ var tableHtml ="
";
+ tableHtml += "";
+ tableHtml += ""+unitName+"";
+ tableHtml += " | ";
+ tableHtml += "
";
+
+ tableHtml += "";
+ tableHtml += ""+name+" | ";
+ tableHtml += "
";
+
+ tableHtml += "";
+ tableHtml += ""+storageLocationCode+" | ";
+ tableHtml += "
";
+
+ tableHtml += "";
+ tableHtml += "";
+ tableHtml += " ";
+ tableHtml += ""+barcode;
+ tableHtml += " |
";
+
+ tableHtml += "
";
+ LODOP.ADD_PRINT_HTM(0,0,"100%","100%",""+tableHtml+"");
+ LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","Full-Page");
+
+};
+
+function storageLocationDefaultPrint(barcode,name,unitName,storageLocationCode,simpleName) {
+ if (barcode != null && barcode != '') {
+ doGetLodop();
+ LODOP.PRINT_INIT("");
+ LODOP.SET_PRINTER_INDEX(-1);// TODO 可增加切换打印机的处理
+ CreateStorageLocation(barcode,name,unitName,storageLocationCode,simpleName);
+ LODOP.PRINT();
+ } else {
+ alert("打印内容为空");
+ }
+}
+//库位打印预览
+function storageLocationPreview(barcode,name,unitName,storageLocationCode,simpleName) {
+ if (barcode != null && barcode != '') {
+ doGetLodop();
+ LODOP.PRINT_INIT("");
+ CreateStorageLocation(barcode,name,unitName,storageLocationCode,simpleName);
+ LODOP.SET_SHOW_MODE("HIDE_PAPER_BOARD",1);
+ LODOP.PREVIEW();
+ } else {
+ alert("打印内容为空");
+ }
+};
//库位打印
function printObjStorageLocation(obj){
var t = getTemplateByDatasourceAndStyle(obj.dataSourceName, obj.styleName);