From 5ce11d0a8055b7a541b9f88d9068bc98908a3e29 Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期二, 07 十一月 2023 19:02:51 +0800
Subject: [PATCH] 1

---
 DBUtility/基础资料/ClsGy_Base_Ctl.cs |   99 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 99 insertions(+), 0 deletions(-)

diff --git "a/DBUtility/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_Base_Ctl.cs" "b/DBUtility/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_Base_Ctl.cs"
index a58b22a..b218f0b 100644
--- "a/DBUtility/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_Base_Ctl.cs"
+++ "b/DBUtility/\345\237\272\347\241\200\350\265\204\346\226\231/ClsGy_Base_Ctl.cs"
@@ -128,6 +128,105 @@
             }
         }
 
+        //鍏抽棴
+        public bool CloseByID(Int64 sItemID, ref string sReturn)
+        {
+            try
+            {
+                string HCloseEmp = ClsPub.CurUserName;
+                oCn.RunProc("Update " + MvarItemKey + "   set HCloseEmp = '" + HCloseEmp + "',HCloseDate=getdate()  where HItemID='" + sItemID + "'", ref Pub_Class.ClsPub.sExeReturnInfo);
+                sReturn = "";
+                return true;
+            }
+            catch (Exception e)
+            {
+                sReturn = e.Message;
+                throw (e);
+            }
+        }
+
+        //鍙嶅叧闂�
+        public bool DeCloseByID(Int64 sItemID, ref string sReturn)
+        {
+            try
+            {
+                oCn.RunProc("Update " + MvarItemKey + "   set HCloseEmp = '', HCloseDate=null  where HItemID='" + sItemID + "'", ref Pub_Class.ClsPub.sExeReturnInfo);
+                sReturn = "";
+                return true;
+            }
+            catch (Exception e)
+            {
+                sReturn = e.Message;
+                throw (e);
+            }
+        }
+
+        //瀹℃牳2 HCheckTime
+        public bool AuditByID2(Int64 sItemID, ref string sReturn)
+        {
+            try
+            {
+                string HCheckEmp = ClsPub.CurUserName;
+                oCn.RunProc("Update " + MvarItemKey + "   set HCheckEmp = '" + HCheckEmp + "',HCheckTime=getdate()  where HItemID='" + sItemID + "'", ref Pub_Class.ClsPub.sExeReturnInfo);
+                sReturn = "";
+                return true;
+            }
+            catch (Exception e)
+            {
+                sReturn = e.Message;
+                throw (e);
+            }
+        }
+
+        //鍙嶅鏍�2 HCheckTime
+        public bool DeAuditByID2(Int64 sItemID, ref string sReturn)
+        {
+            try
+            {
+                oCn.RunProc("Update " + MvarItemKey + "   set HCheckEmp = '', HCheckTime=null  where HItemID='" + sItemID + "'", ref Pub_Class.ClsPub.sExeReturnInfo);
+                sReturn = "";
+                return true;
+            }
+            catch (Exception e)
+            {
+                sReturn = e.Message;
+                throw (e);
+            }
+        }
+
+        //鍏抽棴2 HCloseTime
+        public bool CloseByID2(Int64 sItemID, ref string sReturn)
+        {
+            try
+            {
+                string HCloseEmp = ClsPub.CurUserName;
+                oCn.RunProc("Update " + MvarItemKey + "   set HCloseEmp = '" + HCloseEmp + "',HCloseTime=getdate()  where HItemID='" + sItemID + "'", ref Pub_Class.ClsPub.sExeReturnInfo);
+                sReturn = "";
+                return true;
+            }
+            catch (Exception e)
+            {
+                sReturn = e.Message;
+                throw (e);
+            }
+        }
+
+        //鍙嶅叧闂�2 HCloseTime
+        public bool DeCloseByID2(Int64 sItemID, ref string sReturn)
+        {
+            try
+            {
+                oCn.RunProc("Update " + MvarItemKey + "   set HCloseEmp = '', HCloseTime=null  where HItemID='" + sItemID + "'", ref Pub_Class.ClsPub.sExeReturnInfo);
+                sReturn = "";
+                return true;
+            }
+            catch (Exception e)
+            {
+                sReturn = e.Message;
+                throw (e);
+            }
+        }
+
         //鍒犻櫎
         public bool DeleteByID(Int64 sItemID)
         {

--
Gitblit v1.9.1