コード例 #1
0
        public void WF30720月報全部Test()
        {
            b30720 = new B30720(destinationFilePath, "2018/10", "2018", "rb_month", "rb_marketall");
            string msgText = b30720.WF30720();

            Assert.IsNotNull(msgText);
        }
コード例 #2
0
        protected override ResultStatus Export()
        {
            if (!StartExport())
            {
                return(ResultStatus.Fail);
            }

            string         lsFile  = PbFunc.wf_copy_file(_ProgramID, _ProgramID);
            MessageDisplay message = new MessageDisplay();

            try {
                b30720 = new B30720(lsFile, emMonth.Text, sleYear.Text, rgDate.EditValue.ToString(), rgTime.EditValue.ToString());

                ShowMsg("30720-月份交易量彙總表 轉檔中...");
                message.OutputShowMessage = b30720.WF30720();

                if (string.IsNullOrEmpty(message.OutputShowMessage))
                {
                    return(ResultStatus.Fail);
                }
            }
            catch (Exception ex) {
                if (File.Exists(lsFile))
                {
                    File.Delete(lsFile);
                }
                WriteLog(ex);
                return(ResultStatus.Fail);
            }
            finally {
                EndExport();
            }

            return(ResultStatus.Success);
        }