| | |
| | | using System.Web; |
| | | using System.Web.Profile; |
| | | using System.Web.SessionState; |
| | | using Dao; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | public partial class _GwClient : PageBase<SysUser>, IRequiresSessionState |
| | | { |
| | | { |
| | | |
| | | protected List<SysUser> SysUserList; |
| | | |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | //权限校验 |
| | | this.CheckRight("301", FailedOperation.ErrorMsgOnly); |
| | | |
| | | //获取启用的产品分类 |
| | | using (UserDao userDao = new UserDao()) |
| | | { |
| | | |
| | | int recordCount = 0; |
| | | int int1 = 999999999; |
| | | int int2 = 1; |
| | | this.SysUserList = userDao.LoadInfoList(out recordCount, int1, int2); |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | //获取产品分类信息 |
| | | public string SysUserOptions(int userId) |
| | | { |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | if (this.SysUserList.Count == 0) |
| | | return "<option value=''>无</option>"; |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" >{1}</option>", (object)0, (object)"无"); |
| | | foreach (SysUser bean in this.SysUserList) |
| | | { |
| | | //停用的用户不再显示 |
| | | if (bean.Status == 0) |
| | | { |
| | | continue; |
| | | } |
| | | //过滤超级管理员 |
| | | if (bean.UserID == 1) |
| | | { |
| | | continue; |
| | | } |
| | | |
| | | if (userId == bean.UserID) |
| | | stringBuilder.AppendFormat("<option value=\"{0}\" selected>{0}-{1}</option>", (object)bean.UserID, (object)bean.UserName); |
| | | else |
| | | stringBuilder.AppendFormat("<option value=\"{0}\">{0}-{1}</option>", (object)bean.UserID, (object)bean.UserName); |
| | | } |
| | | return stringBuilder.ToString(); |
| | | } |
| | | |
| | | } |