예제 #1
0
파일: frmPayWay.cs 프로젝트: leo-xzm/xjgjwl
 public frmPayWay(frmSell frm)
 {
     InitializeComponent();
     sell           = frm;
     lbMName.Text   = "持卡人:" + sell.Mname;
     lbBalance.Text = "余  额:" + sell.Balance;
 }
예제 #2
0
파일: frmMain.cs 프로젝트: leo-xzm/xjgjwl
        //打开销售收银界面
        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;
        }