25 lines
671 B
C#
25 lines
671 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using BeWo.Service.Plugins;
|
|
using BS.Shared.Core;
|
|
using BS.Shared.DataContracts;
|
|
|
|
namespace ProBalance.Calculations
|
|
{
|
|
public class CustomGroupDurationCalculator : GroupDurationCalculator
|
|
{
|
|
|
|
public override GroupDurationDC CalculateGroupDuration(int personCount, int employeeCount, decimal totalDuration,
|
|
long[] costBearer2SupportConceptArray)
|
|
{
|
|
|
|
return new GroupDurationDC()
|
|
{
|
|
SingleDuration = Math.Round((totalDuration * employeeCount) / personCount, 0, MidpointRounding.AwayFromZero),
|
|
TotalDuration = totalDuration
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|