Commit 6f9c6770 by zry

查询返回员工号

parent eef574ce
...@@ -365,6 +365,11 @@ ...@@ -365,6 +365,11 @@
职称 职称
</summary> </summary>
</member> </member>
<member name="P:Performance.DtoModels.ComputeEmployee.JobNumber">
<summary>
工号
</summary>
</member>
<member name="P:Performance.DtoModels.ComputeEmployee.PostCoefficient"> <member name="P:Performance.DtoModels.ComputeEmployee.PostCoefficient">
<summary> <summary>
岗位系数 岗位系数
...@@ -540,6 +545,11 @@ ...@@ -540,6 +545,11 @@
调节系数 调节系数
</summary> </summary>
</member> </member>
<member name="P:Performance.DtoModels.ComputeResult.JobNumber">
<summary>
工号
</summary>
</member>
<member name="T:Performance.DtoModels.UnitType"> <member name="T:Performance.DtoModels.UnitType">
<summary> 核算单元类型 </summary> <summary> 核算单元类型 </summary>
</member> </member>
...@@ -1863,6 +1873,11 @@ ...@@ -1863,6 +1873,11 @@
人员名称 人员名称
</summary> </summary>
</member> </member>
<member name="P:Performance.DtoModels.ComputeResponse.JobNumber">
<summary>
工号
</summary>
</member>
<member name="P:Performance.DtoModels.ComputeResponse.JobTitle"> <member name="P:Performance.DtoModels.ComputeResponse.JobTitle">
<summary> <summary>
职位 职位
...@@ -2158,6 +2173,11 @@ ...@@ -2158,6 +2173,11 @@
职称 职称
</summary> </summary>
</member> </member>
<member name="P:Performance.DtoModels.ResComputeResponse.JobNumber">
<summary>
工号
</summary>
</member>
<member name="P:Performance.DtoModels.ResComputeResponse.PerforTotal"> <member name="P:Performance.DtoModels.ResComputeResponse.PerforTotal">
<summary> <summary>
绩效合计(来自科室经济测算表) 绩效合计(来自科室经济测算表)
......
...@@ -298,6 +298,11 @@ ...@@ -298,6 +298,11 @@
职称 职称
</summary> </summary>
</member> </member>
<member name="P:Performance.EntityModels.ag_compute.JobNumber">
<summary>
工号
</summary>
</member>
<member name="P:Performance.EntityModels.ag_compute.PersonName"> <member name="P:Performance.EntityModels.ag_compute.PersonName">
<summary> <summary>
人员名称 人员名称
...@@ -2903,6 +2908,11 @@ ...@@ -2903,6 +2908,11 @@
职称 职称
</summary> </summary>
</member> </member>
<member name="P:Performance.EntityModels.res_compute.JobNumber">
<summary>
工号
</summary>
</member>
<member name="P:Performance.EntityModels.res_compute.PerforTotal"> <member name="P:Performance.EntityModels.res_compute.PerforTotal">
<summary> <summary>
绩效合计(来自科室经济测算表) 绩效合计(来自科室经济测算表)
......
...@@ -154,7 +154,8 @@ public AutoMapperConfigs() ...@@ -154,7 +154,8 @@ public AutoMapperConfigs()
//CreateMap<res_accountdoctor, ComputeSource>(); //CreateMap<res_accountdoctor, ComputeSource>();
//CreateMap<res_accountnurse, ComputeSource>(); //CreateMap<res_accountnurse, ComputeSource>();
CreateMap<im_employee, ComputeEmployee>(); CreateMap<im_employee, ComputeEmployee>()
.ForMember(dest => dest.JobNumber, opt => opt.MapFrom(src => src.PersonnelNumber));
CreateMap<ComputeResult, res_compute>(); CreateMap<ComputeResult, res_compute>();
CreateMap<res_account, DeptResponse>(); CreateMap<res_account, DeptResponse>();
...@@ -195,7 +196,9 @@ public AutoMapperConfigs() ...@@ -195,7 +196,9 @@ public AutoMapperConfigs()
CreateMap<ag_secondallot, SecondListResponse>().ReverseMap(); CreateMap<ag_secondallot, SecondListResponse>().ReverseMap();
CreateMap<im_employee_clinic, PerDataClinicEmployee>().ReverseMap(); CreateMap<im_employee_clinic, PerDataClinicEmployee>().ReverseMap();
CreateMap<im_employee_clinic, ComputeEmployee>().ReverseMap(); CreateMap<im_employee_clinic, ComputeEmployee>()
.ForMember(dest => dest.JobNumber, opt => opt.MapFrom(src => src.PersonnelNumber))
.ReverseMap();
} }
} }
} }
...@@ -47,6 +47,11 @@ public class ComputeEmployee ...@@ -47,6 +47,11 @@ public class ComputeEmployee
public string JobTitle { get; set; } public string JobTitle { get; set; }
/// <summary> /// <summary>
/// 工号
/// </summary>
public string JobNumber { get; set; }
/// <summary>
/// 岗位系数 /// 岗位系数
/// </summary> /// </summary>
public Nullable<decimal> PostCoefficient { get; set; } public Nullable<decimal> PostCoefficient { get; set; }
......
...@@ -132,6 +132,10 @@ public class ComputeResult ...@@ -132,6 +132,10 @@ public class ComputeResult
public string UnitType { get; set; } public string UnitType { get; set; }
public string Remark { get; set; } public string Remark { get; set; }
/// <summary>
/// 工号
/// </summary>
public string JobNumber { get; set; }
///// <summary> ///// <summary>
///// 工作量绩效 ///// 工作量绩效
......
...@@ -125,6 +125,8 @@ public enum PerforType ...@@ -125,6 +125,8 @@ public enum PerforType
护士, 护士,
[Description("临床主任护士长平均")] [Description("临床主任护士长平均")]
临床主任护士长平均, 临床主任护士长平均,
[Description("临床主任医技主任护士长平均")]
临床主任医技主任护士长平均,
[Description("临床医生人均绩效")] [Description("临床医生人均绩效")]
临床医生, 临床医生,
[Description("医技医生人均绩效")] [Description("医技医生人均绩效")]
......
...@@ -22,6 +22,11 @@ public class ComputeResponse ...@@ -22,6 +22,11 @@ public class ComputeResponse
public string EmployeeName { get; set; } public string EmployeeName { get; set; }
/// <summary> /// <summary>
/// 工号
/// </summary>
public string JobNumber { get; set; }
/// <summary>
/// 职位 /// 职位
/// </summary> /// </summary>
public string JobTitle { get; set; } public string JobTitle { get; set; }
......
...@@ -42,6 +42,11 @@ public class ResComputeResponse ...@@ -42,6 +42,11 @@ public class ResComputeResponse
public string JobTitle { get; set; } public string JobTitle { get; set; }
/// <summary> /// <summary>
/// 工号
/// </summary>
public string JobNumber { get; set; }
/// <summary>
/// 绩效合计(来自科室经济测算表) /// 绩效合计(来自科室经济测算表)
/// </summary> /// </summary>
public Nullable<decimal> PerforTotal { get; set; } public Nullable<decimal> PerforTotal { get; set; }
......
...@@ -42,6 +42,11 @@ public class ag_compute ...@@ -42,6 +42,11 @@ public class ag_compute
public string WorkPost { get; set; } public string WorkPost { get; set; }
/// <summary> /// <summary>
/// 工号
/// </summary>
public string JobNumber { get; set; }
/// <summary>
/// 人员名称 /// 人员名称
/// </summary> /// </summary>
public string PersonName { get; set; } public string PersonName { get; set; }
......
...@@ -57,6 +57,11 @@ public class res_compute ...@@ -57,6 +57,11 @@ public class res_compute
public string JobTitle { get; set; } public string JobTitle { get; set; }
/// <summary> /// <summary>
/// 工号
/// </summary>
public string JobNumber { get; set; }
/// <summary>
/// 绩效合计(来自科室经济测算表) /// 绩效合计(来自科室经济测算表)
/// </summary> /// </summary>
public Nullable<decimal> PerforTotal { get; set; } public Nullable<decimal> PerforTotal { get; set; }
......
...@@ -93,6 +93,13 @@ public List<res_baiscnorm> ComputeOtherAvg(List<res_baiscnorm> baiscnormList, Li ...@@ -93,6 +93,13 @@ public List<res_baiscnorm> ComputeOtherAvg(List<res_baiscnorm> baiscnormList, Li
var hszValue = baiscnorms.FirstOrDefault(t => t.PositionName == EnumHelper.GetDescription(PerforType.护士长))?.AvgValue; var hszValue = baiscnorms.FirstOrDefault(t => t.PositionName == EnumHelper.GetDescription(PerforType.护士长))?.AvgValue;
result = ((lczrValue ?? 0) + (hszValue ?? 0)) / 2; result = ((lczrValue ?? 0) + (hszValue ?? 0)) / 2;
} }
else if (type == PerforType.临床主任医技主任护士长平均)
{
var lczrValue = baiscnorms.FirstOrDefault(t => t.PositionName == EnumHelper.GetDescription(PerforType.临床主任))?.AvgValue;
var yjzrValue = baiscnorms.FirstOrDefault(t => t.PositionName == EnumHelper.GetDescription(PerforType.医技主任))?.AvgValue;
var hszValue = baiscnorms.FirstOrDefault(t => t.PositionName == EnumHelper.GetDescription(PerforType.护士长))?.AvgValue;
result = ((lczrValue ?? 0) + (yjzrValue ?? 0) + (hszValue ?? 0)) / 3;
}
else else
{ {
result = baiscnorms.FirstOrDefault(t => t.PositionName == EnumHelper.GetDescription(type))?.AvgValue; result = baiscnorms.FirstOrDefault(t => t.PositionName == EnumHelper.GetDescription(type))?.AvgValue;
......
...@@ -240,11 +240,12 @@ public List<ComputeResponse> AllCompute(int allotId) ...@@ -240,11 +240,12 @@ public List<ComputeResponse> AllCompute(int allotId)
var again = _perforAgcomputeRepository.GetEntities(t => t.AllotId == allotId); var again = _perforAgcomputeRepository.GetEntities(t => t.AllotId == allotId);
if (again != null && again.Any()) if (again != null && again.Any())
{ {
var group = again.GroupBy(t => new { t.Department, t.WorkPost, t.PersonName }) var group = again.GroupBy(t => new { t.Department, t.WorkPost, t.JobNumber, t.PersonName })
.Select(t => new .Select(t => new
{ {
department = t.Key.Department, department = t.Key.Department,
jobtitle = t.Key.WorkPost, jobtitle = t.Key.WorkPost,
jobnumber = t.Key.JobNumber,
name = t.Key.PersonName, name = t.Key.PersonName,
fee = t.Sum(g => g.RealGiveFee) fee = t.Sum(g => g.RealGiveFee)
}); });
...@@ -252,6 +253,7 @@ public List<ComputeResponse> AllCompute(int allotId) ...@@ -252,6 +253,7 @@ public List<ComputeResponse> AllCompute(int allotId)
{ {
Source = "二次绩效", Source = "二次绩效",
AccountingUnit = t.department, AccountingUnit = t.department,
JobNumber = t.jobnumber,
JobTitle = t.jobtitle, JobTitle = t.jobtitle,
EmployeeName = t.name, EmployeeName = t.name,
RealGiveFee = t.fee RealGiveFee = t.fee
......
...@@ -229,6 +229,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a ...@@ -229,6 +229,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, List<im_a
EmployeeName = empolyee.DoctorName, EmployeeName = empolyee.DoctorName,
FitPeople = empolyee.FitPeople, FitPeople = empolyee.FitPeople,
JobTitle = empolyee.JobTitle, JobTitle = empolyee.JobTitle,
JobNumber = empolyee.JobNumber,
ScoreAverageRate = empolyee.ScoreAverageRate, ScoreAverageRate = empolyee.ScoreAverageRate,
Punishment = empolyee.Punishment, Punishment = empolyee.Punishment,
...@@ -293,6 +294,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, per_allot ...@@ -293,6 +294,7 @@ public List<ComputeResult> Compute(List<ComputeEmployee> empolyeeList, per_allot
Punishment = item.Punishment, Punishment = item.Punishment,
OtherPerfor = item.OtherPerfor, OtherPerfor = item.OtherPerfor,
JobTitle = item.JobTitle, JobTitle = item.JobTitle,
JobNumber = item.JobNumber,
Adjust = item.Adjust, Adjust = item.Adjust,
//Workload = item.Workload //Workload = item.Workload
......
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