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) { UserInfo info; HB_ShiCZTItem item; string str; bool flag; this.nUserId = FunUtil.GetCurrentUserID(this.Page); this.m_htCommonFill["m_strEditUrl"] = PageUtil.GetDoFormActionUrl(base.Request, "DianChang_ShiCZT_ZhuTZC", ""); this.m_htCommonFill["m_strSubmitUrl"] = PageUtil.GetDoFormActionUrl(base.Request, "DianChang_ShiCZT_ZhuTSubmit", ""); SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css"); SkinUtil.AdhereEntryStyleSheet(this.Page, "fileinput.css"); info = UserInfo.Get(this.nUserId); if (((info == null) == 0) != null) { goto Label_009C; } goto Label_01BA; Label_009C: PageUtil.CommonFillHash(this.m_htCommonFill, 0, info, "_User", 0, 0, null); item = HB_ShiCZTItem.GetByUserId(this.nUserId); if ((item == null) != null) { goto Label_01BA; } PageUtil.CommonFillHash(this.m_htCommonFill, 0, item, "", 0, 0, null); str = this.ltTemplate.Text; if (string.IsNullOrEmpty(item.YingYZZ) != null) { goto Label_0137; } this.m_htCommonFill["lblimg_YingYZZ"] = string.Format(str, PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 11)); Label_0137: if (string.IsNullOrEmpty(item.DianLYWXKZ) != null) { goto Label_0182; } this.m_htCommonFill["lblimg_DianLYWXKZ"] = string.Format(str, PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 11)); Label_0182: if ((item.RecordStatus == 1) != null) { goto Label_01B9; } this.btnSumibt.Disabled = 1; this.btnSumibt.Attributes["title"] = "仅录入中记录需要提交审核,请先“修改主体信息”"; Label_01B9 :; Label_01BA : 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; }
protected unsafe void Page_Load(object sender, EventArgs e) { string str; SitePortal[] portalArray; int num; SitePortal portal; bool flag; this.Session["global_pid"] = (int)0; this.nUserId = FunUtil.GetCurrentUserID(); SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css"); this.applicationpath.Value = Globals.get_ApplicationPath(); str = ConfigurationManager.AppSettings["dbdefaultportal"]; if ((base.IsPostBack == 0) != null) { goto Label_0069; } goto Label_012A; Label_0069: this.lblPortalName.Text = PortalSettings.get_PortalName(); portalArray = SitePortal.GetAllPortal(); if (((portalArray == null) ? 0 : ((((int)portalArray.Length) < 2) == 0)) != null) { goto Label_00AA; } this.trPortal.Visible = 0; goto Label_012A; Label_00AA: this.trPortal.Visible = 1; this.selPortal.Items.Clear(); num = 1; goto Label_00FE; Label_00CD: portal = portalArray[num]; this.selPortal.Items.Add(new ListItem(portal.Title, &portal.id.ToString())); num += 1; Label_00FE: if ((num < ((int)portalArray.Length)) != null) { goto Label_00CD; } PageUtil.SetSel(this.selPortal, str); this.Session["global_allportal"] = portalArray; Label_012A: return; }
protected void Page_Load(object sender, EventArgs e) { UserInfo info; HB_ShiCZTItem item; string str; bool flag; this.nUserId = FunUtil.GetCurrentUserID(this.Page); this.m_htCommonFill["m_strViewUrl"] = PageUtil.GetDoFormActionUrl(base.Request, "DianChang_ShiCZT_ZhuTView", ""); SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css"); SkinUtil.AdhereEntryStyleSheet(this.Page, "fileinput.css"); info = UserInfo.Get(this.nUserId); if (((info == null) == 0) != null) { goto Label_0076; } goto Label_0197; Label_0076: PageUtil.CommonFillHash(this.m_htCommonFill, 0, info, "_User", 0, 0, null); item = HB_ShiCZTItem.GetByUserId(this.nUserId); if ((item == null) != null) { goto Label_0197; } PageUtil.CommonFillHash(this.m_htCommonFill, 0, item, "", 0, 0, null); str = this.ltTemplate.Text; if (string.IsNullOrEmpty(item.YingYZZ) != null) { goto Label_012E; } this.m_htCommonFill["lblimg_YingYZZ"] = string.Format(str, "hidden_YingYZZ", PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 11)); this.m_htCommonFill["hidden_YingYZZ"] = "exist"; Label_012E: if (string.IsNullOrEmpty(item.DianLYWXKZ) != null) { goto Label_0196; } this.m_htCommonFill["lblimg_DianLYWXKZ"] = string.Format(str, "hidden_DianLYWXKZ", PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 11)); this.m_htCommonFill["hidden_DianLYWXKZ"] = "exist"; Label_0196 :; Label_0197 : return; }
protected unsafe void Page_Load(object sender, EventArgs e) { int num; bool flag; num = Util.GetInt(base.Request, "selPortal", 1); this.Session["global_pid"] = &num.ToString(); this.selPortal.Value = &num.ToString(); this.applicationpath.Value = Globals.get_ApplicationPath(); SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css"); if ((base.IsPostBack == 0) == null) { goto Label_0096; } this.lbl_PortalName.Text = PortalSettings.get_PortalName(); this.imgYZM.ImageUrl = Globals.ResolveURL("~/MyAccount/LoginVerifyCode.aspx"); Label_0096: return; }
protected void Page_Load(object sender, EventArgs e) { HB_ShiCZTItem item; UserInfo info; string str; bool flag; this.nUserId = FunUtil.GetCurrentUserID(this.Page); this.nId = Util.GetInt(base.Request, "id", -1); this.m_htCommonFill["m_strListUrl"] = PageUtil.GetDoFormActionUrl(base.Request, "DianChang_ShiCZT_ZhuTList", null); this.m_htCommonFill["m_strAddOn"] = string.Format("&id={0}&", (int)this.nId); SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css"); SkinUtil.AdhereEntryStyleSheet(this.Page, "fileinput.css"); if ((base.IsPostBack == 0) != null) { goto Label_00A5; } goto Label_01BD; Label_00A5: item = HB_ShiCZTItem.Get(this.nId); info = UserInfo.Get(item.UserId); PageUtil.CommonFillHash(this.m_htCommonFill, 0, info, "_User", 0, 0, null); PageUtil.CommonFillHash(this.m_htCommonFill, 0, item, "", 0, 0, null); str = this.ltTemplate.Text; if (string.IsNullOrEmpty(item.YingYZZ) != null) { goto Label_0140; } this.m_htCommonFill["lblimg_YingYZZ"] = string.Format(str, PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 11)); Label_0140: if (string.IsNullOrEmpty(item.DianLYWXKZ) != null) { goto Label_018B; } this.m_htCommonFill["lblimg_DianLYWXKZ"] = string.Format(str, PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 11)); Label_018B: this.m_htCommonFill["txt_DiaoDGX_New"] = "省调直调电厂"; this.m_htCommonFill["txt_EnterDate_New"] = DateTimeUtil.DisplayDefaultDateTime(DateTime.Now, 0); Label_01BD: return; }
protected unsafe void Page_Load(object sender, EventArgs e) { int num; int num2; UserInfo info; int num3; int num4; SitePortal[] portalArray; int num5; int num6; SitePortal portal; bool flag; object[] objArray; num = PersistenceManager.GlobalPortalId; if (((num < 1) == 0) != null) { goto Label_0067; } base.Response.Redirect(string.Concat(new object[] { "Index.aspx?portal=", &num.ToString(), "&u", this.Session["global_username"] }), 1); goto Label_02F6; Label_0067: this.nPortalId = SitePortal.GetCurrentPortalId(); this.nUserId = FunUtil.GetCurrentUserID(); this.nSelFuncId = Util.GetInt(base.Request, "p", 0); if (((this.nSelFuncId < 1) == 0) != null) { goto Label_00AD; } this.nSelFuncId = -1; Label_00AD: PageUtil.AdhereJS(this.Page, "jquery.js"); PageUtil.AdhereJS(this.Page, "bootstrap.js"); SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css"); SkinUtil.AdhereEntryStyleSheet(this.Page, "style.css"); this.navTier.Visible = 0; if (((PortalSettings.get_DefaultTypeSub() == 2) == 0) != null) { goto Label_0132; } this.navTier.Visible = 1; this.m_strTopPX = "105px"; this.__InirTopMenu(); Label_0132: this.__InitLeftMenu(); this.ltSiteName.Text = PortalSettings.get_PortalName(); info = UserInfo.Get(this.nUserId); if ((info == null) != null) { goto Label_019C; } if ((((info.Sex == "2") != null) ? 0 : ((info.Sex == "女") == 0)) != null) { goto Label_019B; } this.m_strUserIcon = "womanbig.png"; Label_019B :; Label_019C : this.m_strUserInfo = string.Format("欢迎你,{0}", FunUtil.GetCurrentUserName(1)); this.hdCurrentUserId.Value = &this.nUserId.ToString(); this.m_strNewMessageCount = ""; num3 = MessageItem.GetUnreadMessageCount(this.nUserId); if (((num3 > 0) == 0) != null) { goto Label_0203; } this.m_strNewMessageCount = string.Format("<span style='position:absolute;font-size:10px;background-color:#ff5029;color:#fff;border-radius:13%;right:92px;top:6px;height:12px;padding:0 3px;line-height:12px;text-align:center;cursor:pointer;' onclick='fnJumpShortMessage();'>{0}</span>", (int)num3); Label_0203: num4 = PersistenceManager.GlobalPortalId; portalArray = (SitePortal[])this.Session["global_allportal"]; if (((portalArray == null) == 0) != null) { goto Label_0275; } num5 = PersistenceManager.GlobalPortalId; Label_0237: try { this.Session["global_pid"] = "1"; portalArray = SitePortal.GetAllPortal(); goto Label_0273; } finally { Label_0258: this.Session["global_pid"] = &num5.ToString(); } Label_0273 :; Label_0275 : if ((portalArray == null) != null) { goto Label_02F6; } num6 = 1; goto Label_02E7; Label_0286: portal = portalArray[num6]; if (((portal.id == num4) == 0) != null) { goto Label_02B2; } this.m_strCurPortal = portal.Title; goto Label_02E1; Label_02B2: this.m_strOtherPortal = this.m_strOtherPortal + string.Format("<li role='presentation'><a role='menuitem' tabindex='-1' href='#' onclick='goChangePortal({0});return false;'>{1}</a></li>", (int)portal.id, portal.Title); Label_02E1: num6 += 1; Label_02E7: if ((num6 < ((int)portalArray.Length)) != null) { goto Label_0286; } Label_02F6: return; }
protected unsafe void Page_Load(object sender, EventArgs e) { string str; StringBuilder builder; ListItem item; string str2; string str3; int num; Department department; string str4; Hashtable hashtable; Department department2; bool flag; IEnumerator enumerator; IDisposable disposable; this.nUserId = FunUtil.GetCurrentUserID(this.Page); this.m_nParentId = Util.GetInt(base.Request, "parentid", -1); str = Util.GetString(base.Request, "act", ""); if (string.IsNullOrEmpty(str) != null) { goto Label_03FE; } if ((("queryparent" == str) == 0) != null) { goto Label_016A; } this.sel_ParentId.Items.Clear(); Department.BindPages(this.sel_ParentId, -1); builder = new StringBuilder(); enumerator = this.sel_ParentId.Items.GetEnumerator(); Label_009E: try { goto Label_0128; Label_00A3: item = (ListItem)enumerator.Current; str2 = item.Text; if ((((item.Value == "-1") != null) ? 0 : ((item.Value == "0") == 0)) != null) { goto Label_00ED; } str2 = "无"; Label_00ED: str3 = string.Format("{0}\t{1}", str2, item.Value); if (((builder.Length > 0) == 0) != null) { goto Label_011E; } builder.Append("\n"); Label_011E: builder.Append(str3); Label_0128: if (enumerator.MoveNext() != null) { goto Label_00A3; } goto Label_0157; } finally { Label_013A: disposable = enumerator as IDisposable; if ((disposable == null) != null) { goto Label_0156; } disposable.Dispose(); Label_0156 :; } Label_0157 : this.__Return(builder.ToString()); goto Label_0476; Label_016A: if ((("query" == str) == 0) != null) { goto Label_0206; } num = Util.GetInt(base.Request, "funcid", -1); if (((num < 1) == 0) != null) { goto Label_01A6; } num = -1; Label_01A6: department = Department.Get(num); if ((department == null) != null) { goto Label_01F2; } str3 = string.Format("OK\t{0}\t{1}\t{2}", department.Name, (int)department.ParentId, (int)department.OrderId); this.__Return(str3); goto Label_0200; Label_01F2: this.__Return(""); Label_0200: goto Label_03FD; Label_0206: if ((("add" == str) == 0) != null) { goto Label_03A1; } num = Util.GetInt(base.Request, "funcid", -1); if (((num < 1) == 0) != null) { goto Label_0242; } num = -1; Label_0242: hashtable = PageUtil.GetHashFromUrl(Util.GetString(base.Request, "parameter", "")); department = Department.Get(num); if (((department == null) == 0) != null) { goto Label_0280; } department = new Department(); Label_0280: department.Name = hashtable["Name"]; department.ParentId = Util.pasteInt(hashtable["ParentId"], -1); department.OrderId = Util.pasteInt(hashtable["OrderId"], 0); if ((string.IsNullOrEmpty(department.Name) == 0) != null) { goto Label_02F5; } this.__Return("名称不能为空,请修改!"); Label_02F5: if (((department.OrderId == 0) == 0) != null) { goto Label_0319; } department.OrderId = Department.GetNextOrderID(SitePortal.GetCurrentPortalID()); Label_0319: department.PortalId = SitePortal.GetCurrentPortalID(); department.IsDelete = 2; department2 = Department.GetByName(SitePortal.GetCurrentPortalID(), department.ParentId, department.Name); if (((department2 == null) ? 1 : (department2.Id == department.Id)) != null) { goto Label_037F; } this.__Return(string.Format("名称“{0}”已存在,请修改!", department.Name)); goto Label_039C; Label_037F: CommonClassDB.Instance(department).set(department); this.__Return("OK"); Label_039C: goto Label_0476; Label_03A1: if ((("del" == str) == 0) != null) { goto Label_03FD; } num = Util.GetInt(base.Request, "funcid", -1); if (((num < 1) == 0) != null) { goto Label_03E5; } this.__Return("请选择需要删除记录!"); goto Label_03FB; Label_03E5: Department.Del(num); this.__Return("OK"); Label_03FB: goto Label_0476; Label_03FD :; Label_03FE : SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css"); if ((base.IsPostBack == 0) == null) { goto Label_0476; } flag = 0; department = new Department(); PageUtil.InitTree(this.Page, this.treeChannel, 0, department); PageUtil.SetTreeSel(this.treeChannel, "func" + &this.m_nParentId.ToString()); this.returl.Value = this.GetRefreshUrl(0, 0); Label_0476: return; }