From 8cdf2c4d1edba2cfa7d63c7b071f170354bdf691 Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期一, 30 三月 2026 18:33:42 +0800
Subject: [PATCH] 1
---
WebAPI/Controllers/MJGL/Sc_MouldUpperBillController.cs | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 106 insertions(+), 12 deletions(-)
diff --git a/WebAPI/Controllers/MJGL/Sc_MouldUpperBillController.cs b/WebAPI/Controllers/MJGL/Sc_MouldUpperBillController.cs
index 66c973d..492ac86 100644
--- a/WebAPI/Controllers/MJGL/Sc_MouldUpperBillController.cs
+++ b/WebAPI/Controllers/MJGL/Sc_MouldUpperBillController.cs
@@ -301,10 +301,27 @@
objJsonResult.data = null;
return objJsonResult;
}
-
+
+ if (OperationType == 1)
+ {
+ string sReturn = "";
+ if (oSystemParameter.ShowBill(ref sReturn) == true)
+ {
+ if (oSystemParameter.omodel.Sc_MouldUpperBill_AutoCheck.ToUpper() == "Y")
+ {
+ oCN.RunProc("Update Sc_MouldUpperBillMain Set HChecker='" + HMaker + "',HCheckDate=getdate(),HBillStatus=2 where HInterID= " + HInterID);
+
+ objJsonResult.code = "1";
+ objJsonResult.count = 1;
+ objJsonResult.Message = "鏂板骞跺鏍稿崟鎹垚鍔�!";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
+ }
+ }
objJsonResult.code = "1";
objJsonResult.count = 1;
- objJsonResult.Message = null;
+ objJsonResult.Message = "淇濆瓨鍗曟嵁鎴愬姛!";
objJsonResult.data = null;
return objJsonResult;
}
@@ -337,6 +354,7 @@
if (OperationType == 1)//鏂板
{
+
//淇濆瓨鍚庢帶鍒�
objJsonResult = AfterSave_MouldUpperBill(HInterID, HBillNo, 1);
if (objJsonResult.count == 0)
@@ -1291,10 +1309,26 @@
objJsonResult.data = null;
return objJsonResult;
}
+ if (OperationType == 1)
+ {
+ string sReturn = "";
+ if (oSystemParameter.ShowBill(ref sReturn) == true)
+ {
+ if (oSystemParameter.omodel.Sc_MouldLowerBill_AutoCheck.ToUpper() == "Y")
+ {
+ oCN.RunProc("Update Sc_MouldLowerBillMain Set HChecker='" + HMaker + "',HCheckDate=getdate(),HBillStatus=2 where HInterID= " + HInterID);
+ objJsonResult.code = "1";
+ objJsonResult.count = 1;
+ objJsonResult.Message = "鏂板骞跺鏍稿崟鎹垚鍔�!";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
+ }
+ }
objJsonResult.code = "1";
objJsonResult.count = 1;
- objJsonResult.Message = "";
+ objJsonResult.Message = "淇濆瓨鍗曟嵁鎴愬姛!";
objJsonResult.data = null;
return objJsonResult;
}
@@ -2215,9 +2249,26 @@
return objJsonResult;
}
+ if (OperationType == 1)
+ {
+ string sReturn = "";
+ if (oSystemParameter.ShowBill(ref sReturn) == true)
+ {
+ if (oSystemParameter.omodel.Sc_MouldUpperBill_AutoCheck.ToUpper() == "Y")
+ {
+ oCN.RunProc("Update Sc_MouldUpperBillMain Set HChecker='" + HMaker + "',HCheckDate=getdate(),HBillStatus=2 where HInterID= " + HInterID);
+
+ objJsonResult.code = "1";
+ objJsonResult.count = 1;
+ objJsonResult.Message = "鏂板骞跺鏍稿崟鎹垚鍔�!";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
+ }
+ }
objJsonResult.code = "1";
objJsonResult.count = 1;
- objJsonResult.Message = null;
+ objJsonResult.Message = "淇濆瓨鍗曟嵁鎴愬姛!";
objJsonResult.data = null;
return objJsonResult;
}
@@ -2442,14 +2493,22 @@
Service.GeTuiService.PubishSingle(HInterID0);
}
}
- }
- }
+ if (oSystemParameter.omodel.Sc_MouldLowerBill_AutoCheck.ToUpper() == "Y")
+ {
+ oCN.RunProc("Update Sc_MouldLowerBillMain Set HChecker='" + HMaker + "',HCheckDate=getdate(),HBillStatus=2 where HInterID= " + HInterID);
- // 杩斿洖鎴愬姛缁撴灉锛堟敞鎰忓師閫昏緫涓娇鐢ㄤ簡 ds.Tables[0]锛�
+ objJsonResult.code = "1";
+ objJsonResult.count = 1;
+ objJsonResult.Message = "鏂板骞跺鏍稿崟鎹垚鍔�!";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
+ }
+ }
objJsonResult.code = "1";
objJsonResult.count = 1;
- objJsonResult.Message = "鏂板鍗曟嵁鎴愬姛锛�";
- objJsonResult.data = ds.Tables[0];
+ objJsonResult.Message = "淇濆瓨鍗曟嵁鎴愬姛!";
+ objJsonResult.data = null;
return objJsonResult;
}
catch (Exception e)
@@ -2579,9 +2638,27 @@
return objJsonResult;
}
+
+ if (OperationType == 1)
+ {
+ string sReturn = "";
+ if (oSystemParameter.ShowBill(ref sReturn) == true)
+ {
+ if (oSystemParameter.omodel.Sc_MouldLowerBill_AutoCheck.ToUpper() == "Y")
+ {
+ oCN.RunProc("Update Sc_MouldLowerBillMain Set HChecker='" + HMaker + "',HCheckDate=getdate(),HBillStatus=2 where HInterID= " + HInterID);
+
+ objJsonResult.code = "1";
+ objJsonResult.count = 1;
+ objJsonResult.Message = "鏂板骞跺鏍稿崟鎹垚鍔�!";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
+ }
+ }
objJsonResult.code = "1";
objJsonResult.count = 1;
- objJsonResult.Message = null;
+ objJsonResult.Message = "淇濆瓨鍗曟嵁鎴愬姛!";
objJsonResult.data = null;
return objJsonResult;
}
@@ -2697,7 +2774,7 @@
oCN.Commit();
objJsonResult.code = "1";
objJsonResult.count = 1;
- objJsonResult.Message = "鏂板鍗曟嵁鎴愬姛锛�";
+ objJsonResult.Message = objJsonResult.Message;
objJsonResult.data = ds.Tables[0];
return objJsonResult;
}
@@ -2791,9 +2868,26 @@
return objJsonResult;
}
+ if (OperationType == 1)
+ {
+ string sReturn = "";
+ if (oSystemParameter.ShowBill(ref sReturn) == true)
+ {
+ if (oSystemParameter.omodel.Sc_MouldUpperBill_AutoCheck.ToUpper() == "Y")
+ {
+ oCN.RunProc("Update Sc_MouldUpperBillMain Set HChecker='" + HMaker + "',HCheckDate=getdate(),HBillStatus=2 where HInterID= " + HInterID);
+
+ objJsonResult.code = "1";
+ objJsonResult.count = 1;
+ objJsonResult.Message = "鏂板骞跺鏍稿崟鎹垚鍔�!";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
+ }
+ }
objJsonResult.code = "1";
objJsonResult.count = 1;
- objJsonResult.Message = null;
+ objJsonResult.Message = "淇濆瓨鍗曟嵁鎴愬姛!";
objJsonResult.data = null;
return objJsonResult;
}
--
Gitblit v1.9.1