protected void Page_Load(object sender, EventArgs e) { log.Debug("MaintainPage PDLineStation is loading... ..."); try { pdLineStation = (IPdLineStation)ServiceAgent.getInstance().GetMaintainObjectByName<IWarranty>(WebConstant.IPdLineStation); //注册Customer下拉框的选择事件 this.cmbCustomer.InnerDropDownList.SelectedIndexChanged += new EventHandler(cmbCustomer_Selected); this.cmbStage.InnerDropDownList.SelectedIndexChanged += new EventHandler(cmbStage_Selected); this.CmbMaintainLine.InnerDropDownList.SelectedIndexChanged += new EventHandler(cmbLine_Selected); if (!this.IsPostBack) { pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString(); pmtMessage2 = this.GetLocalResourceObject(Pre + "_pmtMessage2").ToString(); 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 { iLineStation = (IPdLineStation)ServiceAgent.getInstance().GetMaintainObjectByName<IWarranty>(WebConstant.IPdLineStation); if (!this.IsPostBack) { if (isPercentage) { if (Convert.ToInt32(width) > 100) { drpMaintainLine.Width = Unit.Percentage(100); } else { drpMaintainLine.Width = Unit.Percentage(Convert.ToDouble(width)); } } else { drpMaintainLine.Width = Unit.Parse(width); } this.drpMaintainLine.CssClass = cssClass; this.drpMaintainLine.Enabled = enabled; if (enabled) { initMaintainLine(); } else { this.drpMaintainLine.Items.Add(new ListItem("", "")); } } } catch (FisException ex) { showCmbErrorMessage(ex.mErrmsg); } catch (Exception ex) { showCmbErrorMessage(ex.Message); } }