Esempio n. 1
0
        public DataProcess()
        {
            this.sourceFileName = "";
            this.verifyCode     = "";
            string ws = ConfigurationManager.AppSettings["WSAddress"].ToString();

            webService = new KGMWebService.GmWebServletClient("GmWebServletImplPort", ws);
            isAdult    = true;
        }
Esempio n. 2
0
        public FrmLogin()
        {
            InitializeComponent();
            thRun = new Thread(new ThreadStart(Run));
            thRun.Start();
            myClose = false;
            string ws = ConfigurationManager.AppSettings["WSAddress"].ToString();

            webService = new KGMWebService.GmWebServletClient("GmWebServletImplPort", ws);
            LoadLogin();
        }
Esempio n. 3
0
        public FrmMain2()
        {
            InitializeComponent();
            killP();
            //copyTemp();;
            th = new TestHelper();
            Thread thRun = new Thread(new ThreadStart(Run));

            thRun.Start();
            verifyCode = "";
            latestTime = "";
            //this.txtSex.SelectedIndex = -1;
            //txtSex.Properties.Items.Add("男");
            //txtSex.Properties.Items.Add("女");
            this.txtOrder.Text = "";
            //this.txtBirthDay.Text = "";
            //this.txtBirthPlace.Text = "";
            isRunning = false;
            isAdult   = true;
            testFile  = ConfigurationManager.AppSettings["sourceAddress"];
            string ws    = ConfigurationManager.AppSettings["WSAddress"].ToString();
            string time  = ConfigurationManager.AppSettings["RunningTime"].ToString();
            int    rtime = int.Parse(time);

            webService         = new KGMWebService.GmWebServletClient("GmWebServletImplPort", ws);
            this.lblStore.Text = CurrentUser.storeName.Length > 25?CurrentUser.storeName.Substring(0, 25):CurrentUser.storeName;

            timeThread = new Thread(new ThreadStart(updateTime));
            timeThread.IsBackground = true;
            timeThread.Start();

            autoTimer           = new System.Timers.Timer();
            autoTimer.AutoReset = false;
            autoTimer.Interval  = 1000 * 60 * rtime;
            autoTimer.Elapsed  += timer_Elapsed;
            StartService();
            runBat();

            timer.Interval = 2 * 60 * 1000;
            timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_ElapsedUpload);

            timer_Elapsed(null, null);
            timer.Start();
        }