From 4e814dc13545fde4c5c294865370c165db7eb40e Mon Sep 17 00:00:00 2001
From: hao <1836460075@qq.com>
Date: 星期二, 16 九月 2025 19:19:48 +0800
Subject: [PATCH] 组装拆卸测试2

---
 StandardInterface/MES.Service/Dto/webApi/ERPZZCXD.cs |   96 ++++++++++++++++++++++++++++++++++--------------
 1 files changed, 68 insertions(+), 28 deletions(-)

diff --git a/StandardInterface/MES.Service/Dto/webApi/ERPZZCXD.cs b/StandardInterface/MES.Service/Dto/webApi/ERPZZCXD.cs
index 214222e..1a0703d 100644
--- a/StandardInterface/MES.Service/Dto/webApi/ERPZZCXD.cs
+++ b/StandardInterface/MES.Service/Dto/webApi/ERPZZCXD.cs
@@ -1,50 +1,90 @@
-锘縰sing System.Collections.Generic;
+锘�// 鏂囦欢: MES.Service.Dto.webApi/ERPZZCX.cs
+using System.Collections.Generic;
 
 namespace MES.Service.Dto.webApi
 {
     /// <summary>
-    /// ERP 浼犺緭鐨勫埗閫犳媶鍗稿崟锛堜富琛� + 鏄庣粏闆嗗悎锛�
+    /// ERP 缁勮鎷嗗嵏 鏁村寘 DTO锛堜富琛� + 瀛愯〃闆嗗悎锛屽瓙琛ㄤ腑鍖呭惈瀛欒〃闆嗗悎锛�
     /// </summary>
     public class ERPZZCXD
     {
-        public ERPZZCXA ERPZZCXA { get; set; } = new ERPZZCXA();
-        public List<ERPZZCXB> ERPZZCXB { get; set; } = new List<ERPZZCXB>();
+        /// <summary>
+        /// ERP 涓昏〃锛堝搴� DB 琛� ZZCX 鐨勬暟鎹細ERPID銆丅ILL_NO锛�
+        /// </summary>
+        public ERPZZCXMain Main { get; set; } = new ERPZZCXMain();
+
+        /// <summary>
+        /// 瀛愯〃闆嗗悎锛堟瘡涓瓙琛ㄥ彲鍖呭惈瀛欒〃闆嗗悎锛�
+        /// </summary>
+        public List<ERPZZCXA> Children { get; set; } = new List<ERPZZCXA>();
     }
 
     /// <summary>
-    /// ERP 鍒堕�犳媶鍗稿崟 涓昏〃 DTO
+    /// ERP 涓昏〃 DTO (ZZCX)
+    /// </summary>
+    public class ERPZZCXMain
+    {
+        public string? erpid { get; set; }     // ERP 涓昏〃id锛堜富琛ㄧ殑 ERPID锛�
+        public string? bill_no { get; set; }   // 鍗曟嵁缂栫爜
+        public string? type { get; set; }   //  
+        public string? dj_lx { get; set; }       // 鍗曟嵁绫诲瀷
+        public string? kc_zz { get; set; }       // 搴撳瓨缁勭粐
+        public string? sw_lx { get; set; }       // 浜嬪姟绫诲瀷
+        public string? time { get; set; }        // 鏃ユ湡
+        public string? bm { get; set; }          // 閮ㄩ棬
+        public string? cgy { get; set; }         // 浠撶鍛�
+        public string? kcz { get; set; }         // 搴撳瓨缁�
+        public string? dj_zt { get; set; }       // 鍗曟嵁鐘舵��
+        public string? memo { get; set; }        // 澶囨敞
+        public string? cphzlx { get; set; }      // 鎴愬搧璐т富绫诲瀷
+        public string? cphz { get; set; }        // 鎴愬搧璐т富
+        public string? zjhzlx { get; set; }      // 瀛愪欢璐т富绫诲瀷
+        public string? zjhz { get; set; }        // 瀛愪欢璐т富
+    }
+
+    /// <summary>
+    /// ERP 瀛愯〃 DTO锛圸ZCXA锛� 鈥斺�� 鍖呭惈涔嬪墠 ZZCXA 鐨勫叏閮ㄥ瓧娈碉紝骞舵柊澧炲彲鏀剧疆瀛欒〃闆嗗悎
+    /// NOTE: 杩欓噷鐨� yd_id 搴斿綋鐢变富琛ㄧ殑 erpid 濉厖锛堜綘瑕佹眰鐨勯渶姹傦級
     /// </summary>
     public class ERPZZCXA
     {
-        public string? bill_no { get; set; }   // 鍗曟嵁缂栫爜
-        public string? dj_lx { get; set; }     // 鍗曟嵁绫诲瀷
-        public string? kc_zz { get; set; }     // 搴撳瓨缁勭粐
-        public string? sw_lx { get; set; }     // 浜嬪姟绫诲瀷
-        public string? time { get; set; }      // 鏃ユ湡
-        public string? bm { get; set; }        // 閮ㄩ棬
-        public string? cgy { get; set; }       // 浠撶鍛�
-        public string? kcz { get; set; }       // 搴撳瓨缁�
-        public string? dj_zt { get; set; }     // 鍗曟嵁鐘舵��
-        public string? memo { get; set; }      // 澶囨敞
-        public string? cphzlx { get; set; }    // 鎴愬搧璐т富绫诲瀷
-        public string? cphz { get; set; }      // 鎴愬搧璐т富
-        public string? zjhzlx { get; set; }    // 瀛愪欢璐т富绫诲瀷
-        public string? zjhz { get; set; }      // 瀛愪欢璐т富
-        public string? item_id { get; set; }   // 鐗╂枡缂栫爜id
-        public string? qty { get; set; }       // 鏁伴噺
-        public string? unit { get; set; }      // 鍗曚綅
-        public string? depot_id { get; set; }  // 浠撳簱
-        public string? erpid { get; set; }     // ERP 涓昏〃id
-        public string? type { get; set; }      
+        // 鍏宠仈涓昏〃
+        public string? yd_id { get; set; }       // 瀵瑰簲涓昏〃 ERPID锛堢敱涓昏〃濉厖锛�
+        public string? erpid { get; set; }       // ERP 瀛愯〃id锛堝鏋� ERP 鏈夎 id锛�
+/*        public string? bill_no { get; set; }     // 鍗曟嵁缂栫爜锛堝彲閲嶅锛�
+        public string? dj_lx { get; set; }       // 鍗曟嵁绫诲瀷
+        public string? kc_zz { get; set; }       // 搴撳瓨缁勭粐
+        public string? sw_lx { get; set; }       // 浜嬪姟绫诲瀷
+        public string? time { get; set; }        // 鏃ユ湡
+        public string? bm { get; set; }          // 閮ㄩ棬
+        public string? cgy { get; set; }         // 浠撶鍛�
+        public string? kcz { get; set; }         // 搴撳瓨缁�
+        public string? dj_zt { get; set; }       // 鍗曟嵁鐘舵��
+        public string? memo { get; set; }        // 澶囨敞
+        public string? cphzlx { get; set; }      // 鎴愬搧璐т富绫诲瀷
+        public string? cphz { get; set; }        // 鎴愬搧璐т富
+        public string? zjhzlx { get; set; }      // 瀛愪欢璐т富绫诲瀷
+        public string? zjhz { get; set; }        // 瀛愪欢璐т富*/
+
+        // 鏄庣粏鐩稿叧瀛楁锛堝瓙琛ㄥ彲鑳戒篃璁板綍鏌愭潯鐗╂枡淇℃伅锛�
+        public string? item_id { get; set; }     // 鐗╂枡缂栫爜id
+        public string? qty { get; set; }         // 鏁伴噺
+        public string? unit { get; set; }        // 鍗曚綅
+        public string? depot_id { get; set; }    // 浠撳簱
+
+        /// <summary>
+        /// 瀛欒〃闆嗗悎锛氭瘡鏉″瓙琛ㄨ褰曞搴� 0..N 鏉″瓩琛紙ZZCXB锛�
+        /// </summary>
+        public List<ERPZZCXB> SubItems { get; set; } = new List<ERPZZCXB>();
     }
 
     /// <summary>
-    /// ERP 鍒堕�犳媶鍗稿崟 鏄庣粏 DTO
+    /// ERP 瀛欒〃 DTO锛圸ZCXB锛�
     /// </summary>
     public class ERPZZCXB
     {
-        public string? erpid { get; set; }     // ERP 涓昏〃id
-        public string? eid { get; set; }       // ERP 鍗曟嵁澶磇d
+        public string? erpid { get; set; }     // ERP 涓昏〃id锛堟垨鍐椾綑锛�
+        public string? eid { get; set; }       // ERP 瀛愯〃id / 琛宨d
         public string? item_id { get; set; }   // 鐗╂枡缂栫爜id
         public string? qty { get; set; }       // 鏁伴噺
         public string? unit { get; set; }      // 鍗曚綅

--
Gitblit v1.9.3