コード例 #1
0
        private void HienThiNhanVienLenCombobox()
        {
            List <NhanVien_DTO> lstChucVu = NhanVien_BLL.LayDSNhanVien();

            cboMANV.DataSource    = lstChucVu;
            cboMANV.DisplayMember = "STenNV";
            cboMANV.ValueMember   = "SMaNV";
        }
コード例 #2
0
ファイル: frm_NhanVien.cs プロジェクト: saidang/LTQL-Nam3
        private void button2_Click(object sender, EventArgs e)
        {
            txtMaNV.ResetText();
            txtTenNV.ResetText();
            txtChucVu.ResetText();
            txtDiaChi.ResetText();
            txtDienThoai.ResetText();
            txtTim.ResetText();
            dtpNgaySinh.ResetText();
            Nam.ResetText();
            Nu.ResetText();
            txtMaNV.Focus();

            List <NhanVien_DTO> lstNhanVien = NhanVien_BLL.LayDSNhanVien();

            dataGridViewNV.DataSource = lstNhanVien;
        }
コード例 #3
0
ファイル: frm_NhanVien.cs プロジェクト: saidang/LTQL-Nam3
        private void HienThiDSNhanVienDatagrid()
        {
            List <NhanVien_DTO> lstNhanVien = NhanVien_BLL.LayDSNhanVien();

            dataGridViewNV.DataSource = lstNhanVien;

            //dataGridViewNV.Columns["SMaNV"].HeaderText = "Mã số";
            //dataGridViewNV.Columns["STenNV"].HeaderText = "Họ tên";
            //dataGridViewNV.Columns["SChucVU"].HeaderText = "Chức Vụ";
            //dataGridViewNV.Columns["SGioiTinh1"].HeaderText = "Giới Tính";
            //dataGridViewNV.Columns["SDiaChi"].HeaderText = "Địa Chỉ";
            //dataGridViewNV.Columns["SDienThoai"].HeaderText = "Điện Thoại";
            //dataGridViewNV.Columns["SNgaySinh"].HeaderText = "Ngày Sinh";



            //dataGridViewNV.Columns["SMaNV"].Width = 70;
            //dataGridViewNV.Columns["STenNV"].Width = 100;
            //dataGridViewNV.Columns["SChucVU"].Width = 100;
            //dataGridViewNV.Columns["SGioiTinh1"].Width = 50;
            //dataGridViewNV.Columns["SDiaChi"].Width = 100;
            //dataGridViewNV.Columns["SDienThoai"].Width = 100;
            //dataGridViewNV.Columns["SNgaySinh"].Width = 100;
        }