コード例 #1
0
ファイル: VAM161.aspx.cs プロジェクト: ChiangHanLung/PIC_VDS
    protected void SetUnMonthClose()
    {
        try
        {
            //【停止往來帳款解除】N_MONTH_CLOSE_STATUS  = 2
            //【追溯帳款解除】 N_MONTH_CLOSE_STATUS  = 3                             

            this.btnSet.Enabled = false;
            this.btnUnSet.Enabled = false;

            BCO.VAM16_BCO bco = new BCO.VAM16_BCO(ConntionDB);
            
            int N_MONTH_CLOSE_STATUS;

            if (this.rdoCntType1.Checked)
                N_MONTH_CLOSE_STATUS = 2;
            else
                N_MONTH_CLOSE_STATUS = 3;

            string strYM_S = this.SLP_YearMonth_S.Text.Trim();
            string strYM_E = this.SLP_YearMonth_E.Text.Trim();

            bco.UnCloseSpecialSKU(strYM_S, strYM_E, N_MONTH_CLOSE_STATUS);

            ErrorMsgLabel.Text = "月結解除完成";

        }
        catch (Exception ex)
        {
            ErrorMsgLabel.Text = ex.Message;
        }
        finally
        {
            this.btnSet.Enabled = true;
            this.btnUnSet.Enabled = true;
        }
    }
コード例 #2
0
ファイル: VAM161.aspx.cs プロジェクト: ChiangHanLung/PIC_VDS
    protected void SetMonthClose()
    {
        try
        {
            this.btnSet.Enabled = false;
            this.btnUnSet.Enabled = false;
            BCO.VAM16_BCO bco = new BCO.VAM16_BCO(ConntionDB);
            string V_MSG, V_STATUS_CREATEUID;
            DateTime D_STATUS_CREATEDATE;
            if (this.rdoCntType1.Checked)
            {
                ErrorMsgLabel.Text = "【停止往來帳款】暫不處理";
            }
            else
            {
                string strYM_S = this.SLP_YearMonth_S.Text.Trim();
                string strYM_E = this.SLP_YearMonth_E.Text.Trim();
                string strYM_T = this.SLP_YearMonth_T.Text.Trim();

                bco.TraceAllCloseMonthSKU(strYM_S, strYM_E, strYM_T, Session["UID"].ToString(), out V_MSG, out V_STATUS_CREATEUID, out D_STATUS_CREATEDATE);

                if (V_MSG != "")
                    ErrorMsgLabel.Text = V_MSG + ",結帳人員:" + V_STATUS_CREATEUID + ",結帳時間:" + D_STATUS_CREATEDATE.ToString() + "。";
                else
                    ErrorMsgLabel.Text = "交易結轉完成";
            }


        }
        catch (Exception ex)
        {
            ErrorMsgLabel.Text = ex.Message;
        }
        finally
        {
            this.btnSet.Enabled = true;
            this.btnUnSet.Enabled = true;
        }
    }