protected void Page_Load(object sender, EventArgs e) { try { iSelectData = ServiceAgent.getInstance().GetMaintainObjectByName<IFaKittingUpload>(WebConstant.MaintainFaKittingUploadObject); if (!this.IsPostBack) { if (isPercentage) { if (Convert.ToInt32(width) > 100) { drpMaintainFaKittingFamily.Width = Unit.Percentage(100); } else { drpMaintainFaKittingFamily.Width = Unit.Percentage(Convert.ToDouble(width)); } } else { drpMaintainFaKittingFamily.Width = Unit.Parse(width); } this.drpMaintainFaKittingFamily.CssClass = cssClass; this.drpMaintainFaKittingFamily.Enabled = enabled; if (enabled) { initMaintainFaKittingFamily(); } else { this.drpMaintainFaKittingFamily.Items.Add(new ListItem("", "")); } } } catch (FisException ex) { //showCmbErrorMessage(ex.mErrmsg); } catch (Exception ex) { //showCmbErrorMessage(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { this.cmbMaintainLightNoPdLine.InnerDropDownList.Load += new EventHandler(cmbLine_Load); this.cmbMaintainFaKittingFamily.InnerDropDownList.Load += new EventHandler(cmbFamily_Load); try { 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(); iLightNo = (ILightNo)ServiceAgent.getInstance().GetMaintainObjectByName<ILightNo>(WebConstant.MaintainLightNoObject); iFaKittingUpload = (IFaKittingUpload)ServiceAgent.getInstance().GetMaintainObjectByName<IFaKittingUpload>(WebConstant.MaintainFaKittingUploadObject); if (!this.IsPostBack) { userName = Master.userInfo.UserId; this.HiddenUserName.Value = userName; initLabel(); this.cmbMaintainLightNoPdLine.Stage = FA_STAGE; //!!! this.cmbMaintainLightNoPdLine.initMaintainLightNoPdLine(); bindTable(null, DEFAULT_ROWS); setColumnWidth(); } //ScriptManager.RegisterStartupScript(this.updatePanelAll, typeof(System.Object), "InitControl", "initControls();", true); } catch (FisException ex) { showErrorMessage(ex.mErrmsg); } catch (Exception ex) { showErrorMessage(ex.Message); } }