Esempio n. 1
0
 public fmReqList(String[] args)
 {
     log = new fmLog();
     this.AddOwnedForm(log);
     InitializeComponent();
     if (args.Length >= 2) {
         mClientId = args[0];
         mWebClient.UploadStringCompleted += new UploadStringCompletedEventHandler(RecUploadDone);
         mWebClient.Encoding = System.Text.Encoding.UTF8;
         base_url = args[1] + "uploadrec?client_id=" + mClientId;
     }
     if(NewShuiKongInterface.init() != 0) MessageBox.Show("税控脚本初始化失败 " + NewShuiKongInterface.getLastError());
     /*ShuiKongFactory.init();
     if (ShuiKongFactory.DetectShuiKong() == true) {
         this.lbskStatus.Text = "税控状态:连接中";
     }*/
 }
Esempio n. 2
0
 private void fmReqList_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F12)
     {
         if (log.IsDisposed)
         {
             log = new fmLog();
         }
         log.Show();
     }
     if (e.KeyCode == Keys.F11)
     {
         Process process = new Process();
         process.StartInfo.FileName = "notepad.exe";
         process.Start();
     }
 }
Esempio n. 3
0
        public fmReqList(String[] args)
        {
            log = new fmLog();
            this.AddOwnedForm(log);
            InitializeComponent();
            if (args.Length >= 2)
            {
                mClientId = args[0];
                mWebClient.UploadStringCompleted += new UploadStringCompletedEventHandler(RecUploadDone);
                mWebClient.Encoding = System.Text.Encoding.UTF8;
                base_url            = args[1] + "uploadrec?client_id=" + mClientId;
            }
            if (NewShuiKongInterface.init() != 0)
            {
                MessageBox.Show("税控脚本初始化失败 " + NewShuiKongInterface.getLastError());
            }

            /*ShuiKongFactory.init();
             * if (ShuiKongFactory.DetectShuiKong() == true) {
             *  this.lbskStatus.Text = "税控状态:连接中";
             * }*/
        }
Esempio n. 4
0
 private void fmReqList_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F12) {
         if (log.IsDisposed) { log = new fmLog(); }
         log.Show();
     }
     if (e.KeyCode == Keys.F11) {
         Process process = new Process();
         process.StartInfo.FileName = "notepad.exe";
         process.Start();
     }
 }