protected void Page_Load(object sender, EventArgs e) { try { iConstValueType = ServiceAgent.getInstance().GetMaintainObjectByName<IConstValueType>(WebConstant.ConstValueTypeObject); editor = Request.QueryString["editor"]; strStationName = Request.QueryString["StationName"]; this.valModel.Text = strStationName; this.Title = this.GetLocalResourceObject(Pre + "_title").ToString(); InitLabel(); initCodeType(); bindTable(); // setColumnWidth(); } catch (FisException ex) { showErrorMessage(ex.mErrmsg); return; } catch (Exception ex) { //show error showErrorMessage(ex.Message); return; } }
protected void Page_Load(object sender, EventArgs e) { try { iConstValueType = ServiceAgent.getInstance().GetMaintainObjectByName<IConstValueType>(WebConstant.ConstValueTypeObject); 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 { iConstValueType = ServiceAgent.getInstance().GetMaintainObjectByName<IConstValueType>(WebConstant.ConstValueTypeObject); if (!this.IsPostBack) { if (isPercentage) { if (Convert.ToInt32(width) > 100) { drpConstValueTypeForType.Width = Unit.Percentage(100); } else { drpConstValueTypeForType.Width = Unit.Percentage(Convert.ToDouble(width)); } } else { drpConstValueTypeForType.Width = Unit.Parse(width); } this.drpConstValueTypeForType.CssClass = cssClass; this.drpConstValueTypeForType.Enabled = enabled; if (enabled) { initCodeType(); } else { this.drpConstValueTypeForType.Items.Add(new ListItem("", "")); } firstNoNullIndex = 0; } } catch (FisException ex) { showCmbErrorMessage(ex.mErrmsg); } catch (Exception ex) { showCmbErrorMessage(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { try { isConstValueTypeLoad = false; this.cmbConstValueType.InnerDropDownList.Load += new EventHandler(cmbConstValueType_Load); this.cmbConstValueType.BATTCT = Request["Type"]; iConstValueType = ServiceAgent.getInstance().GetMaintainObjectByName<IConstValueType>(WebConstant.ConstValueTypeObject); 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(); 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); } }