Beispiel #1
0
        public SearchForm()
        {
            InitializeComponent();
            bllSB = new SanBayBLL();
            bllCB = new ChuyenBayBLL();

            cbSanBayDen.DataSource    = bllSB.getSanBay();
            cbSanBayDen.DisplayMember = "TenSanBay";
            cbSanBayDi.DataSource     = bllSB.getSanBay();
            cbSanBayDi.DisplayMember  = "TenSanBay";

            dpNgayGio.Value = DateTime.Now;
        }
Beispiel #2
0
 void build_Page_TiepNhanChuyenBay()
 {
     CBox_SanBayDen.DataSource        = bllSB.getSanBay();
     CBox_SanBayDen.DisplayMember     = "TenSanBay";
     CBox_SanBayDen.ValueMember       = "MaSanBay";
     CBox_SanBayDen.Text              = null;
     CBox_SanBayDi.DataSource         = bllSB.getSanBay();
     CBox_SanBayDi.DisplayMember      = "TenSanBay";
     CBox_SanBayDi.ValueMember        = "MaSanBay";
     CBox_SanBayDi.Text               = null;
     colHangVe.DataSource             = bllDSV.getDanhSachVe();
     colHangVe.DisplayMember          = "HangVe";
     colSanBayTrungGian.DataSource    = bllSB.getSanBay();
     colSanBayTrungGian.DisplayMember = "TenSanBay";
     colSanBayTrungGian.ValueMember   = "MaSanBay";
 }
Beispiel #3
0
        public void GetDataSanBay()
        {
            DataTable dt = bllSB.getSanBay();

            dgvSanBay.DataSource = dt;
            for (int i = 0; i < dgvSanBay.RowCount; i++)
            {
                dgvSanBay.Rows[i].ReadOnly = true;
            }
            lbSLSB.Text = "Số lượng sân bay hiện tại: " + bllSB.GetSoLuongSanBay().ToString();
        }