using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;
namespace AMESCoreStudio.WebApi.Models.AMES
{
///
/// 完工入庫呼叫安勤api轉檔
///
public class PTD101AMESModel
{
///
/// AME驗單單號
///
public string FQCID { get; set; }
///
/// 出貨序號
///
///
public string SSN { get; set; }
///
/// 生產序號
///
public string ISN { get; set; }
///
/// 本次入庫單號
///
public string RecordNumber { get; set; }
///
/// 料號
///
public string PN { get; set; }
///
/// 成倉人員工號
///
public string EmpID { get; set; }
///
/// 安勤: 9000 昶亨:0S08
///
public string Location { get; set; }
///
/// 101
///
public string RecordTypeID { get; set; } = "101";
///
/// 正式資料:Ava.ptdbatch 測試資料 :test-Ava.ptdbatch-test
///
public string Key { get; set; }
///
/// RecordDate
///
public string RecordDate { get; set; }
}
public class PTD002CommitDataModel
{
public string RecordType { get; set; }
public string WorkCenter { get; set; }
public string Rbu { get; set; }
public string RmaNo { get; set; }
public string RecordDate { get; set; }
public string Location { get; set; }
public string Customer { get; set; }
public string StockUnit { get; set; }
public List TableData { get; set; }
}
public class SNDataModel
{
public int ItemNo { get; set; }
public string DnNo { get; set; }
public string LineNo { get; set; }
public string Material { get; set; }
public string Sn { get; set; }
}
public class RecordTypeInfo
{
public int Mode { get; set; } = 0;
public string? RBU { get; set; }
public string ID { get; set; }
public string? TypeName { get; set; }
public string? TypeDesc { get; set; }
public string? Source { get; set; }
public string? PrefixCode { get; set; }
public int? Length { get; set; }
public string? Status { get; set; }
}
///
/// 備貨 一段式 確認資料欄位
///
public class PTDCheckInputData
{
///
/// 作業類型
///
public string RecordType { get; set; }
///
/// 工作中心
///
public string WorkCenter { get; set; }
///
/// RBU
///
public string Rbu { get; set; }
///
/// RMA No
///
public string RmaNo { get; set; }
///
/// RecordNumber
///
public string RecordNumber { get; set; }
///
/// LineNo
///
public string LineNo { get; set; }
///
/// RecordDate
///
public string RecordDate { get; set; }
///
/// 料號
///
public string ProductId { get; set; }
///
/// 入作業庫別
///
public string Location { get; set; }
///
/// 客戶名稱
///
public string Customer { get; set; }
///
/// 資料群組 0:PCS 1:BOX
///
public string StockUnit { get; set; }
///
/// 起始序號
///
public string FrontSN { get; set; }
///
/// 結束序號
///
public string EndSN { get; set; }
///
/// Begin=End 單一序號
///
public string PcsUnit { get; set; }
///
/// 備貨量
///
public int StockQty { get; set; }
///
/// 流水碼
///
public int Sequential { get; set; }
///
/// Excel 匯入資料
///
public string SNData { get; set; }
}
#region "PTD007 扣帳作業"
public class PTD007CommitDataModel
{
public string RecordType { get; set; }
public string WorkCenter { get; set; }
public string Rbu { get; set; }
public string RecordDate { get; set; }
public List TableData { get; set; }
}
public class PTD007TableDataModel
{
public string dnno { get; set; }
public string dnLineNO { get; set; }
public string productID { get; set; }
public string? soldCustomerID { get; set; }
public string? expectShipDate { get; set; }
public int? shipQty { get; set; }
public int qty { get; set; }
}
#endregion
#region "PTD008 還原作業"
public class PTD008CommitDataModel
{
public int type { get; set; }
public List tableData { get; set; }
}
public class PTD008TableDataModel
{
public string recordNumber { get; set; }
public string lineNo { get; set; }
public string productID { get; set; }
public string sn { get; set; }
public string recordTypeID { get; set; }
public string result { get; set; }
}
#endregion
#region "PTD006 備貨作業"
public class PTD006CommitDataModel
{
public string RecordTypeID { get; set; }
public string RecordNumber { get; set; }
public string RCLineNO { get; set; }
public string InputSN { get; set; }
public string ShipmentSN { get; set; }
public string ProductID { get; set; }
public string? EmplID { get; set; }
public string? ExtNotes { get; set; }
public string? OwnerPlantID { get; set; }
public string? OwnerCompanyID { get; set; }
public string? CreateDeptID { get; set; }
public string? CreatorID { get; set; }
public string? ModifyDeptID { get; set; }
public string? ModifierID { get; set; }
public string StockUnit { get; set; }
}
#endregion
#region "PTD005 設定 ERP 客戶代號和客戶收件人名單"
public class CustomerItemMailGroupModel
{
public int Mode { get; set; } = 0;
[Column("ItemNumber")]
[DataMember]
[Display(Name = "料號")]
public string ItemNumber { get; set; }
[Column("CustomerCode")]
[DataMember]
[Display(Name = "客戶代號")]
[Required(ErrorMessage = "{0},不能空白")]
public string CustomerCode { get; set; }
[Column("MailGroup")]
[DataMember]
[Display(Name = "Mail群組")]
[Required(ErrorMessage = "{0},不能空白")]
public string MailGroup { get; set; }
public string StatusNo { get; set; }
}
#endregion
}