コード例 #1
0
ファイル: HRStaffRecord.cs プロジェクト: LCPS/LCPS-NwUsers
        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
ファイル: HRStaffPosition.cs プロジェクト: LCPS/LCPS-NwUsers
 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 HRBuilding ToBuilding()
 {
     HRBuilding b = new HRBuilding();
     AnvilEntity e = new AnvilEntity(this);
     e.CopyTo(b);
     return b;
 }