From a7feaa21586140128aa329741603bd78a7cde82c Mon Sep 17 00:00:00 2001 From: 17351662861 Date: Thu, 15 May 2025 14:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=95=B4=E9=A1=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RIZO_Application.Core/Event/PrintEvent.cs | 39 +++++++++++-------- .../BartenderHelper/BartenderPrintHelper.cs | 2 +- 2 files changed, 24 insertions(+), 17 deletions(-) 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); } } }