예제 #1
0
파일: 发料表.cs 프로젝트: fengyubox/SFIS
        private void bt_select_Click1(object sender, EventArgs e)
        {
            //this.dataGridViewX1.DataSource = this.GetWoKpnumber(this.tb_woid.Text.Trim(), this.cb_process.Text);

            if (iasynresult != null && !iasynresult.IsCompleted)
            {
                mFrm.ShowPrgMsg("正在查询...", MainParent.MsgType.Warning);
                return;
            }
            dsi         = new DelegateShowInfo(LoadInfo);
            iasynresult = dsi.BeginInvoke(this.tb_woid.Text.Trim(), this.cb_process.Text, null, null);
        }
예제 #2
0
파일: 发料表.cs 프로젝트: fengyubox/SFIS
 private void bt_select_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(this.tb_woid.Text.Trim()))
     {
         return;
     }
     if (iasynresult != null && !iasynresult.IsCompleted)
     {
         mFrm.ShowPrgMsg("正在查询...", MainParent.MsgType.Warning);
         return;
     }
     dsi         = new DelegateShowInfo(LoadInfo);
     iasynresult = dsi.BeginInvoke(this.tb_woid.Text.Trim(), this.cb_process.Text, null, null);
 }
예제 #3
0
        private void tlbtnFindMuma_Click(object sender, EventArgs e)
        {
            lstbFileList.Items.Clear();
            dlgShowScanInfo       = ShowScanInfo;
            dlgAddScanFileToList  = AddScanFileToList;
            dlgIsEnableBtn        = IsEnableBtn;
            dlgListViewItemUpdate = ListViewItemUpdate;

            string sScanFileType = tooltxtScanFileType.Text.Trim();

            if (!string.IsNullOrEmpty(sScanFileType))
            {
                aScanFileType = sScanFileType.Split(',');
            }
            else
            {
                MessageBox.Show("请设置扫描的文件类型!如 .aspx,.html");
            }

            string sNoscanfoldr = Core.Configs.ConfigsControl.Instance.NoScanFolder;

            if (!string.IsNullOrEmpty(sNoscanfoldr))
            {
                aNoScanFolder = sNoscanfoldr.Split(',');
            }


            if (thMumaFind == null)
            {
                thMumaFind = new Thread(new ThreadStart(startsearch));
            }

            if (thMumaFind.ThreadState == ThreadState.Stopped)
            {
                thMumaFind = null;
                thMumaFind = new Thread(new ThreadStart(startsearch));
            }

            if (!thMumaFind.IsAlive)
            {
                thMumaFind.Start();

                btnPause.Enabled = true;
                btnStop.Enabled  = true;
            }
        }
예제 #4
0
        public void ToSearch(string keyword, string replace)
        {
            FindKey    = keyword;
            ReplaceKey = replace;
            string sScanFileType = txtFileType.Text.Trim();

            if (!string.IsNullOrEmpty(sScanFileType))
            {
                aScanFileType = sScanFileType.Split(',');
            }
            else
            {
                MessageBox.Show("请设置扫描的文件类型!如 .aspx,.html");
            }

            lstFiles.Items.Clear();
            dlgShowScanInfo       = ShowScanInfo;
            dlgAddScanFileToList  = AddScanFileToList;
            dlgIsEnableBtn        = IsEnableBtn;
            dlgListViewItemUpdate = ListViewItemUpdate;


            if (search_thread == null)
            {
                search_thread = new Thread(new ThreadStart(startsearch));
            }

            if (search_thread.ThreadState == ThreadState.Stopped)
            {
                search_thread = null;
                search_thread = new Thread(new ThreadStart(startsearch));
            }

            if (!search_thread.IsAlive)
            {
                search_thread.Start();

                btnPause.Enabled = true;
                btnStop.Enabled  = true;
            }
        }
예제 #5
0
 private void MaterialsStorageInfo_Load(object sender, EventArgs e)
 {
     si = new DelegateShowInfo(ShowInfo);
     si.BeginInvoke(null, null);
 }