Commit 4f090183 by lcx

二次绩效是否带出主任

parent e94b28f8
...@@ -95,5 +95,10 @@ public class sys_hospital ...@@ -95,5 +95,10 @@ public class sys_hospital
/// 是否开启护理部审核 1 启用 2 禁用 /// 是否开启护理部审核 1 启用 2 禁用
/// </summary> /// </summary>
public Nullable<int> IsOpenNursingDeptAudit { get; set; } public Nullable<int> IsOpenNursingDeptAudit { get; set; }
/// <summary>
/// 是否显示二次绩效科主任1 启用 2 禁用
/// </summary>
public Nullable<int> IsShowSecondDirector { get; set; }
} }
} }
...@@ -372,6 +372,9 @@ private List<BodyItem> GetEmployees(List<per_employee> employees, int allotId, i ...@@ -372,6 +372,9 @@ private List<BodyItem> GetEmployees(List<per_employee> employees, int allotId, i
//var employees = personService.GetPersons(allotId, userId); //var employees = personService.GetPersons(allotId, userId);
if (employees == null || !employees.Any(t => t.UnitType == unittype)) return list; if (employees == null || !employees.Any(t => t.UnitType == unittype)) return list;
var hospital = hospitalRepository.GetEntity(t => t.ID == employees.First().HospitalId);
if (hospital == null) return list;
if (string.IsNullOrEmpty(empName) && string.IsNullOrEmpty(jobNumber)) if (string.IsNullOrEmpty(empName) && string.IsNullOrEmpty(jobNumber))
employees = employees.Where(t => t.UnitType == unittype).ToList(); employees = employees.Where(t => t.UnitType == unittype).ToList();
...@@ -413,6 +416,9 @@ private List<BodyItem> GetEmployees(List<per_employee> employees, int allotId, i ...@@ -413,6 +416,9 @@ private List<BodyItem> GetEmployees(List<per_employee> employees, int allotId, i
rowNumber++; rowNumber++;
} }
if (hospital.IsShowSecondDirector == 2)
list = list.Where(t => t.FiledName == "岗位" && t.FiledId == "Post" && t.Value == "其他")?.ToList();
return list; return list;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment