Exemplo n.º 1
0
    public void GetPageDefault()
    {
        try
        {
            IVMModel.MaintainPickData DBO = new IVMModel.MaintainPickData(ConntionDB);
            SLP_RootNo.Text = DBO.GetRootNoDefault();

            string BLocateSec = "";
            //取得下架儲位預設值

            BLocateSec = DBO.GetDefaultLocateSecByUse("D");
            this.SLP_BLocateSec.Text = BLocateSec;
            TextBox txtBLocateNo = (TextBox)this.SLP_BLocateSec.FindControl("TextBoxCode");
            txtBLocateNo.Enabled = false;
            TextBox txtBLocateSec = (TextBox)this.SLP_BLocateSec.FindControl("TextBoxCode2");
            txtBLocateSec.Enabled = false;

            //上架儲區預設[儲區]與[下架儲位]的[儲區]預設值相同
            //預設[儲格] = 01A11
            //可改
            if (SLP_ELocateSec.Text == "")
            {
                this.SLP_ELocateSec.Text = BLocateSec.Substring(0, 1) + "01A11";
            }

            hid_ESec.Value = SLP_ELocateSec.Text;

        }
        catch (Exception ex)
        {
            ErrorMsgLabel.Text = ex.Message;
        }
    }