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; } } }