Browse Source

1. 修改過站相關資料統一變大寫

PTD
Ray 2 years ago
parent
commit
1a19aa0428
  1. 24
      AMESCoreStudio.WebApi/DTO/BLL/BarCodeCheckDto.cs

24
AMESCoreStudio.WebApi/DTO/BLL/BarCodeCheckDto.cs

@ -22,7 +22,8 @@ namespace AMESCoreStudio.WebApi.DTO.AMES
/// 工單號碼
/// </summary>
[DataMember]
public string wipNo { get; set; }
public string wipNo { get { return WipNo; } set { WipNo = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } }
private string WipNo;
/// <summary>
/// 工單ID
@ -34,7 +35,8 @@ namespace AMESCoreStudio.WebApi.DTO.AMES
/// 內部條碼
/// </summary>
[DataMember]
public string barcode { get; set; }
public string barcode { get { return Barcode; } set { Barcode = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } }
private string Barcode;
/// <summary>
/// 內部條碼ID
@ -95,7 +97,8 @@ namespace AMESCoreStudio.WebApi.DTO.AMES
/// 出貨序號
/// </summary>
[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;
/// <summary>
/// 過站UserID
@ -114,25 +117,29 @@ namespace AMESCoreStudio.WebApi.DTO.AMES
/// 刷入類型 NG or KP(Item_No)
/// </summary>
[DataMember]
public string inputType { get; set; }
public string inputType { get { return InputType; } set { InputType = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } }
private string InputType;
/// <summary>
/// 刷入組件資料或不良代碼
/// </summary>
[DataMember]
public string inputData { get; set; }
public string inputData { get { return InputData; } set { InputData = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } }
private string InputData;
/// <summary>
/// 組件:舊組件序號 NG:異常位置
/// </summary>
[DataMember]
public string oldInputData { get; set; }
public string oldInputData { get { return OldInputData; } set { OldInputData = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } }
private string OldInputData;
/// <summary>
/// 組件:組件料號 NG:
/// </summary>
[DataMember]
public string kpItemNo { get; set; }
public string kpItemNo { get { return KpItemNo; } set { KpItemNo = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } }
private string KpItemNo;
}
/// <summary>
@ -144,7 +151,8 @@ namespace AMESCoreStudio.WebApi.DTO.AMES
/// 刷入治具條碼
/// </summary>
[DataMember]
public string inputData { get; set; }
public string inputData { get { return InputData; } set { InputData = string.IsNullOrWhiteSpace(value) ? "" : value.Trim().ToUpper(); } }
private string InputData;
}
}
}

Loading…
Cancel
Save