protected void Page_Load(object sender, EventArgs e) { try { runInTimeControlManager = (IRunInTimeControl)ServiceAgent.getInstance().GetMaintainObjectByName<IRunInTimeControl>(WebConstant.IRunInTimeControl); modelManager = (IModelManager)ServiceAgent.getInstance().GetMaintainObjectByName<IModelManager>(WebConstant.IModelManager); familyManager = (IFamily2)ServiceAgent.getInstance().GetMaintainObjectByName<IFamily2>(WebConstant.MaintainCommonObject); 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(); userName = Master.userInfo.UserId; this.HiddenUserName.Value = userName; if (!this.IsPostBack) { initLabel(); ShowRunInTimeControlList(); } } catch (FisException ex) { showErrorMessage(ex.mErrmsg); } catch (Exception ex) { showErrorMessage(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { try { isCustomerLoad = false; isFamilyLoad = false; this.cmbCustomer.InnerDropDownList.Load += new EventHandler(cmbCustomer_Load); this.cmbMaintainFamily.InnerDropDownList.Load += new EventHandler(cmbFamily_Load); //this.cmbCustomer.InnerDropDownList.SelectedIndexChanged += new EventHandler(cmbCustomer_SelectedChange); iQCRatio = ServiceAgent.getInstance().GetMaintainObjectByName<IQCRatio>(WebConstant.MaintainQCRatioObject); iFamily = ServiceAgent.getInstance().GetMaintainObjectByName<IFamily2>(WebConstant.MaintainCommonObject); 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(); pmtMessage10 = this.GetLocalResourceObject(Pre + "_pmtMessage10").ToString(); pmtMessage11 = this.GetLocalResourceObject(Pre + "_pmtMessage11").ToString(); pmtMessage12 = this.GetLocalResourceObject(Pre + "_pmtMessage12").ToString(); pmtMessage13 = this.GetLocalResourceObject(Pre + "_pmtMessage13").ToString(); if (!this.IsPostBack) { userName = Master.userInfo.UserId; //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); } }
//public string pmtMessage6; //public string pmtMessage7; //public string pmtMessage8; //public string pmtMessage9; //public string pmtMessage10; protected void Page_Load(object sender, EventArgs e) { try { iFamily = (IFamily2)ServiceAgent.getInstance().GetMaintainObjectByName<IFamily2>(WebConstant.MaintainCommonObject); this.cmbCustomer.InnerDropDownList.Load += new EventHandler(cmbCustomer_Load); //this.cmbCustomer.InnerDropDownList.SelectedIndexChanged += new EventHandler(cmbCustomer_SelectedChange); 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(); //pmtMessage8 = this.GetLocalResourceObject(Pre + "_pmtMessage8").ToString(); //pmtMessage9 = this.GetLocalResourceObject(Pre + "_pmtMessage9").ToString(); //pmtMessage10 = this.GetLocalResourceObject(Pre + "_pmtMessage10").ToString(); userName = Master.userInfo.UserId; //UserInfo.UserName; initLabel(); initcmb(); bindTable(null, DEFAULT_ROWS); setColumnWidth(); } } catch (FisException ex) { showErrorMessage(ex.mErrmsg); } catch (Exception ex) { showErrorMessage(ex.Message); } }