protected unsafe void Page_Load(object sender, EventArgs e) { string str; UserInfo info; int num; bool flag; this.nUserId = FunUtil.GetCurrentUserID(this.Page); this.nId = Util.GetInt(base.Request, "id", -1); this.nSelId = Util.GetInt(base.Request, "sel", -1); SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css"); if ((base.IsPostBack == 0) != null) { goto Label_0063; } goto Label_01A0; Label_0063: this.__BindRole(this.sel_Role); this.btnCancel.Visible = 0; if (((this.nId > 0) == 0) != null) { goto Label_0136; } str = Util.GetString(base.Request, "act", ""); if ((("del" == str) == 0) != null) { goto Label_00D0; } UserInfo.Del(this.nId); this.nId = -1; goto Label_0135; Label_00D0: if ((("mdy" == str) == 0) != null) { goto Label_0135; } info = UserInfo.Get(this.nId); PageUtil.CommonFillEdit(this, info); num = UserRoles.GetUserFirstRoleId(info.Id); PageUtil.SetSel(this.sel_Role, &num.ToString()); this.btnAdd.Value = "更新"; this.btnCancel.Visible = 1; Label_0135 :; Label_0136 : this.PaginationBar1.RecordCount = 0x2710; this.PaginationBar1.PageIndex = Util.GetInt(base.Request, "pi", 0) + 1; this.PaginationBar1.PageSize = Util.GetInt(base.Request, "ps", this.PaginationBar1.DefaultPageSize); PageUtil.RestoreSearchConditionFromSession(this.Page); this.__BindData(); Label_01A0: return; }
protected void Page_Load(object sender, EventArgs e) { string str; SiteRoles roles; bool flag; this.nUserId = FunUtil.GetCurrentUserID(this.Page); this.nId = Util.GetInt(base.Request, "id", -1); this.nSelId = Util.GetInt(base.Request, "sel", -1); SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css"); if ((base.IsPostBack == 0) != null) { goto Label_0063; } goto Label_0174; Label_0063: this.btnCancel.Visible = 0; if (((this.nId > 0) == 0) != null) { goto Label_010A; } str = Util.GetString(base.Request, "act", ""); if ((("del" == str) == 0) != null) { goto Label_00C3; } SiteRoles.Del(this.nId); this.nId = -1; goto Label_0109; Label_00C3: if ((("mdy" == str) == 0) != null) { goto Label_0109; } roles = SiteRoles.Get(this.nId); PageUtil.CommonFillEdit(this, roles); this.btnAdd.Value = "更新"; this.btnCancel.Visible = 1; Label_0109 :; Label_010A : this.PaginationBar1.RecordCount = 0x2710; this.PaginationBar1.PageIndex = Util.GetInt(base.Request, "pi", 0) + 1; this.PaginationBar1.PageSize = Util.GetInt(base.Request, "ps", this.PaginationBar1.DefaultPageSize); PageUtil.RestoreSearchConditionFromSession(this.Page); this.__BindData(); Label_0174: return; }