private void btnTTPhong_Click(object sender, EventArgs e) { if (KetThuc == false) { MessageBox.Show("Chưa kết thúc !"); } else { try { MaHD = txtHDPhong.Text; etx.SoPhieu = txtHDPhong.Text; etx.PhuThu = float.Parse(txtPhuThup.Text); etx.KhuyenMai = float.Parse(txtTienKMP.Text); bus_px.ThanhToan_Cafe(etx); etp.MaPhong = MaPhong; bus_Phong.ThanhToanBan(etp); khoanutPhong(); LoadBan(); if (cbInHDP.Checked) { Loai = "KaRa"; frmThanhToan_InHD _ThanhToan = new frmThanhToan_InHD(); _ThanhToan.ShowDialog(); } } catch { } } }
private void btnTTBan_Click(object sender, EventArgs e) { try { MaHD = txtHDBan.Text; etx.SoPhieu = txtHDBan.Text; etx.PhuThu = float.Parse(txtPhuThuBan.Text); etx.KhuyenMai = float.Parse(txtTienKM.Text); bus_px.ThanhToan_Cafe(etx); etp.MaPhong = MaBan; bus_Phong.ThanhToanBan(etp); khoanut(); LoadBan(); if (cbin.Checked) { Loai = "CaFe"; frmThanhToan_InHD _ThanhToan = new frmThanhToan_InHD(); _ThanhToan.ShowDialog(); } } catch { } }