You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

470 lines
20 KiB

3 days ago
  1. var LODOP = getCLodop();
  2. //初始化
  3. function initPrintSetting(clodoplisence) {
  4. try{
  5. var LODOP= getCLodop();
  6. if (LODOP.VERSION) {
  7. if (LODOP.CVERSION){
  8. //alert("当前有WEB打印服务C-Lodop可用!\n C-Lodop版本:"+LODOP.CVERSION+"(内含Lodop"+LODOP.VERSION+")");
  9. //如果没有问题打印的信息
  10. //LODOP.SET_LICENSES("","646464550585055535859561289003","688858710010010811411756128900","");
  11. LODOP.SET_LICENSES("",clodoplisence,"","");
  12. //判断当前打印模式
  13. /* if(printerData.seq >= 0){
  14. LODOP.SET_PRINTER_INDEXA(printerData.printName);
  15. LODOP.PRINT();
  16. }else if(printerData.seq === -1){
  17. LODOP.PREVIEW();
  18. }else if(printerData.seq === -2){
  19. LODOP.PRINT_DESIGN();
  20. }*/
  21. }else {
  22. alert("本机已成功安装了Lodop控件!\n 版本号:"+LODOP.VERSION);
  23. }
  24. };
  25. }catch(err){
  26. }
  27. };
  28. //总调用打印的方法
  29. function printQcZeroRollLabel(printRow, printerData){
  30. let labelFlag = printRow.labelFlag;
  31. //初始化打印
  32. initPrintSetting(printerData.clodopLicense);
  33. switch (labelFlag) {
  34. case "A":
  35. this.printZeroPageA(printRow, printerData);
  36. break;
  37. case "B":
  38. this.printZeroPageB(printRow, printerData);
  39. break;
  40. case "C":
  41. this.printZeroPageC(printRow, printerData);
  42. break;
  43. case "D":
  44. this.printZeroPageD(printRow, printerData);
  45. break;
  46. default:
  47. break;
  48. }
  49. //区分各种打印的模式
  50. let printerSeq = printerData.printerSeq;
  51. if (printerSeq >= 0){
  52. LODOP.SET_PRINTER_INDEXA(printerData.printerName);
  53. LODOP.PRINT();
  54. }else if (printerSeq == -1){
  55. LODOP.PREVIEW();
  56. }else if (printerSeq == -2){
  57. LODOP.PRINT_DESIGN();
  58. }
  59. }
  60. function printZeroPageA(printRow, printerInfo){
  61. LODOP.NewPage();
  62. LODOP.SET_PRINT_PAGESIZE(2,800,1125,"");
  63. LODOP.SET_PRINT_MODE("PRINT_NOCOLLATE",1);
  64. LODOP.ADD_PRINT_TEXT(7,7,220,20,"LUXSANTECH");
  65. LODOP.SET_PRINT_STYLEA(0,"FontSize",16);
  66. LODOP.ADD_PRINT_LINE(28,7,29,167,0,1);
  67. LODOP.ADD_PRINT_TEXT(31,7,160,20,"Vendor: CCL-SZ");
  68. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  69. LODOP.ADD_PRINT_LINE(48,7,49,167,0,1);
  70. LODOP.ADD_PRINT_TEXT(53,7,190,20,"P/N:"+printRow.customerPartNo);
  71. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  72. LODOP.ADD_PRINT_LINE(68,7,69,167,0,1);
  73. LODOP.ADD_PRINT_TEXT(71,7,160,20,"APN: "+printRow.pgppn);
  74. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  75. LODOP.ADD_PRINT_LINE(88,7,89,167,0,1);
  76. LODOP.ADD_PRINT_TEXT(93,7,190,20,"DESC:"+printRow.partDesc);
  77. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  78. LODOP.ADD_PRINT_LINE(108,7,109,167,0,1);
  79. LODOP.ADD_PRINT_TEXT(111,7,160,20,"DateCode:"+printRow.dateCode);
  80. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  81. LODOP.ADD_PRINT_LINE(128,7,129,167,0,1);
  82. LODOP.ADD_PRINT_TEXT(134,7,160,20,"QTY: "+printRow.standardRollQty+" Rev:"+printRow.revNo);
  83. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  84. LODOP.ADD_PRINT_LINE(152,7,153,167,0,1);
  85. LODOP.ADD_PRINT_TEXT(152,7,160,20,"Stage: "+printRow.stage);
  86. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  87. LODOP.ADD_PRINT_TEXT(169,7,160,20,printRow.partNo );
  88. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  89. LODOP.ADD_PRINT_TEXT(186,7,160,20,printRow.finalRollNo);
  90. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  91. LODOP.ADD_PRINT_TEXT(203,7,160,20,printRow.rollDate2);
  92. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  93. LODOP.ADD_PRINT_TEXT(220,7,84,20,printRow.username);
  94. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  95. LODOP.ADD_PRINT_BARCODE(154,104,69,69,"QRCode", printRow.pgppn);
  96. LODOP.ADD_PRINT_TEXT(222,78,88,20,printRow.pgppn);
  97. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  98. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  99. LODOP.ADD_PRINT_IMAGE(243,87,70,25,"<img src='/img/cclimg.png'>");
  100. LODOP.SET_PRINT_STYLEA(0,"Stretch",1);
  101. LODOP.ADD_PRINT_BARCODE(266,7,100,25,"128A",printRow.lineBarcodeTime);
  102. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  103. LODOP.ADD_PRINT_TEXT(243,6,71,20,"Config "+printRow.config);
  104. LODOP.ADD_PRINT_TEXT(7,178,160,20,"LUXSANTECH");
  105. LODOP.SET_PRINT_STYLEA(0,"FontSize",16);
  106. LODOP.ADD_PRINT_LINE(28,178,29,338,0,1);
  107. LODOP.ADD_PRINT_TEXT(31,178,160,20,"Vendor: CCL-SZ");
  108. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  109. LODOP.ADD_PRINT_LINE(48,178,49,338,0,1);
  110. LODOP.ADD_PRINT_TEXT(53,178,190,20,"P/N:"+printRow.customerPartNo);
  111. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  112. LODOP.ADD_PRINT_LINE(68,178,69,338,0,1);
  113. LODOP.ADD_PRINT_TEXT(71,178,160,20,"APN: "+printRow.pgppn);
  114. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  115. LODOP.ADD_PRINT_LINE(88,178,89,338,0,1);
  116. LODOP.ADD_PRINT_TEXT(93,178,190,20,"DESC:"+printRow.partDesc);
  117. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  118. LODOP.ADD_PRINT_LINE(108,178,109,338,0,1);
  119. LODOP.ADD_PRINT_TEXT(111,178,160,20,"DateCode:"+printRow.dateCode);
  120. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  121. LODOP.ADD_PRINT_LINE(128,178,129,338,0,1);
  122. LODOP.ADD_PRINT_TEXT(134,178,160,20,"QTY: "+printRow.standardRollQty+" Rev:"+printRow.revNo);
  123. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  124. LODOP.ADD_PRINT_LINE(152,178,153,338,0,1);
  125. LODOP.ADD_PRINT_TEXT(152,178,160,20,"Stage: "+printRow.stage);
  126. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  127. LODOP.ADD_PRINT_TEXT(169,178,160,20,printRow.partNo );
  128. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  129. LODOP.ADD_PRINT_TEXT(186,178,160,20,printRow.finalRollNo);
  130. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  131. LODOP.ADD_PRINT_TEXT(203,178,160,20,printRow.rollDate2);
  132. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  133. LODOP.ADD_PRINT_TEXT(220,178,84,20,printRow.username);
  134. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  135. LODOP.ADD_PRINT_BARCODE(154,275,69,69,"QRCode",printRow.pgppn);
  136. LODOP.ADD_PRINT_TEXT(222,249,88,20,printRow.pgppn);
  137. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  138. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  139. LODOP.ADD_PRINT_IMAGE(243,258,70,25,"<img src='/img/cclimg.png'>");
  140. LODOP.SET_PRINT_STYLEA(0,"Stretch",1);
  141. LODOP.ADD_PRINT_BARCODE(266,178,100,25,"128A",printRow.lineBarcodeTime);
  142. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  143. LODOP.ADD_PRINT_TEXT(243,177,71,20,"Config "+printRow.config);
  144. LODOP.ADD_PRINT_BARCODE(4,348,110,80,"QRCode",printRow.qrtextDate);
  145. LODOP.ADD_PRINT_TEXT(73,309,100,15,printRow.qrtext);
  146. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  147. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  148. LODOP.ADD_PRINT_TEXT(88,372,35,15,"新");
  149. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  150. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  151. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  152. LODOP.ADD_PRINT_TEXT(114,304,100,15,printRow.qty);
  153. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  154. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  155. LODOP.ADD_PRINT_TEXT(135,304,100,15,printRow.status);
  156. LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
  157. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  158. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  159. }
  160. function printZeroPageB(printRow){
  161. LODOP.NewPage();
  162. LODOP.SET_PRINT_PAGESIZE(2,800,975,"");
  163. LODOP.ADD_PRINT_TEXT(3,3,135,15,"(P)HH P/N:"+printRow.customerPartNo);
  164. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  165. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  166. LODOP.ADD_PRINT_BARCODE(12,3,135,20,"128A",printRow.customerPartNo);
  167. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  168. LODOP.ADD_PRINT_TEXT(33,3,135,15,"(Q)QTY:"+printRow.standardRollQty);
  169. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  170. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  171. LODOP.ADD_PRINT_BARCODE(42,3,65,20,"128A",printRow.standardRollQty);
  172. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  173. LODOP.ADD_PRINT_TEXT(62,3,135,15,"(M)Mfr P/N:"+printRow.partNo);
  174. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  175. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  176. LODOP.ADD_PRINT_BARCODE(71,3,135,20,"128A",printRow.partNo);
  177. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  178. LODOP.ADD_PRINT_TEXT(93,3,135,15,"(D)Date Code:"+printRow.rollDate2);
  179. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  180. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  181. LODOP.ADD_PRINT_BARCODE(102,5,135,20,"128A",printRow.rollDate2);
  182. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  183. LODOP.ADD_PRINT_TEXT(123,5,135,20,"(W)Week Code:"+printRow.dateCode);
  184. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  185. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  186. LODOP.ADD_PRINT_BARCODE(132,5,96,20,"128A",printRow.dateCode);
  187. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  188. LODOP.ADD_PRINT_TEXT(153,5,135,15,"(L)Lot NO:"+printRow.finalRollNo);
  189. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  190. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  191. LODOP.ADD_PRINT_BARCODE(162,5,135,20,"128A",printRow.finalRollNo);
  192. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  193. LODOP.ADD_PRINT_TEXT(183,5,75,15,"Rev:"+printRow.revNo);
  194. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  195. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  196. LODOP.ADD_PRINT_BARCODE(192,5,69,20,"128A",printRow.revNo);
  197. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  198. LODOP.ADD_PRINT_TEXT(213,5,135,15,"PKG ID:"+printRow.pkcId);
  199. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  200. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  201. LODOP.ADD_PRINT_BARCODE(222,5,135,20,"128A",printRow.pkcId);
  202. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  203. //二维码以及下面的部分
  204. LODOP.ADD_PRINT_BARCODE(243,5,74,74,"QRCode",printRow.customerPartNo+","+printRow.standardRollQty+","+printRow.partNo +","+printRow.rollDate2+","+printRow.dateCode+","+printRow.finalRollNo+","+printRow.revNo+","+printRow.pkcId);
  205. LODOP.ADD_PRINT_TEXT(261,50,30,20,"HF");
  206. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  207. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  208. LODOP.ADD_PRINT_TEXT(286,50,117,15,printRow.username);
  209. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  210. LODOP.ADD_PRINT_IMAGE(241,43,55,20,"<img src='/img/cclimg.png'>");
  211. LODOP.SET_PRINT_STYLEA(0,"Stretch",1);
  212. LODOP.ADD_PRINT_TEXT(276,50,117,15,"机种:"+printRow.resource);
  213. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  214. //第二部分的标签
  215. LODOP.ADD_PRINT_TEXT(3,130,188,21,"(P)HH P/N:"+printRow.customerPartNo);
  216. LODOP.ADD_PRINT_BARCODE(18,130,156,15,"128A",printRow.customerPartNo);
  217. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  218. LODOP.ADD_PRINT_TEXT(33,130,186,21,"(Q)QTY:"+printRow.standardRollQty);
  219. LODOP.ADD_PRINT_BARCODE(47,130,65,15,"128A",printRow.standardRollQty);
  220. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  221. LODOP.ADD_PRINT_TEXT(62,130,189,20,"(M)Mfr P/N:"+printRow.partNo );
  222. LODOP.ADD_PRINT_BARCODE(76,130,161,15,"128A",printRow.partNo );
  223. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  224. LODOP.ADD_PRINT_TEXT(93,130,190,20,"(D)Date Code:"+printRow.rollDate2);
  225. LODOP.ADD_PRINT_BARCODE(108,130,132,15,"128A",printRow.rollDate2);
  226. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  227. LODOP.ADD_PRINT_TEXT(153,130,192,20,"(L)Lot NO:"+printRow.finalRollNo);
  228. LODOP.ADD_PRINT_BARCODE(167,130,161,16,"128A",printRow.finalRollNo);
  229. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  230. LODOP.ADD_PRINT_TEXT(211,130,192,20,"PKG ID:"+printRow.pkcId);
  231. LODOP.ADD_PRINT_BARCODE(226,130,168,15,"128A",printRow.pkcId);
  232. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  233. LODOP.ADD_PRINT_TEXT(123,130,136,20,"(W)Week Code:"+printRow.dateCode);
  234. LODOP.ADD_PRINT_BARCODE(138,130,96,15,"128A",printRow.dateCode);
  235. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  236. LODOP.ADD_PRINT_TEXT(183,130,75,20,"Rev:"+printRow.revNo);
  237. LODOP.ADD_PRINT_BARCODE(197,130,69,15,"128A",printRow.revNo);
  238. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  239. LODOP.ADD_PRINT_BARCODE(241,141,105,76,"QRCode",printRow.customerPartNo+","+printRow.standardRollQty+","+printRow.partNo +","+printRow.rollDate2+","+printRow.dateCode+","+printRow.finalRollNo+","+printRow.revNo+","+printRow.pkcId);
  240. LODOP.ADD_PRINT_TEXT(261,205,30,20,"HF");
  241. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  242. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  243. LODOP.ADD_PRINT_TEXT(286,205,117,15,printRow.username);
  244. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  245. LODOP.ADD_PRINT_IMAGE(241,198,55,20,"<img src='/img/cclimg.png'>");
  246. LODOP.SET_PRINT_STYLEA(0,"Stretch",1);
  247. LODOP.ADD_PRINT_TEXT(276,205,117,15,"机种:"+printRow.resource);
  248. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  249. //第二部分右侧的部分
  250. LODOP.ADD_PRINT_BARCODE(4,300,110,80,"QRCode",printRow.qrtextDate);
  251. LODOP.ADD_PRINT_TEXT(73,261,100,15,printRow.qrtext);
  252. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  253. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  254. LODOP.ADD_PRINT_TEXT(88,280,80,15,printRow.productStyle);
  255. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  256. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  257. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  258. LODOP.ADD_PRINT_TEXT(114,261,100,15, printRow.qty);
  259. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  260. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  261. LODOP.ADD_PRINT_TEXT(135,261,100,15,printRow.status);
  262. LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
  263. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  264. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  265. }
  266. function printZeroPageD(printRow){
  267. LODOP.NewPage();
  268. LODOP.SET_PRINT_PAGESIZE(2,800,975,"");
  269. //第二部分的标签
  270. LODOP.ADD_PRINT_TEXT(3,130,188,21,"(P)HH P/N:"+printRow.customerPartNo);
  271. LODOP.ADD_PRINT_BARCODE(18,130,156,15,"128A",printRow.customerPartNo);
  272. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  273. LODOP.ADD_PRINT_TEXT(33,130,186,21,"(Q)QTY:"+printRow.standardRollQty);
  274. LODOP.ADD_PRINT_BARCODE(47,130,65,15,"128A",printRow.standardRollQty);
  275. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  276. LODOP.ADD_PRINT_TEXT(62,130,189,20,"(M)Mfr P/N:"+printRow.partNo );
  277. LODOP.ADD_PRINT_BARCODE(76,130,161,15,"128A",printRow.partNo );
  278. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  279. LODOP.ADD_PRINT_TEXT(93,130,190,20,"(D)Date Code:"+printRow.rollDate2);
  280. LODOP.ADD_PRINT_BARCODE(108,130,132,15,"128A",printRow.rollDate2);
  281. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  282. LODOP.ADD_PRINT_TEXT(153,130,192,20,"(L)Lot NO:"+printRow.finalRollNo);
  283. LODOP.ADD_PRINT_BARCODE(167,130,161,16,"128A",printRow.finalRollNo);
  284. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  285. LODOP.ADD_PRINT_TEXT(211,130,192,20,"PKG ID:"+printRow.pkcId);
  286. LODOP.ADD_PRINT_BARCODE(226,130,168,15,"128A",printRow.pkcId);
  287. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  288. LODOP.ADD_PRINT_TEXT(123,130,136,20,"(W)Week Code:"+printRow.dateCode);
  289. LODOP.ADD_PRINT_BARCODE(138,130,96,15,"128A",printRow.dateCode);
  290. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  291. LODOP.ADD_PRINT_TEXT(183,130,75,20,"Rev:"+printRow.revNo);
  292. LODOP.ADD_PRINT_BARCODE(197,130,69,15,"128A",printRow.revNo);
  293. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  294. LODOP.ADD_PRINT_BARCODE(241,141,105,76,"QRCode",printRow.customerPartNo+","+printRow.standardRollQty+","+printRow.partNo +","+printRow.rollDate2+","+printRow.dateCode+","+printRow.finalRollNo+","+printRow.revNo+","+printRow.pkcId);
  295. LODOP.ADD_PRINT_TEXT(261,205,30,20,"HF");
  296. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  297. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  298. LODOP.ADD_PRINT_TEXT(286,205,117,15,printRow.username);
  299. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  300. LODOP.ADD_PRINT_IMAGE(241,198,55,20,"<img src='/img/cclimg.png'>");
  301. LODOP.SET_PRINT_STYLEA(0,"Stretch",1);
  302. LODOP.ADD_PRINT_TEXT(276,205,117,15,"机种:"+printRow.resource);
  303. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  304. //第二部分右侧的部分
  305. LODOP.ADD_PRINT_BARCODE(4,300,110,80,"QRCode",printRow.qrtextDate);
  306. LODOP.ADD_PRINT_TEXT(73,261,100,15,printRow.qrtext);
  307. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  308. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  309. LODOP.ADD_PRINT_TEXT(88,280,80,15,printRow.productStyle);
  310. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  311. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  312. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  313. LODOP.ADD_PRINT_TEXT(114,261,100,15, printRow.qty);
  314. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  315. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  316. LODOP.ADD_PRINT_TEXT(135,261,100,15,printRow.status);
  317. LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
  318. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  319. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  320. }
  321. function printZeroPageC(printRow){
  322. LODOP.NewPage();
  323. LODOP.SET_PRINT_PAGESIZE(1,800,975,"");
  324. LODOP.ADD_PRINT_TEXT(3,5,200,10,"Project:"+printRow.project);
  325. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  326. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  327. LODOP.ADD_PRINT_TEXT(11,5,133,10,"Config:"+printRow.config);
  328. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  329. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  330. LODOP.ADD_PRINT_TEXT(19,5,240,15,"OEMPN+VC:"+printRow.oempn);
  331. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  332. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  333. LODOP.ADD_PRINT_BARCODE(28,5,240,13,"128A",printRow.oempn);
  334. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  335. LODOP.ADD_PRINT_TEXT(40,5,200,10,"TRACE ID:"+printRow.traceId);
  336. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  337. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  338. LODOP.ADD_PRINT_BARCODE(49,5,200,13,"128A",printRow.traceId);
  339. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  340. LODOP.ADD_PRINT_TEXT(61,5,94,15,"Qty:"+printRow.standardRollQty);
  341. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  342. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  343. LODOP.ADD_PRINT_BARCODE(70,5,81,13,"128A",printRow.standardRollQty);
  344. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  345. LODOP.ADD_PRINT_TEXT(82,5,180,15,"ID NO:"+printRow.pkcId);
  346. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  347. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  348. LODOP.ADD_PRINT_BARCODE(91,4,180,13,"128A",printRow.pkcId);
  349. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  350. LODOP.ADD_PRINT_TEXT(103,5,163,10,printRow.partNo);
  351. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  352. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  353. //第一部分 中间的标签
  354. LODOP.ADD_PRINT_TEXT(61,130,88,15,"RoHS+HF");
  355. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  356. LODOP.ADD_PRINT_TEXT(75,140,53,15,"CCL");
  357. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  358. LODOP.ADD_PRINT_TEXT(93,140,91,15,printRow.username);
  359. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  360. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  361. //第一部分最右侧的标签
  362. LODOP.ADD_PRINT_TEXT(3,100,148,15,"Stage:"+printRow.stage);
  363. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  364. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  365. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  366. LODOP.ADD_PRINT_TEXT(35,135,155,15,"Rev.:"+printRow.revNo);
  367. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  368. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  369. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  370. LODOP.ADD_PRINT_BARCODE(45,245,50,12,"128A",printRow.revNo);
  371. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  372. LODOP.ADD_PRINT_BARCODE(60,230,79,79,"QRCode",printRow.newQrCode);
  373. LODOP.SET_PRINT_STYLEA(0, "ScalX", 0.75);
  374. LODOP.SET_PRINT_STYLEA(0, "ScalY", 0.75);
  375. //第二部分的代码
  376. LODOP.ADD_PRINT_TEXT(127,5,200,16,"Project:"+printRow.project);
  377. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  378. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  379. LODOP.ADD_PRINT_TEXT(127,100,148,15,"Stage:"+printRow.stage);
  380. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  381. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  382. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  383. LODOP.ADD_PRINT_TEXT(136,5,133,16,"Config:"+printRow.config);
  384. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  385. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  386. LODOP.ADD_PRINT_TEXT(165,135,155,15,"Rev.:"+printRow.revNo);
  387. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  388. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  389. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  390. LODOP.ADD_PRINT_TEXT(147,5,240,15,"OEMPN+VC:"+printRow.oempn);
  391. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  392. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  393. LODOP.ADD_PRINT_BARCODE(157,5,240,20,"128A",printRow.oempn);
  394. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  395. LODOP.ADD_PRINT_TEXT(178,5,200,15,"TRACE ID:"+printRow.traceId);
  396. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  397. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  398. LODOP.ADD_PRINT_BARCODE(190,5,200,20,"128A",printRow.traceId);
  399. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  400. LODOP.ADD_PRINT_BARCODE(190,245,50,20,"128A",printRow.revNo);
  401. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  402. LODOP.ADD_PRINT_TEXT(211,5,94,15,"Qty:"+printRow.standardRollQty);
  403. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  404. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  405. LODOP.ADD_PRINT_BARCODE(223,5,81,20,"128A",printRow.standardRollQty);
  406. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  407. LODOP.ADD_PRINT_TEXT(243,5,180,15,"ID NO:"+printRow.pkcId);
  408. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  409. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  410. LODOP.ADD_PRINT_BARCODE(255,4,180,20,"128A",printRow.pkcId);
  411. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  412. LODOP.ADD_PRINT_BARCODE(214,218,110,79,"QRCode",printRow.newQrCode);
  413. LODOP.ADD_PRINT_TEXT(217,135,88,15,"RoHS+HF");
  414. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  415. LODOP.ADD_PRINT_TEXT(231,151,53,15,"CCL");
  416. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  417. LODOP.ADD_PRINT_TEXT(275,5,163,15,printRow.partNo );
  418. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  419. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  420. LODOP.ADD_PRINT_TEXT(275,120,91,15,printRow.username);
  421. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  422. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  423. LODOP.ADD_PRINT_BARCODE(302,10,110,80,"QRCode",printRow.qrtextDate);
  424. LODOP.ADD_PRINT_TEXT(313,89,100,15,printRow.qrtext);
  425. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  426. LODOP.ADD_PRINT_TEXT(313,180,80,15,printRow.productStyle);
  427. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  428. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  429. LODOP.ADD_PRINT_TEXT(329,89,100,15,printRow.qty);
  430. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  431. LODOP.ADD_PRINT_TEXT(346,89,100,15,printRow.status);
  432. LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
  433. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  434. LODOP.SET_PRINT_STYLEA(1,"AngleOfPageInside",180);
  435. }