Ejemplo n.º 1
0
    //箱數計算
    protected void Btn_Count_Click(object sender, EventArgs e)
    {
        #region

        ErrorMsgLabel.Text = "";
        string CountQty = "0";
        UpdatePanel1.Update();

        if (txtPLAN_ACCEPT_DATE.Text == "")
        {
            ErrorMsgLabel.Text = "門市進貨日不可空白";
            UpdatePanel1.Update();
            return;
        }
        if (txtPICK_BATCH.Text == "")
        {
            ErrorMsgLabel.Text = "理貨批次不可空白";
            UpdatePanel1.Update();
            return;
        }

        PURModel.MaintainPurchaseDeliveryGoods BCO = new PURModel.MaintainPurchaseDeliveryGoods(ConnectionDB);

        ParameterList.Clear();
        ParameterList.Add(GetValueSetParameter(this.txtPLAN_ACCEPT_DATE.Text, "string", false));
        ParameterList.Add(GetValueSetParameter(this.txtPICK_BATCH.Text, "string", false));

        BCO.CalBoxNum(ParameterList, out CountQty);
        if (CountQty == "")
            this.txtCount.Text = "0";
        else
            this.txtCount.Text = CountQty;

        #endregion
    }