Esempio n. 1
0
        /*
         * 余额查询交易
         */
        private void do_check_balance()
        {
            trans.init();
            trans.Action = "check_balance";
            InputForm iForm = new InputForm();

            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled == true)
            {
                return;
            }

            iForm.InputType = "password";
            iForm.ShowDialog();
            if (trans.Is_Canceled == true)
            {
                return;
            }

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            //String dataPackage = MainForm.trans.Build_Trans_String();
            MainForm.send_trans(MainForm.trans);
        }
Esempio n. 2
0
        /*
         * 积分充值(积分累计)交易
         */
        private void do_points_deposit()
        {
            MainForm.trans.init();
            MainForm.trans.Action = "points_deposit";
            InputForm iForm = new InputForm();
            iForm.InputType = "card"; //刷卡
            iForm.ShowDialog();
            if (MainForm.trans.Is_Canceled) return;

            iForm.InputType = "point"; //输入充值积分
            iForm.ShowDialog();
            if (MainForm.trans.Is_Canceled) return;

            //iForm.InputType = "master"; //输入主管密码
            //iForm.ShowDialog();
            //if (MainForm.trans.Is_Canceled) return;

            iForm.InputType = "password"; //持卡人输入密码
            iForm.ShowDialog();
            if(MainForm.trans.Is_Canceled) return;

            //String dataPackage = MainForm.trans.Build_Trans_String();

            MainForm.trans.Batch_No = Utils.getBatchNum();
            MainForm.trans.Trace_No = Utils.getTraceNum();

            MainForm .send_trans (MainForm.trans);
        }
Esempio n. 3
0
        /*
         * 消费交易
         */
        private void do_payment()
        {
            //this.do_reversal(1);
            trans.init();
            trans.Action = "payment";

            InputForm iForm = new InputForm();//刷卡

            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "amount"; //输入交易金额
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "password"; //输入交易密码
            iForm.ShowDialog();

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            if (trans.Is_Canceled)
            {
                return;
            }

            send_trans(trans); //打包并上送交易
        }
Esempio n. 4
0
        /*
         * 卡改有效期交易
         */
        private void do_change_overdue_date()
        {
            trans.init();
            trans.Action = "change_overdue_date";

            InputForm iForm = new InputForm(); //刷卡

            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "date"; //输入新的有效期
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "password"; //输入持卡人密码
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            send_trans(trans); //打包并上送交易
        }
Esempio n. 5
0
        /*
         * 卡启用(激活)交易
         */
        private void do_new_card()
        {
            trans.init();
            trans.Action = "new_card";

            InputForm iForm = new InputForm(); //刷卡

            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "password"; //输入卡密码
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            send_trans(trans); //打包并上送交易
        }
Esempio n. 6
0
        /*
         * 卡改密交易
         */
        private void do_change_password()
        {
            trans.init();
            trans.Action = "change_password";

            InputForm iForm = new InputForm(); //刷卡

            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            //iForm.InputType = "masterPassword"; //输入主管密码
            //iForm.ShowDialog();
            //if (trans.Is_Canceled) return;

            iForm.InputType = "password"; //输入旧密码
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "newpassword"; //输入新密码
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "repassword"; //再输入一遍新密码
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            if (newPasswrod != rePasswrod)
            {
                MessageBox.Show("两次输入密码不一致");
                return;
            }
            trans.NewPassword   = newPasswrod;
            trans.ReNewPassword = rePasswrod;

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            send_trans(trans); //打包并上送交易
        }
Esempio n. 7
0
        /*
         * 撤销交易
         */
        private void do_cancel_payment()
        {
            MainForm.trans.init();
            MainForm.trans.Action = "cancel_trans";

            InputForm iForm = new InputForm();

            iForm.InputType = "batch_no"; // 输入批次号
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "trace_no"; // 输入流水号
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "card";
            iForm.ShowDialog(); // 输入卡号
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "password"; // 持卡人输入密码
            iForm.ShowDialog();

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            if (trans.Is_Canceled)
            {
                return;
            }

            send_trans(trans); //打包并上送交易
        }
Esempio n. 8
0
        /*
         * 积分充值(积分累计)交易
         */
        private void do_points_deposit()
        {
            MainForm.trans.init();
            MainForm.trans.Action = "points_deposit";
            InputForm iForm = new InputForm();

            iForm.InputType = "card"; //刷卡
            iForm.ShowDialog();
            if (MainForm.trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "point"; //输入充值积分
            iForm.ShowDialog();
            if (MainForm.trans.Is_Canceled)
            {
                return;
            }

            //iForm.InputType = "master"; //输入主管密码
            //iForm.ShowDialog();
            //if (MainForm.trans.Is_Canceled) return;

            iForm.InputType = "password"; //持卡人输入密码
            iForm.ShowDialog();
            if (MainForm.trans.Is_Canceled)
            {
                return;
            }

            //String dataPackage = MainForm.trans.Build_Trans_String();

            MainForm.trans.Batch_No = Utils.getBatchNum();
            MainForm.trans.Trace_No = Utils.getTraceNum();

            MainForm.send_trans(MainForm.trans);
        }
Esempio n. 9
0
        /*
         * 充值交易
         */
        private void do_deposit()
        {
            trans.init();
            trans.Action = "deposit";

            InputForm iForm = new InputForm(); //刷卡

            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            iForm.InputType = "amount"; //输入充值金额
            iForm.ShowDialog();
            if (trans.Is_Canceled)
            {
                return;
            }

            //iForm.InputType = "masterPassword"; //输入主管密码
            //iForm.ShowDialog();
            //if (trans.Is_Canceled) return;

            iForm.InputType = "password"; //输入持卡人密码
            iForm.ShowDialog();

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            if (trans.Is_Canceled)
            {
                return;
            }

            send_trans(trans); //打包并上送交易
        }
Esempio n. 10
0
        /*
         * 消费交易
         */
        private void do_payment()
        {
            //this.do_reversal(1);
            trans.init();
            trans.Action = "payment";

            InputForm iForm = new InputForm();//刷卡
            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            iForm.InputType = "amount"; //输入交易金额
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            iForm.InputType = "password"; //输入交易密码
            iForm.ShowDialog();

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            if (trans.Is_Canceled) return;

            send_trans(trans); //打包并上送交易
        }
Esempio n. 11
0
        /*
         * 卡启用(激活)交易
         */
        private void do_new_card()
        {
            trans.init();
            trans.Action = "new_card";

            InputForm iForm = new InputForm(); //刷卡
            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            iForm.InputType = "password"; //输入卡密码
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            send_trans(trans); //打包并上送交易
        }
Esempio n. 12
0
        /*
         * 充值交易
         */
        private void do_deposit()
        {
            trans.init();
            trans.Action = "deposit";

            InputForm iForm = new InputForm(); //刷卡
            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            iForm.InputType = "amount"; //输入充值金额
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            //iForm.InputType = "masterPassword"; //输入主管密码
            //iForm.ShowDialog();
            //if (trans.Is_Canceled) return;

            iForm.InputType = "password"; //输入持卡人密码
            iForm.ShowDialog();

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            if (trans.Is_Canceled) return;

            send_trans(trans); //打包并上送交易
        }
Esempio n. 13
0
        /*
         * 余额查询交易
         */
        private void do_check_balance()
        {
            trans.init();
            trans.Action = "check_balance";
            InputForm iForm = new InputForm();
            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled == true) return;

            iForm.InputType = "password";
            iForm.ShowDialog();
            if (trans.Is_Canceled == true) return;

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            //String dataPackage = MainForm.trans.Build_Trans_String();
            MainForm.send_trans(MainForm.trans);
        }
Esempio n. 14
0
        /*
         * 卡改密交易
         */
        private void do_change_password()
        {
            trans.init();
            trans.Action = "change_password";

            InputForm iForm = new InputForm(); //刷卡
            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            //iForm.InputType = "masterPassword"; //输入主管密码
            //iForm.ShowDialog();
            //if (trans.Is_Canceled) return;

            iForm.InputType = "password"; //输入旧密码
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            iForm.InputType = "newpassword"; //输入新密码
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            iForm.InputType = "repassword"; //再输入一遍新密码
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            if (newPasswrod != rePasswrod)
            {
                MessageBox.Show("两次输入密码不一致");
                return;
            }
            trans.NewPassword = newPasswrod;
            trans.ReNewPassword = rePasswrod;

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            send_trans(trans); //打包并上送交易
        }
Esempio n. 15
0
        /*
         * 卡改有效期交易
         */
        private void do_change_overdue_date()
        {
            trans.init();
            trans.Action = "change_overdue_date";

            InputForm iForm = new InputForm(); //刷卡
            iForm.InputType = "card";
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            iForm.InputType = "date"; //输入新的有效期
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            iForm.InputType = "password"; //输入持卡人密码
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            send_trans(trans); //打包并上送交易
        }
Esempio n. 16
0
        /*
         * 撤销交易
         */
        private void do_cancel_payment()
        {
            MainForm.trans.init();
            MainForm.trans.Action = "cancel_trans";

            InputForm iForm = new InputForm();

            iForm.InputType = "batch_no"; // 输入批次号
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            iForm.InputType = "trace_no"; // 输入流水号
            iForm.ShowDialog();
            if (trans.Is_Canceled) return;

            iForm.InputType = "card";
            iForm.ShowDialog(); // 输入卡号
            if (trans.Is_Canceled) return;

            iForm.InputType = "password"; // 持卡人输入密码
            iForm.ShowDialog();

            trans.Batch_No = Utils.getBatchNum();
            trans.Trace_No = Utils.getTraceNum();

            if (trans.Is_Canceled) return;

            send_trans(trans); //打包并上送交易
        }