Beispiel #1
0
        public Employee(string employeeNo, Period period, string firstName, string lastName)
        {
            if (period == null)
            {
                throw new ArgumentNullException("period");
            }
            period.CheckCreatingEmployee();

            if (string.IsNullOrWhiteSpace(employeeNo))
            {
                throw new EmployeeArgumentException("Employee", "employeeNo");
            }
            id = new EmployeeId(employeeNo, period.Id);

            this.firstName = firstName;
            if (string.IsNullOrWhiteSpace(lastName))
            {
                throw new EmployeeArgumentException("Employee", "lastName");
            }
            this.lastName = lastName;

            employeePointState = EmployeePointState.UnCalculated;
        }
Beispiel #2
0
 public virtual void ConfirmFinalPoint(Period period)
 {
     EmployeePointState.ConfirmFinalPoint(this, period);
 }
Beispiel #3
0
 public virtual void ConfirmAboveMaxEmployeePoint(Period period)
 {
     EmployeePointState.ConfirmAboveMaxEmployeePoint(this, period);
 }
Beispiel #4
0
 public virtual void ChangeFinalPoint(decimal point, Period period)
 {
     EmployeePointState.ChangeFinalPoint(this, period, point);
 }
Beispiel #5
0
 public virtual void SetFinalPoint(Period period, decimal finalEmployeePoint)
 {
     EmployeePointState.SetPoint(this, period, finalEmployeePoint);
 }