protected override ResultStatus Export()
        {
            if (!StartExport())
            {
                File.Delete(_saveFilePath);
                return(ResultStatus.Fail);
            }
            try {
                MessageDisplay message = new MessageDisplay();
                //Sheet : rpt_future
                ShowMsg($"{_ProgramID}_1-保證金狀況表 轉檔中...");
                message.OutputShowMessage = b40011.WfFutureSheet();
                //Sheet : rpt_option
                ShowMsg($"{_ProgramID}_2-保證金狀況表 轉檔中...");
                message.OutputShowMessage = b40011.WfOptionSheet();
                //Sheet : fut_3index
                ShowMsg("40011_stat-保證金狀況表 轉檔中...");
                message.OutputShowMessage = b40011.WfStat("F", "fut_3index");
                //Sheet : opt_3index
                ShowMsg("40011_stat-保證金狀況表 轉檔中...");
                message.OutputShowMessage = b40011.WfStat("O", "opt_3index");
            }
            catch (Exception ex) {
                if (File.Exists(_saveFilePath))
                {
                    File.Delete(_saveFilePath);
                }
                WriteLog(ex);
                return(ResultStatus.Fail);
            }
            finally {
                EndExport();
            }

            return(ResultStatus.Success);
        }
Exemple #2
0
        public void WfStatFTest()
        {
            string msgText = b40011.WfStat("F", "fut_3index");

            Assert.IsNotNull(msgText);
        }