Commit 5f741298 by lcx

岗位 绩效总额值带出

parent beaacc6a
...@@ -347,8 +347,8 @@ private List<BodyItem> GetEmployees(int allotId, int userId, List<HeadItem> head ...@@ -347,8 +347,8 @@ private List<BodyItem> GetEmployees(int allotId, int userId, List<HeadItem> head
Dictionary<(string, string), Func<per_employee, object>> dict = new Dictionary<(string, string), Func<per_employee, object>> Dictionary<(string, string), Func<per_employee, object>> dict = new Dictionary<(string, string), Func<per_employee, object>>
{ {
{ ("姓名", "FullName"), (t) => t.DoctorName }, { ("姓名", "FullName"), (t) => t.DoctorName },
{ ("岗位", "Post"), (t) => t.JobTitle }, { ("岗位", "Post"), (t) => !string.IsNullOrEmpty(t.Duty) && (t.Duty.IndexOf("主任") > -1 || t.Duty.IndexOf("护士长") > -1) ? "主任" : "其他" },
{ ("实际出勤", "ActualAttendance"), (t) => t.AttendanceDay }, { ("出勤", "ActualAttendance"), (t) => t.AttendanceDay },
}; };
int rowNumber = 1; int rowNumber = 1;
...@@ -360,7 +360,7 @@ private List<BodyItem> GetEmployees(int allotId, int userId, List<HeadItem> head ...@@ -360,7 +360,7 @@ private List<BodyItem> GetEmployees(int allotId, int userId, List<HeadItem> head
if (head != null) if (head != null)
{ {
var body = Mapper.Map<BodyItem>(head); var body = Mapper.Map<BodyItem>(head);
body.Value = item.Value.Invoke(employee).ToString(); body.Value = item.Value.Invoke(employee)?.ToString();
body.RowNumber = rowNumber; body.RowNumber = rowNumber;
list.Add(body); list.Add(body);
} }
...@@ -467,8 +467,8 @@ private void FillData(ag_secondallot second, List<BodyItem> bodyItems) ...@@ -467,8 +467,8 @@ private void FillData(ag_secondallot second, List<BodyItem> bodyItems)
var keyValue = new Dictionary<string, string> var keyValue = new Dictionary<string, string>
{ {
{"发放月份", $"{second.Year}{second.Month.ToString().PadLeft(2, '0')}月"}, {"发放月份", $"{second.Year}{second.Month.ToString().PadLeft(2, '0')}月"},
{"绩效合计(考核后)", second.RealGiveFee.ToString()}, {"可分配绩效", second.RealGiveFee.ToString()},
{"主任基础绩效", account?.Avg?.ToString()} //{"主任基础绩效", account?.Avg?.ToString()}
}; };
var pairs = new Dictionary<string, string> var pairs = new Dictionary<string, string>
{ {
......
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