// action button them mon
        private void btThemMon_Click(object sender, EventArgs e)
        {
            int soLuong;
            int idMenu = Convert.ToInt32(cbMenu.SelectedValue.ToString());

            if (checkNumber(tbSoLuong.Text))
            {
                soLuong = Convert.ToInt32(tbSoLuong.Text);
                int         idMenuSelect = Convert.ToInt32(cbMenu.SelectedValue.ToString());
                BillInfoDAL billInfoDAL  = new BillInfoDAL();
                billInfoDAL.insertBillInfo(table.Status, idMenuSelect, soLuong);
                loadBill(this.table.Status);
            }
        }
Exemple #2
0
        // action button them mon
        private void btThemMon_Click(object sender, EventArgs e)
        {
            int soLuong;
            int idMenu = Convert.ToInt32(cbMenu.SelectedValue.ToString());

            if (checkNumber(tbSoLuong.Text))
            {
                soLuong = Convert.ToInt32(tbSoLuong.Text);
                int         idMenuSelect = Convert.ToInt32(cbMenu.SelectedValue.ToString());
                BillInfoDAL billInfoDAL  = new BillInfoDAL();
                billInfoDAL.insertBillInfo(table.Status, idMenuSelect, soLuong);
                //   Thread.Sleep(2);
                MessageBox.Show("Bạn đã Thêm món thành công", "Thông báo");
                loadBill(this.table.Status);
            }
        }