Commit 30a3a895 by lcx

二次绩效打印

parent b83c5740
......@@ -47,6 +47,10 @@ public class SecPrintResponse
/// </summary>
public decimal? NightWorkPerformance { get; set; }
/// <summary>
/// 预留比例
/// </summary>
public decimal? ReservedRatio { get; set; }
/// <summary>
/// 实发绩效工资金额
/// </summary>
public decimal? RealAmount { get; set; }
......
......@@ -2185,7 +2185,10 @@ public List<SecPrintResponse> Print(int secondId)
// 重算实发绩效
foreach (var item in result)
{
item.RealAmount = (item.DistPerformance ?? 0) + (item.OtherPerformance ?? 0) + (item.NightWorkPerformance ?? 0);
per_employee employee = employees?.FirstOrDefault(t => t.PersonnelNumber == item.JobNumber);
if (employee != null)
item.ReservedRatio = employee.ReservedRatio ?? 0;
item.RealAmount = (item.DistPerformance ?? 0) * (1 - (item.ReservedRatio ?? 0)) + (item.OtherPerformance ?? 0) + (item.NightWorkPerformance ?? 0);
}
......
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