Exemple #1
0
        private void loadData()
        {
            hvs    = BLL_HangVe.GetHangVes();
            dsSBDi = BLL_SanBay.GetSanBays();
            if (chuyenBay == null)
            {
                dsSBDen = BLL_SanBay.GetSanBays();
            }
            else
            {
                dsSBDen = BLL_TuyenBay.GetSanBaysFrom(chuyenBay.TB.SBDi.maSB);
            }
            sbtgs = BLL_SanBay.GetSanBays();

            cbSBDi.DisplayMember  = "TenSB";
            cbSBDi.ValueMember    = "MaSB";
            cbSBDen.DisplayMember = "TenSB";
            cbSBDen.ValueMember   = "MaSB";
            cbSBTG.DisplayMember  = "TenSB";
            cbSBTG.ValueMember    = "MaSB";

            cbSBTG.DataSource  = sbtgs;
            cbSBDi.DataSource  = dsSBDi;
            cbSBDen.DataSource = dsSBDen;

            onloading = false;
            state     = Actions.NOTHING;

            dtpNgay.Value = DateTime.Now;
        }
Exemple #2
0
        private void frmAirports_Load(object sender, EventArgs e)
        {
            cbSearch.DataSource    = sources();
            cbSearch.DisplayMember = "Name";
            cbSearch.ValueMember   = "ID";

            sanBays = BLL_SanBay.GetSanBays();
            bl      = new SortableBindingList <SanBay>(sanBays);
            dgvAirports.DataSource = bl;
            CustomDgv();
            checkPer();
            AppState.state = Actions.NOTHING;
        }
Exemple #3
0
        private void frmTuyenBay_Load(object sender, EventArgs e)
        {
            cbSearch.DataSource    = sources();
            cbSearch.DisplayMember = "Name";
            cbSearch.ValueMember   = "ID";

            tuyenBays = BLL_TuyenBay.GetTuyenBays();
            bl        = new SortableBindingList <TuyenBay>(tuyenBays);
            dgvTuyenBays.DataSource = bl;
            CustomDgv();

            cbSBDi.DataSource    = BLL_SanBay.GetSanBays();
            cbSBDi.DisplayMember = "TenSB";
            cbSBDi.ValueMember   = "MaSB";

            cbSBDen.DataSource    = BLL_SanBay.GetSanBays();
            cbSBDen.DisplayMember = "TenSB";
            cbSBDen.ValueMember   = "MaSB";

            checkPer();
        }
Exemple #4
0
 private void reloadData()
 {
     sanBays = BLL_SanBay.GetSanBays();
     bl      = new SortableBindingList <SanBay>(sanBays);
     dgvAirports.DataSource = bl;
 }