protected CalculationPoint(CalculationPointId id, Period period, Calculation calculation, string name, decimal value, bool isFinal = false) : base() { this.value = value; if (id == null) { throw new ArgumentNullException("calculationPointId"); } this.id = id; if (period == null || period.Id == null) { throw new ArgumentNullException("period"); } this.periodId = period.Id; if (calculation == null || calculation.Id == null) { throw new ArgumentNullException("employee"); } this.calculationId = calculation.Id; this.isFinal = isFinal; this.name = name; }
public JobIndexPointsReady(CalculationPointPersistanceHolder pointsHolder, Calculations.CalculationId calculationId, Employees.EmployeeId employeeId, int pathNo) { this.pointsHolder = pointsHolder; this.calculationId = calculationId; this.employeeId = employeeId; this.pathNo = pathNo; }
public CalculationExceptionReady(Calculations.CalculationId calculationId, Employees.EmployeeId employeeId, int pathNo, Exception ex) { messages = ex.Message + "\n" + ex.StackTrace; this.calculationId = calculationId; this.employeeId = employeeId; this.pathNo = pathNo; }