예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            iSelectData = ServiceAgent.getInstance().GetMaintainObjectByName<IPLTStandard>(WebConstant.MaintainPLTStandardObject);

            if (!this.IsPostBack)
            {
                if (isPercentage)
                {
                    if (Convert.ToInt32(width) > 100)
                    {
                        drpMaintainPalletSpec.Width = Unit.Percentage(100);
                    }
                    else
                    {
                        drpMaintainPalletSpec.Width = Unit.Percentage(Convert.ToDouble(width));
                    }
                }
                else
                {
                    drpMaintainPalletSpec.Width = Unit.Parse(width);
                }
                
                this.drpMaintainPalletSpec.CssClass = cssClass;
                this.drpMaintainPalletSpec.Enabled = enabled;

                if (enabled)
                {
                    initMaintainPalletSpec();
                }
                else
                {
                    this.drpMaintainPalletSpec.Items.Add(new ListItem("", ""));
                }
            }
        }
        catch (FisException ex)
        {
            //showCmbErrorMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            //showCmbErrorMessage(ex.Message);
        }
    }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        iPLTStandard = (IPLTStandard)ServiceAgent.getInstance().GetMaintainObjectByName<IACAdaptor>(WebConstant.MaintainPLTStandardObject);
        this.ddlPalletSpec.InnerDropDownList.SelectedIndexChanged  += new EventHandler(cmbMaintainPalletSpec_Load);
        //this.ddlPalletSpec.InnerDropDownList.AutoPostBack = true;

        if(!IsPostBack)
        {
            
            MsgSelectOne = this.GetLocalResourceObject(Pre + "_MsgSelectOne").ToString();
            MsgDelConfirm = this.GetLocalResourceObject(Pre + "_MsgDelConfirm").ToString();
            msgPalletNoSel = this.GetLocalResourceObject(Pre + "_msgPalletNoSel").ToString();
            msgLength = this.GetLocalResourceObject(Pre + "_msgLength").ToString();
            msgWidth = this.GetLocalResourceObject(Pre + "_msgWidth").ToString();
            msgHeight = this.GetLocalResourceObject(Pre + "_msgHeight").ToString();
            MsgNotFound = this.GetLocalResourceObject(Pre + "_MsgNotFound").ToString();
            userName = Master.userInfo.UserId;
            this.HiddenUserName.Value = userName;
            List<PltstandardInfo> PltstandardLst = null;
            initLabel();
            try
            {
                PltstandardLst = (List<PltstandardInfo>)iPLTStandard.GetPLTStandardList();
            }
            catch (FisException fe)
            {
                showErrorMessage(fe.mErrmsg);
                return;
            }
            catch(Exception ee)
            {
                showErrorMessage(ee.Message);
                return;
            }

            bindTable(PltstandardLst, DEFAULT_ROWS);
        }

    }