Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {

        try
        {
            isCheckItemTypeLoad = false;
            this.cmbCheckItemTypeList.InnerDropDownList.Load += new EventHandler(cmbCheckItemTypeList_Load);
            iCheckItemTypeListMaintain = ServiceAgent.getInstance().GetMaintainObjectByName<ICheckItemTypeListMaintain>(WebConstant.CheckItemTypeListObject);
            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();
            pmtMessage10 = this.GetLocalResourceObject(Pre + "_pmtMessage10").ToString();

            if (!this.IsPostBack)
            {
                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
        {
            iCheckItemTypeListMaintain  = ServiceAgent.getInstance().GetMaintainObjectByName<ICheckItemTypeListMaintain>(WebConstant.CheckItemTypeListObject);
            if (!this.IsPostBack)
            {
                if (isPercentage)
                {
                    if (Convert.ToInt32(Width) > 100)
                    {
                        drpMaintainPdLine.Width = Unit.Percentage(100);
                    }
                    else
                    {
                        drpMaintainPdLine.Width = Unit.Percentage(Convert.ToDouble(width));
                    }
                }
                else
                {
                    drpMaintainPdLine.Width = Unit.Parse(width);
                }

                this.drpMaintainPdLine.CssClass = cssClass;
                this.drpMaintainPdLine.Enabled = enabled;

                if (enabled)
                {
                    initMaintainPdLine();
                }
                else
                {
                    this.drpMaintainPdLine.Items.Add(new ListItem("", ""));
                }
            }
        }
        catch (FisException ex)
        {
            showCmbErrorMessage(ex.mErrmsg);
        }

        catch (Exception ex)
        {
            showCmbErrorMessage(ex.Message);
        }

    }
 protected void Page_Load(object sender, EventArgs e)
 {
     string methodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
     try
     {
         iCheckItemTypeListMaintain = (ICheckItemTypeListMaintain)ServiceAgent.getInstance().GetMaintainObjectByName<ICheckItemTypeListMaintain>(WebConstant.CheckItemTypeListObject);
         initCmbTestObject();
         initCmbTestCondition();
     }
     catch (FisException ex)
     {
         showErrorMessage(ex.mErrmsg);
     }
     catch (Exception ex)
     {
         showErrorMessage(ex.Message);
     }
 }