Beispiel #1
0
        protected override ResultStatus Export()
        {
            if (!StartExport())
            {
                return(ResultStatus.Fail);
            }
            string         saveFilePath = PbFunc.wf_copy_file(_ProgramID, "30506");
            MessageDisplay message      = new MessageDisplay();

            try {
                //轉報表
                b30506 = new B30506(GlobalInfo.DEFAULT_REPORT_DIRECTORY_PATH, saveFilePath, emStartMth.Text, emEndMth.Text);
                ShowMsg("30506-股票期貨最近月份契約最佳1檔加權平均委託買、賣數量月資料統計表 轉檔中...");
                message.OutputShowMessage = b30506.WF30506();
                ShowMsg("30507-股票期貨最近月份契約最佳1檔加權平均委託買進數量日資料統計表(單位:口) 轉檔中...");
                message.OutputShowMessage = b30506.WF30507();

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

            return(ResultStatus.Success);
        }
Beispiel #2
0
 public void Setup()
 {
     b30506 = new B30506(reportDirectoryPath, destinationFilePath, "2018/08", "2018/10");
 }