Пример #1
0
        public void LoadListLoaiDG(ref ComboBoxEx cbxLoaiDG, QDLoaiDocGiaBUS ldgBUS)
        {
            try
            {
                cbxLoaiDG.DataSource = ldgBUS.LoadBangLoaiDG();

                cbxLoaiDG.DisplayMember = "TENLOAIDG";
            }
            catch { }
        }
 public void LoadPanelLoaiDG(ref DataGridViewX dgvLoaiDG, ref TextBoxX txtMaLoaiDGQDDG, ref TextBoxX txtTenLoaiDGQDDG, QDLoaiDocGiaBUS ldgBUS)
 {
     LoadDgvLoaiDG(ref dgvLoaiDG, ldgBUS);
     if (dgvLoaiDG.RowCount != 0)
     {
         GetDataWhenClickDGVLoaiDG(dgvLoaiDG.Rows[0], ref txtMaLoaiDGQDDG, ref txtTenLoaiDGQDDG);
     }
     else
     {
         ClearPanelLoaiDG(ref txtMaLoaiDGQDDG, ref txtTenLoaiDGQDDG);
     }
 }
 public void LoadDgvLoaiDG(ref DataGridViewX dgvLoaiDG, QDLoaiDocGiaBUS ldgBUS)
 {
     dgvLoaiDG.DataSource = ldgBUS.LoadBangLoaiDG();
 }
Пример #4
0
 public void LoadTabQLDG(ref DataGridViewX dgvDG, ref TextBoxX txtMaDG, ref TextBoxX txtHoTen, ref DateTimeInput dtpNgaySinh, ref TextBoxX txtDiaChi, ref TextBoxX txtEmail, ref ComboBoxEx cbxLoaiDG, ref DateTimeInput dtpNgayLapThe, ref DateTimeInput dtpNgayHetHan, ref TextBoxX txtSoSachDangMuon, ref TextBoxX txtTongTienNo, ref TextBoxX txtTuoiToiThieu, ref TextBoxX txtTuoiToiDa, ref ComboBoxEx cbxTimKiemDG, ref TextBoxX txtThoiHanThe, QDLoaiDocGiaBUS ldgBUS, TheDocGiaBUS tdgBUS, QuyDinhDocGiaBUS qddgBUS)
 {
     LoadListLoaiDG(ref cbxLoaiDG, ldgBUS);
     LoadDgvDG(ref dgvDG, tdgBUS);
     LoadQDDG(ref txtTuoiToiThieu, ref txtTuoiToiDa, ref txtThoiHanThe, qddgBUS);
     if (dgvDG.RowCount != 0)
     {
         GetDataWhenClickDGVDG(dgvDG.Rows[0], ref txtMaDG, ref txtHoTen, ref dtpNgaySinh, ref txtDiaChi, ref txtEmail, ref cbxLoaiDG, ref dtpNgayLapThe, ref dtpNgayHetHan, ref txtSoSachDangMuon, ref txtTongTienNo);//Load data từ datagridview vào panel
     }
     else
     {
         tdgBUS.ResetSTT();
         ClearPanelDG(tdgBUS, ref txtMaDG, ref txtHoTen, ref dtpNgaySinh, ref txtDiaChi, ref txtEmail, ref cbxLoaiDG, ref dtpNgayLapThe, ref dtpNgayHetHan, ref txtSoSachDangMuon, ref txtTongTienNo, ref cbxTimKiemDG);
     }
 }