From 96fa1feae3bd8888de0b4fdaf9bd2e84866013dd Mon Sep 17 00:00:00 2001
From: YL <YL@LAPTOP-SE03PLUR>
Date: 星期四, 16 十二月 2021 17:00:52 +0800
Subject: [PATCH] nothing

---
 DAL/WMS/ClsGy_BarCodeBill_Ctl.cs |   94 +++++++++++++++++++++++++++++++---------------
 1 files changed, 63 insertions(+), 31 deletions(-)

diff --git a/DAL/WMS/ClsGy_BarCodeBill_Ctl.cs b/DAL/WMS/ClsGy_BarCodeBill_Ctl.cs
index 7bc36b3..9cfa797 100644
--- a/DAL/WMS/ClsGy_BarCodeBill_Ctl.cs
+++ b/DAL/WMS/ClsGy_BarCodeBill_Ctl.cs
@@ -225,7 +225,7 @@
         }
 
 
-        //鍒犻櫎鏉$爜锛堟湭瀹屾垚锛�
+        //鍒犻櫎鏉$爜
         public bool DeleteBill(long sHItemID, string sHBarCode, string CurUserName, ref string sReturn)
         {
             //缂栬緫鏉冮檺
@@ -236,8 +236,7 @@
             }
             try
             {
-                DataSet DS = oCn.RunProcReturn("exec h_p_Gy_BarCodeBill_Delete " + sHItemID + ",'" + sHBarCode + "','" + DBUtility.ClsPub.CurUserName + "','" + DBUtility.ClsPub.ComputerName + "','" + DBUtility.ClsPub.IPAddress + "'", "h_p_Gy_BarCodeBill_Delete", ref DBUtility.ClsPub.sExeReturnInfo);
-
+                DataSet DS = oCn.RunProcReturn("exec h_p_Gy_BarCodeBill_Delete " + sHItemID + ",'" + sHBarCode + "','" + CurUserName + "','" + DBUtility.ClsPub.ComputerName + "','" + DBUtility.ClsPub.IPAddress + "'", "h_p_Gy_BarCodeBill_Delete", ref DBUtility.ClsPub.sExeReturnInfo);
                 if (DS == null || DS.Tables[0].Rows.Count <= 0)
                 {
                     oCn.CnClose();
@@ -247,36 +246,69 @@
                 }
                 else
                 {
-                    sReturn = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"]);
+                    //鍒犻櫎澶辫触
+                    if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0][0]) == "1")
+                    {
+                        oCn.CnClose();
+                        oCn.CnDispose();
+                        sReturn = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"]);
+                        return true;
+                    }
+                    else
+                    //鍒犻櫎鎴愬姛
+                    {
+                        oCn.CnClose();
+                        oCn.CnDispose();
+                        sReturn = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"]);
+                        return false;
+                    }
+                }
+            }
+            catch (Exception e)
+            {
+                oCn.RollBack();
+                throw (e);
+            }
+        }
+
+        //鎵归噺鍒犻櫎鏉$爜
+        public bool MulDeleteBill(string sHItemID, string sHBarCode, string CurUserName, ref string sReturn)
+        {
+            //缂栬緫鏉冮檺
+            if (!DBUtility.ClsPub.Security_Log(ModRightNameEdit, 1, false, CurUserName))
+            {
+                sReturn = "鎮ㄦ病鏈夊垹闄ゆ潈闄愶紒";
+                return true;
+            }
+            try
+            {
+                DataSet DS = oCn.RunProcReturn("exec h_p_Gy_BarCodeBill_MulDelete '" + sHItemID + "','" + sHBarCode + "','" + CurUserName + "','" + DBUtility.ClsPub.ComputerName + "','" + DBUtility.ClsPub.IPAddress + "'", "h_p_Gy_BarCodeBill_MulDelete", ref DBUtility.ClsPub.sExeReturnInfo);
+                if (DS == null || DS.Tables[0].Rows.Count <= 0)
+                {
+                    oCn.CnClose();
+                    oCn.CnDispose();
+                    sReturn = "鎵归噺鍒犻櫎鏉$爜鏃跺彂鐢熼敊璇紒";
                     return true;
                 }
-
-                //DS = oCn.RunProcReturn("exec h_p_Gy_BarCodeBPrintQty '" + sBarCode + "'", "h_p_Gy_BarCodeBPrintQty", ref DBUtility.ClsPub.sExeReturnInfo);
-                //if (DS == null || DS.Tables[0].Rows.Count == 0)
-                //{
-                //    oCn.CnClose();
-                //    oCn.CnDispose();
-                //    sReturn = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"]);
-                //    return true;
-                //}
-                //else
-                //{
-                //    //宸叉墦鍗拌繃
-                //    if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0][0]) == "1")
-                //    {
-                //        oCn.CnClose();
-                //        oCn.CnDispose();
-                //        sReturn = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0][1]);
-                //        return true;
-                //    }
-                //    else
-                //    {
-                //        oCn.CnClose();
-                //        oCn.CnDispose();
-                //        sReturn = "姝e父锛�";
-                //        return false;
-                //    }
-                //}
+                else
+                {
+                    //鎵归噺鍒犻櫎澶辫触
+                    if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0][0]) == "1")
+                    {
+                        oCn.CnClose();
+                        oCn.CnDispose();
+                        sReturn = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"]);
+                        return true;
+                    }
+                    else
+                    //鎵归噺鍒犻櫎鎴愬姛
+                    {
+                        oCn.CnClose();
+                        oCn.CnDispose();
+                        sReturn = DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"]);
+                        return false;
+                    }
+                }
             }
             catch (Exception e)
             {

--
Gitblit v1.9.1