Commit 0de8eabe LN

打印信息上传到服务器

1 个父辈 81fc1945
......@@ -222,7 +222,16 @@ namespace SmartScan
LogNet.log.Info(string.Format("打印标签 Label[{0}] Printer[{1}]", BLLCommon.config.DefaultPrintLabel, BLLCommon.config.PrinterName));
var bmp = BLLCommon.labelEdit.PrintImage(BLLCommon.config.DefaultPrintLabel, content, out _);
if (bmp != null)
_ =UnifiedDataHandler.PostSmfImageAsync(bmp, new Dictionary<string, string> { { "cid", BLLCommon.config.CID+"_2" } }, bmp.Width, bmp.Height);
{
Dictionary<string, string> paramMap = new Dictionary<string, string>();
foreach (string key in content.Keys)
{
paramMap.Add(key, content[key]);
}
paramMap.Add("cid", BLLCommon.config.CID + "_2");
_ = UnifiedDataHandler.PostSmfImageAsync(bmp, paramMap, bmp.Width, bmp.Height);
//_ = UnifiedDataHandler.PostSmfImageAsync(bmp, new Dictionary<string, string> { { "cid", BLLCommon.config.CID + "_2" } }, bmp.Width, bmp.Height);
}
bmp.Dispose();
//SaveRetrospect(labelBmp, barcode);
UnifiedDataHandler.RecordPrintNg(false, true, out string[] strarrys);
......@@ -492,6 +501,6 @@ namespace SmartScan
// new HBEditor();
ConfigHelper.AdvanceConfigForm.ShowEditDialog(this, true);
}
}
}
}
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!