Beispiel #1
0
        private void cbbMaDoan_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                int       maDoan = int.Parse(cbbMaDoan.Text);
                DataTable tbDoan = doan.getInfoDoan(maDoan);
                cbbMaTour.Text = tbDoan.Rows[0]["MaTour"].ToString();
                tbTenDoan.Text = tbDoan.Rows[0]["TenDoan"].ToString();
                dtGioDi.Text   = tbDoan.Rows[0]["GioDi"].ToString();
                dtGioVe.Text   = tbDoan.Rows[0]["GioVe"].ToString();

                tbKh             = doan.getKhachHang(maDoan);
                dgvKH.DataSource = tbKh;

                tbNV             = doan.getNVTD(maDoan);
                dgvNV.DataSource = tbNV;

                tbCp = doan.getChiPhi(maDoan);
                dgvChiPhi.DataSource = tbCp;
            }
            catch (Exception) { }
        }