private void frm_HoSoNhanVien_Load(object sender, EventArgs e)
        {

            //=======================
            Form frm = new frm_HoSoNhanVien();
           
            
            
            this.AcceptButton = btn_KT;
            this.AcceptButton = btn_KT1;
            txt_ID.ShortcutsEnabled = false;
            txt_ID1.ShortcutsEnabled = false;
            Hide_Control();
            Hide_Control1();
            Load_NewChucVu();
            Load_ChucVu();
            ////
            dgrid_DSNV.DataSource = bl_nhanvien.sp_select_NhanVienALL().Tables[0];
            dgrid_DSNV.Columns["SoCMND"].HeaderText = "Số CMND";
            dgrid_DSNV.Columns["SoCMND"].Width = 100;
            dgrid_DSNV.Columns["TenNhanVien"].HeaderText = "Tên Nhân Viên";
            dgrid_DSNV.Columns["TenNhanVien"].Width = 160;
            dgrid_DSNV.Columns["TenChucVu"].HeaderText = "Tên Chức Vụ";
            dgrid_DSNV.Columns["TenChucVu"].Width = 100;
            dgrid_DSNV.AllowUserToAddRows = false;

            
        }
Beispiel #2
0
        private void frm_HoSoNhanVien_Load(object sender, EventArgs e)
        {
            //=======================
            Form frm = new frm_HoSoNhanVien();



            this.AcceptButton        = btn_KT;
            this.AcceptButton        = btn_KT1;
            txt_ID.ShortcutsEnabled  = false;
            txt_ID1.ShortcutsEnabled = false;
            Hide_Control();
            Hide_Control1();
            Load_NewChucVu();
            Load_ChucVu();
            ////
            dgrid_DSNV.DataSource = bl_nhanvien.sp_select_NhanVienALL().Tables[0];
            dgrid_DSNV.Columns["SoCMND"].HeaderText      = "Số CMND";
            dgrid_DSNV.Columns["SoCMND"].Width           = 100;
            dgrid_DSNV.Columns["TenNhanVien"].HeaderText = "Tên Nhân Viên";
            dgrid_DSNV.Columns["TenNhanVien"].Width      = 160;
            dgrid_DSNV.Columns["TenChucVu"].HeaderText   = "Tên Chức Vụ";
            dgrid_DSNV.Columns["TenChucVu"].Width        = 100;
            dgrid_DSNV.AllowUserToAddRows = false;
        }