Exemplo n.º 1
0
        protected override ResultStatus Export()
        {
            if (!StartExport())
            {
                return(ResultStatus.Fail);
            }
            try {
                string saveFilePath = Path.Combine(GlobalInfo.DEFAULT_REPORT_DIRECTORY_PATH, $"{_ProgramID}_ru_new_{DateTime.Now.ToString("yyyy.MM.dd")}-{DateTime.Now.ToString("HH.mm.ss")}.csv");
                b30687            = new B30687(saveFilePath, emStartDate.Text, emEndDate.Text, SleProdIDtxt.Text, rgMarket.SelectedIndex, rgTime.SelectedIndex);
                OutputShowMessage = b30687.WF30687RuNew();
                ShowMsg("30687_ru_new-RU筆數統計 轉檔中...");
            }
            catch (Exception ex) {
                WriteLog(ex);
                return(ResultStatus.Fail);
            }
            finally {
                EndExport();
            }

            return(ResultStatus.Success);
        }
Exemplo n.º 2
0
        public void WF30687RuNew全部盤別全部時段Test()
        {
            string msgText = new B30687(destinationFilePath, "2018/10/11", "2018/10/11", "", 2, 2).WF30687RuNew();

            Assert.IsNotNull(msgText);
        }