Esempio n. 1
0
 private void XemHoSoHocSinh_Load(object sender, EventArgs e)
 {
     cboMaLop.DataSource    = myHSHS.LayDanhSachHoSoHocSinh();
     cboMaLop.DisplayMember = "MaLop";
     cboMaLop.ValueMember   = "MaLop";
     dgvHienThi.DataSource  = myHSHS.LayDanhSachHoSoHocSinh();
 }
 private void HoSoHocSinh_Load(object sender, EventArgs e)
 {
     cboMaLop.DataSource    = lop.LayDsLop();
     cboMaLop.DisplayMember = "Tenlop";
     cboMaLop.ValueMember   = "MaLop";
     cboGT.DataSource       = myHSHS.LayGT();
     cboGT.DisplayMember    = "GioiTinh";
     cboGT.ValueMember      = "GioiTinh";
     dgvHSHS.DataSource     = myHSHS.LayDanhSachHoSoHocSinh();
 }
Esempio n. 3
0
 private void btnTim_Click(object sender, EventArgs e)
 {
     if (txtMaHS.Text == txtMaHS.Text)
     {
         HoSoHocSinhBUL hoSoHocSinhBUL = new HoSoHocSinhBUL();
         string         MaHocSinh      = txtMaHS.Text;
         DataTable      dt             = hoSoHocSinhBUL.TimKiem(MaHocSinh);
         dgvHT.DataSource = dt;
     }
     else
     {
         dgvHT.DataSource = myHSHS.LayDanhSachHoSoHocSinh();
     }
 }