From b2be3b6939b4382f9165c78857a072f1aa7b01d0 Mon Sep 17 00:00:00 2001
From: zyf <1071160500@qq.com>
Date: 星期六, 12 四月 2025 12:34:02 +0800
Subject: [PATCH] 更新平板功能,首检页面生成巡检单

---
 MES.Service/service/BasicData/ErpQTCKManager.cs |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/MES.Service/service/BasicData/ErpQTCKManager.cs b/MES.Service/service/BasicData/ErpQTCKManager.cs
index 93c67cd..b61774e 100644
--- a/MES.Service/service/BasicData/ErpQTCKManager.cs
+++ b/MES.Service/service/BasicData/ErpQTCKManager.cs
@@ -73,7 +73,7 @@
             //var baOrUpdate = QTCKDetailManager.InsertRange(mesQTCKDatas);
             //if (orUpdate && baOrUpdate) return true;
 
-            UseTransaction(db =>
+            var update_res=UseTransaction(db =>
             {
 
                 var id = db.Insertable(mesQTCK).ExecuteReturnIdentity();
@@ -88,7 +88,7 @@
                 return 1;
             });
 
-
+            if (update_res==1) return true;
             throw new NotImplementedException("鎻掑叆鎴栨洿鏂板け璐�");
         }
 
@@ -122,20 +122,21 @@
                 BillNo = erpDto.FBillNo,
                 FDate = ParseDateTime(erpDto.FDate) ?? null,
                 BillType = erpDto.FBillTypeID, // 鍗曟嵁绫诲瀷
-                CustId = Convert.ToDecimal(erpDto.FCustId), // 瀹㈡埛ID
+                CustId = erpDto.FCustId, // 瀹㈡埛ID
                 DeptId = erpDto.FDeptId, //閿�鍞儴闂�
                 BizType = erpDto.FBizType, // 
                 OwnerTypeIdHead = erpDto.FOwnerTypeIdHead, // 
                 Note = erpDto.FNote, // 
                 CreatorId = erpDto.FCreatorId, // 
                 CreateDate = ParseDateTime(erpDto.FCreateDate) ?? null, // 
-                ModifierId = Convert.ToDecimal(erpDto.FModifierId), // 
+                ModifierId = erpDto.FModifierId, // 
                 ModifyDate = ParseDateTime(erpDto.FModifyDate) ?? null, // 
                 ApproveDate = ParseDateTime(erpDto.FApproveDate) ?? null, // 
-                CloseStatus = Convert.ToDecimal(erpDto.FCloseStatus), // 
-                CloserId = Convert.ToDecimal(erpDto.FCloserId), // 
+                CloseStatus = erpDto.FCloseStatus, // 
+                CloserId = erpDto.FCloserId, // 
                 CloseDate = ParseDateTime(erpDto.FCloseDate) ?? null, // 
-                ApplyType = erpDto.FApplyType
+                ApplyType = erpDto.FApplyType,
+                F_UNW_CKLX= erpDto.F_UNW_CKLX
 
             };
 
@@ -183,7 +184,7 @@
                     StockLocId = erpDto.FStockLocId,//
                     Lot = erpDto.FLot,//
                     OwnerTypeId = erpDto.FOwnerTypeId,//
-                    OwnerId = Convert.ToDecimal(erpDto.FOwnerId),//
+                    OwnerId = erpDto.FOwnerId,//
                     MtoNo = erpDto.FMtoNo,//
                     StockStatusId = erpDto.FStockStatusId,//
                     EntryNote = erpDto.FEntryNote,//

--
Gitblit v1.9.3