public Regulation() { InitializeComponent(); bllTS = new ThamSoBLL(); bllSB = new SanBayBLL(); bllDSV = new DanhSachVeBLL(); ShowPageThamSo(); GetDataThamSo(); SetEnablePageThamSo(false); }
public MainForm() { InitializeComponent(); bllTS = new ThamSoBLL(); bllPDC = new PhieuDatChoBLL(); bllDSG = new DanhSachGheBLL(); pnSelect.Location = new Point(-1, -1); pnSelect.Visible = false; }
public ReservateForm() { InitializeComponent(); bllPDC = new PhieuDatChoBLL(); bllTS = new ThamSoBLL(); bllDSG = new DanhSachGheBLL(); bllCB = new ChuyenBayBLL(); lbNotify.Visible = false; lbNotify1.Visible = false; cbHangVe.DisplayMember = "HangVe"; cbHangVe.ValueMember = "TiLe"; }
public TicketForm() { InitializeComponent(); ShowTicket(); bllDSG = new DanhSachGheBLL(); bllCB = new ChuyenBayBLL(); bllVCB = new VeChuyenBayBLL(); bllPDC = new PhieuDatChoBLL(); bllTS = new ThamSoBLL(); lbNotify.Visible = false; lbNotify1.Visible = false; cbHangVe.DisplayMember = "HangVe"; cbHangVe.ValueMember = "TiLe"; cbTrangThai.Text = "Chưa thanh toán"; LockCotrol(); }
private void check_MaTuSinh_CheckedChanged(object sender, System.EventArgs e) { ThamSoBLL thamSoBLL = new ThamSoBLL(); if (check_MaTuSinh.CheckState == CheckState.Checked) { txt_SoPhieuNhap.Enabled = false; string soPhieu = TaoSoPhieuNhap(); while (_nhapHangBLL.TonTaiMaPhieuNhap(soPhieu)) { soPhieu = TaoSoPhieuNhap(); } txt_SoPhieuNhap.Text = soPhieu; } else { txt_SoPhieuNhap.Text = null; txt_SoPhieuNhap.Enabled = true; } }