From 11fdf34d61eaaa6b733901907581dec9ac0aef6f Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期四, 30 六月 2022 13:02:50 +0800
Subject: [PATCH] 删除Debug
---
web/web/GwClient.aspx.cs | 29 +++++++++++++++++++++--------
1 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/web/web/GwClient.aspx.cs b/web/web/GwClient.aspx.cs
index 2726e1c..11ff8cb 100644
--- a/web/web/GwClient.aspx.cs
+++ b/web/web/GwClient.aspx.cs
@@ -9,6 +9,7 @@
using System.Collections.Generic;
using System.Text;
using System.Configuration;
+using System.Linq;
public partial class _GwClient : PageBase<SysUser>, IRequiresSessionState
{
@@ -67,8 +68,8 @@
{
continue;
}
- //杩囨护鐢ㄦ埛绫诲瀷 1-绠$悊鍛�;2-涓氬姟鍛�--鍏ㄥ憳;3-涓氬姟涓荤;4-涓氬姟鎬荤洃;5-瀹㈡湇浜哄憳;6-璐㈠姟浜哄憳;99-鍏朵粬
- if (bean.UserType == 6 || bean.UserType == 99)
+ //杩囨护鐢ㄦ埛绫诲瀷 1-绠$悊鍛�;2-涓氬姟鍛�--鍏ㄥ憳;3-瀹㈡埛缁忕悊;4-瀹㈡湇浜哄憳;5-璐㈠姟浜哄憳
+ if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(2, bean.UserType) )
{
continue;
}
@@ -95,8 +96,8 @@
{
continue;
}
- //杩囨护鐢ㄦ埛绫诲瀷 1-绠$悊鍛�;2-涓氬姟鍛�--鍏ㄥ憳;3-涓氬姟涓荤;4-涓氬姟鎬荤洃;5-瀹㈡湇浜哄憳;6-璐㈠姟浜哄憳;99-鍏朵粬
- if (bean.UserType == 2)
+ //杩囨护鐢ㄦ埛绫诲瀷 1-绠$悊鍛�;2-涓氬姟鍛�--鍏ㄥ憳;3-瀹㈡埛缁忕悊;4-瀹㈡湇浜哄憳;5-璐㈠姟浜哄憳
+ if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(3, bean.UserType))
{
continue;
}
@@ -123,8 +124,8 @@
{
continue;
}
- //杩囨护鐢ㄦ埛绫诲瀷 1-绠$悊鍛�;2-涓氬姟鍛�--鍏ㄥ憳;3-涓氬姟涓荤;4-涓氬姟鎬荤洃;5-瀹㈡湇浜哄憳;6-璐㈠姟浜哄憳;99-鍏朵粬
- if (bean.UserType != 1 && bean.UserType != 5 )
+ //杩囨护鐢ㄦ埛绫诲瀷 1-绠$悊鍛�;2-涓氬姟鍛�--鍏ㄥ憳;3-瀹㈡埛缁忕悊;4-瀹㈡湇浜哄憳;5-璐㈠姟浜哄憳
+ if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(4, bean.UserType))
{
continue;
}
@@ -151,8 +152,8 @@
{
continue;
}
- //杩囨护鐢ㄦ埛绫诲瀷 1-绠$悊鍛�;2-涓氬姟鍛�--鍏ㄥ憳;3-涓氬姟涓荤;4-涓氬姟鎬荤洃;5-瀹㈡湇浜哄憳;6-璐㈠姟浜哄憳;99-鍏朵粬
- if (bean.UserType != 1 && bean.UserType != 6)
+ //杩囨护鐢ㄦ埛绫诲瀷 1-绠$悊鍛�;2-涓氬姟鍛�--鍏ㄥ憳;3-瀹㈡埛缁忕悊;4-瀹㈡湇浜哄憳;5-璐㈠姟浜哄憳
+ if (!checkStrForArrayStr(1, bean.UserType) && !checkStrForArrayStr(5, bean.UserType))
{
continue;
}
@@ -270,5 +271,17 @@
}
}
+ //妫�鏌ユ暟缁勬牸寮忓瓧绗︿覆涓槸鍚﹀寘鍚煇鍏冪礌
+ public static bool checkStrForArrayStr(object str, string arrayStr)
+ {
+ return stringToArray(arrayStr).Contains(str.ToString());
+ }
+
+ //瀛楃涓茶浆鏁扮粍
+ public static object[] stringToArray(string str)
+ {
+ object[] array = str.Split(',');
+ return array;
+ }
}
--
Gitblit v1.9.1