From 1a19aa0428816d331ab127b284877cc6bfed0258 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 3 Feb 2023 11:40:16 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E6=94=B9=E9=81=8E=E7=AB=99?= =?UTF-8?q?=E7=9B=B8=E9=97=9C=E8=B3=87=E6=96=99=E7=B5=B1=E4=B8=80=E8=AE=8A?= =?UTF-8?q?=E5=A4=A7=E5=AF=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DTO/BLL/BarCodeCheckDto.cs | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/AMESCoreStudio.WebApi/DTO/BLL/BarCodeCheckDto.cs b/AMESCoreStudio.WebApi/DTO/BLL/BarCodeCheckDto.cs index cf36d7ab..019acb57 100644 --- a/AMESCoreStudio.WebApi/DTO/BLL/BarCodeCheckDto.cs +++ b/AMESCoreStudio.WebApi/DTO/BLL/BarCodeCheckDto.cs @@ -22,7 +22,8 @@ namespace AMESCoreStudio.WebApi.DTO.AMES /// 工單號碼 /// [DataMember] - public string wipNo { get; set; } + public string wipNo { get { return WipNo; } set { WipNo = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } } + private string WipNo; /// /// 工單ID @@ -34,7 +35,8 @@ namespace AMESCoreStudio.WebApi.DTO.AMES /// 內部條碼 /// [DataMember] - public string barcode { get; set; } + public string barcode { get { return Barcode; } set { Barcode = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } } + private string Barcode; /// /// 內部條碼ID @@ -95,7 +97,8 @@ namespace AMESCoreStudio.WebApi.DTO.AMES /// 出貨序號 /// [DataMember] - public string extNo { get; set; } = string.Empty; + public string extNo { get { return ExtNo; } set { ExtNo = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } } + private string ExtNo; /// /// 過站UserID @@ -114,37 +117,42 @@ namespace AMESCoreStudio.WebApi.DTO.AMES /// 刷入類型 NG or KP(Item_No) /// [DataMember] - public string inputType { get; set; } + public string inputType { get { return InputType; } set { InputType = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } } + private string InputType; /// /// 刷入組件資料或不良代碼 /// [DataMember] - public string inputData { get; set; } + public string inputData { get { return InputData; } set { InputData = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } } + private string InputData; /// /// 組件:舊組件序號 NG:異常位置 /// [DataMember] - public string oldInputData { get; set; } + public string oldInputData { get { return OldInputData; } set { OldInputData = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } } + private string OldInputData; /// /// 組件:組件料號 NG: /// [DataMember] - public string kpItemNo { get; set; } + public string kpItemNo { get { return KpItemNo; } set { KpItemNo = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } } + private string KpItemNo; } /// /// 治具條碼 /// - public class Outfit + public class Outfit { /// /// 刷入治具條碼 /// [DataMember] - public string inputData { get; set; } + public string inputData { get { return InputData; } set { InputData = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } } + private string InputData; } } }