Esempio n. 1
0
        //3C填报确认按钮
        private void button14_Click(object sender, EventArgs e)
        {
            CQCFillConfigurationAction f = new CQCFillConfigurationAction(this.mainWebBrowser);

            //f.tryFill3CStep1PressButton();
            //f.tryFill3CStep2Fill();
            //foreach (HtmlWindow hw in this.mainWebBrowser.Document.Window.Frames) {
            //    this.textBox8.AppendText(getNowMessage(hw.Name));
            //}
            //HtmlWindow hw = this.mainWebBrowser.Document.Window.Frames["mainFrame"];
            //foreach (HtmlElement he in hw.Document.All) {
            //    this.textBox8.AppendText(getNowMessage(he.Id + "   " + he.Name + "   " + he.GetAttribute("value")));
            //}
            f.tryFill3CStep1Fill();
            f.tryFill3CStep1Submit();
            //点击总则按钮
            this.timer1.Interval = Constants.TIMER_INTERVAL * 1000;
            this.timer1.Tick    += new EventHandler(timer1_Tick_3CForStep2PressButton);
            this.timer1.Start();
            while (this.timer1.Enabled)
            {
                Application.DoEvents();
            }
            //填报信息
            this.timer1.Tick += new EventHandler(timer1_Tick_3CForStep2Fill);
            this.timer1.Start();
            while (this.timer1.Enabled)
            {
                Application.DoEvents();
            }
        }
Esempio n. 2
0
 //3C点击总则按钮
 private void timer1_Tick_3CForStep2Fill(object sender, EventArgs e)
 {
     if (this.mainWebBrowser.ReadyState == WebBrowserReadyState.Complete)
     {
         CQCFillConfigurationAction f = new CQCFillConfigurationAction(this.mainWebBrowser);
         f.tryFill3CStep2Fill();
         while (this.mainWebBrowser.ReadyState != WebBrowserReadyState.Complete)
         {
             Application.DoEvents();
         }
     }
     this.timer1.Tick -= this.timer1_Tick_3CForStep2Fill;
     this.timer1.Stop();
 }