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; }
//void LoadSkins() //{ // foreach (SkinContainer skin in SkinManager.Default.Skins) // { // listSkins.Properties.Items.Add(skin.SkinName); // } //} public void Apply() { //先查看是否更改了字体,如果更改了要应用新的字体 int fontSize = comboBoxEdit1.SelectedIndex + 9; SkinUtil.SetFont(listFontFamilies.Text, fontSize); //再查看是否更改了皮肤,如果更改了要应用新的皮肤 SkinUtil.SetSkin(listSkins.Text); //将更改保存到配置文件中 Properties.Settings.Default.FontFamily = listFontFamilies.Text; Properties.Settings.Default.FontSize = fontSize; Properties.Settings.Default.Skin = listSkins.Text; Properties.Settings.Default.Save(); }
private void SshSettingForm_Load(object sender, EventArgs e) { SkinUtil.SetFormSkin(this); cb_protocol.SelectedIndex = 0; cb_method.SelectedIndex = 0; cb_scheme.SelectedIndex = 0; cb_fontName.SelectedIndex = 0; cb_fontSize.SelectedIndex = 2; if (null != config) { InitUI(); } treeView1.ExpandAll(); }
public FrmLogin() { //读取设置 Properties.Settings _setting = Properties.Settings.Default; //按照用户保存的设置改变皮肤 SkinUtil.RegisterSkin(System.IO.Path.Combine(Application.StartupPath, "skins.dll")); SkinUtil.SetSkin(_setting.Skin); SkinManager.EnableFormSkins(); SkinUtil.SetFont(_setting.FontFamily, _setting.FontSize); InitializeComponent(); txtID.Text = _setting.Usercode; this.btnSettings.Image = AppResource.GetIcon(AppResource.EIcons.settings); //txtPwd.Text = SecurityUtil.Base64ToString(_setting.password); //checkRememberMe.Checked = _setting.RememberMe; }
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; }
public InputForm() { InitializeComponent(); SkinUtil.SetFormSkin(this); }
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; }
public CentralServerConfigForm(MonitorForm form) { InitializeComponent(); SkinUtil.SetFormSkin(this); this.monitorForm = form; }
public SftpForm(SshUser user) { InitializeComponent(); SkinUtil.SetFormSkin(this); this.user = user; }
public TextEditorForm() { InitializeComponent(); SkinUtil.SetFormSkin(this); }
protected void Page_Load(object sender, EventArgs e) { FuncTree tree; FuncTree[] treeArray; FuncTree tree2; string str; int num; bool flag; FuncTree[] treeArray2; int num2; this.nSelFuncId = Util.GetInt(base.Request, "p", 0); if (((this.nSelFuncId < 1) == 0) != null) { goto Label_0031; } this.nSelFuncId = -1; Label_0031: if (((this.nSelFuncId > 0) == 0) != null) { goto Label_010F; } tree = FuncTree.Get(this.nSelFuncId); if ((tree == null) != null) { goto Label_010E; } this.strDesktopName = tree.LocalName; this.strDesktopURL = FuncTree.GetURLOfFirstValidEntity(this.Page, tree); if ((string.IsNullOrEmpty(this.strDesktopURL) == 0) != null) { goto Label_010D; } treeArray = FuncTree.GetAllFuncs(tree.Id); if (((treeArray == null) ? 1 : ((((int)treeArray.Length) > 0) == 0)) != null) { goto Label_010C; } treeArray2 = treeArray; num2 = 0; goto Label_00FD; Label_00C0: tree2 = treeArray2[num2]; str = FuncTree.GetURLOfFirstValidEntity(this.Page, tree2); if (string.IsNullOrEmpty(str) != null) { goto Label_00F6; } this.strDesktopName = tree2.LocalName; this.strDesktopURL = str; goto Label_010B; Label_00F6: num2 += 1; Label_00FD: if ((num2 < ((int)treeArray2.Length)) != null) { goto Label_00C0; } Label_010B :; Label_010C :; Label_010D :; Label_010E :; Label_010F: if (base.IsPostBack != null) { goto Label_0162; } SkinUtil.AdhereStyleSheet(this.Page, "content.css"); if (((PortalSettings.get_DefaultTypeSub() == 2) == 0) != null) { goto Label_015A; } this.m_strFuncBarBgStyle = "style='display:none;'"; this.m_strWorkAreaStyle = "style='top:0px;'"; Label_015A: this.__InitTabs(); Label_0162: return; }
public QuickCommandManageForm(SessionConfig _config) { InitializeComponent(); SkinUtil.SetFormSkin(this); config = _config; }
public SessionManageForm() { InitializeComponent(); SkinUtil.SetFormSkin(this); }
public void InitUI() { try { LoadFonts(); //LoadSkins(); int fontSize = Properties.Settings.Default.FontSize; listFontFamilies.Text = string.IsNullOrEmpty(Properties.Settings.Default.FontFamily) ? SkinUtil.GetDefaultFont() : Properties.Settings.Default.FontFamily; listSkins.Text = Properties.Settings.Default.Skin; comboBoxEdit1.SelectedIndex = fontSize - 9; } catch (Exception ex) { MsgBox.Err(ex.Message); } }
public TimedTaskForm(int _index) { InitializeComponent(); SkinUtil.SetFormSkin(this); this.index = _index; }
public SettingForm() { InitializeComponent(); SkinUtil.SetFormSkin(this); }
public ShellHelpForm() { InitializeComponent(); SkinUtil.SetFormSkin(this); }