From f002dca462390febf123891c62ae197c768219dc Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 02 二月 2024 10:29:44 +0800
Subject: [PATCH] 销售订单 删除方法,增加 调用 删除前控制 h_p_Xs_SeOrderBill_BeforeDelCtrl 和删除后控制 h_p_Xs_SeOrderBill_AfterDelCtrl的 存储过程。 销售出库单 删除方法,增加 调用 删除前控制 h_p_Kf_SellOutBill_BeforeDelCtrl 和删除后控制 h_p_Kf_SellOutBill_AfterDelCtrl的 存储过程。 收款单 删除方法,增加 调用 删除前控制 h_p_YS_ReceiveBill_BeforeDelCtrl 和删除后控制 h_p_YS_ReceiveBill_AfterDelCtrl的 存储过程。 应收退款单 删除方法,增加 调用 删除前控制 h_p_YS_ReceiveBackBill_BeforeDelCtrl 和删除后控制 h_p_YS_ReceiveBackBill_AfterDelCtrl的 存储过程。 销售订单变更单删除方法,增加 调用 删除前控制 h_p_Xs_SeOrderChangeBill_BeforeDelCtrl 和删除后控制 h_p_Xs_SeOrderChangeBill_AfterDelCtrl的 存储过程。 销售退货单删除方法,增加 调用 删除前控制 h_p_Kf_SellOutBackBill_BeforeDelCtrl 和删除后控制 h_p_Kf_SellOutBackBill_AfterDelCtrl的 存储过程。
---
Pub_Class/CustomerCls/ClsPub.cs | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/Pub_Class/CustomerCls/ClsPub.cs b/Pub_Class/CustomerCls/ClsPub.cs
index 3c2dd5c..d9636d8 100644
--- a/Pub_Class/CustomerCls/ClsPub.cs
+++ b/Pub_Class/CustomerCls/ClsPub.cs
@@ -946,7 +946,7 @@
}
else
{
- if (ClsPub.isStrNull(DsUser.Tables[0].Rows[0]["AuthorityID"]).Length > ModID
+ if (ClsPub.isStrNull(DsUser.Tables[0].Rows[0]["AuthorityID"]).Length >= ModID
&& DsUser.Tables[0].Rows[0]["AuthorityID"].ToString().Trim().Substring((int)ModID - 1, 1) == "1")
{
HavRight = true;
@@ -963,10 +963,10 @@
}
else
{
- HavRight = false;
+ //HavRight = false;
for (int i = 0; i < DsJS.Tables[0].Rows.Count; i++)
{
- if (ClsPub.isStrNull(DsJS.Tables[0].Rows[i]["AuthorityID"]).Length > ModID)
+ if (ClsPub.isStrNull(DsJS.Tables[0].Rows[i]["AuthorityID"]).Length >= ModID)
{
if (DsJS.Tables[0].Rows[i]["AuthorityID"].ToString().Trim().Substring((int)ModID - 1, 1) == "1")
{
@@ -1055,7 +1055,7 @@
}
else
{
- if (DsUser.Tables[0].Rows[0]["AuthorityID"].ToString().Trim().Substring((int)ModID - 1, 1) == "1")
+ if (ClsPub.isStrNull(DsUser.Tables[0].Rows[0]["AuthorityID"]).Length >= ModID && DsUser.Tables[0].Rows[0]["AuthorityID"].ToString().Trim().Substring((int)ModID - 1, 1) == "1")
{
HavRight = true;
}
@@ -1064,7 +1064,7 @@
//鑾峰彇鐢ㄦ埛缁� 骞跺惊鐜垽鏂潈闄�
//鍒ゆ柇瑙掕壊鏄惁鏈夋潈闄�
DsJS = oCn.RunProcReturn("select isnull(AuthorityID,'') AuthorityID from System_UserGroupinfo a inner join System_UserGroup b on a.GroupID=b.GroupID " +
- " Where a.USERID='" + UserID.Trim() + "'", "gy_czygl");
+ " Where a.USERID='" + DsUser.Tables[0].Rows[0]["Czybm"].ToString().Trim() + "'", "gy_czygl");
if (DsJS == null)
{
HavRight = false;
@@ -1074,7 +1074,7 @@
HavRight = false;
for (int i = 0; i < DsJS.Tables[0].Rows.Count; i++)
{
- if (ClsPub.isStrNull(DsJS.Tables[0].Rows[i]["AuthorityID"]).Length > ModID)
+ if (ClsPub.isStrNull(DsJS.Tables[0].Rows[i]["AuthorityID"]).Length >= ModID)
{
if (DsJS.Tables[0].Rows[i]["AuthorityID"].ToString().Trim().Substring((int)ModID - 1, 1) == "1")
{
--
Gitblit v1.9.1