From 3a6f7cb36dff0ec99edddbb53078947fcf08a47e Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期六, 19 七月 2025 09:32:15 +0800 Subject: [PATCH] 1.用料清单变更 --- MES.Service/service/WomcaaManager.cs | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/MES.Service/service/WomcaaManager.cs b/MES.Service/service/WomcaaManager.cs index d4e586b..cb30102 100644 --- a/MES.Service/service/WomcaaManager.cs +++ b/MES.Service/service/WomcaaManager.cs @@ -68,8 +68,24 @@ .IgnoreColumnsNull() .ExecuteCommand() > 0; - if (orUpdate && baOrUpdate) return true; + // if (orUpdate && baOrUpdate) + // throw new NotImplementedException("鎻掑叆鎴栨洿鏂板け璐�"); + + if (orUpdate && baOrUpdate) + { + // 璋冪敤瀛樺偍杩囩▼鏇存柊鐢ㄦ枡娓呭崟 + db.Ado.ExecuteCommand("exec [dbo].[prc_update_womdab] @outMsg output,@outSum output,@inEdtUserGuid,@inCaaGuid", + new { + outMsg = (string)null, // 杈撳嚭鍙傛暟 + outSum = (int?)null, // 杈撳嚭鍙傛暟 + inEdtUserGuid = new Guid("11111111-1111-1111-1111-111111111111"), + inCaaGuid = new Guid(mesWomcaa.Guid.ToString()) + }); + return true; + } throw new NotImplementedException("鎻掑叆鎴栨洿鏂板け璐�"); + + } private bool UpdateData(SqlSugarScope db, Womcaa mesWomcaa, @@ -174,7 +190,7 @@ ? Convert.ToDecimal(dto.FNeedQty) : null, /// 闇�棰嗙敤閲� Cab007 = !string.IsNullOrEmpty(dto.FPickedQty) - ? Convert.ToInt32(dto.FPickedQty) + ? Convert.ToDecimal(dto.FPickedQty) : null, /// 宸查鐢ㄩ噺 PositionNo = dto.FPositionNO, /// 浣嶇疆鍙� SupplyOrganization = dto.FChildSupplyOrgId, /// 渚涘簲缁勭粐 -- Gitblit v1.9.3