protected void Page_Load(object sender, EventArgs e) { try { // iConstValue = ServiceAgent.getInstance().GetObjectByName<IConstValue>(WebConstant.CommonObject); iConstValue = ServiceAgent.getInstance().GetMaintainObjectByName<IConstValue>(WebConstant.CommonObject); if (!this.IsPostBack) { if (isPercentage) { if (Convert.ToInt32(width) > 100) { drpStage.Width = Unit.Percentage(100); } else { drpStage.Width = Unit.Percentage(Convert.ToDouble(width)); } } else { drpStage.Width = Unit.Parse(width); } this.drpStage.CssClass = cssClass; this.drpStage.Enabled = enabled; if (enabled) { initDataByType(valueType); } else { this.drpStage.Items.Add(new ListItem("", "")); } } } catch (FisException ex) { showCmbErrorMessage(ex.mErrmsg); } catch (Exception ex) { showCmbErrorMessage(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { try { iConstValue = ServiceAgent.getInstance().GetObjectByName<IConstValue>(WebConstant.CommonObject); if (!this.IsPostBack) { // drpConstValueType.Attributes.Add("onChange", "return onModelChange()"); if (isPercentage) { if (Convert.ToInt32(width) > 100) { drpConstValueType.Width = Unit.Percentage(100); } else { drpConstValueType.Width = Unit.Percentage(Convert.ToDouble(width)); } } else { drpConstValueType.Width = Unit.Parse(width); } this.drpConstValueType.CssClass = cssClass; this.drpConstValueType.Enabled = enabled; if (enabled) { initConstValueType(station, customer, stage); } else { this.drpConstValueType.Items.Add(new ListItem("", "")); } } } catch (FisException ex) { showCmbErrorMessage(ex.mErrmsg); } catch (Exception ex) { showCmbErrorMessage(ex.Message); } }