protected override ResultStatus Export() { if (!StartExport()) { return(ResultStatus.Fail); } string lsFile = PbFunc.wf_copy_file(_ProgramID, "30560"); MessageDisplay message = new MessageDisplay(); try { b30560 = new B30560(lsFile, emMonth.Text); ShowMsg("30561-國內股票選擇權及黃金選擇權交易概況表 轉檔中..."); message.OutputShowMessage = b30560.Wf30561(); if (string.IsNullOrEmpty(message.OutputShowMessage)) { if (File.Exists(lsFile)) { File.Delete(lsFile); } return(ResultStatus.Fail); } } catch (Exception ex) { if (File.Exists(lsFile)) { File.Delete(lsFile); } WriteLog(ex); return(ResultStatus.Fail); } finally { EndExport(); } return(ResultStatus.Success); }
public void Setup() { b30560 = new B30560(destinationFilePath, "2018/10"); }