|
|
@ -17,55 +17,55 @@ export const print_roll_label = (printList,printerName)=>{ |
|
|
LODOP.NewPage(); |
|
|
LODOP.NewPage(); |
|
|
LODOP.SET_PRINTER_INDEXA(printerName) |
|
|
LODOP.SET_PRINTER_INDEXA(printerName) |
|
|
LODOP.SET_PRINT_PAGESIZE(0,450,250,""); |
|
|
LODOP.SET_PRINT_PAGESIZE(0,450,250,""); |
|
|
LODOP.ADD_PRINT_IMAGE(0,4,"18mm","18mm",`<img src="${row.qrCode}"/>`); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_IMAGE(3,4,"18mm","18mm",`<img src="${row.qrCode}"/>`); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Stretch",2); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Stretch",2); |
|
|
LODOP.ADD_PRINT_IMAGE(4,120,30,8,"<img src=\"data:image/png;base64," + ckpLogo + "\"/>"); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_IMAGE(7,120,30,8,"<img src=\"data:image/png;base64," + ckpLogo + "\"/>"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Stretch",2); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Stretch",2); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(12,73,25,20,"REF"); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(15,73,25,20,"REF"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(24,73,25,20,"QTY"); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(27,73,25,20,"QTY"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(24,122,25,20,"UOM"); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(27,122,25,20,"UOM"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(35,73,30,20,"DESC"); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(38,73,30,20,"DESC"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(10,93,80,30,row.ref); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(13,93,80,30,row.ref); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",8); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",8); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(22,93,35,20,row.qty); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(25,93,35,20,row.qty); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",8); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",8); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(22,140,35,20,row.uom); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(25,140,35,20,row.uom); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",8); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",8); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(35,96,80,35,row.desc); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(38,96,80,35,row.desc); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
|
|
|
|
|
|
if (row.rollLabelRequired === 'Y'){ |
|
|
if (row.rollLabelRequired === 'Y'){ |
|
|
LODOP.ADD_PRINT_TEXT(55,73,30,20,"ROLL"); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(58,73,30,20,"ROLL"); |
|
|
}else if (row.serialNumberRequired === 'Y'){ |
|
|
}else if (row.serialNumberRequired === 'Y'){ |
|
|
LODOP.ADD_PRINT_TEXT(55,73,50,20,"SERIAL"); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(58,73,50,20,"SERIAL"); |
|
|
} |
|
|
} |
|
|
if (row.rollLabelRequired === 'Y' || row.serialNumberRequired === 'Y'){ |
|
|
if (row.rollLabelRequired === 'Y' || row.serialNumberRequired === 'Y'){ |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
@ -73,28 +73,28 @@ export const print_roll_label = (printList,printerName)=>{ |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(60,73,29,15,"DATE"); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(63,73,29,15,"DATE"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(60,95,85,16,row.date); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(63,95,85,16,row.date); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
|
|
|
|
|
|
if (row.rollLabelRequired === 'Y'){ |
|
|
if (row.rollLabelRequired === 'Y'){ |
|
|
LODOP.ADD_PRINT_TEXT(55,95,80,20,row.rollNo); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(58,95,80,20,row.rollNo); |
|
|
}else if (row.serialNumberRequired === 'Y'){ |
|
|
}else if (row.serialNumberRequired === 'Y'){ |
|
|
LODOP.ADD_PRINT_TEXT(55,95,80,20,row.serialNumber); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(58,95,80,20,row.serialNumber); |
|
|
} |
|
|
} |
|
|
if (row.rollLabelRequired === 'Y' || row.serialNumberRequired === 'Y'){ |
|
|
if (row.rollLabelRequired === 'Y' || row.serialNumberRequired === 'Y'){ |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"FontSize",4); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
LODOP.SET_PRINT_STYLEA(0,"Bold",1); |
|
|
} |
|
|
} |
|
|
LODOP.PRINT(); |
|
|
|
|
|
// LODOP.PRINT_DESIGN()
|
|
|
|
|
|
|
|
|
// LODOP.PRINT();
|
|
|
|
|
|
LODOP.PRINT_DESIGN() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|