Esempio n. 1
0
        private void bntThanhToan_Click(object sender, EventArgs e)
        {
            //fHoaDon XuatHoaDon = new fHoaDon();
            // XuatHoaDon.ShowDialog();
            BAL_HOADON hd    = new BAL_HOADON();
            DAL_HOADON bill  = new DAL_HOADON();
            BAL_BAN    ban   = new BAL_BAN();
            BEL_BAN    table = lsvBill.Tag as BEL_BAN;

            ban.get_lv(lsvBill, txt_totalprice);
            if (hd.Check_out(lsvBill, txt_totalprice) != -1)
            {
                if (MessageBox.Show("Bạn có chắc thanh toán hóa đơn cho bàn " + table.Tenban, "Thông báo", MessageBoxButtons.OKCancel) == System.Windows.Forms.DialogResult.OK)
                {
                    bill.CheckOut(bill.GetBill(table.Soban));
                    ban.showBill(table.Soban);

                    loadban();
                }
            }
        }