Exemplo n.º 1
0
        public void ClearPanelDG(TheDocGiaBUS tdgBUS, 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 ComboBoxEx cbxTimKiemDG)
        {
            txtMaDG.Text  = tdgBUS.GetNewSTT();
            txtHoTen.Text = null;
            DateTime date = new DateTime();

            dtpNgaySinh.Value = date; //DevComponents.Editors.DateTimeAdv.DateTimeInput.DateTimeDefaults;
            txtDiaChi.Text    = null;
            txtEmail.Text     = null;
            try
            {
                cbxLoaiDG.Text = cbxLoaiDG.Items[0].ToString();
            }
            catch
            { }

            dtpNgayLapThe.Value    = date; //DevComponents.Editors.DateTimeAdv.DateTimeInput.DateTimeDefaults;
            dtpNgayHetHan.Value    = date; //DevComponents.Editors.DateTimeAdv.DateTimeInput.DateTimeDefaults;
            txtSoSachDangMuon.Text = "0";
            txtTongTienNo.Text     = "0";
            cbxTimKiemDG.Text      = cbxTimKiemDG.Items[0].ToString();
        }
Exemplo n.º 2
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);
     }
 }
Exemplo n.º 3
0
 public void LoadDgvDG(ref DataGridViewX dgvDG, TheDocGiaBUS tdgBUS)
 {
     dgvDG.DataSource = tdgBUS.GetBangDocGia();
 }