From 9e4d2ea113f6d5631f78aa85bbe39481fd701b72 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 27 二月 2025 10:47:39 +0800 Subject: [PATCH] 雅达-扩展和改进半成品入库和打印标签功能 --- Tiger.Model.Net/Entitys/MES/ParameterEntity/U9CParameter.cs | 149 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 145 insertions(+), 4 deletions(-) diff --git a/Tiger.Model.Net/Entitys/MES/ParameterEntity/U9CParameter.cs b/Tiger.Model.Net/Entitys/MES/ParameterEntity/U9CParameter.cs index 14e9dc7..55a1c98 100644 --- a/Tiger.Model.Net/Entitys/MES/ParameterEntity/U9CParameter.cs +++ b/Tiger.Model.Net/Entitys/MES/ParameterEntity/U9CParameter.cs @@ -6,14 +6,20 @@ namespace Tiger.Model.Entitys.MES.U9C { - public class U9CResult + public class U9CBaseResult { public int ResCode { get; set; } public bool Success { get; set; } public string ResMsg { get; set; } + } + public class U9CResult : U9CBaseResult + { public List<U9CReturnData> Data { get; set; } - public int Status { get; set; } - public int RouteStatus { get; set; } + } + + public class U9CLoginResult : U9CBaseResult + { + public string Data { get; set; } } public class U9CReturnData @@ -30,7 +36,37 @@ /// <summary> /// 鍏ュ簱鍗曟帴鍙d紶鍏ュ弬鏁� /// </summary> - public class RcvRptDocCreateInput { + public class RcvRptDocCreateInput + { + public List<RcvRptDocBase> RcvRptDocBases { get; set; } + public List<BIZ_ERP_PROD_IN_BTH> ErpProdInBths { get; set; } = new List<BIZ_ERP_PROD_IN_BTH>(); + public List<InStorePrintJson> PrintJsons { get; set; } = new List<InStorePrintJson>(); + public List<BAS_LABEL_TEMP> labels { get; set; } + public string userId { get; set; } + } + + public class InStorePrintJson + { + public string ID { get; set; } + public List<BIZ_ERP_PROD_IN_BTH> Items { get; set; } + } + + //public class ProdInBatch + //{ + // public string ORDER_NO { get; set; } + // public string SALES_ORDER { get; set; } + // public string STATUS { get; set; } + // public string BATCH_NO { get; set; } + // public string WORK_ORDER { get; set; } + // public string ITEM_CODE { get; set; } + // public string SapCode { get; set; } + // public string ITEM_NAME { get; set; } + // public double PLAN_QTY { get; set; } + // public double SCAN_QTY { get; set; } + //} + + public class RcvRptDocBase + { public string WorkOrder { get; set; } public string ItemCode { get; set; } public string WhCode { get; set; } = "10105"; @@ -39,6 +75,111 @@ public int OutputType { get; set; } = 0; public int StorageType { get; set; } = 4; public int DocState { get; set; } = 1; + public string Status { get; set; } } + public class RcvRptDocCreateParam + { + public List<CompleteList> CompleteList { get; set; } + public string Remark { get; set; } + public DateTime BusinessDate { get; set; } + } + + public class CompleteList + { + public MOKey MOKey { get; set; } + public Wh Wh { get; set; } + public Item Item { get; set; } + public DescFlexField DescFlexField { get; set; } + public int CompleteQty { get; set; } + public int OutputType { get; set; } = 0; + public int StorageType { get; set; } = 4; + public int DocState { get; set; } = 1; + } + + public class BarcodeCreateInput + { + public string RevDocId { get; set; } + public string RevDocLineId { get; set; } + public string userId { get; set; } + public string token { get; set; } + public bool IsLogin { get; set; } + } + + public class BarcodeCreateParam + { + public List<CreateEntityKeys> CreateEntityKeys { get; set; } + public bool IsCreateHeadBarCode { get; set; } + public string BarCodeRuleCode { get; set; } + public int GenerateCount { get; set; } + public int BCQty { get; set; } + } + + public class CreateEntityKeys + { + public string ID { get; set; } + public string EntityType { get; set; } + } + + public class BarcodeCreateByAssignQtyInput: BarcodeCreateInput + { + /// <summary> + /// 鍏ュ簱鍗曡鎬绘暟閲� + /// </summary> + public decimal CreateBarCodeItemQty { get; set; } + /// <summary> + /// 鍖呰瑁呯鏁伴噺 + /// </summary> + public decimal LabelQty { get; set; } + } + + public class BarcodeCreateByAssignQtyParam + { + public string BarCodeRuleID { get; set; } + public List<CreateBarCodeEntitys> CreateBarCodeEntitys { get; set; } + /// <summary> + /// 鍏ュ簱鍗曡鎬绘暟閲� + /// </summary> + public int CreateBarCodeItemQty { get; set; } + /// <summary> + /// 鍖呰瑁呯鏁伴噺 + /// </summary> + public int LabelQty { get; set; } + } + + public class CreateBarCodeEntitys + { + public string EntityID { get; set; } + public string EntityType { get; set; } = "UFIDA.U9.Complete.RCVRpt.RcvRptDocLine"; + } + + public class BarcodeCreateByAssignQtyResult : U9CBaseResult + { + public BarcodeCreateByAssignQtyData Data { get; set; } + } + + public class BarcodeCreateByAssignQtyData { + public string ErrorMessage { get; set; } + public string OtherID { get; set; } + public string CreatedBarCodes { get; set; } + public bool IsSuccess { get; set; } + public List<string> Data { get; set; } + } + + public class MOKey + { + public string DocNo { get; set; } + } + public class Wh + { + public string Code { get; set; } + } + public class Item + { + public string Code { get; set; } + } + public class DescFlexField + { + public string PrivateDescSeg1 { get; set; } + } } -- Gitblit v1.9.3