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.

435 lines
17 KiB

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months 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. LODOP.SET_LICENSES("",clodoplisence,"","");
  9. }else {
  10. alert("本机已成功安装了Lodop控件!\n 版本号"+LODOP.VERSION);
  11. }
  12. };
  13. }catch(err){
  14. }
  15. };
  16. //总调用打印的方法
  17. function printQcRollLabel(printRow, printerData){
  18. let labelFlag = printRow.labelFlag;
  19. //初始化打印
  20. initPrintSetting(printerData.clodopLicense);
  21. switch (labelFlag) {
  22. case "A":
  23. printPageA(printRow, printerData);
  24. break;
  25. case "B":
  26. printPageB(printRow);
  27. break;
  28. case "C":
  29. printPageC(printRow);
  30. break;
  31. case "D":
  32. printPageD(printRow);
  33. break;
  34. default:
  35. break;
  36. }
  37. //区分各种打印的模式
  38. let printerSeq = printerData.printerSeq;
  39. if (printerSeq >= 0){
  40. LODOP.SET_PRINTER_INDEXA(printerData.printerName);
  41. LODOP.PRINT();
  42. }else if (printerSeq == -1){
  43. LODOP.PREVIEW();
  44. }else if (printerSeq == -2){
  45. LODOP.PRINT_DESIGN();
  46. }
  47. }
  48. // 参考2024 India布局:左列条码标签
  49. function printLeftColumn(printRow, offsetX){
  50. LODOP.ADD_PRINT_TEXT(3,5+offsetX,220,21,"P/N:"+printRow.customerPartNo);
  51. LODOP.ADD_PRINT_BARCODE(16,5+offsetX,156,20,"128A",printRow.customerPartNo);
  52. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  53. LODOP.ADD_PRINT_TEXT(37,5+offsetX,160,21,"QTY:"+printRow.standardRollQty);
  54. LODOP.ADD_PRINT_BARCODE(50,5+offsetX,65,20,"128A",printRow.standardRollQty);
  55. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  56. LODOP.ADD_PRINT_TEXT(71,5+offsetX,220,20,"Mfr P/N:"+printRow.partNo);
  57. LODOP.ADD_PRINT_BARCODE(84,5+offsetX,161,20,"128A",printRow.partNo);
  58. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  59. LODOP.ADD_PRINT_TEXT(105,5+offsetX,220,20,"Date Code:"+printRow.dateCode);
  60. LODOP.ADD_PRINT_BARCODE(118,5+offsetX,132,20,"128A",printRow.dateCode);
  61. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  62. LODOP.ADD_PRINT_TEXT(139,5+offsetX,220,20,"Lot NO:"+printRow.finalRollNo);
  63. LODOP.ADD_PRINT_BARCODE(152,5+offsetX,161,20,"128A",printRow.finalRollNo);
  64. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  65. LODOP.ADD_PRINT_TEXT(173,5+offsetX,220,20,"PKG ID:"+printRow.pkcId);
  66. LODOP.ADD_PRINT_BARCODE(186,5+offsetX,168,20,"128A",printRow.pkcId);
  67. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  68. LODOP.ADD_PRINT_BARCODE(208,5+offsetX,105,105,"QRCode",printRow.newQrCode);
  69. LODOP.ADD_PRINT_TEXT(208,105+offsetX,75,20,"Rev:"+printRow.revNo);
  70. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  71. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  72. LODOP.ADD_PRINT_IMAGE(225,101+offsetX,59,28,"<img src='/img/cclimg.png'>");
  73. LODOP.SET_PRINT_STYLEA(0,"Stretch",1);
  74. LODOP.ADD_PRINT_TEXT(258,105+offsetX,50,20,"HF");
  75. LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
  76. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  77. LODOP.ADD_PRINT_TEXT(280,5+offsetX,80,15,printRow.username);
  78. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  79. }
  80. // PageA: 2024 India风格 - 双列条码标签 + 底部卷号QR + 状态
  81. function printPageA(printRow, printerInfo){
  82. LODOP.NewPage();
  83. LODOP.SET_PRINT_PAGESIZE(2,800,1125,"");
  84. //左列
  85. printLeftColumn(printRow, 0);
  86. //右列 (offsetX = 173, 同2024布局)
  87. printLeftColumn(printRow, 173);
  88. //底部 - 卷号大QR + 状态 (参考2024底部布局)
  89. LODOP.ADD_PRINT_BARCODE(4,348,110,80,"QRCode",printRow.finalRollNo);
  90. LODOP.ADD_PRINT_TEXT(73,310,100,15,printRow.finalRollNo);
  91. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  92. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  93. LODOP.ADD_PRINT_TEXT(135,340,100,30,printRow.status);
  94. LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
  95. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  96. }
  97. // PageB: 扩展字段版 - 增加Week Code、Rev条码
  98. function printPageB(printRow){
  99. LODOP.NewPage();
  100. LODOP.SET_PRINT_PAGESIZE(2,800,1125,"");
  101. //左列 - 8个条码字段 + QR
  102. LODOP.ADD_PRINT_TEXT(3,3,135,15,"P/N:"+printRow.customerPartNo);
  103. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  104. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  105. LODOP.ADD_PRINT_BARCODE(12,3,135,20,"128A",printRow.customerPartNo);
  106. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  107. LODOP.ADD_PRINT_TEXT(33,3,135,15,"QTY:"+printRow.standardRollQty);
  108. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  109. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  110. LODOP.ADD_PRINT_BARCODE(42,3,65,20,"128A",printRow.standardRollQty);
  111. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  112. LODOP.ADD_PRINT_TEXT(62,3,135,15,"Mfr P/N:"+printRow.partNo);
  113. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  114. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  115. LODOP.ADD_PRINT_BARCODE(71,3,65,20,"128A",printRow.partNo);
  116. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  117. LODOP.ADD_PRINT_TEXT(93,3,135,15,"Date Code:"+printRow.rollDate2);
  118. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  119. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  120. LODOP.ADD_PRINT_BARCODE(102,5,135,20,"128A",printRow.rollDate2);
  121. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  122. LODOP.ADD_PRINT_TEXT(123,5,135,20,"Week Code:"+printRow.dateCode);
  123. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  124. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  125. LODOP.ADD_PRINT_BARCODE(132,5,96,20,"128A",printRow.dateCode);
  126. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  127. LODOP.ADD_PRINT_TEXT(153,5,135,15,"Lot NO:"+printRow.finalRollNo);
  128. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  129. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  130. LODOP.ADD_PRINT_BARCODE(162,5,135,20,"128A",printRow.finalRollNo);
  131. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  132. LODOP.ADD_PRINT_TEXT(183,5,75,15,"Rev:"+printRow.revNo);
  133. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  134. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  135. LODOP.ADD_PRINT_BARCODE(192,5,69,20,"128A",printRow.revNo);
  136. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  137. LODOP.ADD_PRINT_TEXT(213,5,135,15,"PKG ID:"+printRow.pkcId);
  138. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  139. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  140. LODOP.ADD_PRINT_BARCODE(222,5,135,20,"128A",printRow.pkcId);
  141. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  142. //QR码及底部信息 (2024风格)
  143. LODOP.ADD_PRINT_BARCODE(243,5,74,74,"QRCode",printRow.newQrCode);
  144. LODOP.ADD_PRINT_TEXT(261,50,30,20,"HF");
  145. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  146. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  147. LODOP.ADD_PRINT_TEXT(286,50,117,15,printRow.username);
  148. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  149. LODOP.ADD_PRINT_IMAGE(241,43,55,20,"<img src='/img/cclimg.png'>");
  150. LODOP.SET_PRINT_STYLEA(0,"Stretch",1);
  151. LODOP.ADD_PRINT_TEXT(276,50,117,15,"机种:"+printRow.resource);
  152. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  153. //右列 - 同左列内容 (offsetX = 130, 2024风格紧凑布局)
  154. LODOP.ADD_PRINT_TEXT(3,130,188,21,"P/N:"+printRow.customerPartNo);
  155. LODOP.ADD_PRINT_BARCODE(18,130,156,15,"128A",printRow.customerPartNo);
  156. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  157. LODOP.ADD_PRINT_TEXT(33,130,186,21,"QTY:"+printRow.standardRollQty);
  158. LODOP.ADD_PRINT_BARCODE(47,130,65,15,"128A",printRow.standardRollQty);
  159. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  160. LODOP.ADD_PRINT_TEXT(62,130,189,20,"Mfr P/N:"+printRow.partNo );
  161. LODOP.ADD_PRINT_BARCODE(76,130,161,15,"128A",printRow.partNo );
  162. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  163. LODOP.ADD_PRINT_TEXT(93,130,190,20,"Date Code:"+printRow.rollDate2);
  164. LODOP.ADD_PRINT_BARCODE(108,130,132,15,"128A",printRow.rollDate2);
  165. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  166. LODOP.ADD_PRINT_TEXT(123,130,136,20,"Week Code:"+printRow.dateCode);
  167. LODOP.ADD_PRINT_BARCODE(138,130,96,15,"128A",printRow.dateCode);
  168. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  169. LODOP.ADD_PRINT_TEXT(153,130,192,20,"Lot NO:"+printRow.finalRollNo);
  170. LODOP.ADD_PRINT_BARCODE(167,130,161,16,"128A",printRow.finalRollNo);
  171. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  172. LODOP.ADD_PRINT_TEXT(183,130,75,20,"Rev:"+printRow.revNo);
  173. LODOP.ADD_PRINT_BARCODE(197,130,69,15,"128A",printRow.revNo);
  174. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  175. LODOP.ADD_PRINT_TEXT(211,130,192,20,"PKG ID:"+printRow.pkcId);
  176. LODOP.ADD_PRINT_BARCODE(226,130,168,15,"128A",printRow.pkcId);
  177. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  178. //右列QR码及底部
  179. LODOP.ADD_PRINT_BARCODE(241,141,105,76,"QRCode",printRow.newQrCode);
  180. LODOP.ADD_PRINT_TEXT(261,205,30,20,"HF");
  181. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  182. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  183. LODOP.ADD_PRINT_TEXT(286,205,117,15,printRow.username);
  184. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  185. LODOP.ADD_PRINT_IMAGE(241,198,55,20,"<img src='/img/cclimg.png'>");
  186. LODOP.SET_PRINT_STYLEA(0,"Stretch",1);
  187. LODOP.ADD_PRINT_TEXT(276,205,117,15,"机种:"+printRow.resource);
  188. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  189. //底部 - 卷号QR + 状态 (2024风格)
  190. LODOP.ADD_PRINT_BARCODE(4,300,110,80,"QRCode",printRow.finalRollNo);
  191. LODOP.ADD_PRINT_TEXT(73,261,100,15,printRow.finalRollNo);
  192. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  193. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  194. LODOP.ADD_PRINT_TEXT(88,280,80,15,printRow.productStyle);
  195. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  196. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  197. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  198. LODOP.ADD_PRINT_TEXT(114,261,100,15, printRow.qty);
  199. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  200. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  201. LODOP.ADD_PRINT_TEXT(135,261,100,15,printRow.status);
  202. LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
  203. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  204. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  205. }
  206. // PageD: 右列 + 底部版 (同PageB下半部分)
  207. function printPageD(printRow){
  208. LODOP.NewPage();
  209. LODOP.SET_PRINT_PAGESIZE(2,800,1125,"");
  210. //右列条码
  211. LODOP.ADD_PRINT_TEXT(3,130,188,21,"P/N:"+printRow.customerPartNo);
  212. LODOP.ADD_PRINT_BARCODE(18,130,156,15,"128A",printRow.customerPartNo);
  213. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  214. LODOP.ADD_PRINT_TEXT(33,130,186,21,"QTY:"+printRow.standardRollQty);
  215. LODOP.ADD_PRINT_BARCODE(47,130,65,15,"128A",printRow.standardRollQty);
  216. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  217. LODOP.ADD_PRINT_TEXT(62,130,189,20,"Mfr P/N:"+printRow.partNo );
  218. LODOP.ADD_PRINT_BARCODE(76,130,161,15,"128A",printRow.partNo );
  219. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  220. LODOP.ADD_PRINT_TEXT(93,130,190,20,"Date Code:"+printRow.rollDate2);
  221. LODOP.ADD_PRINT_BARCODE(108,130,132,15,"128A",printRow.rollDate2);
  222. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  223. LODOP.ADD_PRINT_TEXT(123,130,136,20,"Week Code:"+printRow.dateCode);
  224. LODOP.ADD_PRINT_BARCODE(138,130,96,15,"128A",printRow.dateCode);
  225. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  226. LODOP.ADD_PRINT_TEXT(153,130,192,20,"Lot NO:"+printRow.finalRollNo);
  227. LODOP.ADD_PRINT_BARCODE(167,130,161,16,"128A",printRow.finalRollNo);
  228. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  229. LODOP.ADD_PRINT_TEXT(183,130,75,20,"Rev:"+printRow.revNo);
  230. LODOP.ADD_PRINT_BARCODE(197,130,69,15,"128A",printRow.revNo);
  231. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  232. LODOP.ADD_PRINT_TEXT(211,130,192,20,"PKG ID:"+printRow.pkcId);
  233. LODOP.ADD_PRINT_BARCODE(226,130,168,15,"128A",printRow.pkcId);
  234. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  235. //右列QR码及底部
  236. LODOP.ADD_PRINT_BARCODE(241,141,105,76,"QRCode",printRow.newQrCode);
  237. LODOP.ADD_PRINT_TEXT(261,205,30,20,"HF");
  238. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  239. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  240. LODOP.ADD_PRINT_TEXT(286,205,117,15,printRow.username);
  241. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  242. LODOP.ADD_PRINT_IMAGE(241,198,55,20,"<img src='/img/cclimg.png'>");
  243. LODOP.SET_PRINT_STYLEA(0,"Stretch",1);
  244. LODOP.ADD_PRINT_TEXT(276,205,117,15,"机种:"+printRow.resource);
  245. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  246. //底部 - 卷号QR + 状态
  247. LODOP.ADD_PRINT_BARCODE(4,300,110,80,"QRCode",printRow.finalRollNo);
  248. LODOP.ADD_PRINT_TEXT(73,261,100,15,printRow.finalRollNo);
  249. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  250. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  251. LODOP.ADD_PRINT_TEXT(88,280,80,15,printRow.productStyle);
  252. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  253. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  254. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  255. LODOP.ADD_PRINT_TEXT(114,261,100,15, printRow.qty);
  256. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  257. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  258. LODOP.ADD_PRINT_TEXT(135,261,100,15,printRow.status);
  259. LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
  260. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  261. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  262. }
  263. // PageC: 详细条码页 - 2024风格的紧凑布局
  264. function printPageC(printRow){
  265. LODOP.NewPage();
  266. LODOP.SET_PRINT_PAGESIZE(1,800,1125,"");
  267. //第一部分 - 小字体密集条码 (上半部分)
  268. LODOP.ADD_PRINT_TEXT(3,5,200,10,"Project:"+printRow.project);
  269. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  270. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  271. LODOP.ADD_PRINT_TEXT(11,5,133,10,"Config:"+printRow.config);
  272. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  273. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  274. LODOP.ADD_PRINT_TEXT(19,5,240,15,"OEMPN+VC:"+printRow.oempn);
  275. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  276. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  277. LODOP.ADD_PRINT_BARCODE(28,5,240,13,"128A",printRow.oempn);
  278. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  279. LODOP.ADD_PRINT_TEXT(40,5,200,10,"TRACE ID:"+printRow.traceId);
  280. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  281. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  282. LODOP.ADD_PRINT_BARCODE(49,5,200,13,"128A",printRow.traceId);
  283. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  284. LODOP.ADD_PRINT_TEXT(61,5,94,15,"Qty:"+printRow.standardRollQty);
  285. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  286. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  287. LODOP.ADD_PRINT_BARCODE(70,5,81,13,"128A",printRow.standardRollQty);
  288. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  289. LODOP.ADD_PRINT_TEXT(82,5,180,15,"ID NO:"+printRow.pkcId);
  290. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  291. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  292. LODOP.ADD_PRINT_BARCODE(91,4,180,13,"128A",printRow.pkcId);
  293. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  294. LODOP.ADD_PRINT_TEXT(103,5,163,10,printRow.partNo);
  295. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  296. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  297. //中间标识
  298. LODOP.ADD_PRINT_TEXT(65,110,88,15,"RoHS+HF");
  299. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  300. LODOP.ADD_PRINT_TEXT(79,120,53,15,"CCL");
  301. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  302. LODOP.ADD_PRINT_TEXT(97,115,91,15,printRow.username);
  303. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  304. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  305. //右侧信息
  306. LODOP.ADD_PRINT_TEXT(3,100,148,15,"Stage:"+printRow.stage);
  307. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  308. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  309. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  310. LODOP.ADD_PRINT_TEXT(35,230,40,15,"Rev.:"+printRow.revNo);
  311. LODOP.SET_PRINT_STYLEA(0,"FontSize",6);
  312. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  313. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  314. LODOP.ADD_PRINT_BARCODE(45,245,40,12,"128A",printRow.revNo);
  315. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  316. LODOP.ADD_PRINT_BARCODE(60,225,79,79,"QRCode",printRow.newQrCode);
  317. LODOP.SET_PRINT_STYLEA(0, "ScalX", 0.75);
  318. LODOP.SET_PRINT_STYLEA(0, "ScalY", 0.75);
  319. //第二部分 - 大字体条码 (下半部分)
  320. LODOP.ADD_PRINT_TEXT(127,5,200,16,"Project:"+printRow.project);
  321. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  322. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  323. LODOP.ADD_PRINT_TEXT(127,100,148,15,"Stage:"+printRow.stage);
  324. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  325. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  326. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  327. LODOP.ADD_PRINT_TEXT(136,5,133,16,"Config:"+printRow.config);
  328. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  329. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  330. LODOP.ADD_PRINT_TEXT(165,135,155,15,"Rev.:"+printRow.revNo);
  331. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  332. LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
  333. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  334. LODOP.ADD_PRINT_TEXT(147,5,240,15,"OEMPN+VC:"+printRow.oempn);
  335. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  336. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  337. LODOP.ADD_PRINT_BARCODE(157,5,240,20,"128A",printRow.oempn);
  338. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  339. LODOP.ADD_PRINT_TEXT(178,5,200,15,"TRACE ID:"+printRow.traceId);
  340. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  341. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  342. LODOP.ADD_PRINT_BARCODE(190,5,200,20,"128A",printRow.traceId);
  343. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  344. LODOP.ADD_PRINT_BARCODE(190,245,50,20,"128A",printRow.revNo);
  345. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  346. LODOP.ADD_PRINT_TEXT(211,5,94,15,"Qty:"+printRow.standardRollQty);
  347. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  348. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  349. LODOP.ADD_PRINT_BARCODE(223,5,81,20,"128A",printRow.standardRollQty);
  350. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  351. LODOP.ADD_PRINT_TEXT(243,5,180,15,"ID NO:"+printRow.pkcId);
  352. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  353. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  354. LODOP.ADD_PRINT_BARCODE(255,4,180,20,"128A",printRow.pkcId);
  355. LODOP.SET_PRINT_STYLEA(0,"ShowBarText",0);
  356. LODOP.ADD_PRINT_BARCODE(214,218,110,79,"QRCode",printRow.newQrCode);
  357. LODOP.ADD_PRINT_TEXT(217,135,88,15,"RoHS+HF");
  358. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  359. LODOP.ADD_PRINT_TEXT(231,151,53,15,"CCL");
  360. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  361. LODOP.ADD_PRINT_TEXT(275,5,163,15,printRow.partNo );
  362. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  363. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  364. LODOP.ADD_PRINT_TEXT(275,120,91,15,printRow.username);
  365. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  366. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  367. LODOP.ADD_PRINT_BARCODE(302,10,110,80,"QRCode",printRow.finalRollNo);
  368. LODOP.ADD_PRINT_TEXT(313,89,100,15,printRow.finalRollNo);
  369. LODOP.SET_PRINT_STYLEA(0,"FontSize",7);
  370. LODOP.ADD_PRINT_TEXT(313,180,80,15,printRow.productStyle);
  371. LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
  372. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  373. LODOP.ADD_PRINT_TEXT(329,89,100,15,printRow.qty);
  374. LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
  375. LODOP.ADD_PRINT_TEXT(346,89,100,15,printRow.status);
  376. LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
  377. LODOP.SET_PRINT_STYLEA(0,"Bold",1);
  378. LODOP.SET_PRINT_STYLEA(1,"AngleOfPageInside",180);
  379. }