示例#1
0
        /// <summary>
        /// 轉檔前檢查日期格式
        /// </summary>
        /// <returns></returns>
        private bool StartExport()
        {
            if (!emDate.IsDate(emDate.Text, CheckDate.Start))
            {
                //is_chk = "Y";
                return(false);
            }
            //交易時段
            string oswGrp = oswGrpLookItem.EditValue.AsString();

            string chkAi2 = "";

            if (oswGrp == "1" || oswGrp == "%")
            {
                chkAi2 = PbFunc.f_chk_ai2(emDate.Text.Replace("/", ""), oswGrp, "N", oswGrpLookItem.SelectedText, 2);
            }
            else if (oswGrp == "5" || oswGrp == "%")
            {
                chkAi2 = PbFunc.f_chk_ai2(emDate.Text.Replace("/", ""), oswGrp, "N", oswGrpLookItem.SelectedText, 1);
            }

            if (chkAi2 != "")
            {
                //is_chk = "E";
                return(false);
            }

            stMsgTxt.Visible = true;


            _saveFilePath = PbFunc.wf_copy_file(_ProgramID, "40040");
            b40040        = new B40040(_saveFilePath, emDate.Text, oswGrp);

            stMsgTxt.Text = "開始轉檔...";
            this.Cursor   = Cursors.WaitCursor;
            this.Refresh();
            Thread.Sleep(5);
            return(true);
        }
示例#2
0
 public void Setup()
 {
     b40040 = new B40040(destinationFilePath, "2018/10/12", "1");
 }