protected void Page_Load(object sender, EventArgs e) { try { //!!!检查文件类型 xls iLightNo = (ILightNo)ServiceAgent.getInstance().GetMaintainObjectByName<ILightNo>(WebConstant.MaintainLightNoObject); //KittingTypeFAKitting = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMaintainLightNoKittingTypeValue1"); //KittingTypePAKKitting = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMaintainLightNoKittingTypeValue2"); //KittingTypeFALabel = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMaintainLightNoKittingTypeValue3"); //KittingTypePAKLabel = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMaintainLightNoKittingTypeValue4"); 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(); if (!this.IsPostBack) { System.Configuration.Configuration config = WebConfigurationManager.OpenWebConfiguration("~"); HttpRuntimeSection section = (HttpRuntimeSection)config.GetSection("system.web/httpRuntime"); double maxFileSize = Math.Round(section.MaxRequestLength / 1024.0, 1); this.hidFileMaxSize.Value = maxFileSize.ToString(); this.Title = this.GetLocalResourceObject(Pre + "_title").ToString(); userName = Request.QueryString["userName"]; userName = StringUtil.decode_URL(userName); this.HiddenUserName.Value = userName; lineValue = Null2String(Request.QueryString["line"]); lineValue = StringUtil.decode_URL(lineValue); initLabel(); //InitComboxData(kittingTypeValue); } pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString(); this.hidMsg1.Value = pmtMessage1; } catch (FisException ex) { showErrorMessage(ex.mErrmsg); } catch (Exception ex) { showErrorMessage(ex.Message); } }
protected void Page_Load(object sender, EventArgs e) { try { iSelectData = ServiceAgent.getInstance().GetMaintainObjectByName<ILightNo>(WebConstant.MaintainLightNoObject); if (!this.IsPostBack) { if (isPercentage) { if (Convert.ToInt32(width) > 100) { drpMaintainLightNoPartType.Width = Unit.Percentage(100); } else { drpMaintainLightNoPartType.Width = Unit.Percentage(Convert.ToDouble(width)); } } else { drpMaintainLightNoPartType.Width = Unit.Parse(width); } this.drpMaintainLightNoPartType.CssClass = cssClass; this.drpMaintainLightNoPartType.Enabled = enabled; if (enabled) { initMaintainLightNoPartType(); } else { this.drpMaintainLightNoPartType.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); 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); iPakKittingUpload = (IPakKittingUpload)ServiceAgent.getInstance().GetMaintainObjectByName<IPakKittingUpload>(WebConstant.MaintainPakKittingUploadObject); if (!this.IsPostBack) { userName = Master.userInfo.UserId; this.HiddenUserName.Value = userName; initLabel(); this.cmbMaintainLightNoPdLine.Stage = PAK_STAGE; //!!! this.cmbMaintainLightNoPdLine.initMaintainLightNoPdLine(); bindTable(null, DEFAULT_ROWS); bindTable2(null, DEFAULT_ROWS2); setColumnWidth(); } 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 { 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(); KittingTypeFAKitting = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMaintainLightNoKittingTypeValue1"); KittingTypePAKKitting = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMaintainLightNoKittingTypeValue2"); KittingTypeFALabel = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMaintainLightNoKittingTypeValue3"); KittingTypePAKLabel = Resources.ComboxFixValues.ResourceManager.GetString(Pre + "_CmbMaintainLightNoKittingTypeValue4"); iLightNo = (ILightNo)ServiceAgent.getInstance().GetMaintainObjectByName<ILightNo>(WebConstant.MaintainLightNoObject); this.cmbMaintainLightNoKittingType.InnerDropDownList.Load += new EventHandler(cmbMaintainLightNoKittingType_Load); if (!this.IsPostBack) { userName = Master.userInfo.UserId; this.HiddenUserName.Value = userName; initLabel(); bindTable1(null, DEFAULT_ROWS1); bindTable2(null, DEFAULT_ROWS2); } ScriptManager.RegisterStartupScript(this.updatePanelAll, typeof(System.Object), "InitControl", "initControls();", true); } catch (FisException ex) { showErrorMessage(ex.mErrmsg); } catch (Exception ex) { showErrorMessage(ex.Message); } }