diff --git a/RIZO_Application/RIZO_Application.Core/Event/PrintEvent.cs b/RIZO_Application/RIZO_Application.Core/Event/PrintEvent.cs index d6fb36b..edea604 100644 --- a/RIZO_Application/RIZO_Application.Core/Event/PrintEvent.cs +++ b/RIZO_Application/RIZO_Application.Core/Event/PrintEvent.cs @@ -10,26 +10,33 @@ namespace RIZO_Application.Core public class PrintDto { - public string Path { get; set; } - - public string SiteNo { get; set; } - - public string Name { get; set; } - - public string PartNumber { get; set; } - - public string WorkOrder { get; set; } - + // btw文件路径 + public string Path { get; set; } = ""; + // 站点号 + public string SiteNo { get; set; } = ""; + // 识别内容名称(内部) + public string Name { get; set; } = ""; + // 零件号 + public string PartNumber { get; set; } = ""; + // 产品名称 + public string Description { get; set; } = ""; + // 颜色 + public string Color { get; set; } = ""; + // 规格 + public string Sepcification { get; set; } = ""; + // 工单号 + public string WorkOrder { get; set; } = ""; + // 班组 public string Team { get; set; } = "A"; - + // 流水号 public int Sort { get; set; } = 1; - - public string BatchCode { get; set; } - + // 批次号 + public string BatchCode { get; set; } = ""; + // 满箱数 public int PackageNum { get; set; } = 24; - + // 标签区别 public int LabelType { get; set; } = 1; - + // 发送时间 public string CreatedTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); } } diff --git a/RIZO_Application/RIZO_Application.Infrastructure/Util/BartenderHelper/BartenderPrintHelper.cs b/RIZO_Application/RIZO_Application.Infrastructure/Util/BartenderHelper/BartenderPrintHelper.cs index a1562c5..f440bf9 100644 --- a/RIZO_Application/RIZO_Application.Infrastructure/Util/BartenderHelper/BartenderPrintHelper.cs +++ b/RIZO_Application/RIZO_Application.Infrastructure/Util/BartenderHelper/BartenderPrintHelper.cs @@ -81,7 +81,7 @@ namespace linesider_screen_tool if (btApp != null) { btApp.Quit(0); - Marshal.ReleaseComObject(_btApp); + Marshal.ReleaseComObject(btApp); } } }