From 171d81fdf8d730f6cb6869a003d81d17b5e81117 Mon Sep 17 00:00:00 2001
From: sjz <1240968267@qq.com>
Date: 星期五, 13 六月 2025 15:06:34 +0800
Subject: [PATCH] 送货条码按物料删除,送货单明细增加赠品字段

---
 StandardInterface/MES.Service/service/WomcaaManager.cs |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/StandardInterface/MES.Service/service/WomcaaManager.cs b/StandardInterface/MES.Service/service/WomcaaManager.cs
index c59443d..bfc2467 100644
--- a/StandardInterface/MES.Service/service/WomcaaManager.cs
+++ b/StandardInterface/MES.Service/service/WomcaaManager.cs
@@ -60,7 +60,7 @@
             .IgnoreColumns(true).ExecuteCommand() > 0;
 
         //鎵归噺鎻掑叆蹇界暐绌哄瓧娈�
-        var baOrUpdate = db.Insertable(mesWomcabs).PageSize(1)
+        var baOrUpdate = db.Insertable(mesWomcabs).PageSize(10)
             .IgnoreColumnsNull()
             .ExecuteCommand() > 0;
 
@@ -76,6 +76,7 @@
         var insertOrUpdate = db
             .Deleteable<Womcab>().In(decimals)
             .ExecuteCommand() > 0;
+
 
         if (update && insertOrUpdate) return true;
         throw new NotImplementedException("鏇存柊澶辫触");
@@ -200,8 +201,16 @@
             Typea = dto.TypeA, ///     鍗曟嵁鐘舵��
             RkOrg = dto.RK_ORG,           //鍏ュ簱缁勭粐
             Rcn=dto.RCN,                 //鏃ヤ骇鑳�
-
-
+            Cglineid=dto.CG_LINE_ID, //閲囪喘璁㈠崟琛宨d
+            Kh=dto.KH,
+            Khjc=dto.KH_JCZL,
+            Scph=dto.SC_PH,
+            Moldno=dto.MOLd_no,
+            Oldmoldno=dto.Old_mold_no,
+            Jt=dto.JT,
+            Xscn=dto.XS_CN,
+            Sjxs=dto.SJ_xs,
+            Nextgx=dto.NEXT_Gx
             //娌冨皵鏂板
             // WR_F_SCDD_SCTZD = dto.F_SCDD_SCTZD
             //WR_F_SCDD_XH = dto.F_SCDD_XH
@@ -265,8 +274,12 @@
 
             var entity = Db.Queryable<Womcab>()
                 .Where(s => s.Erpid == womcab.Erpid).Single();
-            if (entity != null) womcab.Id = entity.Id;
-
+            if (entity != null)
+            {
+                // 鍒犻櫎宸叉湁鐨� Erpid 鐩稿叧鐨� Womcab 鏁版嵁
+              //  Db.Deleteable<Womcab>().Where(s => s.Erpid == womcab.Erpid).ExecuteCommand();
+                womcab.Id = entity.Id;
+            }
             womcabList.Add(womcab);
         }
 

--
Gitblit v1.9.3