protected override ResultStatus Export() { if (!StartExport()) { return(ResultStatus.Fail); } try { MessageDisplay message = new MessageDisplay(); //轉檔 ShowMsg($"{_ProgramID}-保證金調整檢核表 轉檔中..."); message.OutputShowMessage = b40040.WfSheetOne(); ShowMsg($"{_ProgramID}-保證金調整檢核表 轉檔中..."); message.OutputShowMessage = b40040.WfSheetTwo(); ShowMsg($"{_ProgramID}_SPAN-SPAN參數檔檢核結果 轉檔中..."); message.OutputShowMessage = b40040.Wf40040SPAN(); } catch (Exception ex) { if (File.Exists(_saveFilePath)) { File.Delete(_saveFilePath); } WriteLog(ex); return(ResultStatus.Fail); } finally { EndExport(); } return(ResultStatus.Success); }
public void Wf40040_Test() { string msgText = b40040.WfSheetOne(); Assert.IsNotNull(msgText); }