protected override ResultStatus Export() { if (!StartExport()) { return(ResultStatus.Fail); } string lsFile = PbFunc.wf_copy_file(_ProgramID, "30550"); MessageDisplay message = new MessageDisplay(); try { b30550 = new B30550(lsFile, emMonth.Text); //30550 ShowMsg("30550-國內股價指數選擇權交易概況明細表 轉檔中..."); message.OutputShowMessage = b30550.Wf30550(); 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() { b30550 = new B30550(destinationFilePath, "2018/10"); }