Commit 42b3430f by 李承祥

添加方法描述

parent 9ae0577b
...@@ -33,6 +33,12 @@ public class ComputeService : IAutoInjection ...@@ -33,6 +33,12 @@ public class ComputeService : IAutoInjection
_perforResspecialunitRepository = perforResspecialunitRepository; _perforResspecialunitRepository = perforResspecialunitRepository;
} }
/// <summary>
/// 返回绩效发放列表
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <param name="type">绩效基数核算参考对象</param>
/// <returns></returns>
public List<res_compute> GetCompute(int allotId, int type) public List<res_compute> GetCompute(int allotId, int type)
{ {
var list = new List<res_compute>(); var list = new List<res_compute>();
...@@ -60,12 +66,23 @@ public List<res_compute> GetCompute(int allotId, int type) ...@@ -60,12 +66,23 @@ public List<res_compute> GetCompute(int allotId, int type)
} }
return Mapper.Map<List<res_compute>>(list); return Mapper.Map<List<res_compute>>(list);
} }
/// <summary>
/// 返回特殊科室发放列表
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
public List<res_specialunit> GetSpecial(int allotId) public List<res_specialunit> GetSpecial(int allotId)
{ {
var list = _perforResspecialunitRepository.GetEntities(t => t.AllotID == allotId); var list = _perforResspecialunitRepository.GetEntities(t => t.AllotID == allotId);
return Mapper.Map<List<res_specialunit>>(list); return Mapper.Map<List<res_specialunit>>(list);
} }
/// <summary>
/// 返回医生组科室绩效
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
public List<DoctorResponse> GetDoctorPerformance(int allotId) public List<DoctorResponse> GetDoctorPerformance(int allotId)
{ {
var list = _perforResAccountdoctorRepository.GetEntities(t => t.AllotID == allotId); var list = _perforResAccountdoctorRepository.GetEntities(t => t.AllotID == allotId);
...@@ -80,6 +97,11 @@ public List<DoctorResponse> GetDoctorPerformance(int allotId) ...@@ -80,6 +97,11 @@ public List<DoctorResponse> GetDoctorPerformance(int allotId)
return Mapper.Map<List<DoctorResponse>>(doctor); return Mapper.Map<List<DoctorResponse>>(doctor);
} }
/// <summary>
/// 返回护理组科室绩效
/// </summary>
/// <param name="allotId">绩效ID</param>
/// <returns></returns>
public List<NurseResponse> GetNursePerformance(int allotId) public List<NurseResponse> GetNursePerformance(int allotId)
{ {
var list = _perforResAccountnurseRepository.GetEntities(t => t.AllotID == allotId); var list = _perforResAccountnurseRepository.GetEntities(t => t.AllotID == allotId);
...@@ -88,7 +110,7 @@ public List<NurseResponse> GetNursePerformance(int allotId) ...@@ -88,7 +110,7 @@ public List<NurseResponse> GetNursePerformance(int allotId)
{ {
foreach (var item in nurse) foreach (var item in nurse)
{ {
item.UnitName = "护组"; item.UnitName = "护组";
} }
} }
return Mapper.Map<List<NurseResponse>>(nurse); return Mapper.Map<List<NurseResponse>>(nurse);
......
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