From 406896ef93ec12bb1d9821f05b14c9ca8dcf7fc8 Mon Sep 17 00:00:00 2001
From: hao <1836460075@qq.com>
Date: 星期五, 31 十月 2025 17:48:30 +0800
Subject: [PATCH] 物料反禁用,生产订单需领
---
StandardInterface/MES.Service/service/BasicData/Material/MesItemsManager.cs | 34 ++++++++++++++++++++++++++++++----
1 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/StandardInterface/MES.Service/service/BasicData/Material/MesItemsManager.cs b/StandardInterface/MES.Service/service/BasicData/Material/MesItemsManager.cs
index 874ff1e..73f0459 100644
--- a/StandardInterface/MES.Service/service/BasicData/Material/MesItemsManager.cs
+++ b/StandardInterface/MES.Service/service/BasicData/Material/MesItemsManager.cs
@@ -44,6 +44,7 @@
case "2":
case "4":
case "5":
+
if (InsertOrUpdate(db, entity))
return 1;
break;
@@ -86,6 +87,7 @@
case "2":
case "4":
case "5":
+
if (!InsertOrUpdateBatch(db, itemGroup.Value))
throw new NotImplementedException("鍚屾澶辫触");
break;
@@ -105,10 +107,11 @@
.SetColumns(s => s.Fforbidstatus == status)
.Where(s => s.Id == itemId).ExecuteCommand();
- if (result > 0)
- return true;
+ /* if (result > 0)
+ return true;
- throw new NotImplementedException(status == "A" ? "鍚敤澶辫触" : "绂佺敤澶辫触");
+ throw new NotImplementedException(status == "A" ? "鍚敤澶辫触" : "绂佺敤澶辫触");*/
+ return true;
}
private bool InsertItem(SqlSugarScope db, MesItems entity)
@@ -174,6 +177,8 @@
ExpPeriod = item.FExpPeriod,
//ColorName = item.FColor,
CreateDate = DateTime.Now,
+ Type=item.Type,
+ //20250412 鏄惁鏍规嵁宸ュ巶涓嶅悓淇敼涓嶅悓缂栫爜
Company = "1000",
Factory = "1000",
/// <summary>
@@ -196,7 +201,28 @@
FISKITTING = item.FIsKitting,
FISCOBY = item.FIsCoby,
FOVERCONTROLMODE = item.FOverControlMode,
- F_MJBH = item.F_MJBH
+ F_MJBH = item.F_MJBH,
+//20250407 yhj 鐒曞獎鏂板瀛楁
+ F_TJ =item.F_TJ,
+ F_KZ =item.F_KZ,
+ F_SC =item.F_SC,
+ F_HSFX =item.F_HSFX,
+ F_KCKZ =item.F_KCKZ,
+ F_XSKZ =item.F_XSKZ,
+ F_CRM =item.F_CRM,
+ F_CGKZ =item.F_CGKZ,
+ F_WWLX =item.F_WWLX,
+ F_JYSZ =item.F_JYSZ,
+ F_FJZQ =item.F_FJZQ,
+ F_SCLX =item.F_SCLX,
+ F_ZZSTLX =item.F_ZZSTLX,
+ F_DCSL =item.F_DCSL,
+ F_BZGS =item.F_BZGS,
+ WLFZMC=item.F_FZMC,
+ MJBM =item.MJBM,
+ Khwlbm =item.KHWLBM,
+ Ys=item.YS,
+ NesxGx=item.NEXT_GX,
};
}
--
Gitblit v1.9.3