From af56ce9aaaebf2ea7b03c7096388ec8abf34d92c Mon Sep 17 00:00:00 2001
From: zzr99 <1940172413@qq.com>
Date: 星期五, 03 十二月 2021 17:21:50 +0800
Subject: [PATCH] 出入库单保存后,更新器具档案 状态字段

---
 WebAPI/Controllers/MJGL/Sc_MouldProdInBillController.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Controllers/MJGL/Sc_MouldProdInBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldProdInBillController.cs
index 493fbf3..c58cd4d 100644
--- a/WebAPI/Controllers/MJGL/Sc_MouldProdInBillController.cs
+++ b/WebAPI/Controllers/MJGL/Sc_MouldProdInBillController.cs
@@ -479,6 +479,7 @@
 
             string UserName = "";
             string s = "";
+            long mouldid;
             ListModels oListModels = new ListModels();
             try
             {
@@ -594,7 +595,7 @@
 
                     i++;
                     oItemSub.HEntryID = i;
-
+                    mouldid = oItemSub.HMaterID;
                     //oItemSub.HRepairCheckID = 0;   //楠屾敹椤圭洰ID
                     //oItemSub.HRepairCheckContent = ""; //楠屾敹鍐呭
                     //oItemSub.HManagerID = 0;   //璐熻矗浜篒D
@@ -628,6 +629,8 @@
                 }
                 if (bResult)
                 {
+                    string sql = $"exec h_p_Sc_MouldChangeFileStatus  'in','{oBill.omodel.HInterID.ToString()}' ";
+                    oCn.RunProc(sql);
                     objJsonResult.code = "0";
                     objJsonResult.count = 1;
                     objJsonResult.Message = "淇濆瓨鎴愬姛锛�";

--
Gitblit v1.9.1