Пример #1
0
 public frmPayWay(frmSell frm)
 {
     InitializeComponent();
     sell           = frm;
     lbMName.Text   = "持卡人:" + sell.Mname;
     lbBalance.Text = "余  额:" + sell.Balance;
 }
Пример #2
0
        //打开销售收银界面
        private void btnSell_Click(object sender, EventArgs e)
        {
            string comBHS = ConfigHelper.GetAppConfig("BHS_Com");
            string comKXP = ConfigHelper.GetAppConfig("KXP_Com");

            if (comBHS == "" || comKXP == "")
            {
                MessageBox.Show("请在系统管理界面选择扫描枪或客显串口!");
                return;
            }

            frmSell sellFrm = new frmSell(staff, this);

            sellFrm.Show();

            this.Hide();
        }
Пример #3
0
        //构造函数
        public frmPay(Staff staff, frmSell sell)
        {
            InitializeComponent();
            this.staff = staff;
            this.sell  = sell;

            isAddorAlter  = true;
            payedCardList = new List <PayedCard>();

            //抹零到角
            ZJ  = Math.Truncate((sell.MoneyTotal - sell.YH) * 10) / 10;
            Zjj = (sell.MoneyTotal - sell.YH) - ZJ;

            //应收现金赋初值
            Cash = ZJ;
            //没支付前,Change为负
            Change = -1;

            //小键盘绑定实收现金输入框
            miniKeyboard.Press += MiniKeyboardHandler_PayCashInput;
        }