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; } }
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; }
public HRBuilding ToBuilding() { HRBuilding b = new HRBuilding(); AnvilEntity e = new AnvilEntity(this); e.CopyTo(b); return b; }