Пример #1
0
        public HRStaffRecord(HRStaff staff, HRStaffPosition position, HRBuilding building, HREmployeeType employeeType, HRJobTitle jobTitle)
        {
            if (staff != null)
            {
                FirstName = staff.FirstName;
                MiddleInitial = staff.MiddleInitial;
                LastName = staff.LastName;
                Gender = staff.Gender;
                Birthdate = staff.Birthdate;
                StaffKey = staff.StaffKey;
                StaffId = staff.StaffId;
            }

            if (position != null)
            {

                PositionKey = position.PositionKey;
                StaffKey = position.StaffMemberId;
                BuildingKey = position.BuildingKey;
                EmployeeTypeKey = position.EmployeeTypeKey;
                JobTitleKey = position.JobTitleKey;
                Status = position.Status;
                FiscalYear = position.FiscalYear;
            }
        }
Пример #2
0
 public HRStaffPosition(HRStaff staff, HRBuilding building, HREmployeeType employeeType, HRJobTitle jobTitle)
 {
     _staff = staff;
     _building = building;
     _employeeType = employeeType;
     _jobTitle = jobTitle;
     StaffMemberId = staff.StaffKey;
     BuildingKey = building.BuildingKey;
     EmployeeTypeKey = employeeType.EmployeeTypeLinkId;
     JobTitleKey = jobTitle.JobTitleKey;
 }
Пример #3
0
 public HREmployeeType ToEmployeeType()
 {
     HREmployeeType et = new HREmployeeType();
     AnvilEntity e = new AnvilEntity(this);
     e.CopyTo(et);
     return et;
 }