protected void Page_Load(object sender, EventArgs e) { try { if (!this.IsPostBack) { macRangeCode = Request.QueryString["MACRangeCode"]; //macRangeCode = "001"; initLabel(); iMACRange = (IMACRange)ServiceAgent.getInstance().GetMaintainObjectByName<IMACRange>(WebConstant.MaintainCommonObject); MACInfoDef info =iMACRange.GetMACInfo(macRangeCode); ShowInfo(info); } } catch (FisException ex) { showErrorMessage(ex.mErrmsg); } catch (Exception ex) { showErrorMessage(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { try { //this.cmbCustomer.InnerDropDownList.Load += new EventHandler(cmbCustomer_Load); //this.cmbCustomer.InnerDropDownList.SelectedIndexChanged += new EventHandler(cmbCustomer_SelectedChange); STATUS_CREATE_VALUE = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMacRangeStatusItemValue1"); STATUS_ACTIVE_VALUE = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMacRangeStatusItemValue2"); STATUS_CLOSED_VALUE = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMacRangeStatusItemValue3"); iMACRange = (IMACRange)ServiceAgent.getInstance().GetMaintainObjectByName<IMACRange>(WebConstant.MaintainCommonObject); 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; initLabel(); ShowMACRangeList(); } } catch (FisException ex) { showErrorMessage(ex.mErrmsg); } catch (Exception ex) { showErrorMessage(ex.Message); } }