/// <summary> /// 轉檔前檢查日期格式 /// </summary> /// <returns></returns> private bool StartExport() { if (!emDate.IsDate(emDate.Text, "日期輸入錯誤")) { //is_chk = "Y"; return(false); } _saveFilePath = PbFunc.wf_copy_file(_ProgramID, _ProgramID); b40011 = new B40011(_ProgramID, _saveFilePath, emDate.Text); stMsgTxt.Visible = true; //判斷FMIF資料已轉入 string chkFMIF = b40011.CheckFMIF(); if (chkFMIF != MessageDisplay.MSG_OK) { if (!OutputChooseMessage(chkFMIF)) { return(false); } } //130批次作業做完 string strRtn = b40011.Check130Wf(); if (strRtn != MessageDisplay.MSG_OK) { if (!OutputChooseMessage(strRtn)) { return(false); } } stMsgTxt.Text = "開始轉檔..."; this.Cursor = Cursors.WaitCursor; this.Refresh(); Thread.Sleep(5); return(true); }
public void Setup() { b40011 = new B40011("40011", destinationFilePath, "2019/05/22"); }