Example #1
0
 private void frmPhong_Load(object sender, EventArgs e)
 {
     btnLuu.Enabled     = btnHuy.Enabled = false;
     txtSoPhong.Enabled = txtSoSVHT.Enabled = cbSucChua.Enabled = cbMaDay.Enabled = cbTrangThai.Enabled = false;
     txtSoSVHT.Text     = "0";
     CapNhatThongTinTrang();
     LoadGridView();
     PBLL.LoadCBTrangThai(cbTrangThai);
     PBLL.LoadCB(cbSucChua, "SUCCHUA", "Phong");
     PBLL.LoadCB(cbMaDay, "MADAY", "DayPhong");
 }
Example #2
0
 private void tabSinhVien_Click(object sender, EventArgs e)
 {
     if (SvStatut == 0)
     {
         SvStatut = 1;
         cbSVGioitinh.Items.Add("Nam");
         cbSVGioitinh.Items.Add("Nữ");
         cbSVChinhsach.Items.Add("Có");
         cbSVChinhsach.Items.Add("Không");
         cbSVTrangThai.Items.Add("Đang ở");
         cbSVTrangThai.Items.Add("Không còn ở");
         SVBLL.LoadCb(cbSVMaSV, "MASV");
         SVBLL.LoadCb(cbSVHoTen, "TENSV");
         SVBLL.LoadCb(cbSVSCMT, "CMT");
         SVBLL.LoadCb(cbSVSDT, "SDT");
         SVBLL.LoadCb(cbSVMaSV, "MASV");
         SVBLL.LoadCb(cbSVQueQuan, "QUEQUAN");
         PBLL.LoadCB(cbSVSoPhong, "SOPHONG", "Phong");
         cbSVMaSV.Text       = cbSVHoTen.Text = cbSVSDT.Text = cbSVSCMT.Text = cbSVQueQuan.Text = cbSVSoPhong.Text = "";
         cbSVSoPhong.Enabled = false;
     }
 }