public IActionResult CreateOrEdit(Guid id)
        {
            var boVM        = _boVMService.GetVM(id);
            var titleString = "编辑员工数据";

            if (boVM.IsNew)
            {
                titleString = "新建员工数据";
            }

            ViewData["ModuleName"]   = "组织与人员管理";
            ViewData["FunctionName"] = titleString;
            return(PartialView("_CreateOrEdit", boVM));
        }
        public IActionResult Detail(Guid id)
        {
            var boVM = _boVMService.GetVM(id);

            ViewData["ModuleName"]   = "组织与人员管理";
            ViewData["FunctionName"] = "员工明细数据";
            return(PartialView("_Detail", boVM));
        }
        /// <summary>
        /// 根据用户 Id 返回员工视图模型
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task <EmployeeVM> GetEmployeeVMByUserId(Guid id)
        {
            EmployeeVM employeeVM        = null;
            var        employeeService   = new EmployeeVMService(_employeeRepository, _studentRepository, _gradeAndClassRepository, _departmentRepository, _businessImageRepository, _jobTitleRepository, _userManager, _roleManager);
            var        employeeUserItems = await _employeeRepository.GetAllIncludingAsyn(x => x.User);

            var employeeUser = employeeUserItems.Where(x => x.User != null).FirstOrDefault(x => x.User.Id == id);

            if (employeeUser != null)
            {
                employeeVM = employeeService.GetVM(employeeUser.Id);
            }
            return(employeeVM);
        }