private void frmNhanVien_Load(object sender, EventArgs e)
 {
     this.MaximizeBox = false;
     DeleteText();
     cboGioiTinh.Properties.Items.Clear();
     cboGioiTinh.Properties.Items.Add("Nam");
     cboGioiTinh.Properties.Items.Add("Nữ");
     cboGioiTinh.Text = "Nam";
     cboGioiTinh.Properties.AppearanceDropDown.Font = new Font("Time New Roman", 12, FontStyle.Bold);
     if (flag)
     {
         frmMain frm = new frmMain();
         txtMaNV.Text = frm.MaSoTuTang("NV", nvControl.getAllData());
     }
     else
     {
         GanDuLieu();
     }
 }
Exemple #2
0
        private void ucTimKiemNhanVien_Load(object sender, EventArgs e)
        {
            cboTimKiem.Properties.AppearanceDropDown.Font = new Font("Time New Roman", 12, FontStyle.Bold);
            cboTimKiem.Properties.Items.Clear();
            cboTimKiem.Properties.Items.Add("Mã nhân viên");
            cboTimKiem.Properties.Items.Add("Tên nhân viên");
            cboTimKiem.Properties.Items.Add("Giới tính");
            cboTimKiem.Properties.Items.Add("Chức vụ");
            cboTimKiem.Text = "Mã nhân viên";

            cboTimKiem.TabIndex = 1;
            txtTimKiem.TabIndex = 2;
            btnTimKiem.TabIndex = 3;

            DataTable dtDanhSachNhanVien = new DataTable();

            dtDanhSachNhanVien           = nvControl.getAllData();
            gcTimKiemNhanVien.DataSource = dtDanhSachNhanVien;
        }
Exemple #3
0
 private void ucNhanVien_Load(object sender, EventArgs e)
 {
     gcDanhSachNhanVien.DataSource = nvControl.getAllData();
 }
Exemple #4
0
 private void ucDanhSachNhanVien_Load(object sender, EventArgs e)
 {
     gcDanhSachNhanVien.DataSource = nvControl.getAllData();
     lblTongNV.Text = "Tổng cộng: " + nvControl.getAllData().Rows.Count + " nhân viên.";
     frmMain.DatLaiTenCotCuaGridView(gvDanhSachNhanVien);
 }