private void UpdateAnalysisResult_today()
        {
            this.tabControl1.SelectedTab = this.tabPage12;

            //修正完场数据入库后不能修正错误的问题 2011.6.14

            UpdateAnalysisResult u = new UpdateAnalysisResult();

            int pb = u.ExecUpateCount;
            //MessageBox.Show(pb.ToString());
            toolStripLabel2.Text = pb.ToString(); Thread.Sleep(1);
            toolStripProgressBar1.Maximum = pb;
            u.ExecUpdate();

            //MessageBox.Show("OK");
            toolStripLabel2.Text = "UpdateAnalysisResult...OK"; Thread.Sleep(1);
        }
 private void toolStripButton_todayEvaluate_Click(object sender, EventArgs e)
 {
     UpdateAnalysisResult u = new UpdateAnalysisResult();
     int pb = u.ExecUpateCount;
     MessageBox.Show(pb.ToString());
     toolStripProgressBar1.Maximum = pb;
     u.ExecUpdate();
 }
        private void button25_Click_1(object sender, EventArgs eeee)
        {

            int overday = -370;

            //try
            //{
            MessageBox.Show(overday.ToString());
            AuditForecastAlgorithm f = new AuditForecastAlgorithm(overday);
            int pb = f.idExc.Count();
            MessageBox.Show(pb.ToString());
            if (pb != 0)
            {
                //dMatch.dNew = false;
                //dMatch.LoadMatchData(true);

                toolStripProgressBar1.Maximum = pb;
                f.top20Algorithm();
            }
            //}
            //catch (Exception ex)
            //{
            //    MessageBox.Show(ex.ToString());
            //}

            GC.Collect(); GC.Collect(); Application.DoEvents();
            MessageBox.Show("OK");


            try
            {
                UpdateAnalysisResult u = new UpdateAnalysisResult();

                //int
                pb = u.ExecUpateCount;
                MessageBox.Show(pb.ToString());
                toolStripProgressBar1.Maximum = pb;
                u.ExecUpdate();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            MessageBox.Show("OK");

        }