コード例 #1
0
        /// <summary>
        /// 傳入參數 : @月結月份, @月結功能代號
        /// 
        /// 呼叫:CheckPSSCloseYN.CheckPSSCloseYN判斷此月份之進銷存(PSS01)資料是否月結
        /// IF FLAG=Y THEN
        ///      呼叫:           RecordingCloseLockInfo.RecordingByClose
        /// ELSE
        ///      回傳訊息:「(執行字軌月結作業前需先執行同年月之進銷存月結)」
        /// End IF
        /// </summary>
        public ArrayList InvoiceByClose(ArrayList ParameterList,
                                         DbTransaction RootDBT,
                                         string ConntionDB
                                        )
        {
            try
            {
                string strResult = string.Empty;
                string strMsg = string.Empty;
                ArrayList ary = new ArrayList();

                ParameterList1.Clear();
                ParameterList1.Add(ParameterList[1].ToString());

                PSSModel.MaintainCheckPSSCloseYN BCO = new PSSModel.MaintainCheckPSSCloseYN(ConntionDB);
                BCO.CheckPSSCloseYN(ParameterList1, out strResult, out strMsg);

                //進銷存 0:已月結 1:未月結
                if (strResult == "1")
                {
                    strMsg = "進銷存尚未月結!";
                    ary.Add(strResult);
                    ary.Add(strMsg);
                }
                else
                {
                    ary = RecordingByClose(ParameterList, null, ConntionDB);
                }

                return ary;

            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #2
0
ファイル: PSS011.aspx.cs プロジェクト: ChiangHanLung/PIC_VDS
    private void ChkCloseYN(string sYN, out string sResult, out string sErrorMsg)
    {
        try
        {

            this.ErrorMsgLabel.Text = "";
            #region 傳入參數

            ParameterList.Clear();
            ParameterList.Add(sYN);
            #endregion

            #region 取得資料

            DataTable dt_Return = new DataTable();

            BCO.MaintainCheckPSSCloseYN bco = new BCO.MaintainCheckPSSCloseYN(ConntionDB);
            string outResult = "", outErrorMsg = "";
            bco.CheckPSSCloseYN(ParameterList, out outResult, out outErrorMsg);
            sResult = outResult;
            sErrorMsg = outErrorMsg;
            #endregion


        }
        catch (Exception ex)
        {
            this.ErrorMsgLabel.Text = ex.ToString();
            sResult = "";
            sErrorMsg = "";
        }

    }