| | |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | using System.Configuration; |
| | | using System.Linq; |
| | | |
| | | public partial class _GwClient : PageBase<SysUser>, IRequiresSessionState |
| | | { |
| | |
| | | { |
| | | 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; |
| | | } |
| | |
| | | { |
| | | 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; |
| | | } |
| | |
| | | { |
| | | 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; |
| | | } |
| | |
| | | { |
| | | 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; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | //检查数组格式字符串中是否包含某元素 |
| | | 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; |
| | | } |
| | | |
| | | } |