From 709959f7739b733b22b0be8557593b59f1b7ecd8 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期三, 05 三月 2025 21:35:37 +0800
Subject: [PATCH] 雅达-更新数据库连接字符串,新增收货单相关类和方法

---
 Tiger.Model.Net/Entitys/MES/ParameterEntity/U9CParameter.cs |  247 +++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 228 insertions(+), 19 deletions(-)

diff --git a/Tiger.Model.Net/Entitys/MES/ParameterEntity/U9CParameter.cs b/Tiger.Model.Net/Entitys/MES/ParameterEntity/U9CParameter.cs
index cc170b5..20d8787 100644
--- a/Tiger.Model.Net/Entitys/MES/ParameterEntity/U9CParameter.cs
+++ b/Tiger.Model.Net/Entitys/MES/ParameterEntity/U9CParameter.cs
@@ -16,6 +16,10 @@
     {
         public List<U9CReturnData> Data { get; set; }
     }
+    public class U9CResult2 : U9CBaseResult
+    {
+        public List<U9CReturnData2> Data { get; set; }
+    }
 
     public class U9CLoginResult : U9CBaseResult
     {
@@ -32,15 +36,32 @@
         public string m_errorMsg { get; set; }
         public string m_datas { get; set; }
     }
+    public class U9CReturnData2
+    {
+        public string U9CVersion { get; set; }
+        public bool IsSucess { get; set; }
+        public string OtherID { get; set; }
+        public string ID { get; set; }
+        public string Code { get; set; }
+        public string ErrorMsg { get; set; }
+    }
 
+    public class U9CBaseInput
+    {
+        public string userId { get; set; }
+        public string token { get; set; }
+        public bool IsLogin { get; set; }
+    }
+
+    #region 鍏ュ簱鍗曟帴鍙�
     /// <summary>
     /// 鍏ュ簱鍗曟帴鍙d紶鍏ュ弬鏁�
     /// </summary>
     public class RcvRptDocCreateInput
     {
         public List<RcvRptDocBase> RcvRptDocBases { get; set; }
-        public List<BIZ_ERP_PROD_IN_BTH> ErpProdInBths { get; set; }
-        public List<InStorePrintJson> PrintJsons { 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; }
     }
@@ -48,30 +69,30 @@
     public class InStorePrintJson
     {
         public string ID { get; set; }
-        public List<ProdInBatch> Items { 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 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";
-        public int PkgQty { get; set; }
-        public int CompleteQty { get; set; }
+        public double PkgQty { get; set; }
+        public double CompleteQty { get; set; }
         public int OutputType { get; set; } = 0;
         public int StorageType { get; set; } = 4;
         public int DocState { get; set; } = 1;
@@ -91,10 +112,78 @@
         public Wh Wh { get; set; }
         public Item Item { get; set; }
         public DescFlexField DescFlexField { get; set; }
-        public int CompleteQty { get; set; }
+        public double CompleteQty { get; set; }
         public int OutputType { get; set; } = 0;
         public int StorageType { get; set; } = 4;
         public int DocState { get; set; } = 1;
+    }
+
+    public class BarcodeCreateInput: U9CBaseInput
+    {
+        public string RevDocId { get; set; }
+        public string RevDocLineId { 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; }
+    }
+    #endregion
+
+    #region 鍗婃垚鍝佹潯鐮佺敓鎴�
+    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 decimal CreateBarCodeItemQty { get; set; }
+        /// <summary>
+        /// 鍖呰瑁呯鏁伴噺
+        /// </summary>
+        public decimal 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
@@ -113,4 +202,124 @@
     {
         public string PrivateDescSeg1 { get; set; }
     }
+    #endregion
+
+    #region 鏂板鏀惰揣鍗曟帴鍙�
+    public class CreateRcvBySrcASNParam
+    {
+        public List<ASNToRcvTransDTO> aSNToRcvTransDTOs { get; set; }
+        public string OtherID { get; set; } = "WMS";
+    }
+
+    public class ASNToRcvTransDTO {
+        public TransQty TransQty { get; set; }
+        public string ASNLineKey { get; set; }
+    }
+
+    public class TransQty
+    {
+        public string m_amount1 { get; set; }
+        public m_uOM1 m_uOM1 { get; set; }
+    }
+
+    public class m_uOM1
+    {
+        public UOMMain_SKey UOMMain_SKey { get; set; }
+        public string UOMMain { get; set; }
+        public UOMSub_SKey UOMSub_SKey { get; set; }
+    }
+
+    public class UOMMain_SKey
+    {
+        public string ID { get; set; }
+    }
+
+    public class UOMSub_SKey
+    {
+        public string ID { get; set; }
+    }
+
+    /// <summary>
+    /// 鏂板鏀惰揣鍗曟帴鍙�-浼犲叆鍙傛暟
+    /// </summary>
+    public class CreateRcvBySrcASNInput: U9CBaseInput
+    {
+        /// <summary>
+        /// 褰撳墠鏀惰揣鏁伴噺 - m_amount1
+        /// </summary>
+        public string CurRevQty { get; set; } 
+        /// <summary>
+        /// ASN鍗曡ID
+        /// </summary>
+        public string ASNLineKey { get; set; }
+    }
+
+    #region 鏃犳潵婧�
+    public class CreateReceivementParam
+    {
+        public RcvDTO rcvDTO { get; set; }
+        public string OtherID { get; set; } = "WMS";
+    }
+
+    public class CreateReceivementInput : U9CBaseInput
+    {
+
+    }
+
+    public class RcvDTO { 
+        public DateTime BusinessDate { get; set; }
+        public Supplier Supplier { get; set; }
+        public RcvDocType RcvDocType { get; set; }
+        public List<RcvLine> RcvLines { get; set; }
+        public bool IsRcvByChangeable { get; set; }
+        public bool IsPriceListChangeable { get; set; }
+        public bool IsConfirmTermChangeable { get; set; }
+        public bool IsPaymentTermChangeable { get; set; }
+        public bool IsLineApprove { get; set; }
+    }
+    public class Supplier { 
+        public string m_code { get; set; }
+    }
+    public class RcvDocType
+    {
+        public string m_code { get; set; }
+    }
+    public class RcvLine
+    {
+        public bool IsPresent { get; set; }
+        public ItemInfo ItemInfo { get; set; }
+        public Wh2 Wh { get; set; }
+        public List<RcvLineLocation> RcvLineLocations { get; set; }
+        public double ArriveQtyTU { get; set; }
+        public double ArriveQtyPU { get; set; }
+        public double RcvQtyTU { get; set; }
+        public double RcvQtyPU { get; set; }
+        public double EyeballingQtyTU { get; set; }
+        public double RcvProcedure { get; set; }
+        public double StorageType { get; set; }
+        public string RcvLotCode { get; set; }
+        public string InvLotCode { get; set; }
+    }
+
+    public class ItemInfo
+    {
+        public string m_itemCode { get; set; }
+    }
+    public class Wh2
+    {
+        public string m_code { get; set; }
+    }
+    public class Location
+    {
+        public string m_code { get; set; }
+    }
+
+    public class RcvLineLocation
+    {
+        public Location Location { get; set; }
+        public double LocationQtyTU { get; set; }
+    }
+    #endregion
+
+    #endregion
 }

--
Gitblit v1.9.3