ソースを参照

打印日志,文本输出 打印份数等

chenxy 6 ヶ月 前
コミット
ddb71f8cfb
1 ファイル変更10 行追加0 行削除
  1. 10 0
      DK.Service/BarcodePrintService/BarcodePrintLogic.cs

+ 10 - 0
DK.Service/BarcodePrintService/BarcodePrintLogic.cs

@@ -733,6 +733,16 @@ namespace Dongke.IBOSS.PRD.Service.BarcodePrintService
                 //生成电子票据
                 //List<Image> images = InvoiceLayoutPrinter.Print(layoutBytes, printData.Tables[0].Rows[0], printData.Tables[1]);
                 InvoiceLayoutPrinter.Print(printerName, Convert.ToInt16(copies), bytes, printData.Rows[0], printData);
+                Dongke.IBOSS.PRD.Basics.Library.OutputLog.TraceLog(Dongke.IBOSS.PRD.Basics.Library.LogPriority.Debug,
+                                   "PrintBarcode_3C",
+                                   "barcode  --  " + barcode + System.Environment.NewLine +
+                                   "copies  --  " + copies + System.Environment.NewLine +
+                                   "printerID  --  " + printerID + System.Environment.NewLine +
+                                   "printerName  --  " + printerName + System.Environment.NewLine +
+                                   "printType  --  " + printtype + System.Environment.NewLine +
+                                   "printWay  --  " + printWay,
+                                   sUserInfo.UserCode + " : " + sUserInfo.UserName,
+                                   Dongke.IBOSS.PRD.Basics.Library.LocalPath.LogExePath + @"printdebug\");
 
                 //if (!isPrint)
                 //{