예제 #1
0
파일: Employee.cs 프로젝트: mehabadi/HPMS
        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;
        }
예제 #2
0
파일: Employee.cs 프로젝트: mehabadi/HPMS
 public virtual void ConfirmFinalPoint(Period period)
 {
     EmployeePointState.ConfirmFinalPoint(this, period);
 }
예제 #3
0
파일: Employee.cs 프로젝트: mehabadi/HPMS
 public virtual void ConfirmAboveMaxEmployeePoint(Period period)
 {
     EmployeePointState.ConfirmAboveMaxEmployeePoint(this, period);
 }
예제 #4
0
파일: Employee.cs 프로젝트: mehabadi/HPMS
 public virtual void ChangeFinalPoint(decimal point, Period period)
 {
     EmployeePointState.ChangeFinalPoint(this, period, point);
 }
예제 #5
0
파일: Employee.cs 프로젝트: mehabadi/HPMS
 public virtual void SetFinalPoint(Period period, decimal finalEmployeePoint)
 {
     EmployeePointState.SetPoint(this, period, finalEmployeePoint);
 }