private NhanVienDTO getInfoNhanVien() { NhanVienDTO nv = new NhanVienDTO(); nv.HoLot = txtHo.Text; nv.Ten = txtTen.Text; nv.CMND = txtCMND.Text; if (rdbNam.Checked == true) { nv.GioiTinh = true; } else { nv.GioiTinh = false; } nv.NgaySinh = dtpNgaySinh.Value; nv.DienThoai = txtDienThoai.Text; nv.DiaChi = txtDiaChi.Text; nv.HinhAnh = MyConvert.ImageToBinary(picHinhAnhNV.Image); nv.MaTrinhDo = Convert.ToInt32(cbxTrinhDo.SelectedValue); nv.MaBP = Convert.ToInt32(cbxBoPhan.SelectedValue); nv.MaChucVu = Convert.ToInt32(cbxChucVu.SelectedValue); if (rdbDaThoiViec.Checked == true) { nv.DaThoiViec = true; } else { nv.DaThoiViec = false; } return(nv); }