protected void Page_Load(object sender, EventArgs e) { try { if (!this.IsPostBack) { icombineKPSetting = (ICombineKPSetting)ServiceAgent.getInstance().GetMaintainObjectByName<ICombineKPSetting>(WebConstant.ICOMBINEKPSETTING); if (isPercentage) { if (Convert.ToInt32(width) > 100) { drpMaintainCombineKPSetting.Width = Unit.Percentage(100); } else { drpMaintainCombineKPSetting.Width = Unit.Percentage(Convert.ToDouble(width)); } } else { drpMaintainCombineKPSetting.Width = Unit.Parse(width); } this.drpMaintainCombineKPSetting.CssClass = cssClass; this.drpMaintainCombineKPSetting.Enabled = enabled; if (enabled) { initMaintainObject(); } else { this.drpMaintainCombineKPSetting.Items.Add(new ListItem("", "")); } } } catch (FisException ex) { showCmbErrorMessage(ex.mErrmsg); } catch (Exception ex) { showCmbErrorMessage(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { icombineKPSetting = (ICombineKPSetting)ServiceAgent.getInstance().GetMaintainObjectByName<ICombineKPSetting>(WebConstant.ICOMBINEKPSETTING); if (!this.IsPostBack) { 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(); pmtMessage12 = this.GetLocalResourceObject(Pre + "_pmtMessage12").ToString(); pmtMessage11 = this.GetLocalResourceObject(Pre + "_pmtMessage11").ToString(); //need change.. pmtMessage10 = this.GetLocalResourceObject(Pre + "_pmtMessage10").ToString(); userName = Master.userInfo.UserId; this.HiddenUserName.Value = userName; initLabel(); IList<StationCheckInfo> datalst = null; try { datalst = icombineKPSetting.GetAllCombineKPSettingItems(); } catch (FisException fe) { showErrorMessage(fe.mErrmsg); } catch (Exception ee) { showErrorMessage(ee.Message); } bindTable(datalst, DEFAULT_ROWS); this.CmbCheckType.StateOfDrp = "checktype"; this.CmbStation.StateOfDrp = "station"; this.CmbLine.StateOfDrp = "line"; } }