コード例 #1
0
ファイル: AssignModelMgr.aspx.cs プロジェクト: wra222/testgit
    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();

			this.cmbCustomer.InnerDropDownList.SelectedIndexChanged += new EventHandler(cmbCustomer_Selected);
            this.cmbFamily.InnerDropDownList.SelectedIndexChanged += new EventHandler(cmbFamily_Selected);

            iAssignModelMgr = (IAssignModelMgr)ServiceAgent.getInstance().GetMaintainObjectByName<IAssignModelMgr>(WebConstant.MaintainAssignModelMgrObject);
            if (!this.IsPostBack)
            {
                userName = Master.userInfo.UserId;
                this.HiddenUserName.Value = userName;
                initLabel();
                today ="";
                bindTable(null, DEFAULT_ROWS);
                setColumnWidth();

            }
        }
        catch (FisException ex)
        {
            showErrorMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            showErrorMessage(ex.Message);
        }
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
			pmtMsgOk = this.GetLocalResourceObject(Pre + "_pmtMsgOk").ToString();
			
            iAssignModelMgr = (IAssignModelMgr)ServiceAgent.getInstance().GetMaintainObjectByName<IAssignModelMgr>(WebConstant.MaintainAssignModelMgrObject);
            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();
                initLabel();
                userName = Request.QueryString["userName"];
                userName = StringUtil.decode_URL(userName);
                this.HiddenUserName.Value = userName;
            }
            pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString();
            this.hidMsg1.Value = pmtMessage1;
 
        }
        catch (FisException ex)
        {
            showErrorMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            showErrorMessage(ex.Message);
        }
    }