Exemple #1
0
        private void button18_Click(object sender, EventArgs e)
        {
            GHFillConfigurationAction f1 = new GHFillConfigurationAction(this.mainWebBrowser);

            f1.overrideJS();
            for (int i = 0; i < 15; i++)
            {
                this.wait(10);
                GHFillConfigurationAction f2 = new GHFillConfigurationAction(this.mainWebBrowser);
                f2.overrideJS();
                f2.deleteFirstRadio();
            }
        }
Exemple #2
0
        private void barButtonItem6_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.mainWebBrowser.Navigating += new WebBrowserNavigatingEventHandler(Browser_Navigating_DeleteHistory);
            this.mainWebBrowser.Navigate("http://www.vecc-mep.org.cn/newvip/newplan/planSearch.jsp?action=search");
            this.wait(1);
            GHFillConfigurationAction f1 = new GHFillConfigurationAction(this.mainWebBrowser);

            f1.overrideJS();
            for (int i = 0; i < 50; i++)
            {
                this.wait(8);
                GHFillConfigurationAction f2 = new GHFillConfigurationAction(this.mainWebBrowser);
                f2.overrideJS();
                f2.deleteFirstRadio();
            }
            this.mainWebBrowser.Navigating -= new WebBrowserNavigatingEventHandler(Browser_Navigating_DeleteHistory);
        }
Exemple #3
0
        //删除已有方案的按钮
        private void button17_Click(object sender, EventArgs e)
        {
            //国环填报动作
            if (Constants.declarationType == DeclarationType.declarationGH)
            {
                GHFillConfigurationAction f = new GHFillConfigurationAction(this.mainWebBrowser);
                f.tryFillGHStep1();
                f.tryFillGHStep1Submit();
                this.wait(1);

                this.mainWebBrowser.Navigate("http://www.vecc-mep.org.cn/newvip/newplan/planSearch.jsp?action=search");

                this.wait(1);

                {
                    GHFillConfigurationAction f1 = new GHFillConfigurationAction(this.mainWebBrowser);
                    f1.overrideJS();
                    for (int i = 0; i < 10; i++)
                    {
                        this.wait(10);
                        GHFillConfigurationAction f2 = new GHFillConfigurationAction(this.mainWebBrowser);
                        f2.overrideJS();
                        f2.deleteFirstRadio();
                    }
                }
            }
            //北环填报动作
            else if (Constants.declarationType == DeclarationType.declarationBH)
            {
                BHFillConfigurationAction f = new BHFillConfigurationAction(this.mainWebBrowser);

                f.step0Login();
                f.step0Submit();
                this.wait(1);

                this.mainWebBrowser.Navigate("http://58.30.229.122:8080/motor/car/car-declare-step1!input.action", "Framewindow");

                this.wait(1);



                {
                    BHFillConfigurationAction f1 = new BHFillConfigurationAction(this.mainWebBrowser);
                    f1.step1Fill();
                    f1.step1Submit();
                }

                this.wait(1);

                {
                    BHFillConfigurationAction f2 = new BHFillConfigurationAction(this.mainWebBrowser);
                    f2.step2Submit();
                }

                this.wait(1);

                {
                    BHFillConfigurationAction f3 = new BHFillConfigurationAction(this.mainWebBrowser);
                    f3.step3Fill();
                }
            }
        }