Пример #1
0
        private void btnZtBeginUnInput_Click(object sender, EventArgs e)
        {
            this.txtZtInputData.Text = "";
            this.AllowZtInput        = true;
            Zt598Importer.ZT_EPP_OpenKeyVoic(3);
            ThreadExecutor thread = new ThreadExecutor(ZtUnEncryptInput);

            thread.BeginInvoke(null, null);
        }
Пример #2
0
        private void btnCashCodeIdentify_Click(object sender, EventArgs e)
        {
            StringBuilder msg    = new StringBuilder();
            int           result = CashCodeImporter.StartIdentifyV2("", "", this.GetCashCodeSetting(), msg);

            this.lbCashCodeHint.Text = "准备投币返回code:" + result + "返回msg:" + msg;
            this.AllowAcceptMoney    = true;
            ThreadExecutor thread = new ThreadExecutor(IdentifyMoney);

            thread.BeginInvoke(null, null);

            //Thread thread = new Thread();
            // thread.IsBackground = true;
            // thread.Start();
        }
Пример #3
0
        private void btnZtInputUserPwd_Click(object sender, EventArgs e)
        {
            this.SetParam();
            this.txtZtUserPwd.Text = "";

            this.AllowZtInput = true;

            pwdLen    = Convert.ToInt32(this.txtZtEncryptLength.Text);
            pwdNowLen = 0;
            ztPinMode = this.rbZtFrontEncrypt.Checked ? 1 : 0;
            if (ztPinMode == 1)
            {
                Zt598Importer.ZT_EPP_PinLoadCardNo(this.txtZtEncryptPan.Text);
                Zt598Importer.ZT_EPP_ActivWorkPin(this.ztMainId, this.ztWorkId);
            }
            Zt598Importer.ZT_EPP_OpenKeyVoic(2);
            Zt598Importer.ZT_EPP_PinStartAdd(Convert.ToInt32(this.txtZtEncryptLength.Text), 1, ztPinMode, 0, this.ztTimeout);
            ThreadExecutor thread = new ThreadExecutor(ZtPwdEncryptInput);

            thread.BeginInvoke(null, null);
        }
Пример #4
0
        private void btnZtInputUserPwd_Click(object sender, EventArgs e)
        {
            this.SetParam();
            this.txtZtUserPwd.Text = "";

            this.AllowZtInput = true;

               pwdLen= Convert.ToInt32(this.txtZtEncryptLength.Text);
               pwdNowLen = 0;
               ztPinMode = this.rbZtFrontEncrypt.Checked ? 1 : 0;
               if (ztPinMode == 1)
               {
               Zt598Importer.ZT_EPP_PinLoadCardNo(this.txtZtEncryptPan.Text);
               Zt598Importer.ZT_EPP_ActivWorkPin(this.ztMainId,this.ztWorkId);
               }
            Zt598Importer.ZT_EPP_OpenKeyVoic(2);
            Zt598Importer.ZT_EPP_PinStartAdd(Convert.ToInt32(this.txtZtEncryptLength.Text), 1, ztPinMode, 0, this.ztTimeout);
            ThreadExecutor thread = new ThreadExecutor(ZtPwdEncryptInput);
            thread.BeginInvoke(null, null);
        }
Пример #5
0
 private void btnZtBeginUnInput_Click(object sender, EventArgs e)
 {
     this.txtZtInputData.Text = "";
     this.AllowZtInput=true;
     Zt598Importer.ZT_EPP_OpenKeyVoic(3);
      ThreadExecutor thread = new ThreadExecutor(ZtUnEncryptInput);
      thread.BeginInvoke(null, null);
 }
Пример #6
0
        private void btnCashCodeIdentify_Click(object sender, EventArgs e)
        {
            StringBuilder msg = new StringBuilder();
             int result=CashCodeImporter.StartIdentifyV2("", "", this.GetCashCodeSetting(), msg);
             this.lbCashCodeHint.Text = "准备投币返回code:" + result + "返回msg:" + msg;
             this.AllowAcceptMoney = true;
             ThreadExecutor thread = new ThreadExecutor(IdentifyMoney);
             thread.BeginInvoke(null, null);

             //Thread thread = new Thread();
            // thread.IsBackground = true;
            // thread.Start();
        }