请进入
西安企云基创软件
解决方法:
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;
}
}