From 45d569f41e2c20d2afabc42a2fdb9e19d6f1e0ec Mon Sep 17 00:00:00 2001
From: 杨乐 <yang.le.192@qq.com>
Date: 星期五, 21 一月 2022 08:57:42 +0800
Subject: [PATCH] 设备维修派工单  审核/反审核

---
 WebAPI/Controllers/Sc_MouldRepairSendWorkBillController.cs |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/WebAPI/Controllers/Sc_MouldRepairSendWorkBillController.cs b/WebAPI/Controllers/Sc_MouldRepairSendWorkBillController.cs
index 99cf3b4..0cfd527 100644
--- a/WebAPI/Controllers/Sc_MouldRepairSendWorkBillController.cs
+++ b/WebAPI/Controllers/Sc_MouldRepairSendWorkBillController.cs
@@ -230,7 +230,7 @@
             try
             {
                 //鍒ゆ柇鏉冮檺
-                //if (!DBUtility.ClsPub.Security_Log(ModRightNameDelete, 1, true, User))
+                //if (!DBUtility.ClsPub.Security_Log(ModRightNameDelete, 1, false, User))
                 //{
                 //    objJsonResult.code = "0";
                 //    objJsonResult.count = 0;
@@ -240,22 +240,15 @@
                 //}
                 oBill.ShowBill(HInterID, ref DBUtility.ClsPub.sExeReturnInfo);
 
-                if (oBill.omodel.HBillStatus > 1)
-                {
-                    objJsonResult.code = "0";
-                    objJsonResult.count = 1;
-                    objJsonResult.Message = "鍗曟嵁褰撳墠澶勪簬涓嶈兘鍒犻櫎鐨勭姸鎬�";
-                    objJsonResult.data = null;
-                    return objJsonResult;
-                }
                 if (oBill.omodel.HChecker != "")
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 1;
-                    objJsonResult.Message = "鍗曟嵁褰撳墠宸插鏍�";
+                    objJsonResult.Message = "鍗曟嵁宸茬粡瀹℃牳,涓嶈兘鍒犻櫎锛�";
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
+
                 if (oBill.DeleteBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo))
                 {
                     objJsonResult.code = "1";
@@ -294,7 +287,7 @@
             try
             {
                 //鍒ゆ柇鏄惁鏈夊鏍告潈闄�
-                //if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, true, CurUserName))
+                //if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, false, CurUserName))
                 //{
                 //    objJsonResult.code = "0";
                 //    objJsonResult.count = 0;
@@ -313,6 +306,7 @@
                     return objJsonResult;
                 }
 
+
                 //杞崲id
                 Int64 lngBillKey = 0;
                 lngBillKey = DBUtility.ClsPub.isLong(HInterID);

--
Gitblit v1.9.1