请进入
西安企云基创软件
解决方法:
1、编写脚本,放入平台SCMReport/PrinterJS/Printer.js
2、模块构件,初始化Javascript脚本: addJavascriptFile("../../SCMReport/PrinterJS/Printer.js")
3、操作构件,操作前执行SQL:
var name =getFv('M','MeasureName');
var standard =getFv('M','Standard');
var barcode =getFv('M','MeasureBarcode');
if(barcode=='' ||barcode==null)
{
alert('条码为空,请输入条码后再打印!');
false;
}
else
{
try
{
PrintMeasureBarCode(name, standard,barcode);
}
catch(e)
{
alert(e);
alert('打印机连接错误,请检查你的打印机!');
false;
}
}
本文介绍了一种在西安企云基创软件中实现条形码打印的方法。通过编写自定义脚本并将其集成到系统的Printer.js文件中,确保在打印前条形码已正确填写。此外,还提供了异常处理机制来应对打印机连接错误。
9259

被折叠的 条评论
为什么被折叠?



