Commit 25a17196 张东亮

1

1 个父辈 3b364888
......@@ -146,12 +146,12 @@ namespace ShelfPrinter
//foreach (var item in labels)
{
lblLabelInfo.Text = $"打印任务[{item}]:{labels.ToStr()}";
printLabel(new Label_LZ(labels.pn, labels.side, labels.station, labels.line));
while (printerStatus.Equals(Asa.PrintLabel.PrinterStatus.Printing)
|| printerStatus.Equals(Asa.PrintLabel.PrinterStatus.Print))
{
Thread.Sleep(300);
}
//printLabel(new Label_LZ(labels.pn, labels.side, labels.station, labels.line));
//while (printerStatus.Equals(Asa.PrintLabel.PrinterStatus.Printing)
// || printerStatus.Equals(Asa.PrintLabel.PrinterStatus.Print))
//{
// Thread.Sleep(300);
//}
LogUtil.info($"自动打印[{printerStatus.ToString()}]:{labels.ToStr()}");
while (true)
{
......
......@@ -91,11 +91,13 @@ namespace ShelfPrinter
}
if (!isShow)
{
LogUtil.info("启动程序");
System.Net.ServicePointManager.DefaultConnectionLimit = 512;
XmlConfigurator.Configure();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmShelfPrinterMain());
LogUtil.info("退出程序");
}
//Application.EnableVisualStyles();
......
......@@ -252,6 +252,8 @@ namespace OnlineStore.DeviceLibrary
if (serverResult == null)
{
msg = $"FinishPrint" + "没有收到服务器反馈";
LogUtil.error (msg);
return false;
}
else if (serverResult.code.Equals(0))
{
......@@ -263,7 +265,7 @@ namespace OnlineStore.DeviceLibrary
else
{
msg = $" FinishPrint【{resultStr}】";
LogUtil.debug(msg);
LogUtil.error(msg);
return false;
}
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!