private void FormXacNhanCong_Load(object sender, EventArgs e)
        {
            BindingList <NHAN_VIEN> nv = new BindingList <NHAN_VIEN>(NhanVien.LayNhanVien());

            cbbNhanVien.DataSource    = nv;
            cbbNhanVien.DisplayMember = "DINH_DANH";
            cbbNhanVien.ValueMember   = "MSNV";
            Console.WriteLine(cbbNhanVien.SelectedValue);
            TimCa((int)cbbNhanVien.SelectedValue, dtpTu.Value, dtpDen.Value);
        }
Esempio n. 2
0
 public void Loaddata()
 {
     qlnv.LoadChucVu(cbbChucVu);
     qlnv.LayNhanVien(dataGridViewNhanVien);
     this.btnLuu.Enabled  = false;
     this.btnHuy.Enabled  = false;
     this.btnThem.Enabled = true;
     this.btnSua.Enabled  = true;
     this.btnXoa.Enabled  = true;
     this.txtDiaChi.ResetText();
     this.txtTen.ResetText();
     this.cbbChucVu.ResetText();
     this.txtLuong.ResetText();
     this.txtMaNhanVien.ResetText();
     this.txtNamSinh.ResetText();
     this.txtEmail.ResetText();
     this.cbbGioiTinh.ResetText();
     this.txtDienThoai.ResetText();
 }
        private void FormSaThai_Load(object sender, EventArgs e)
        {
            BindingList <NHAN_VIEN> nv = new BindingList <NHAN_VIEN>(NhanVien.LayNhanVien());

            dgvNhanVien.DataSource = nv;
        }