protected void Page_Load(object sender, EventArgs e) { try { iConstValueMaintain = ServiceAgent.getInstance().GetMaintainObjectByName<IConstValueMaintain>(WebConstant.ConstValueMaintainObject); pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString(); pmtMessage2 = this.GetLocalResourceObject(Pre + "_pmtMessage2").ToString(); if (!this.IsPostBack) { this.Title = this.GetLocalResourceObject(Pre + "_title").ToString(); userName = Request.QueryString["userName"]; userName = StringUtil.decode_URL(userName); this.HiddenUserName.Value = userName; initLabel(); } } catch (FisException ex) { showErrorMessage(ex.mErrmsg); } catch (Exception ex) { showErrorMessage(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { try { isConstValueTypeLoad = false; this.cmbConstValueType.InnerDropDownList.Load += new EventHandler(cmbConstValueType_Load); this.cmbConstValueType.PAQCStdRatio = Request["Type"]; iConstValueMaintain = ServiceAgent.getInstance().GetMaintainObjectByName<IConstValueMaintain>(WebConstant.ConstValueMaintainObject); pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString(); pmtMessage2 = this.GetLocalResourceObject(Pre + "_pmtMessage2").ToString(); pmtMessage3 = this.GetLocalResourceObject(Pre + "_pmtMessage3").ToString(); pmtMessage4 = this.GetLocalResourceObject(Pre + "_pmtMessage4").ToString(); pmtMessage5 = this.GetLocalResourceObject(Pre + "_pmtMessage5").ToString(); pmtMessage6 = this.GetLocalResourceObject(Pre + "_pmtMessage6").ToString(); if (!this.IsPostBack) { userName = Master.userInfo.UserId; this.HiddenUserName.Value = userName; initLabel(); bindTable(null, DEFAULT_ROWS); } ScriptManager.RegisterStartupScript(this.updatePanelAll, typeof(System.Object), "InitControl", "initControls();", true); } catch (FisException ex) { showErrorMessage(ex.mErrmsg); } catch (Exception ex) { showErrorMessage(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { try { //isConstValueTypeLoad = false; iConstValueMaintain = ServiceAgent.getInstance().GetMaintainObjectByName<IConstValueMaintain>(WebConstant.ConstValueMaintainObject); iEnergyLabel = ServiceAgent.getInstance().GetMaintainObjectByName<IEnergyLabel>(WebConstant.EnergyLabelMaintainObject); pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString(); pmtMessage2 = this.GetLocalResourceObject(Pre + "_pmtMessage2").ToString(); pmtMessage3 = this.GetLocalResourceObject(Pre + "_pmtMessage3").ToString(); pmtMessage4 = this.GetLocalResourceObject(Pre + "_pmtMessage4").ToString(); pmtMessage5 = this.GetLocalResourceObject(Pre + "_pmtMessage5").ToString(); pmtMessage6 = this.GetLocalResourceObject(Pre + "_pmtMessage6").ToString(); pmtMessage7 = this.GetLocalResourceObject(Pre + "_pmtMessage7").ToString(); pmtMessage8 = this.GetLocalResourceObject(Pre + "_pmtMessage8").ToString(); pmtMessage9 = this.GetLocalResourceObject(Pre + "_pmtMessage9").ToString(); if (!this.IsPostBack) { userName = Master.userInfo.UserId; this.HiddenUserName.Value = userName; initLabel(); initcmbEnergyLabelFamilyListTop(); initcmbFamilyList(); initcmbChinaLevelList(); bindTable(null, DEFAULT_ROWS); } //this.cmbEnergyLabelFamilyListTop.Load += new EventHandler(cmbEnergyLabelFamilyListTop_Load); btnQuery_ServerClick(sender, e); ScriptManager.RegisterStartupScript(this.updatePanelAll, typeof(System.Object), "InitControl", "initControls();", true); } catch (FisException ex) { showErrorMessage(ex.mErrmsg); } catch (Exception ex) { showErrorMessage(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { try { iConstValueMaintain = ServiceAgent.getInstance().GetMaintainObjectByName<IConstValueMaintain>(WebConstant.ConstValueMaintainObject); if (!this.IsPostBack) { if (isPercentage) { if (Convert.ToInt32(width) > 100) { drpConstValueType.Width = Unit.Percentage(100); } else { drpConstValueType.Width = Unit.Percentage(Convert.ToDouble(width)); } } else { drpConstValueType.Width = Unit.Parse(width); } this.drpConstValueType.CssClass = cssClass; this.drpConstValueType.Enabled = enabled; if (enabled) { initCodeType(); } else { this.drpConstValueType.Items.Add(new ListItem("", "")); } firstNoNullIndex = 0; } } catch (FisException ex) { showCmbErrorMessage(ex.mErrmsg); } catch (Exception ex) { showCmbErrorMessage(ex.Message); } }