| | |
| | | public partial class _GwMoRoute : PageBase<SysUser>, IRequiresSessionState |
| | | { |
| | | private List<GwOp> OpList; |
| | | |
| | | |
| | | private int _userId = -1; |
| | | private string _userType = ""; |
| | | private string _account = ""; |
| | | |
| | | public GwSp GwSp { get; protected set; } |
| | | |
| | | public string SpID |
| | |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | this.CheckRight("306", FailedOperation.ErrorMsgOnly); |
| | | |
| | | _userId = this.AppContext.SessionObject.UserID; |
| | | _userType = this.AppContext.SessionObject.UserType; |
| | | _account = this.AppContext.SessionObject.Account; |
| | | |
| | | using (GwSpDao gwSpDao = new GwSpDao()) |
| | | { |
| | | if (!string.IsNullOrEmpty(this.SpID)) |
| | |
| | | StringBuilder stringBuilder = new StringBuilder(); |
| | | using (GwSpDao gwSpDao = new GwSpDao()) |
| | | { |
| | | List<GwSp> list = gwSpDao.LoadInfoList("", "", ""); |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, null); |
| | | |
| | | List<GwSp> list = gwSpDao.LoadInfoList("", "", "", permissionsSQL); |
| | | if (list.Count == 0) |
| | | { |
| | | stringBuilder.Append("<option value=\"\">暂无帐号</option>"); |