コード例 #1
0
ファイル: Regulation.cs プロジェクト: NXLuan/Flight
 public Regulation()
 {
     InitializeComponent();
     bllTS  = new ThamSoBLL();
     bllSB  = new SanBayBLL();
     bllDSV = new DanhSachVeBLL();
     ShowPageThamSo();
     GetDataThamSo();
     SetEnablePageThamSo(false);
 }
コード例 #2
0
        public MainForm()
        {
            InitializeComponent();
            bllTS  = new ThamSoBLL();
            bllPDC = new PhieuDatChoBLL();
            bllDSG = new DanhSachGheBLL();

            pnSelect.Location = new Point(-1, -1);
            pnSelect.Visible  = false;
        }
コード例 #3
0
        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";
        }
コード例 #4
0
        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();
        }
コード例 #5
0
        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;
            }
        }