From 59e981656f036352ef84e6a54a37e330afe90c01 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期二, 27 六月 2023 13:06:12 +0800
Subject: [PATCH] 基础资料(职员、客户、供应商、工作中心)添加审核、反审核、禁用、反禁用功能
---
WebAPI/Controllers/BaseSet/Gy_SourceController.cs | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/WebAPI/Controllers/BaseSet/Gy_SourceController.cs b/WebAPI/Controllers/BaseSet/Gy_SourceController.cs
index 28dfdea..91b5f1d 100644
--- a/WebAPI/Controllers/BaseSet/Gy_SourceController.cs
+++ b/WebAPI/Controllers/BaseSet/Gy_SourceController.cs
@@ -347,18 +347,9 @@
objJsonResult.data = null;
return objJsonResult; ;
}
- var HStopflag = Convert.ToBoolean(ds.Tables[0].Rows[0]["HStopflag"]);
- if (HStopflag)
- {
- oCN.RollBack();//鍥炴粴浜嬪姟
- objJsonResult.code = "0";
- objJsonResult.count = 0;
- objJsonResult.Message = "鏁版嵁宸插垹闄ゆ棤娉曞啀娆″垹闄わ紒";
- objJsonResult.data = null;
- return objJsonResult;
- }
- oCN.RunProc("update Gy_Source set HStopflag=1 where HItemID=" + HItemID);
+ oCN.RunProc("delete from Gy_Source where HItemID=" + HItemID);
+
oCN.Commit();//鎻愪氦浜嬪姟
objJsonResult.code = "0";
objJsonResult.count = 1;
@@ -369,6 +360,7 @@
}
catch (Exception e)
{
+ oCN.RollBack();
objJsonResult.code = "0";
objJsonResult.count = 0;
objJsonResult.Message = "鍒犻櫎澶辫触锛�" + e.ToString();
--
Gitblit v1.9.1