Пример #1
0
        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;
        }
Пример #2
0
 protected EmployeePoint(CalculationPointId id, Period period, Employee employee, Calculation calculation,
                         string name, decimal value, bool isFinal = false) : base(id, period, calculation, name, value, isFinal)
 {
     if (employee == null || employee.Id == null)
     {
         throw new ArgumentNullException("employee");
     }
     employeeId = employee.Id;
 }
Пример #3
0
 public JobPositionPoint(CalculationPointId id, Period period, Employee employee,
                         Calculation calculation, JobPosition jobPosition, string name, decimal value, bool isFinal = false)
     : base(id, period, employee, calculation, name, value, isFinal)
 {
     this.jobPositionId = jobPosition.Id;
 }
Пример #4
0
 public SummaryEmployeePoint(CalculationPointId id, Period period, Employee employee,
                             Calculation calculation, string name, decimal value, bool isFinal = false)
     : base(id, period, employee, calculation, name, value, isFinal)
 {
 }