Guest User

Untitled

a guest
Feb 11th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 463.46 KB | None | 0 0
  1. // Decompiled with JetBrains decompiler
  2. // Type: FirePrograms.Business.UserLogin
  3. // Assembly: FirePrograms.Business, Version=1.0.1.942, Culture=neutral, PublicKeyToken=null
  4. // MVID: 54E68C35-9456-44EA-80A3-48E075764DD6
  5. // Assembly location: C:\Users\bdinger\Desktop\FirePrograms Software\FirePrograms.Business.dll
  6.  
  7. using FirePrograms.Business.Security;
  8. using FirePrograms.Data;
  9. using FirePrograms.Utility;
  10. using System;
  11. using System.Collections;
  12. using System.Collections.Generic;
  13. using System.ComponentModel;
  14. using System.Data;
  15. using System.Linq;
  16. using System.Runtime.Serialization;
  17. using System.Security.Principal;
  18.  
  19. namespace FirePrograms.Business
  20. {
  21.   [Serializable]
  22.   public class UserLogin : BusinessObject, ISynchronizableObject
  23.   {
  24.     internal string userName = string.Empty;
  25.     internal string password = string.Empty;
  26.     internal string userName_originalValue = string.Empty;
  27.     internal string password_originalValue = string.Empty;
  28.     private Hashtable loadedLookups = new Hashtable();
  29.     private string _confirmPassword = string.Empty;
  30.     private bool passwordConfirmed = true;
  31.     private bool _useCustomerLogin = true;
  32.     internal string userDisplayName;
  33.     internal string userDisplayName_originalValue;
  34.     internal AgeDetailList ageDetails;
  35.     internal AgencyList agencies;
  36.     internal AgencyReferralList agencyReferrals;
  37.     internal ApparatusComponentInspectionList apparatusComponentInspections;
  38.     internal ApparatusComponentList apparatusComponents;
  39.     internal ApparatusComponentTestList apparatusComponentTests;
  40.     internal ApparatusFluidList apparatusFluids;
  41.     internal ApparatusPartList apparatusParts;
  42.     internal ApparatusSlotList apparatusSlots;
  43.     internal ApparentGroupInvolvmentFactorList apparentGroupInvolvmentFactors;
  44.     internal ApplicationActivityLogList applicationActivityLogs;
  45.     internal ApplicationComponentPartList applicationComponentParts;
  46.     internal ApplicationComponentRoleList applicationComponentRoles;
  47.     internal ApplicationComponentList applicationComponents;
  48.     internal ApplicationMessageDestinationList applicationMessageDestinations;
  49.     internal ApplicationMessageDestinationList sendToUserApplicationMessageDestinations;
  50.     internal ApplicationMessageDestinationList sendToUserNameApplicationMessageDestinations;
  51.     internal ApplicationMessageRecipientList applicationMessageRecipients;
  52.     internal ApplicationMessageRecipientList userLoginApplicationMessageRecipients;
  53.     internal ApplicationMessageList applicationMessages;
  54.     internal ApplicationMessageList userLoginApplicationMessages;
  55.     internal ApplicationPermissionList applicationPermissions;
  56.     internal ApplicationPreferenceList applicationPreferences;
  57.     internal ApplicationRoleComponentList applicationRoleComponents;
  58.     internal ApplicationRolePermissionList applicationRolePermissions;
  59.     internal ApplicationRoleList applicationRoles;
  60.     internal ApplicationRoleSubComponentList applicationRoleSubComponents;
  61.     internal ApplicationSubcomponentList applicationSubcomponents;
  62.     internal ArchivedReportList archivedReports;
  63.     internal AreaHospitalList areaHospitals;
  64.     internal ArrestList arrests;
  65.     internal ArsonMotivationOrRiskFactorList arsonMotivationOrRiskFactors;
  66.     internal ArsonRecordList arsonRecords;
  67.     internal ArsonSubjectList arsonSubjects;
  68.     internal AssetAcquisitionList assetAcquisitions;
  69.     internal AssetDispositionList assetDispositions;
  70.     internal AssignedInspectorList assignedInspectors;
  71.     internal AutopsyList autopsies;
  72.     internal AutopsyRemovedObjectList autopsyRemovedObjects;
  73.     internal AutopsySpecimenList autopsySpecimens;
  74.     internal AutopsyWitnessList autopsyWitnesses;
  75.     internal BattalionList battalions;
  76.     internal BodyInjurySiteList bodyInjurySites;
  77.     internal BombActionsTakenList bombActionsTaken;
  78.     internal BombList bombs;
  79.     internal BombThreatList bombThreats;
  80.     internal BurnedCropList burnedCrops;
  81.     internal BusinessEntityList businessEntities;
  82.     internal CardiacArrestPreArrivalDetailList cardiacArrestPreArrivalDetails;
  83.     internal CaseEvidenceItemList caseEvidenceItems;
  84.     internal CaseInvestigatorList caseInvestigators;
  85.     internal CertificateList certificates;
  86.     internal CertificateTypeRequirementList certificateTypeRequirements;
  87.     internal CertificateTypeList certificateTypes;
  88.     internal CertificationGradeList certificationGrades;
  89.     internal CertificationList certifications;
  90.     internal CivilianCasualtyList civilianCasualties;
  91.     internal ComponentLoggingLevelList componentLoggingLevels;
  92.     internal ComponentSecurityLevelList componentSecurityLevels;
  93.     internal ComponentSecurityLevelList userLoginComponentSecurityLevels;
  94.     internal ContactMethodList contactMethods;
  95.     internal ContributedToIgnitionFactorList contributedToIgnitionFactors;
  96.     internal ContributingInjuryFactorList contributingInjuryFactors;
  97.     internal CoverageAreaList coverageAreas;
  98.     internal CustomDictionaryEntryList customDictionaryEntries;
  99.     internal CustomerContactList customerContacts;
  100.     internal CustomerLoginComponentList customerLoginComponents;
  101.     internal CustomerLoginPermissionList customerLoginPermissions;
  102.     internal CustomerLoginRoleList customerLoginRoles;
  103.     internal CustomerLoginList customerLogins;
  104.     internal CustomerLoginList userLoginCustomerLogins;
  105.     internal CustomerLoginSubcomponentList customerLoginSubcomponents;
  106.     internal CustomerList customers;
  107.     internal new CustomFieldList customFields;
  108.     internal CustomFieldValueList customFieldValues;
  109.     internal CustomNFIRSTextEntryList customNFIRSTextEntries;
  110.     internal CustomSchedulingCalculationList customSchedulingCalculations;
  111.     internal CustomSchedulingEnteredValueList customSchedulingEnteredValues;
  112.     internal DailyLogApparatusEntryList dailyLogApparatusEntries;
  113.     internal DailyLogEntryList dailyLogEntries;
  114.     internal DailyLogEntryTypeList dailyLogEntryTypes;
  115.     internal DailyLogPersonnelEntryList dailyLogPersonnelEntries;
  116.     internal DailyLogShiftEntryList dailyLogShiftEntries;
  117.     internal DailyLogStationEntryList dailyLogStationEntries;
  118.     internal DailyLogUsedEquipmentItemList dailyLogUsedEquipmentItems;
  119.     internal DailyLogUsedSupplyItemList dailyLogUsedSupplyItems;
  120.     internal DepartmentFDIDList departmentFDIDs;
  121.     internal DepartmentLoginComponentList departmentLoginComponents;
  122.     internal DepartmentLoginPermissionList departmentLoginPermissions;
  123.     internal DepartmentLoginRoleList departmentLoginRoles;
  124.     internal DepartmentLoginList departmentLogins;
  125.     internal DepartmentLoginList userLoginDepartmentLogins;
  126.     internal DepartmentLoginSubcomponentList departmentLoginSubcomponents;
  127.     internal DisciplinaryReportList disciplinaryReports;
  128.     internal DistrictList districts;
  129.     internal EmploymentCategorySchedulingConstraintList employmentCategorySchedulingConstraints;
  130.     internal EMSPatientList eMSPatients;
  131.     internal EPADictionaryEntryList ePADictionaryEntries;
  132.     internal EquipmentConditionRecordList equipmentConditionRecords;
  133.     internal EquipmentConditionList equipmentConditions;
  134.     internal EquipmentItemInspectionList equipmentItemInspections;
  135.     internal EquipmentItemList equipmentItems;
  136.     internal EquipmentItemSizeList equipmentItemSizes;
  137.     internal EquipmentItemTestDetailList equipmentItemTestDetails;
  138.     internal EquipmentItemTestList equipmentItemTests;
  139.     internal EquipmentSizeFieldList equipmentSizeFields;
  140.     internal EquipmentStatusList equipmentStatuses;
  141.     internal EquipmentStatusRecordList equipmentStatusRecords;
  142.     internal EquipmentTypeList equipmentTypes;
  143.     internal FieldInvestigationList fieldInvestigations;
  144.     internal FiledChargeList filedCharges;
  145.     internal FireExtinguisherList fireExtinguishers;
  146.     internal FireInvestigationList fireInvestigations;
  147.     internal FireInvestigationList lockedByUserFireInvestigations;
  148.     internal FireServiceCasualtyList fireServiceCasualties;
  149.     internal FixedAssetInventoryItemList fixedAssetInventoryItems;
  150.     internal FixedAssetItemTestList fixedAssetItemTests;
  151.     internal FleetApparatusRecordList fleetApparatusRecords;
  152.     internal FleetApparatusTypeList fleetApparatusTypes;
  153.     internal FLSAPeriodList fLSAPeriods;
  154.     internal FluidTypeList fluidTypes;
  155.     internal HazMatActionList hazMatActions;
  156.     internal HazMatChemicalReleaseList hazMatChemicalReleases;
  157.     internal HazMatExposureList hazMatExposures;
  158.     internal HazMatMitigationFactorList hazMatMitigationFactors;
  159.     internal HazMatRecordList hazMatRecords;
  160.     internal HazMatReleaseFactorList hazMatReleaseFactors;
  161.     internal HazTrakHealthHazardList hazTrakHealthHazards;
  162.     internal HazTrakRecordList hazTrakRecords;
  163.     internal HazTrakStorageLocationList hazTrakStorageLocations;
  164.     internal HelpFileEntryList helpFileEntries;
  165.     internal HoseList hoses;
  166.     internal HoseTestDetailList hoseTestDetails;
  167.     internal HoseTestList hoseTests;
  168.     internal HoseTypeList hoseTypes;
  169.     internal HumanFactorList humanFactors;
  170.     internal HumanInjuryFactorList humanInjuryFactors;
  171.     internal HydrantInspectionList hydrantInspections;
  172.     internal HydrantList hydrants;
  173.     internal HydrantTestList hydrantTests;
  174.     internal IncidentActionList incidentActions;
  175.     internal IncidentExposureList incidentExposures;
  176.     internal IncidentMappingSettingList incidentMappingSettings;
  177.     internal IncidentMappingSettingList userLoginIncidentMappingSettings;
  178.     internal IncidentRecordList incidentRecords;
  179.     internal IncidentRoleList incidentRoles;
  180.     internal IncidentSpecialStudyList incidentSpecialStudies;
  181.     internal IncidentUsedEquipmentItemList incidentUsedEquipmentItems;
  182.     internal IncidentUsedSupplyItemList incidentUsedSupplyItems;
  183.     internal InitialObservationList initialObservations;
  184.     internal InspectionDistrictList inspectionDistricts;
  185.     internal InspectionGroupList inspectionGroups;
  186.     internal InsuranceClaimList insuranceClaims;
  187.     internal InsuranceCompanyList insuranceCompanies;
  188.     internal InsurancePolicyList insurancePolicies;
  189.     internal InterviewQuestionList interviewQuestions;
  190.     internal InterviewList interviews;
  191.     internal InterviewStandardQuestionList interviewStandardQuestions;
  192.     internal InventoryItemCategoryList inventoryItemCategories;
  193.     internal InvolvedAttorneyList involvedAttorneys;
  194.     internal InvolvedEntityList involvedEntities;
  195.     internal InvolvedPersonList involvedPersons;
  196.     internal IrregularAssignmentList irregularAssignments;
  197.     internal IssuedPermitList issuedPermits;
  198.     internal ItemCheckOutList itemCheckOuts;
  199.     internal JuvenileList juveniles;
  200.     internal LabRequestList labRequests;
  201.     internal LabTechnicianList labTechnicians;
  202.     internal LegalOfficerList legalOfficers;
  203.     internal LicenseModuleList licenseModules;
  204.     internal LicenseList licenses;
  205.     internal LicenseUserSessionList licenseUserSessions;
  206.     internal LicenseUserSessionList userLoginLicenseUserSessions;
  207.     internal LocationCrossStreetList locationCrossStreets;
  208.     internal LocationList locations;
  209.     internal MaintenanceRequestItemList maintenanceRequestItems;
  210.     internal MaintenanceRequestList maintenanceRequests;
  211.     internal MaintenanceTaskScheduleList maintenanceTaskSchedules;
  212.     internal ManufacturerList manufacturers;
  213.     internal ManufacturerTypeList manufacturerTypes;
  214.     internal MapLayoutFilterFieldList mapLayoutFilterFields;
  215.     internal MapLayoutList mapLayouts;
  216.     internal MappingComponentList mappingComponents;
  217.     internal MedicalExaminationList medicalExaminations;
  218.     internal MedicalOfficerList medicalOfficers;
  219.     internal MobilePropertyList mobileProperties;
  220.     internal MortgageCompanyList mortgageCompanies;
  221.     internal MortgageList mortgages;
  222.     internal MutualAidRecordList mutualAidRecords;
  223.     internal NarrativeLinkList narrativeLinks;
  224.     internal NarrativeList narratives;
  225.     internal NarrativeTemplateList narrativeTemplates;
  226.     internal NearbyPropertyList nearbyProperties;
  227.     internal NeededResourceList neededResources;
  228.     internal NFIRSDictionaryEntryList nFIRSDictionaryEntries;
  229.     internal NFPADictionaryEntryList nFPADictionaryEntries;
  230.     internal OfficerList officers;
  231.     internal OnScenePersonList onScenePersons;
  232.     internal OnSiteMaterialList onSiteMaterials;
  233.     internal OtherObservationList otherObservations;
  234.     internal PageComponentList pageComponents;
  235.     internal PageLayoutList pageLayouts;
  236.     internal PageLayoutList userLoginPageLayouts;
  237.     internal PayPeriodList payPeriods;
  238.     internal PerformedProcedureList performedProcedures;
  239.     internal PersonAliasNameList personAliasNames;
  240.     internal PersonLanguageList personLanguages;
  241.     internal PersonnelAllergyList personnelAllergies;
  242.     internal PersonnelCertificationList personnelCertifications;
  243.     internal PersonnelEmploymentCategoryList personnelEmploymentCategories;
  244.     internal PersonnelEmploymentDetailList personnelEmploymentDetails;
  245.     internal PersonnelEquipmentSizeList personnelEquipmentSizes;
  246.     internal PersonnelEquipmentTestRecordList personnelEquipmentTestRecords;
  247.     internal PersonnelIrregularWorkPlaceList personnelIrregularWorkPlaces;
  248.     internal PersonnelIrregularWorkTimeList personnelIrregularWorkTimes;
  249.     internal PersonnelMedicalDetailList personnelMedicalDetails;
  250.     internal PersonnelMedicationList personnelMedications;
  251.     internal PersonnelRankHistoryList personnelRankHistory;
  252.     internal PersonnelRankList personnelRanks;
  253.     internal PersonnelRecordList personnelRecords;
  254.     internal PersonnelRecordList userLoginPersonnelRecords;
  255.     internal PersonnelRegularWorkPlaceList personnelRegularWorkPlaces;
  256.     internal PersonnelRegularWorkTimeList personnelRegularWorkTimes;
  257.     internal PersonnelScheduledOffTimeList personnelScheduledOffTimes;
  258.     internal PersonnelSchedulingConstraintList personnelSchedulingConstraints;
  259.     internal PersonnelSkillList personnelSkills;
  260.     internal PersonnelStatusRequestList personnelStatusRequests;
  261.     internal PersonnelStatusTimeList personnelStatusTimes;
  262.     internal PersonnelStatusTypeList personnelStatusTypes;
  263.     internal PersonnelTimesheetRecordList personnelTimesheetRecords;
  264.     internal PersonRecordList personRecords;
  265.     internal PersonRoleList personRoles;
  266.     internal PrePlanList prePlans;
  267.     internal PropertyCodeViolationList propertyCodeViolations;
  268.     internal PropertyHydrantList propertyHydrants;
  269.     internal PropertyInspectionCodeList propertyInspectionCodes;
  270.     internal PropertyInspectionList propertyInspections;
  271.     internal PropertyInspectionTypeList propertyInspectionTypes;
  272.     internal PropertyNameList propertyNames;
  273.     internal PropertyOccupancyRecordList propertyOccupancyRecords;
  274.     internal PropertyOwnershipRecordList propertyOwnershipRecords;
  275.     internal ProtectedPropertyList protectedProperties;
  276.     internal ProtectedPropertyContactList protectedPropertyContacts;
  277.     internal ProtectedPropertyDirectionList protectedPropertyDirections;
  278.     internal ProtectedPropertyInspectionGroupList protectedPropertyInspectionGroups;
  279.     internal ProtectiveEquipmentFailureList protectiveEquipmentFailures;
  280.     internal ProvidedResourceList providedResources;
  281.     internal PurchaseOrderItemList purchaseOrderItems;
  282.     internal PurchaseOrderReceivedItemList purchaseOrderReceivedItems;
  283.     internal PurchaseOrderList purchaseOrders;
  284.     internal ReceivedSynchronizationList receivedSynchronizations;
  285.     internal new RecordAttachmentList recordAttachments;
  286.     internal new RecordNoteList recordNotes;
  287.     internal RecordNoteList createdByUserLoginRecordNotes;
  288.     internal RegisteredDepartmentList registeredDepartments;
  289.     internal RegularApparatusAssignmentList regularApparatusAssignments;
  290.     internal RegularAssignmentList regularAssignments;
  291.     internal RelatedInvestigationList relatedInvestigations;
  292.     internal ReportComponentFieldList reportComponentFields;
  293.     internal ReportComponentFilterList reportComponentFilters;
  294.     internal ReportComponentList reportComponents;
  295.     internal ReportFilterList reportFilters;
  296.     internal ReportLayoutList reportLayouts;
  297.     internal ReportRecipientList reportRecipients;
  298.     internal ReportList reports;
  299.     internal ReportScheduleList reportSchedules;
  300.     internal ResourceProviderList resourceProviders;
  301.     internal RespondingApparatusActionList respondingApparatusActions;
  302.     internal RespondingApparatusRecordList respondingApparatusRecords;
  303.     internal RespondingPersonnelActionList respondingPersonnelActions;
  304.     internal RespondingPersonnelRecordList respondingPersonnelRecords;
  305.     internal RotationList rotations;
  306.     internal SafetyEquipmentRecordList safetyEquipmentRecords;
  307.     internal SceneLegalAccessDetailList sceneLegalAccessDetails;
  308.     internal ScheduleRequirementList scheduleRequirements;
  309.     internal ScheduleList schedules;
  310.     internal SchedulingPageLayoutList schedulingPageLayouts;
  311.     internal SchedulingPageLayoutList userLoginSchedulingPageLayouts;
  312.     internal ShiftRotationList shiftRotations;
  313.     internal ShiftList shifts;
  314.     internal SignatureList signatures;
  315.     internal SkillComponentList skillComponents;
  316.     internal SkillList skills;
  317.     internal SpecificPropertyUsageList specificPropertyUsages;
  318.     internal StateDictionaryEntryList stateDictionaryEntries;
  319.     internal StationContactList stationContacts;
  320.     internal StationLoginList stationLogins;
  321.     internal StationLoginList userLoginStationLogins;
  322.     internal StationList stations;
  323.     internal StorageAreaList storageAreas;
  324.     internal StreetDictionaryEntryList streetDictionaryEntries;
  325.     internal SupplyItemLevelList supplyItemLevels;
  326.     internal SupplyItemPurchaseDistributionList supplyItemPurchaseDistributions;
  327.     internal SupplyItemPurchaseList supplyItemPurchases;
  328.     internal SupplyItemList supplyItems;
  329.     internal SupplyItemTypeList supplyItemTypes;
  330.     internal SupplyItemUsageList supplyItemUsages;
  331.     internal SuppressionFactorList suppressionFactors;
  332.     internal SuspectedMotivationFactorList suspectedMotivationFactors;
  333.     internal SuspectList suspects;
  334.     internal SynchronizationRecordList synchronizationRecords;
  335.     internal SynchronizerStatusList synchronizerStatuses;
  336.     internal TableLookupList tableLookups;
  337.     internal TrainingApparatusRecordList trainingApparatusRecords;
  338.     internal TrainingCategoryList trainingCategories;
  339.     internal TrainingCertificateDistributionList trainingCertificateDistributions;
  340.     internal TrainingClassAttendanceRecordList trainingClassAttendanceRecords;
  341.     internal TrainingClassAutoAssignmentList trainingClassAutoAssignments;
  342.     internal TrainingClassList trainingClasses;
  343.     internal TrainingClassInstructorList trainingClassInstructors;
  344.     internal TrainingClassPrerequisiteList trainingClassPrerequisites;
  345.     internal TrainingClassSessionInstructorList trainingClassSessionInstructors;
  346.     internal TrainingClassSessionList trainingClassSessions;
  347.     internal TrainingClassSessionTopicList trainingClassSessionTopics;
  348.     internal TrainingClassTopicInstructorList trainingClassTopicInstructors;
  349.     internal TrainingClassTopicList trainingClassTopics;
  350.     internal TrainingClassTopicSessionInstructorList trainingClassTopicSessionInstructors;
  351.     internal TrainingCourseClassList trainingCourseClasses;
  352.     internal TrainingCourseInstructorList trainingCourseInstructors;
  353.     internal TrainingCoursePrerequisiteList trainingCoursePrerequisites;
  354.     internal TrainingCourseList trainingCourses;
  355.     internal TrainingHourRequirementList trainingHourRequirements;
  356.     internal TrainingInstructorList trainingInstructors;
  357.     internal TrainingTopicList trainingTopics;
  358.     internal UsedLaboratoryList usedLaboratories;
  359.     internal UserLoginList userLogins;
  360.     internal new UserPreferenceList userPreferences;
  361.     internal UserPreferenceList userLoginUserPreferences;
  362.     internal UserRoleList userRoles;
  363.     internal UserRoleList userLoginUserRoles;
  364.     internal UserSecurityLevelList userSecurityLevels;
  365.     internal UserSecurityLevelList userLoginUserSecurityLevels;
  366.     internal VendorList vendors;
  367.     internal VendorTypeList vendorTypes;
  368.     internal WildlandLocationList wildlandLocations;
  369.     internal WitnessStatementList witnessStatements;
  370.     internal WorkOrderItemList workOrderItems;
  371.     internal WorkOrderPerformerList workOrderPerformers;
  372.     internal WorkOrderReplacedFluidList workOrderReplacedFluids;
  373.     internal WorkOrderReplacedPartList workOrderReplacedParts;
  374.     internal WorkOrderList workOrders;
  375.     internal ZipcodeDictionaryEntryList zipcodeDictionaryEntries;
  376.     internal ZoneList zones;
  377.     internal UserLogin createdByUserLogin;
  378.     private UserPreferenceList preferences;
  379.     private UserPreferenceList _effectiveUserPreferences;
  380.     private IDbConnection _persistentConnection;
  381.     public UserLoginRoleList roleResult;
  382.     private EffectivePermissionList result;
  383.     private RotationList _visibleRotations;
  384.     private Guid? currentPersonnelRecordID;
  385.  
  386.     [SQLField(true)]
  387.     [CustomReporting(Visibility.Reportable)]
  388.     [CustomQuery(QueryStyle.Nonindexed)]
  389.     public string UserName
  390.     {
  391.       get
  392.       {
  393.         return this.userName;
  394.       }
  395.       set
  396.       {
  397.         if (!(this.userName != value))
  398.           return;
  399.         this.userName = value;
  400.         this.SetDataState("UserName");
  401.       }
  402.     }
  403.  
  404.     [CustomReporting(Visibility.Reportable)]
  405.     [SQLField(true)]
  406.     [CustomQuery(QueryStyle.Nonindexed)]
  407.     public string Password
  408.     {
  409.       get
  410.       {
  411.         return this.password;
  412.       }
  413.       set
  414.       {
  415.         if (!(this.password != value))
  416.           return;
  417.         this.password = value;
  418.         this.SetDataState("Password");
  419.       }
  420.     }
  421.  
  422.     [SQLField(true)]
  423.     [CustomReporting(Visibility.Reportable)]
  424.     [CustomQuery(QueryStyle.Nonindexed)]
  425.     public string UserDisplayName
  426.     {
  427.       get
  428.       {
  429.         return this.userDisplayName;
  430.       }
  431.       set
  432.       {
  433.         if (this.userDisplayName != null && this.userDisplayName.Equals(value) && value != null)
  434.           return;
  435.         this.userDisplayName = value;
  436.         this.SetDataState("UserDisplayName");
  437.       }
  438.     }
  439.  
  440.     [CustomReporting(Visibility.Nonreportable)]
  441.     [CustomQuery(QueryStyle.Nonqueryable)]
  442.     public AgeDetailList AgeDetails
  443.     {
  444.       get
  445.       {
  446.         if (this.ageDetails == null)
  447.         {
  448.           this.ageDetails = new AgeDetailList();
  449.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  450.             this.ageDetails.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  451.           this.ageDetails.parentObject = (object) this;
  452.         }
  453.         return this.ageDetails;
  454.       }
  455.       set
  456.       {
  457.         this.ageDetails = value;
  458.         this.SetDataState("AgeDetails");
  459.         if (value == null || value.parentObject != null)
  460.           return;
  461.         this.ageDetails.parentObject = (object) this;
  462.       }
  463.     }
  464.  
  465.     [CustomQuery(QueryStyle.Nonqueryable)]
  466.     [CustomReporting(Visibility.Nonreportable)]
  467.     public AgencyList Agencies
  468.     {
  469.       get
  470.       {
  471.         if (this.agencies == null)
  472.         {
  473.           this.agencies = new AgencyList();
  474.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  475.             this.agencies.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  476.           this.agencies.parentObject = (object) this;
  477.         }
  478.         return this.agencies;
  479.       }
  480.       set
  481.       {
  482.         this.agencies = value;
  483.         this.SetDataState("Agencies");
  484.         if (value == null || value.parentObject != null)
  485.           return;
  486.         this.agencies.parentObject = (object) this;
  487.       }
  488.     }
  489.  
  490.     [CustomReporting(Visibility.Nonreportable)]
  491.     [CustomQuery(QueryStyle.Nonqueryable)]
  492.     public AgencyReferralList AgencyReferrals
  493.     {
  494.       get
  495.       {
  496.         if (this.agencyReferrals == null)
  497.         {
  498.           this.agencyReferrals = new AgencyReferralList();
  499.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  500.             this.agencyReferrals.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  501.           this.agencyReferrals.parentObject = (object) this;
  502.         }
  503.         return this.agencyReferrals;
  504.       }
  505.       set
  506.       {
  507.         this.agencyReferrals = value;
  508.         this.SetDataState("AgencyReferrals");
  509.         if (value == null || value.parentObject != null)
  510.           return;
  511.         this.agencyReferrals.parentObject = (object) this;
  512.       }
  513.     }
  514.  
  515.     [CustomQuery(QueryStyle.Nonqueryable)]
  516.     [CustomReporting(Visibility.Nonreportable)]
  517.     public ApparatusComponentInspectionList ApparatusComponentInspections
  518.     {
  519.       get
  520.       {
  521.         if (this.apparatusComponentInspections == null)
  522.         {
  523.           this.apparatusComponentInspections = new ApparatusComponentInspectionList();
  524.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  525.             this.apparatusComponentInspections.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  526.           this.apparatusComponentInspections.parentObject = (object) this;
  527.         }
  528.         return this.apparatusComponentInspections;
  529.       }
  530.       set
  531.       {
  532.         this.apparatusComponentInspections = value;
  533.         this.SetDataState("ApparatusComponentInspections");
  534.         if (value == null || value.parentObject != null)
  535.           return;
  536.         this.apparatusComponentInspections.parentObject = (object) this;
  537.       }
  538.     }
  539.  
  540.     [CustomQuery(QueryStyle.Nonqueryable)]
  541.     [CustomReporting(Visibility.Nonreportable)]
  542.     public ApparatusComponentList ApparatusComponents
  543.     {
  544.       get
  545.       {
  546.         if (this.apparatusComponents == null)
  547.         {
  548.           this.apparatusComponents = new ApparatusComponentList();
  549.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  550.             this.apparatusComponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  551.           this.apparatusComponents.parentObject = (object) this;
  552.         }
  553.         return this.apparatusComponents;
  554.       }
  555.       set
  556.       {
  557.         this.apparatusComponents = value;
  558.         this.SetDataState("ApparatusComponents");
  559.         if (value == null || value.parentObject != null)
  560.           return;
  561.         this.apparatusComponents.parentObject = (object) this;
  562.       }
  563.     }
  564.  
  565.     [CustomQuery(QueryStyle.Nonqueryable)]
  566.     [CustomReporting(Visibility.Nonreportable)]
  567.     public ApparatusComponentTestList ApparatusComponentTests
  568.     {
  569.       get
  570.       {
  571.         if (this.apparatusComponentTests == null)
  572.         {
  573.           this.apparatusComponentTests = new ApparatusComponentTestList();
  574.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  575.             this.apparatusComponentTests.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  576.           this.apparatusComponentTests.parentObject = (object) this;
  577.         }
  578.         return this.apparatusComponentTests;
  579.       }
  580.       set
  581.       {
  582.         this.apparatusComponentTests = value;
  583.         this.SetDataState("ApparatusComponentTests");
  584.         if (value == null || value.parentObject != null)
  585.           return;
  586.         this.apparatusComponentTests.parentObject = (object) this;
  587.       }
  588.     }
  589.  
  590.     [CustomQuery(QueryStyle.Nonqueryable)]
  591.     [CustomReporting(Visibility.Nonreportable)]
  592.     public ApparatusFluidList ApparatusFluids
  593.     {
  594.       get
  595.       {
  596.         if (this.apparatusFluids == null)
  597.         {
  598.           this.apparatusFluids = new ApparatusFluidList();
  599.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  600.             this.apparatusFluids.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  601.           this.apparatusFluids.parentObject = (object) this;
  602.         }
  603.         return this.apparatusFluids;
  604.       }
  605.       set
  606.       {
  607.         this.apparatusFluids = value;
  608.         this.SetDataState("ApparatusFluids");
  609.         if (value == null || value.parentObject != null)
  610.           return;
  611.         this.apparatusFluids.parentObject = (object) this;
  612.       }
  613.     }
  614.  
  615.     [CustomQuery(QueryStyle.Nonqueryable)]
  616.     [CustomReporting(Visibility.Nonreportable)]
  617.     public ApparatusPartList ApparatusParts
  618.     {
  619.       get
  620.       {
  621.         if (this.apparatusParts == null)
  622.         {
  623.           this.apparatusParts = new ApparatusPartList();
  624.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  625.             this.apparatusParts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  626.           this.apparatusParts.parentObject = (object) this;
  627.         }
  628.         return this.apparatusParts;
  629.       }
  630.       set
  631.       {
  632.         this.apparatusParts = value;
  633.         this.SetDataState("ApparatusParts");
  634.         if (value == null || value.parentObject != null)
  635.           return;
  636.         this.apparatusParts.parentObject = (object) this;
  637.       }
  638.     }
  639.  
  640.     [CustomReporting(Visibility.Nonreportable)]
  641.     [CustomQuery(QueryStyle.Nonqueryable)]
  642.     public ApparatusSlotList ApparatusSlots
  643.     {
  644.       get
  645.       {
  646.         if (this.apparatusSlots == null)
  647.         {
  648.           this.apparatusSlots = new ApparatusSlotList();
  649.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  650.             this.apparatusSlots.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  651.           this.apparatusSlots.parentObject = (object) this;
  652.         }
  653.         return this.apparatusSlots;
  654.       }
  655.       set
  656.       {
  657.         this.apparatusSlots = value;
  658.         this.SetDataState("ApparatusSlots");
  659.         if (value == null || value.parentObject != null)
  660.           return;
  661.         this.apparatusSlots.parentObject = (object) this;
  662.       }
  663.     }
  664.  
  665.     [CustomReporting(Visibility.Nonreportable)]
  666.     [CustomQuery(QueryStyle.Nonqueryable)]
  667.     public ApparentGroupInvolvmentFactorList ApparentGroupInvolvmentFactors
  668.     {
  669.       get
  670.       {
  671.         if (this.apparentGroupInvolvmentFactors == null)
  672.         {
  673.           this.apparentGroupInvolvmentFactors = new ApparentGroupInvolvmentFactorList();
  674.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  675.             this.apparentGroupInvolvmentFactors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  676.           this.apparentGroupInvolvmentFactors.parentObject = (object) this;
  677.         }
  678.         return this.apparentGroupInvolvmentFactors;
  679.       }
  680.       set
  681.       {
  682.         this.apparentGroupInvolvmentFactors = value;
  683.         this.SetDataState("ApparentGroupInvolvmentFactors");
  684.         if (value == null || value.parentObject != null)
  685.           return;
  686.         this.apparentGroupInvolvmentFactors.parentObject = (object) this;
  687.       }
  688.     }
  689.  
  690.     [CustomQuery(QueryStyle.Nonqueryable)]
  691.     [CustomReporting(Visibility.Nonreportable)]
  692.     public ApplicationActivityLogList ApplicationActivityLogs
  693.     {
  694.       get
  695.       {
  696.         if (this.applicationActivityLogs == null)
  697.         {
  698.           this.applicationActivityLogs = new ApplicationActivityLogList();
  699.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  700.             this.applicationActivityLogs.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  701.           this.applicationActivityLogs.parentObject = (object) this;
  702.         }
  703.         return this.applicationActivityLogs;
  704.       }
  705.       set
  706.       {
  707.         this.applicationActivityLogs = value;
  708.         this.SetDataState("ApplicationActivityLogs");
  709.         if (value == null || value.parentObject != null)
  710.           return;
  711.         this.applicationActivityLogs.parentObject = (object) this;
  712.       }
  713.     }
  714.  
  715.     [CustomReporting(Visibility.Nonreportable)]
  716.     [CustomQuery(QueryStyle.Nonqueryable)]
  717.     public ApplicationComponentPartList ApplicationComponentParts
  718.     {
  719.       get
  720.       {
  721.         if (this.applicationComponentParts == null)
  722.         {
  723.           this.applicationComponentParts = new ApplicationComponentPartList();
  724.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  725.             this.applicationComponentParts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  726.           this.applicationComponentParts.parentObject = (object) this;
  727.         }
  728.         return this.applicationComponentParts;
  729.       }
  730.       set
  731.       {
  732.         this.applicationComponentParts = value;
  733.         this.SetDataState("ApplicationComponentParts");
  734.         if (value == null || value.parentObject != null)
  735.           return;
  736.         this.applicationComponentParts.parentObject = (object) this;
  737.       }
  738.     }
  739.  
  740.     [CustomQuery(QueryStyle.Nonqueryable)]
  741.     [CustomReporting(Visibility.Nonreportable)]
  742.     public ApplicationComponentRoleList ApplicationComponentRoles
  743.     {
  744.       get
  745.       {
  746.         if (this.applicationComponentRoles == null)
  747.         {
  748.           this.applicationComponentRoles = new ApplicationComponentRoleList();
  749.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  750.             this.applicationComponentRoles.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  751.           this.applicationComponentRoles.parentObject = (object) this;
  752.         }
  753.         return this.applicationComponentRoles;
  754.       }
  755.       set
  756.       {
  757.         this.applicationComponentRoles = value;
  758.         this.SetDataState("ApplicationComponentRoles");
  759.         if (value == null || value.parentObject != null)
  760.           return;
  761.         this.applicationComponentRoles.parentObject = (object) this;
  762.       }
  763.     }
  764.  
  765.     [CustomReporting(Visibility.Nonreportable)]
  766.     [CustomQuery(QueryStyle.Nonqueryable)]
  767.     public ApplicationComponentList ApplicationComponents
  768.     {
  769.       get
  770.       {
  771.         if (this.applicationComponents == null)
  772.         {
  773.           this.applicationComponents = new ApplicationComponentList();
  774.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  775.             this.applicationComponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  776.           this.applicationComponents.parentObject = (object) this;
  777.         }
  778.         return this.applicationComponents;
  779.       }
  780.       set
  781.       {
  782.         this.applicationComponents = value;
  783.         this.SetDataState("ApplicationComponents");
  784.         if (value == null || value.parentObject != null)
  785.           return;
  786.         this.applicationComponents.parentObject = (object) this;
  787.       }
  788.     }
  789.  
  790.     [CustomQuery(QueryStyle.Nonqueryable)]
  791.     [CustomReporting(Visibility.Nonreportable)]
  792.     public ApplicationMessageDestinationList ApplicationMessageDestinations
  793.     {
  794.       get
  795.       {
  796.         if (this.applicationMessageDestinations == null)
  797.         {
  798.           this.applicationMessageDestinations = new ApplicationMessageDestinationList();
  799.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  800.             this.applicationMessageDestinations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  801.           this.applicationMessageDestinations.parentObject = (object) this;
  802.         }
  803.         return this.applicationMessageDestinations;
  804.       }
  805.       set
  806.       {
  807.         this.applicationMessageDestinations = value;
  808.         this.SetDataState("ApplicationMessageDestinations");
  809.         if (value == null || value.parentObject != null)
  810.           return;
  811.         this.applicationMessageDestinations.parentObject = (object) this;
  812.       }
  813.     }
  814.  
  815.     [CustomReporting(Visibility.Nonreportable)]
  816.     [CustomQuery(QueryStyle.Nonqueryable)]
  817.     public ApplicationMessageDestinationList SendToUserApplicationMessageDestinations
  818.     {
  819.       get
  820.       {
  821.         if (this.sendToUserApplicationMessageDestinations == null)
  822.         {
  823.           this.sendToUserApplicationMessageDestinations = new ApplicationMessageDestinationList();
  824.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  825.             this.sendToUserApplicationMessageDestinations.Reload("SendToUserID = '" + this.recordID.ToString() + "'");
  826.           this.sendToUserApplicationMessageDestinations.parentObject = (object) this;
  827.         }
  828.         return this.sendToUserApplicationMessageDestinations;
  829.       }
  830.       set
  831.       {
  832.         this.sendToUserApplicationMessageDestinations = value;
  833.         this.SetDataState("SendToUserApplicationMessageDestinations");
  834.         if (value == null || value.parentObject != null)
  835.           return;
  836.         this.sendToUserApplicationMessageDestinations.parentObject = (object) this;
  837.       }
  838.     }
  839.  
  840.     [CustomQuery(QueryStyle.Nonqueryable)]
  841.     [CustomReporting(Visibility.Nonreportable)]
  842.     public ApplicationMessageDestinationList SendToUserNameApplicationMessageDestinations
  843.     {
  844.       get
  845.       {
  846.         if (this.sendToUserNameApplicationMessageDestinations == null)
  847.         {
  848.           this.sendToUserNameApplicationMessageDestinations = new ApplicationMessageDestinationList();
  849.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && !string.IsNullOrEmpty(this.userName))
  850.             this.sendToUserNameApplicationMessageDestinations.Reload("SendToUserName = '" + this.userName.ToString() + "'");
  851.           this.sendToUserNameApplicationMessageDestinations.parentObject = (object) this;
  852.         }
  853.         return this.sendToUserNameApplicationMessageDestinations;
  854.       }
  855.       set
  856.       {
  857.         this.sendToUserNameApplicationMessageDestinations = value;
  858.         this.SetDataState("SendToUserNameApplicationMessageDestinations");
  859.         if (value == null || value.parentObject != null)
  860.           return;
  861.         this.sendToUserNameApplicationMessageDestinations.parentObject = (object) this;
  862.       }
  863.     }
  864.  
  865.     [CustomQuery(QueryStyle.Nonqueryable)]
  866.     [CustomReporting(Visibility.Nonreportable)]
  867.     public ApplicationMessageRecipientList ApplicationMessageRecipients
  868.     {
  869.       get
  870.       {
  871.         if (this.applicationMessageRecipients == null)
  872.         {
  873.           this.applicationMessageRecipients = new ApplicationMessageRecipientList();
  874.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  875.             this.applicationMessageRecipients.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  876.           this.applicationMessageRecipients.parentObject = (object) this;
  877.         }
  878.         return this.applicationMessageRecipients;
  879.       }
  880.       set
  881.       {
  882.         this.applicationMessageRecipients = value;
  883.         this.SetDataState("ApplicationMessageRecipients");
  884.         if (value == null || value.parentObject != null)
  885.           return;
  886.         this.applicationMessageRecipients.parentObject = (object) this;
  887.       }
  888.     }
  889.  
  890.     [CustomQuery(QueryStyle.Nonqueryable)]
  891.     [CustomReporting(Visibility.Nonreportable)]
  892.     public ApplicationMessageRecipientList UserLoginApplicationMessageRecipients
  893.     {
  894.       get
  895.       {
  896.         if (this.userLoginApplicationMessageRecipients == null)
  897.         {
  898.           this.userLoginApplicationMessageRecipients = new ApplicationMessageRecipientList();
  899.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  900.             this.userLoginApplicationMessageRecipients.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  901.           this.userLoginApplicationMessageRecipients.parentObject = (object) this;
  902.         }
  903.         return this.userLoginApplicationMessageRecipients;
  904.       }
  905.       set
  906.       {
  907.         this.userLoginApplicationMessageRecipients = value;
  908.         this.SetDataState("UserLoginApplicationMessageRecipients");
  909.         if (value == null || value.parentObject != null)
  910.           return;
  911.         this.userLoginApplicationMessageRecipients.parentObject = (object) this;
  912.       }
  913.     }
  914.  
  915.     [CustomQuery(QueryStyle.Nonqueryable)]
  916.     [CustomReporting(Visibility.Nonreportable)]
  917.     public ApplicationMessageList ApplicationMessages
  918.     {
  919.       get
  920.       {
  921.         if (this.applicationMessages == null)
  922.         {
  923.           this.applicationMessages = new ApplicationMessageList();
  924.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  925.             this.applicationMessages.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  926.           this.applicationMessages.parentObject = (object) this;
  927.         }
  928.         return this.applicationMessages;
  929.       }
  930.       set
  931.       {
  932.         this.applicationMessages = value;
  933.         this.SetDataState("ApplicationMessages");
  934.         if (value == null || value.parentObject != null)
  935.           return;
  936.         this.applicationMessages.parentObject = (object) this;
  937.       }
  938.     }
  939.  
  940.     [CustomReporting(Visibility.Nonreportable)]
  941.     [CustomQuery(QueryStyle.Nonqueryable)]
  942.     public ApplicationMessageList UserLoginApplicationMessages
  943.     {
  944.       get
  945.       {
  946.         if (this.userLoginApplicationMessages == null)
  947.         {
  948.           this.userLoginApplicationMessages = new ApplicationMessageList();
  949.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  950.             this.userLoginApplicationMessages.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  951.           this.userLoginApplicationMessages.parentObject = (object) this;
  952.         }
  953.         return this.userLoginApplicationMessages;
  954.       }
  955.       set
  956.       {
  957.         this.userLoginApplicationMessages = value;
  958.         this.SetDataState("UserLoginApplicationMessages");
  959.         if (value == null || value.parentObject != null)
  960.           return;
  961.         this.userLoginApplicationMessages.parentObject = (object) this;
  962.       }
  963.     }
  964.  
  965.     [CustomQuery(QueryStyle.Nonqueryable)]
  966.     [CustomReporting(Visibility.Nonreportable)]
  967.     public ApplicationPermissionList ApplicationPermissions
  968.     {
  969.       get
  970.       {
  971.         if (this.applicationPermissions == null)
  972.         {
  973.           this.applicationPermissions = new ApplicationPermissionList();
  974.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  975.             this.applicationPermissions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  976.           this.applicationPermissions.parentObject = (object) this;
  977.         }
  978.         return this.applicationPermissions;
  979.       }
  980.       set
  981.       {
  982.         this.applicationPermissions = value;
  983.         this.SetDataState("ApplicationPermissions");
  984.         if (value == null || value.parentObject != null)
  985.           return;
  986.         this.applicationPermissions.parentObject = (object) this;
  987.       }
  988.     }
  989.  
  990.     [CustomQuery(QueryStyle.Nonqueryable)]
  991.     [CustomReporting(Visibility.Nonreportable)]
  992.     public ApplicationPreferenceList ApplicationPreferences
  993.     {
  994.       get
  995.       {
  996.         if (this.applicationPreferences == null)
  997.         {
  998.           this.applicationPreferences = new ApplicationPreferenceList();
  999.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1000.             this.applicationPreferences.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1001.           this.applicationPreferences.parentObject = (object) this;
  1002.         }
  1003.         return this.applicationPreferences;
  1004.       }
  1005.       set
  1006.       {
  1007.         this.applicationPreferences = value;
  1008.         this.SetDataState("ApplicationPreferences");
  1009.         if (value == null || value.parentObject != null)
  1010.           return;
  1011.         this.applicationPreferences.parentObject = (object) this;
  1012.       }
  1013.     }
  1014.  
  1015.     [CustomQuery(QueryStyle.Nonqueryable)]
  1016.     [CustomReporting(Visibility.Nonreportable)]
  1017.     public ApplicationRoleComponentList ApplicationRoleComponents
  1018.     {
  1019.       get
  1020.       {
  1021.         if (this.applicationRoleComponents == null)
  1022.         {
  1023.           this.applicationRoleComponents = new ApplicationRoleComponentList();
  1024.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1025.             this.applicationRoleComponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1026.           this.applicationRoleComponents.parentObject = (object) this;
  1027.         }
  1028.         return this.applicationRoleComponents;
  1029.       }
  1030.       set
  1031.       {
  1032.         this.applicationRoleComponents = value;
  1033.         this.SetDataState("ApplicationRoleComponents");
  1034.         if (value == null || value.parentObject != null)
  1035.           return;
  1036.         this.applicationRoleComponents.parentObject = (object) this;
  1037.       }
  1038.     }
  1039.  
  1040.     [CustomQuery(QueryStyle.Nonqueryable)]
  1041.     [CustomReporting(Visibility.Nonreportable)]
  1042.     public ApplicationRolePermissionList ApplicationRolePermissions
  1043.     {
  1044.       get
  1045.       {
  1046.         if (this.applicationRolePermissions == null)
  1047.         {
  1048.           this.applicationRolePermissions = new ApplicationRolePermissionList();
  1049.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1050.             this.applicationRolePermissions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1051.           this.applicationRolePermissions.parentObject = (object) this;
  1052.         }
  1053.         return this.applicationRolePermissions;
  1054.       }
  1055.       set
  1056.       {
  1057.         this.applicationRolePermissions = value;
  1058.         this.SetDataState("ApplicationRolePermissions");
  1059.         if (value == null || value.parentObject != null)
  1060.           return;
  1061.         this.applicationRolePermissions.parentObject = (object) this;
  1062.       }
  1063.     }
  1064.  
  1065.     [CustomReporting(Visibility.Nonreportable)]
  1066.     [CustomQuery(QueryStyle.Nonqueryable)]
  1067.     public ApplicationRoleList ApplicationRoles
  1068.     {
  1069.       get
  1070.       {
  1071.         if (this.applicationRoles == null)
  1072.         {
  1073.           this.applicationRoles = new ApplicationRoleList();
  1074.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1075.             this.applicationRoles.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1076.           this.applicationRoles.parentObject = (object) this;
  1077.         }
  1078.         return this.applicationRoles;
  1079.       }
  1080.       set
  1081.       {
  1082.         this.applicationRoles = value;
  1083.         this.SetDataState("ApplicationRoles");
  1084.         if (value == null || value.parentObject != null)
  1085.           return;
  1086.         this.applicationRoles.parentObject = (object) this;
  1087.       }
  1088.     }
  1089.  
  1090.     [CustomQuery(QueryStyle.Nonqueryable)]
  1091.     [CustomReporting(Visibility.Nonreportable)]
  1092.     public ApplicationRoleSubComponentList ApplicationRoleSubComponents
  1093.     {
  1094.       get
  1095.       {
  1096.         if (this.applicationRoleSubComponents == null)
  1097.         {
  1098.           this.applicationRoleSubComponents = new ApplicationRoleSubComponentList();
  1099.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1100.             this.applicationRoleSubComponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1101.           this.applicationRoleSubComponents.parentObject = (object) this;
  1102.         }
  1103.         return this.applicationRoleSubComponents;
  1104.       }
  1105.       set
  1106.       {
  1107.         this.applicationRoleSubComponents = value;
  1108.         this.SetDataState("ApplicationRoleSubComponents");
  1109.         if (value == null || value.parentObject != null)
  1110.           return;
  1111.         this.applicationRoleSubComponents.parentObject = (object) this;
  1112.       }
  1113.     }
  1114.  
  1115.     [CustomReporting(Visibility.Nonreportable)]
  1116.     [CustomQuery(QueryStyle.Nonqueryable)]
  1117.     public ApplicationSubcomponentList ApplicationSubcomponents
  1118.     {
  1119.       get
  1120.       {
  1121.         if (this.applicationSubcomponents == null)
  1122.         {
  1123.           this.applicationSubcomponents = new ApplicationSubcomponentList();
  1124.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1125.             this.applicationSubcomponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1126.           this.applicationSubcomponents.parentObject = (object) this;
  1127.         }
  1128.         return this.applicationSubcomponents;
  1129.       }
  1130.       set
  1131.       {
  1132.         this.applicationSubcomponents = value;
  1133.         this.SetDataState("ApplicationSubcomponents");
  1134.         if (value == null || value.parentObject != null)
  1135.           return;
  1136.         this.applicationSubcomponents.parentObject = (object) this;
  1137.       }
  1138.     }
  1139.  
  1140.     [CustomReporting(Visibility.Nonreportable)]
  1141.     [CustomQuery(QueryStyle.Nonqueryable)]
  1142.     public ArchivedReportList ArchivedReports
  1143.     {
  1144.       get
  1145.       {
  1146.         if (this.archivedReports == null)
  1147.         {
  1148.           this.archivedReports = new ArchivedReportList();
  1149.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1150.             this.archivedReports.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1151.           this.archivedReports.parentObject = (object) this;
  1152.         }
  1153.         return this.archivedReports;
  1154.       }
  1155.       set
  1156.       {
  1157.         this.archivedReports = value;
  1158.         this.SetDataState("ArchivedReports");
  1159.         if (value == null || value.parentObject != null)
  1160.           return;
  1161.         this.archivedReports.parentObject = (object) this;
  1162.       }
  1163.     }
  1164.  
  1165.     [CustomQuery(QueryStyle.Nonqueryable)]
  1166.     [CustomReporting(Visibility.Nonreportable)]
  1167.     public AreaHospitalList AreaHospitals
  1168.     {
  1169.       get
  1170.       {
  1171.         if (this.areaHospitals == null)
  1172.         {
  1173.           this.areaHospitals = new AreaHospitalList();
  1174.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1175.             this.areaHospitals.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1176.           this.areaHospitals.parentObject = (object) this;
  1177.         }
  1178.         return this.areaHospitals;
  1179.       }
  1180.       set
  1181.       {
  1182.         this.areaHospitals = value;
  1183.         this.SetDataState("AreaHospitals");
  1184.         if (value == null || value.parentObject != null)
  1185.           return;
  1186.         this.areaHospitals.parentObject = (object) this;
  1187.       }
  1188.     }
  1189.  
  1190.     [CustomReporting(Visibility.Nonreportable)]
  1191.     [CustomQuery(QueryStyle.Nonqueryable)]
  1192.     public ArrestList Arrests
  1193.     {
  1194.       get
  1195.       {
  1196.         if (this.arrests == null)
  1197.         {
  1198.           this.arrests = new ArrestList();
  1199.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1200.             this.arrests.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1201.           this.arrests.parentObject = (object) this;
  1202.         }
  1203.         return this.arrests;
  1204.       }
  1205.       set
  1206.       {
  1207.         this.arrests = value;
  1208.         this.SetDataState("Arrests");
  1209.         if (value == null || value.parentObject != null)
  1210.           return;
  1211.         this.arrests.parentObject = (object) this;
  1212.       }
  1213.     }
  1214.  
  1215.     [CustomQuery(QueryStyle.Nonqueryable)]
  1216.     [CustomReporting(Visibility.Nonreportable)]
  1217.     public ArsonMotivationOrRiskFactorList ArsonMotivationOrRiskFactors
  1218.     {
  1219.       get
  1220.       {
  1221.         if (this.arsonMotivationOrRiskFactors == null)
  1222.         {
  1223.           this.arsonMotivationOrRiskFactors = new ArsonMotivationOrRiskFactorList();
  1224.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1225.             this.arsonMotivationOrRiskFactors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1226.           this.arsonMotivationOrRiskFactors.parentObject = (object) this;
  1227.         }
  1228.         return this.arsonMotivationOrRiskFactors;
  1229.       }
  1230.       set
  1231.       {
  1232.         this.arsonMotivationOrRiskFactors = value;
  1233.         this.SetDataState("ArsonMotivationOrRiskFactors");
  1234.         if (value == null || value.parentObject != null)
  1235.           return;
  1236.         this.arsonMotivationOrRiskFactors.parentObject = (object) this;
  1237.       }
  1238.     }
  1239.  
  1240.     [CustomReporting(Visibility.Nonreportable)]
  1241.     [CustomQuery(QueryStyle.Nonqueryable)]
  1242.     public ArsonRecordList ArsonRecords
  1243.     {
  1244.       get
  1245.       {
  1246.         if (this.arsonRecords == null)
  1247.         {
  1248.           this.arsonRecords = new ArsonRecordList();
  1249.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1250.             this.arsonRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1251.           this.arsonRecords.parentObject = (object) this;
  1252.         }
  1253.         return this.arsonRecords;
  1254.       }
  1255.       set
  1256.       {
  1257.         this.arsonRecords = value;
  1258.         this.SetDataState("ArsonRecords");
  1259.         if (value == null || value.parentObject != null)
  1260.           return;
  1261.         this.arsonRecords.parentObject = (object) this;
  1262.       }
  1263.     }
  1264.  
  1265.     [CustomQuery(QueryStyle.Nonqueryable)]
  1266.     [CustomReporting(Visibility.Nonreportable)]
  1267.     public ArsonSubjectList ArsonSubjects
  1268.     {
  1269.       get
  1270.       {
  1271.         if (this.arsonSubjects == null)
  1272.         {
  1273.           this.arsonSubjects = new ArsonSubjectList();
  1274.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1275.             this.arsonSubjects.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1276.           this.arsonSubjects.parentObject = (object) this;
  1277.         }
  1278.         return this.arsonSubjects;
  1279.       }
  1280.       set
  1281.       {
  1282.         this.arsonSubjects = value;
  1283.         this.SetDataState("ArsonSubjects");
  1284.         if (value == null || value.parentObject != null)
  1285.           return;
  1286.         this.arsonSubjects.parentObject = (object) this;
  1287.       }
  1288.     }
  1289.  
  1290.     [CustomReporting(Visibility.Nonreportable)]
  1291.     [CustomQuery(QueryStyle.Nonqueryable)]
  1292.     public AssetAcquisitionList AssetAcquisitions
  1293.     {
  1294.       get
  1295.       {
  1296.         if (this.assetAcquisitions == null)
  1297.         {
  1298.           this.assetAcquisitions = new AssetAcquisitionList();
  1299.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1300.             this.assetAcquisitions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1301.           this.assetAcquisitions.parentObject = (object) this;
  1302.         }
  1303.         return this.assetAcquisitions;
  1304.       }
  1305.       set
  1306.       {
  1307.         this.assetAcquisitions = value;
  1308.         this.SetDataState("AssetAcquisitions");
  1309.         if (value == null || value.parentObject != null)
  1310.           return;
  1311.         this.assetAcquisitions.parentObject = (object) this;
  1312.       }
  1313.     }
  1314.  
  1315.     [CustomQuery(QueryStyle.Nonqueryable)]
  1316.     [CustomReporting(Visibility.Nonreportable)]
  1317.     public AssetDispositionList AssetDispositions
  1318.     {
  1319.       get
  1320.       {
  1321.         if (this.assetDispositions == null)
  1322.         {
  1323.           this.assetDispositions = new AssetDispositionList();
  1324.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1325.             this.assetDispositions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1326.           this.assetDispositions.parentObject = (object) this;
  1327.         }
  1328.         return this.assetDispositions;
  1329.       }
  1330.       set
  1331.       {
  1332.         this.assetDispositions = value;
  1333.         this.SetDataState("AssetDispositions");
  1334.         if (value == null || value.parentObject != null)
  1335.           return;
  1336.         this.assetDispositions.parentObject = (object) this;
  1337.       }
  1338.     }
  1339.  
  1340.     [CustomQuery(QueryStyle.Nonqueryable)]
  1341.     [CustomReporting(Visibility.Nonreportable)]
  1342.     public AssignedInspectorList AssignedInspectors
  1343.     {
  1344.       get
  1345.       {
  1346.         if (this.assignedInspectors == null)
  1347.         {
  1348.           this.assignedInspectors = new AssignedInspectorList();
  1349.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1350.             this.assignedInspectors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1351.           this.assignedInspectors.parentObject = (object) this;
  1352.         }
  1353.         return this.assignedInspectors;
  1354.       }
  1355.       set
  1356.       {
  1357.         this.assignedInspectors = value;
  1358.         this.SetDataState("AssignedInspectors");
  1359.         if (value == null || value.parentObject != null)
  1360.           return;
  1361.         this.assignedInspectors.parentObject = (object) this;
  1362.       }
  1363.     }
  1364.  
  1365.     [CustomQuery(QueryStyle.Nonqueryable)]
  1366.     [CustomReporting(Visibility.Nonreportable)]
  1367.     public AutopsyList Autopsies
  1368.     {
  1369.       get
  1370.       {
  1371.         if (this.autopsies == null)
  1372.         {
  1373.           this.autopsies = new AutopsyList();
  1374.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1375.             this.autopsies.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1376.           this.autopsies.parentObject = (object) this;
  1377.         }
  1378.         return this.autopsies;
  1379.       }
  1380.       set
  1381.       {
  1382.         this.autopsies = value;
  1383.         this.SetDataState("Autopsies");
  1384.         if (value == null || value.parentObject != null)
  1385.           return;
  1386.         this.autopsies.parentObject = (object) this;
  1387.       }
  1388.     }
  1389.  
  1390.     [CustomReporting(Visibility.Nonreportable)]
  1391.     [CustomQuery(QueryStyle.Nonqueryable)]
  1392.     public AutopsyRemovedObjectList AutopsyRemovedObjects
  1393.     {
  1394.       get
  1395.       {
  1396.         if (this.autopsyRemovedObjects == null)
  1397.         {
  1398.           this.autopsyRemovedObjects = new AutopsyRemovedObjectList();
  1399.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1400.             this.autopsyRemovedObjects.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1401.           this.autopsyRemovedObjects.parentObject = (object) this;
  1402.         }
  1403.         return this.autopsyRemovedObjects;
  1404.       }
  1405.       set
  1406.       {
  1407.         this.autopsyRemovedObjects = value;
  1408.         this.SetDataState("AutopsyRemovedObjects");
  1409.         if (value == null || value.parentObject != null)
  1410.           return;
  1411.         this.autopsyRemovedObjects.parentObject = (object) this;
  1412.       }
  1413.     }
  1414.  
  1415.     [CustomQuery(QueryStyle.Nonqueryable)]
  1416.     [CustomReporting(Visibility.Nonreportable)]
  1417.     public AutopsySpecimenList AutopsySpecimens
  1418.     {
  1419.       get
  1420.       {
  1421.         if (this.autopsySpecimens == null)
  1422.         {
  1423.           this.autopsySpecimens = new AutopsySpecimenList();
  1424.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1425.             this.autopsySpecimens.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1426.           this.autopsySpecimens.parentObject = (object) this;
  1427.         }
  1428.         return this.autopsySpecimens;
  1429.       }
  1430.       set
  1431.       {
  1432.         this.autopsySpecimens = value;
  1433.         this.SetDataState("AutopsySpecimens");
  1434.         if (value == null || value.parentObject != null)
  1435.           return;
  1436.         this.autopsySpecimens.parentObject = (object) this;
  1437.       }
  1438.     }
  1439.  
  1440.     [CustomQuery(QueryStyle.Nonqueryable)]
  1441.     [CustomReporting(Visibility.Nonreportable)]
  1442.     public AutopsyWitnessList AutopsyWitnesses
  1443.     {
  1444.       get
  1445.       {
  1446.         if (this.autopsyWitnesses == null)
  1447.         {
  1448.           this.autopsyWitnesses = new AutopsyWitnessList();
  1449.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1450.             this.autopsyWitnesses.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1451.           this.autopsyWitnesses.parentObject = (object) this;
  1452.         }
  1453.         return this.autopsyWitnesses;
  1454.       }
  1455.       set
  1456.       {
  1457.         this.autopsyWitnesses = value;
  1458.         this.SetDataState("AutopsyWitnesses");
  1459.         if (value == null || value.parentObject != null)
  1460.           return;
  1461.         this.autopsyWitnesses.parentObject = (object) this;
  1462.       }
  1463.     }
  1464.  
  1465.     [CustomReporting(Visibility.Nonreportable)]
  1466.     [CustomQuery(QueryStyle.Nonqueryable)]
  1467.     public BattalionList Battalions
  1468.     {
  1469.       get
  1470.       {
  1471.         if (this.battalions == null)
  1472.         {
  1473.           this.battalions = new BattalionList();
  1474.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1475.             this.battalions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1476.           this.battalions.parentObject = (object) this;
  1477.         }
  1478.         return this.battalions;
  1479.       }
  1480.       set
  1481.       {
  1482.         this.battalions = value;
  1483.         this.SetDataState("Battalions");
  1484.         if (value == null || value.parentObject != null)
  1485.           return;
  1486.         this.battalions.parentObject = (object) this;
  1487.       }
  1488.     }
  1489.  
  1490.     [CustomQuery(QueryStyle.Nonqueryable)]
  1491.     [CustomReporting(Visibility.Nonreportable)]
  1492.     public BodyInjurySiteList BodyInjurySites
  1493.     {
  1494.       get
  1495.       {
  1496.         if (this.bodyInjurySites == null)
  1497.         {
  1498.           this.bodyInjurySites = new BodyInjurySiteList();
  1499.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1500.             this.bodyInjurySites.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1501.           this.bodyInjurySites.parentObject = (object) this;
  1502.         }
  1503.         return this.bodyInjurySites;
  1504.       }
  1505.       set
  1506.       {
  1507.         this.bodyInjurySites = value;
  1508.         this.SetDataState("BodyInjurySites");
  1509.         if (value == null || value.parentObject != null)
  1510.           return;
  1511.         this.bodyInjurySites.parentObject = (object) this;
  1512.       }
  1513.     }
  1514.  
  1515.     [CustomQuery(QueryStyle.Nonqueryable)]
  1516.     [CustomReporting(Visibility.Nonreportable)]
  1517.     public BombActionsTakenList BombActionsTaken
  1518.     {
  1519.       get
  1520.       {
  1521.         if (this.bombActionsTaken == null)
  1522.         {
  1523.           this.bombActionsTaken = new BombActionsTakenList();
  1524.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1525.             this.bombActionsTaken.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1526.           this.bombActionsTaken.parentObject = (object) this;
  1527.         }
  1528.         return this.bombActionsTaken;
  1529.       }
  1530.       set
  1531.       {
  1532.         this.bombActionsTaken = value;
  1533.         this.SetDataState("BombActionsTaken");
  1534.         if (value == null || value.parentObject != null)
  1535.           return;
  1536.         this.bombActionsTaken.parentObject = (object) this;
  1537.       }
  1538.     }
  1539.  
  1540.     [CustomQuery(QueryStyle.Nonqueryable)]
  1541.     [CustomReporting(Visibility.Nonreportable)]
  1542.     public BombList Bombs
  1543.     {
  1544.       get
  1545.       {
  1546.         if (this.bombs == null)
  1547.         {
  1548.           this.bombs = new BombList();
  1549.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1550.             this.bombs.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1551.           this.bombs.parentObject = (object) this;
  1552.         }
  1553.         return this.bombs;
  1554.       }
  1555.       set
  1556.       {
  1557.         this.bombs = value;
  1558.         this.SetDataState("Bombs");
  1559.         if (value == null || value.parentObject != null)
  1560.           return;
  1561.         this.bombs.parentObject = (object) this;
  1562.       }
  1563.     }
  1564.  
  1565.     [CustomReporting(Visibility.Nonreportable)]
  1566.     [CustomQuery(QueryStyle.Nonqueryable)]
  1567.     public BombThreatList BombThreats
  1568.     {
  1569.       get
  1570.       {
  1571.         if (this.bombThreats == null)
  1572.         {
  1573.           this.bombThreats = new BombThreatList();
  1574.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1575.             this.bombThreats.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1576.           this.bombThreats.parentObject = (object) this;
  1577.         }
  1578.         return this.bombThreats;
  1579.       }
  1580.       set
  1581.       {
  1582.         this.bombThreats = value;
  1583.         this.SetDataState("BombThreats");
  1584.         if (value == null || value.parentObject != null)
  1585.           return;
  1586.         this.bombThreats.parentObject = (object) this;
  1587.       }
  1588.     }
  1589.  
  1590.     [CustomReporting(Visibility.Nonreportable)]
  1591.     [CustomQuery(QueryStyle.Nonqueryable)]
  1592.     public BurnedCropList BurnedCrops
  1593.     {
  1594.       get
  1595.       {
  1596.         if (this.burnedCrops == null)
  1597.         {
  1598.           this.burnedCrops = new BurnedCropList();
  1599.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1600.             this.burnedCrops.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1601.           this.burnedCrops.parentObject = (object) this;
  1602.         }
  1603.         return this.burnedCrops;
  1604.       }
  1605.       set
  1606.       {
  1607.         this.burnedCrops = value;
  1608.         this.SetDataState("BurnedCrops");
  1609.         if (value == null || value.parentObject != null)
  1610.           return;
  1611.         this.burnedCrops.parentObject = (object) this;
  1612.       }
  1613.     }
  1614.  
  1615.     [CustomReporting(Visibility.Nonreportable)]
  1616.     [CustomQuery(QueryStyle.Nonqueryable)]
  1617.     public BusinessEntityList BusinessEntities
  1618.     {
  1619.       get
  1620.       {
  1621.         if (this.businessEntities == null)
  1622.         {
  1623.           this.businessEntities = new BusinessEntityList();
  1624.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1625.             this.businessEntities.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1626.           this.businessEntities.parentObject = (object) this;
  1627.         }
  1628.         return this.businessEntities;
  1629.       }
  1630.       set
  1631.       {
  1632.         this.businessEntities = value;
  1633.         this.SetDataState("BusinessEntities");
  1634.         if (value == null || value.parentObject != null)
  1635.           return;
  1636.         this.businessEntities.parentObject = (object) this;
  1637.       }
  1638.     }
  1639.  
  1640.     [CustomQuery(QueryStyle.Nonqueryable)]
  1641.     [CustomReporting(Visibility.Nonreportable)]
  1642.     public CardiacArrestPreArrivalDetailList CardiacArrestPreArrivalDetails
  1643.     {
  1644.       get
  1645.       {
  1646.         if (this.cardiacArrestPreArrivalDetails == null)
  1647.         {
  1648.           this.cardiacArrestPreArrivalDetails = new CardiacArrestPreArrivalDetailList();
  1649.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1650.             this.cardiacArrestPreArrivalDetails.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1651.           this.cardiacArrestPreArrivalDetails.parentObject = (object) this;
  1652.         }
  1653.         return this.cardiacArrestPreArrivalDetails;
  1654.       }
  1655.       set
  1656.       {
  1657.         this.cardiacArrestPreArrivalDetails = value;
  1658.         this.SetDataState("CardiacArrestPreArrivalDetails");
  1659.         if (value == null || value.parentObject != null)
  1660.           return;
  1661.         this.cardiacArrestPreArrivalDetails.parentObject = (object) this;
  1662.       }
  1663.     }
  1664.  
  1665.     [CustomReporting(Visibility.Nonreportable)]
  1666.     [CustomQuery(QueryStyle.Nonqueryable)]
  1667.     public CaseEvidenceItemList CaseEvidenceItems
  1668.     {
  1669.       get
  1670.       {
  1671.         if (this.caseEvidenceItems == null)
  1672.         {
  1673.           this.caseEvidenceItems = new CaseEvidenceItemList();
  1674.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1675.             this.caseEvidenceItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1676.           this.caseEvidenceItems.parentObject = (object) this;
  1677.         }
  1678.         return this.caseEvidenceItems;
  1679.       }
  1680.       set
  1681.       {
  1682.         this.caseEvidenceItems = value;
  1683.         this.SetDataState("CaseEvidenceItems");
  1684.         if (value == null || value.parentObject != null)
  1685.           return;
  1686.         this.caseEvidenceItems.parentObject = (object) this;
  1687.       }
  1688.     }
  1689.  
  1690.     [CustomQuery(QueryStyle.Nonqueryable)]
  1691.     [CustomReporting(Visibility.Nonreportable)]
  1692.     public CaseInvestigatorList CaseInvestigators
  1693.     {
  1694.       get
  1695.       {
  1696.         if (this.caseInvestigators == null)
  1697.         {
  1698.           this.caseInvestigators = new CaseInvestigatorList();
  1699.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1700.             this.caseInvestigators.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1701.           this.caseInvestigators.parentObject = (object) this;
  1702.         }
  1703.         return this.caseInvestigators;
  1704.       }
  1705.       set
  1706.       {
  1707.         this.caseInvestigators = value;
  1708.         this.SetDataState("CaseInvestigators");
  1709.         if (value == null || value.parentObject != null)
  1710.           return;
  1711.         this.caseInvestigators.parentObject = (object) this;
  1712.       }
  1713.     }
  1714.  
  1715.     [CustomReporting(Visibility.Nonreportable)]
  1716.     [CustomQuery(QueryStyle.Nonqueryable)]
  1717.     public CertificateList Certificates
  1718.     {
  1719.       get
  1720.       {
  1721.         if (this.certificates == null)
  1722.         {
  1723.           this.certificates = new CertificateList();
  1724.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1725.             this.certificates.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1726.           this.certificates.parentObject = (object) this;
  1727.         }
  1728.         return this.certificates;
  1729.       }
  1730.       set
  1731.       {
  1732.         this.certificates = value;
  1733.         this.SetDataState("Certificates");
  1734.         if (value == null || value.parentObject != null)
  1735.           return;
  1736.         this.certificates.parentObject = (object) this;
  1737.       }
  1738.     }
  1739.  
  1740.     [CustomReporting(Visibility.Nonreportable)]
  1741.     [CustomQuery(QueryStyle.Nonqueryable)]
  1742.     public CertificateTypeRequirementList CertificateTypeRequirements
  1743.     {
  1744.       get
  1745.       {
  1746.         if (this.certificateTypeRequirements == null)
  1747.         {
  1748.           this.certificateTypeRequirements = new CertificateTypeRequirementList();
  1749.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1750.             this.certificateTypeRequirements.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1751.           this.certificateTypeRequirements.parentObject = (object) this;
  1752.         }
  1753.         return this.certificateTypeRequirements;
  1754.       }
  1755.       set
  1756.       {
  1757.         this.certificateTypeRequirements = value;
  1758.         this.SetDataState("CertificateTypeRequirements");
  1759.         if (value == null || value.parentObject != null)
  1760.           return;
  1761.         this.certificateTypeRequirements.parentObject = (object) this;
  1762.       }
  1763.     }
  1764.  
  1765.     [CustomReporting(Visibility.Nonreportable)]
  1766.     [CustomQuery(QueryStyle.Nonqueryable)]
  1767.     public CertificateTypeList CertificateTypes
  1768.     {
  1769.       get
  1770.       {
  1771.         if (this.certificateTypes == null)
  1772.         {
  1773.           this.certificateTypes = new CertificateTypeList();
  1774.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1775.             this.certificateTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1776.           this.certificateTypes.parentObject = (object) this;
  1777.         }
  1778.         return this.certificateTypes;
  1779.       }
  1780.       set
  1781.       {
  1782.         this.certificateTypes = value;
  1783.         this.SetDataState("CertificateTypes");
  1784.         if (value == null || value.parentObject != null)
  1785.           return;
  1786.         this.certificateTypes.parentObject = (object) this;
  1787.       }
  1788.     }
  1789.  
  1790.     [CustomQuery(QueryStyle.Nonqueryable)]
  1791.     [CustomReporting(Visibility.Nonreportable)]
  1792.     public CertificationGradeList CertificationGrades
  1793.     {
  1794.       get
  1795.       {
  1796.         if (this.certificationGrades == null)
  1797.         {
  1798.           this.certificationGrades = new CertificationGradeList();
  1799.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1800.             this.certificationGrades.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1801.           this.certificationGrades.parentObject = (object) this;
  1802.         }
  1803.         return this.certificationGrades;
  1804.       }
  1805.       set
  1806.       {
  1807.         this.certificationGrades = value;
  1808.         this.SetDataState("CertificationGrades");
  1809.         if (value == null || value.parentObject != null)
  1810.           return;
  1811.         this.certificationGrades.parentObject = (object) this;
  1812.       }
  1813.     }
  1814.  
  1815.     [CustomReporting(Visibility.Nonreportable)]
  1816.     [CustomQuery(QueryStyle.Nonqueryable)]
  1817.     public CertificationList Certifications
  1818.     {
  1819.       get
  1820.       {
  1821.         if (this.certifications == null)
  1822.         {
  1823.           this.certifications = new CertificationList();
  1824.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1825.             this.certifications.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1826.           this.certifications.parentObject = (object) this;
  1827.         }
  1828.         return this.certifications;
  1829.       }
  1830.       set
  1831.       {
  1832.         this.certifications = value;
  1833.         this.SetDataState("Certifications");
  1834.         if (value == null || value.parentObject != null)
  1835.           return;
  1836.         this.certifications.parentObject = (object) this;
  1837.       }
  1838.     }
  1839.  
  1840.     [CustomQuery(QueryStyle.Nonqueryable)]
  1841.     [CustomReporting(Visibility.Nonreportable)]
  1842.     public CivilianCasualtyList CivilianCasualties
  1843.     {
  1844.       get
  1845.       {
  1846.         if (this.civilianCasualties == null)
  1847.         {
  1848.           this.civilianCasualties = new CivilianCasualtyList();
  1849.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1850.             this.civilianCasualties.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1851.           this.civilianCasualties.parentObject = (object) this;
  1852.         }
  1853.         return this.civilianCasualties;
  1854.       }
  1855.       set
  1856.       {
  1857.         this.civilianCasualties = value;
  1858.         this.SetDataState("CivilianCasualties");
  1859.         if (value == null || value.parentObject != null)
  1860.           return;
  1861.         this.civilianCasualties.parentObject = (object) this;
  1862.       }
  1863.     }
  1864.  
  1865.     [CustomReporting(Visibility.Nonreportable)]
  1866.     [CustomQuery(QueryStyle.Nonqueryable)]
  1867.     public ComponentLoggingLevelList ComponentLoggingLevels
  1868.     {
  1869.       get
  1870.       {
  1871.         if (this.componentLoggingLevels == null)
  1872.         {
  1873.           this.componentLoggingLevels = new ComponentLoggingLevelList();
  1874.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1875.             this.componentLoggingLevels.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1876.           this.componentLoggingLevels.parentObject = (object) this;
  1877.         }
  1878.         return this.componentLoggingLevels;
  1879.       }
  1880.       set
  1881.       {
  1882.         this.componentLoggingLevels = value;
  1883.         this.SetDataState("ComponentLoggingLevels");
  1884.         if (value == null || value.parentObject != null)
  1885.           return;
  1886.         this.componentLoggingLevels.parentObject = (object) this;
  1887.       }
  1888.     }
  1889.  
  1890.     [CustomQuery(QueryStyle.Nonqueryable)]
  1891.     [CustomReporting(Visibility.Nonreportable)]
  1892.     public ComponentSecurityLevelList ComponentSecurityLevels
  1893.     {
  1894.       get
  1895.       {
  1896.         if (this.componentSecurityLevels == null)
  1897.         {
  1898.           this.componentSecurityLevels = new ComponentSecurityLevelList();
  1899.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1900.             this.componentSecurityLevels.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1901.           this.componentSecurityLevels.parentObject = (object) this;
  1902.         }
  1903.         return this.componentSecurityLevels;
  1904.       }
  1905.       set
  1906.       {
  1907.         this.componentSecurityLevels = value;
  1908.         this.SetDataState("ComponentSecurityLevels");
  1909.         if (value == null || value.parentObject != null)
  1910.           return;
  1911.         this.componentSecurityLevels.parentObject = (object) this;
  1912.       }
  1913.     }
  1914.  
  1915.     [CustomReporting(Visibility.Nonreportable)]
  1916.     [CustomQuery(QueryStyle.Nonqueryable)]
  1917.     public ComponentSecurityLevelList UserLoginComponentSecurityLevels
  1918.     {
  1919.       get
  1920.       {
  1921.         if (this.userLoginComponentSecurityLevels == null)
  1922.         {
  1923.           this.userLoginComponentSecurityLevels = new ComponentSecurityLevelList();
  1924.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1925.             this.userLoginComponentSecurityLevels.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1926.           this.userLoginComponentSecurityLevels.parentObject = (object) this;
  1927.         }
  1928.         return this.userLoginComponentSecurityLevels;
  1929.       }
  1930.       set
  1931.       {
  1932.         this.userLoginComponentSecurityLevels = value;
  1933.         this.SetDataState("UserLoginComponentSecurityLevels");
  1934.         if (value == null || value.parentObject != null)
  1935.           return;
  1936.         this.userLoginComponentSecurityLevels.parentObject = (object) this;
  1937.       }
  1938.     }
  1939.  
  1940.     [CustomReporting(Visibility.Nonreportable)]
  1941.     [CustomQuery(QueryStyle.Nonqueryable)]
  1942.     public ContactMethodList ContactMethods
  1943.     {
  1944.       get
  1945.       {
  1946.         if (this.contactMethods == null)
  1947.         {
  1948.           this.contactMethods = new ContactMethodList();
  1949.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1950.             this.contactMethods.Reload("ForRecordID = '" + this.recordID.ToString() + "'");
  1951.           this.contactMethods.parentObject = (object) this;
  1952.         }
  1953.         return this.contactMethods;
  1954.       }
  1955.       set
  1956.       {
  1957.         this.contactMethods = value;
  1958.         this.SetDataState("ContactMethods");
  1959.         if (value == null || value.parentObject != null)
  1960.           return;
  1961.         this.contactMethods.parentObject = (object) this;
  1962.       }
  1963.     }
  1964.  
  1965.     [CustomReporting(Visibility.Nonreportable)]
  1966.     [CustomQuery(QueryStyle.Nonqueryable)]
  1967.     public ContributedToIgnitionFactorList ContributedToIgnitionFactors
  1968.     {
  1969.       get
  1970.       {
  1971.         if (this.contributedToIgnitionFactors == null)
  1972.         {
  1973.           this.contributedToIgnitionFactors = new ContributedToIgnitionFactorList();
  1974.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  1975.             this.contributedToIgnitionFactors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  1976.           this.contributedToIgnitionFactors.parentObject = (object) this;
  1977.         }
  1978.         return this.contributedToIgnitionFactors;
  1979.       }
  1980.       set
  1981.       {
  1982.         this.contributedToIgnitionFactors = value;
  1983.         this.SetDataState("ContributedToIgnitionFactors");
  1984.         if (value == null || value.parentObject != null)
  1985.           return;
  1986.         this.contributedToIgnitionFactors.parentObject = (object) this;
  1987.       }
  1988.     }
  1989.  
  1990.     [CustomQuery(QueryStyle.Nonqueryable)]
  1991.     [CustomReporting(Visibility.Nonreportable)]
  1992.     public ContributingInjuryFactorList ContributingInjuryFactors
  1993.     {
  1994.       get
  1995.       {
  1996.         if (this.contributingInjuryFactors == null)
  1997.         {
  1998.           this.contributingInjuryFactors = new ContributingInjuryFactorList();
  1999.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2000.             this.contributingInjuryFactors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2001.           this.contributingInjuryFactors.parentObject = (object) this;
  2002.         }
  2003.         return this.contributingInjuryFactors;
  2004.       }
  2005.       set
  2006.       {
  2007.         this.contributingInjuryFactors = value;
  2008.         this.SetDataState("ContributingInjuryFactors");
  2009.         if (value == null || value.parentObject != null)
  2010.           return;
  2011.         this.contributingInjuryFactors.parentObject = (object) this;
  2012.       }
  2013.     }
  2014.  
  2015.     [CustomReporting(Visibility.Nonreportable)]
  2016.     [CustomQuery(QueryStyle.Nonqueryable)]
  2017.     public CoverageAreaList CoverageAreas
  2018.     {
  2019.       get
  2020.       {
  2021.         if (this.coverageAreas == null)
  2022.         {
  2023.           this.coverageAreas = new CoverageAreaList();
  2024.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2025.             this.coverageAreas.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2026.           this.coverageAreas.parentObject = (object) this;
  2027.         }
  2028.         return this.coverageAreas;
  2029.       }
  2030.       set
  2031.       {
  2032.         this.coverageAreas = value;
  2033.         this.SetDataState("CoverageAreas");
  2034.         if (value == null || value.parentObject != null)
  2035.           return;
  2036.         this.coverageAreas.parentObject = (object) this;
  2037.       }
  2038.     }
  2039.  
  2040.     [CustomQuery(QueryStyle.Nonqueryable)]
  2041.     [CustomReporting(Visibility.Nonreportable)]
  2042.     public CustomDictionaryEntryList CustomDictionaryEntries
  2043.     {
  2044.       get
  2045.       {
  2046.         if (this.customDictionaryEntries == null)
  2047.         {
  2048.           this.customDictionaryEntries = new CustomDictionaryEntryList();
  2049.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2050.             this.customDictionaryEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2051.           this.customDictionaryEntries.parentObject = (object) this;
  2052.         }
  2053.         return this.customDictionaryEntries;
  2054.       }
  2055.       set
  2056.       {
  2057.         this.customDictionaryEntries = value;
  2058.         this.SetDataState("CustomDictionaryEntries");
  2059.         if (value == null || value.parentObject != null)
  2060.           return;
  2061.         this.customDictionaryEntries.parentObject = (object) this;
  2062.       }
  2063.     }
  2064.  
  2065.     [CustomQuery(QueryStyle.Nonqueryable)]
  2066.     [CustomReporting(Visibility.Nonreportable)]
  2067.     public CustomerContactList CustomerContacts
  2068.     {
  2069.       get
  2070.       {
  2071.         if (this.customerContacts == null)
  2072.         {
  2073.           this.customerContacts = new CustomerContactList();
  2074.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2075.             this.customerContacts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2076.           this.customerContacts.parentObject = (object) this;
  2077.         }
  2078.         return this.customerContacts;
  2079.       }
  2080.       set
  2081.       {
  2082.         this.customerContacts = value;
  2083.         this.SetDataState("CustomerContacts");
  2084.         if (value == null || value.parentObject != null)
  2085.           return;
  2086.         this.customerContacts.parentObject = (object) this;
  2087.       }
  2088.     }
  2089.  
  2090.     [CustomReporting(Visibility.Nonreportable)]
  2091.     [CustomQuery(QueryStyle.Nonqueryable)]
  2092.     public CustomerLoginComponentList CustomerLoginComponents
  2093.     {
  2094.       get
  2095.       {
  2096.         if (this.customerLoginComponents == null)
  2097.         {
  2098.           this.customerLoginComponents = new CustomerLoginComponentList();
  2099.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2100.             this.customerLoginComponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2101.           this.customerLoginComponents.parentObject = (object) this;
  2102.         }
  2103.         return this.customerLoginComponents;
  2104.       }
  2105.       set
  2106.       {
  2107.         this.customerLoginComponents = value;
  2108.         this.SetDataState("CustomerLoginComponents");
  2109.         if (value == null || value.parentObject != null)
  2110.           return;
  2111.         this.customerLoginComponents.parentObject = (object) this;
  2112.       }
  2113.     }
  2114.  
  2115.     [CustomReporting(Visibility.Nonreportable)]
  2116.     [CustomQuery(QueryStyle.Nonqueryable)]
  2117.     public CustomerLoginPermissionList CustomerLoginPermissions
  2118.     {
  2119.       get
  2120.       {
  2121.         if (this.customerLoginPermissions == null)
  2122.         {
  2123.           this.customerLoginPermissions = new CustomerLoginPermissionList();
  2124.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2125.             this.customerLoginPermissions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2126.           this.customerLoginPermissions.parentObject = (object) this;
  2127.         }
  2128.         return this.customerLoginPermissions;
  2129.       }
  2130.       set
  2131.       {
  2132.         this.customerLoginPermissions = value;
  2133.         this.SetDataState("CustomerLoginPermissions");
  2134.         if (value == null || value.parentObject != null)
  2135.           return;
  2136.         this.customerLoginPermissions.parentObject = (object) this;
  2137.       }
  2138.     }
  2139.  
  2140.     [CustomQuery(QueryStyle.Nonqueryable)]
  2141.     [CustomReporting(Visibility.Nonreportable)]
  2142.     public CustomerLoginRoleList CustomerLoginRoles
  2143.     {
  2144.       get
  2145.       {
  2146.         if (this.customerLoginRoles == null)
  2147.         {
  2148.           this.customerLoginRoles = new CustomerLoginRoleList();
  2149.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2150.             this.customerLoginRoles.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2151.           this.customerLoginRoles.parentObject = (object) this;
  2152.         }
  2153.         return this.customerLoginRoles;
  2154.       }
  2155.       set
  2156.       {
  2157.         this.customerLoginRoles = value;
  2158.         this.SetDataState("CustomerLoginRoles");
  2159.         if (value == null || value.parentObject != null)
  2160.           return;
  2161.         this.customerLoginRoles.parentObject = (object) this;
  2162.       }
  2163.     }
  2164.  
  2165.     [CustomReporting(Visibility.Nonreportable)]
  2166.     [CustomQuery(QueryStyle.Nonqueryable)]
  2167.     public CustomerLoginList CustomerLogins
  2168.     {
  2169.       get
  2170.       {
  2171.         if (this.customerLogins == null)
  2172.         {
  2173.           this.customerLogins = new CustomerLoginList();
  2174.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2175.             this.customerLogins.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2176.           this.customerLogins.parentObject = (object) this;
  2177.         }
  2178.         return this.customerLogins;
  2179.       }
  2180.       set
  2181.       {
  2182.         this.customerLogins = value;
  2183.         this.SetDataState("CustomerLogins");
  2184.         if (value == null || value.parentObject != null)
  2185.           return;
  2186.         this.customerLogins.parentObject = (object) this;
  2187.       }
  2188.     }
  2189.  
  2190.     [CustomQuery(QueryStyle.Nonqueryable)]
  2191.     [CustomReporting(Visibility.Nonreportable)]
  2192.     public CustomerLoginList UserLoginCustomerLogins
  2193.     {
  2194.       get
  2195.       {
  2196.         if (this.userLoginCustomerLogins == null)
  2197.         {
  2198.           this.userLoginCustomerLogins = new CustomerLoginList();
  2199.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2200.             this.userLoginCustomerLogins.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2201.           this.userLoginCustomerLogins.parentObject = (object) this;
  2202.         }
  2203.         return this.userLoginCustomerLogins;
  2204.       }
  2205.       set
  2206.       {
  2207.         this.userLoginCustomerLogins = value;
  2208.         this.SetDataState("UserLoginCustomerLogins");
  2209.         if (value == null || value.parentObject != null)
  2210.           return;
  2211.         this.userLoginCustomerLogins.parentObject = (object) this;
  2212.       }
  2213.     }
  2214.  
  2215.     [CustomQuery(QueryStyle.Nonqueryable)]
  2216.     [CustomReporting(Visibility.Nonreportable)]
  2217.     public CustomerLoginSubcomponentList CustomerLoginSubcomponents
  2218.     {
  2219.       get
  2220.       {
  2221.         if (this.customerLoginSubcomponents == null)
  2222.         {
  2223.           this.customerLoginSubcomponents = new CustomerLoginSubcomponentList();
  2224.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2225.             this.customerLoginSubcomponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2226.           this.customerLoginSubcomponents.parentObject = (object) this;
  2227.         }
  2228.         return this.customerLoginSubcomponents;
  2229.       }
  2230.       set
  2231.       {
  2232.         this.customerLoginSubcomponents = value;
  2233.         this.SetDataState("CustomerLoginSubcomponents");
  2234.         if (value == null || value.parentObject != null)
  2235.           return;
  2236.         this.customerLoginSubcomponents.parentObject = (object) this;
  2237.       }
  2238.     }
  2239.  
  2240.     [CustomReporting(Visibility.Nonreportable)]
  2241.     [CustomQuery(QueryStyle.Nonqueryable)]
  2242.     public CustomerList Customers
  2243.     {
  2244.       get
  2245.       {
  2246.         if (this.customers == null)
  2247.         {
  2248.           this.customers = new CustomerList();
  2249.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2250.             this.customers.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2251.           this.customers.parentObject = (object) this;
  2252.         }
  2253.         return this.customers;
  2254.       }
  2255.       set
  2256.       {
  2257.         this.customers = value;
  2258.         this.SetDataState("Customers");
  2259.         if (value == null || value.parentObject != null)
  2260.           return;
  2261.         this.customers.parentObject = (object) this;
  2262.       }
  2263.     }
  2264.  
  2265.     [CustomReporting(Visibility.Nonreportable)]
  2266.     [CustomQuery(QueryStyle.Nonqueryable)]
  2267.     public new CustomFieldList CustomFields
  2268.     {
  2269.       get
  2270.       {
  2271.         if (this.customFields == null)
  2272.         {
  2273.           this.customFields = new CustomFieldList();
  2274.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2275.             this.customFields.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2276.           this.customFields.parentObject = (object) this;
  2277.         }
  2278.         return this.customFields;
  2279.       }
  2280.       set
  2281.       {
  2282.         this.customFields = value;
  2283.         this.SetDataState("CustomFields");
  2284.         if (value == null || value.parentObject != null)
  2285.           return;
  2286.         this.customFields.parentObject = (object) this;
  2287.       }
  2288.     }
  2289.  
  2290.     [CustomReporting(Visibility.Nonreportable)]
  2291.     [CustomQuery(QueryStyle.Nonqueryable)]
  2292.     public CustomFieldValueList CustomFieldValues
  2293.     {
  2294.       get
  2295.       {
  2296.         if (this.customFieldValues == null)
  2297.         {
  2298.           this.customFieldValues = new CustomFieldValueList();
  2299.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2300.             this.customFieldValues.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2301.           this.customFieldValues.parentObject = (object) this;
  2302.         }
  2303.         return this.customFieldValues;
  2304.       }
  2305.       set
  2306.       {
  2307.         this.customFieldValues = value;
  2308.         this.SetDataState("CustomFieldValues");
  2309.         if (value == null || value.parentObject != null)
  2310.           return;
  2311.         this.customFieldValues.parentObject = (object) this;
  2312.       }
  2313.     }
  2314.  
  2315.     [CustomQuery(QueryStyle.Nonqueryable)]
  2316.     [CustomReporting(Visibility.Nonreportable)]
  2317.     public CustomNFIRSTextEntryList CustomNFIRSTextEntries
  2318.     {
  2319.       get
  2320.       {
  2321.         if (this.customNFIRSTextEntries == null)
  2322.         {
  2323.           this.customNFIRSTextEntries = new CustomNFIRSTextEntryList();
  2324.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2325.             this.customNFIRSTextEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2326.           this.customNFIRSTextEntries.parentObject = (object) this;
  2327.         }
  2328.         return this.customNFIRSTextEntries;
  2329.       }
  2330.       set
  2331.       {
  2332.         this.customNFIRSTextEntries = value;
  2333.         this.SetDataState("CustomNFIRSTextEntries");
  2334.         if (value == null || value.parentObject != null)
  2335.           return;
  2336.         this.customNFIRSTextEntries.parentObject = (object) this;
  2337.       }
  2338.     }
  2339.  
  2340.     [CustomQuery(QueryStyle.Nonqueryable)]
  2341.     [CustomReporting(Visibility.Nonreportable)]
  2342.     public CustomSchedulingCalculationList CustomSchedulingCalculations
  2343.     {
  2344.       get
  2345.       {
  2346.         if (this.customSchedulingCalculations == null)
  2347.         {
  2348.           this.customSchedulingCalculations = new CustomSchedulingCalculationList();
  2349.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2350.             this.customSchedulingCalculations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2351.           this.customSchedulingCalculations.parentObject = (object) this;
  2352.         }
  2353.         return this.customSchedulingCalculations;
  2354.       }
  2355.       set
  2356.       {
  2357.         this.customSchedulingCalculations = value;
  2358.         this.SetDataState("CustomSchedulingCalculations");
  2359.         if (value == null || value.parentObject != null)
  2360.           return;
  2361.         this.customSchedulingCalculations.parentObject = (object) this;
  2362.       }
  2363.     }
  2364.  
  2365.     [CustomReporting(Visibility.Nonreportable)]
  2366.     [CustomQuery(QueryStyle.Nonqueryable)]
  2367.     public CustomSchedulingEnteredValueList CustomSchedulingEnteredValues
  2368.     {
  2369.       get
  2370.       {
  2371.         if (this.customSchedulingEnteredValues == null)
  2372.         {
  2373.           this.customSchedulingEnteredValues = new CustomSchedulingEnteredValueList();
  2374.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2375.             this.customSchedulingEnteredValues.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2376.           this.customSchedulingEnteredValues.parentObject = (object) this;
  2377.         }
  2378.         return this.customSchedulingEnteredValues;
  2379.       }
  2380.       set
  2381.       {
  2382.         this.customSchedulingEnteredValues = value;
  2383.         this.SetDataState("CustomSchedulingEnteredValues");
  2384.         if (value == null || value.parentObject != null)
  2385.           return;
  2386.         this.customSchedulingEnteredValues.parentObject = (object) this;
  2387.       }
  2388.     }
  2389.  
  2390.     [CustomQuery(QueryStyle.Nonqueryable)]
  2391.     [CustomReporting(Visibility.Nonreportable)]
  2392.     public DailyLogApparatusEntryList DailyLogApparatusEntries
  2393.     {
  2394.       get
  2395.       {
  2396.         if (this.dailyLogApparatusEntries == null)
  2397.         {
  2398.           this.dailyLogApparatusEntries = new DailyLogApparatusEntryList();
  2399.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2400.             this.dailyLogApparatusEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2401.           this.dailyLogApparatusEntries.parentObject = (object) this;
  2402.         }
  2403.         return this.dailyLogApparatusEntries;
  2404.       }
  2405.       set
  2406.       {
  2407.         this.dailyLogApparatusEntries = value;
  2408.         this.SetDataState("DailyLogApparatusEntries");
  2409.         if (value == null || value.parentObject != null)
  2410.           return;
  2411.         this.dailyLogApparatusEntries.parentObject = (object) this;
  2412.       }
  2413.     }
  2414.  
  2415.     [CustomQuery(QueryStyle.Nonqueryable)]
  2416.     [CustomReporting(Visibility.Nonreportable)]
  2417.     public DailyLogEntryList DailyLogEntries
  2418.     {
  2419.       get
  2420.       {
  2421.         if (this.dailyLogEntries == null)
  2422.         {
  2423.           this.dailyLogEntries = new DailyLogEntryList();
  2424.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2425.             this.dailyLogEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2426.           this.dailyLogEntries.parentObject = (object) this;
  2427.         }
  2428.         return this.dailyLogEntries;
  2429.       }
  2430.       set
  2431.       {
  2432.         this.dailyLogEntries = value;
  2433.         this.SetDataState("DailyLogEntries");
  2434.         if (value == null || value.parentObject != null)
  2435.           return;
  2436.         this.dailyLogEntries.parentObject = (object) this;
  2437.       }
  2438.     }
  2439.  
  2440.     [CustomQuery(QueryStyle.Nonqueryable)]
  2441.     [CustomReporting(Visibility.Nonreportable)]
  2442.     public DailyLogEntryTypeList DailyLogEntryTypes
  2443.     {
  2444.       get
  2445.       {
  2446.         if (this.dailyLogEntryTypes == null)
  2447.         {
  2448.           this.dailyLogEntryTypes = new DailyLogEntryTypeList();
  2449.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2450.             this.dailyLogEntryTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2451.           this.dailyLogEntryTypes.parentObject = (object) this;
  2452.         }
  2453.         return this.dailyLogEntryTypes;
  2454.       }
  2455.       set
  2456.       {
  2457.         this.dailyLogEntryTypes = value;
  2458.         this.SetDataState("DailyLogEntryTypes");
  2459.         if (value == null || value.parentObject != null)
  2460.           return;
  2461.         this.dailyLogEntryTypes.parentObject = (object) this;
  2462.       }
  2463.     }
  2464.  
  2465.     [CustomReporting(Visibility.Nonreportable)]
  2466.     [CustomQuery(QueryStyle.Nonqueryable)]
  2467.     public DailyLogPersonnelEntryList DailyLogPersonnelEntries
  2468.     {
  2469.       get
  2470.       {
  2471.         if (this.dailyLogPersonnelEntries == null)
  2472.         {
  2473.           this.dailyLogPersonnelEntries = new DailyLogPersonnelEntryList();
  2474.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2475.             this.dailyLogPersonnelEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2476.           this.dailyLogPersonnelEntries.parentObject = (object) this;
  2477.         }
  2478.         return this.dailyLogPersonnelEntries;
  2479.       }
  2480.       set
  2481.       {
  2482.         this.dailyLogPersonnelEntries = value;
  2483.         this.SetDataState("DailyLogPersonnelEntries");
  2484.         if (value == null || value.parentObject != null)
  2485.           return;
  2486.         this.dailyLogPersonnelEntries.parentObject = (object) this;
  2487.       }
  2488.     }
  2489.  
  2490.     [CustomReporting(Visibility.Nonreportable)]
  2491.     [CustomQuery(QueryStyle.Nonqueryable)]
  2492.     public DailyLogShiftEntryList DailyLogShiftEntries
  2493.     {
  2494.       get
  2495.       {
  2496.         if (this.dailyLogShiftEntries == null)
  2497.         {
  2498.           this.dailyLogShiftEntries = new DailyLogShiftEntryList();
  2499.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2500.             this.dailyLogShiftEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2501.           this.dailyLogShiftEntries.parentObject = (object) this;
  2502.         }
  2503.         return this.dailyLogShiftEntries;
  2504.       }
  2505.       set
  2506.       {
  2507.         this.dailyLogShiftEntries = value;
  2508.         this.SetDataState("DailyLogShiftEntries");
  2509.         if (value == null || value.parentObject != null)
  2510.           return;
  2511.         this.dailyLogShiftEntries.parentObject = (object) this;
  2512.       }
  2513.     }
  2514.  
  2515.     [CustomReporting(Visibility.Nonreportable)]
  2516.     [CustomQuery(QueryStyle.Nonqueryable)]
  2517.     public DailyLogStationEntryList DailyLogStationEntries
  2518.     {
  2519.       get
  2520.       {
  2521.         if (this.dailyLogStationEntries == null)
  2522.         {
  2523.           this.dailyLogStationEntries = new DailyLogStationEntryList();
  2524.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2525.             this.dailyLogStationEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2526.           this.dailyLogStationEntries.parentObject = (object) this;
  2527.         }
  2528.         return this.dailyLogStationEntries;
  2529.       }
  2530.       set
  2531.       {
  2532.         this.dailyLogStationEntries = value;
  2533.         this.SetDataState("DailyLogStationEntries");
  2534.         if (value == null || value.parentObject != null)
  2535.           return;
  2536.         this.dailyLogStationEntries.parentObject = (object) this;
  2537.       }
  2538.     }
  2539.  
  2540.     [CustomReporting(Visibility.Nonreportable)]
  2541.     [CustomQuery(QueryStyle.Nonqueryable)]
  2542.     public DailyLogUsedEquipmentItemList DailyLogUsedEquipmentItems
  2543.     {
  2544.       get
  2545.       {
  2546.         if (this.dailyLogUsedEquipmentItems == null)
  2547.         {
  2548.           this.dailyLogUsedEquipmentItems = new DailyLogUsedEquipmentItemList();
  2549.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2550.             this.dailyLogUsedEquipmentItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2551.           this.dailyLogUsedEquipmentItems.parentObject = (object) this;
  2552.         }
  2553.         return this.dailyLogUsedEquipmentItems;
  2554.       }
  2555.       set
  2556.       {
  2557.         this.dailyLogUsedEquipmentItems = value;
  2558.         this.SetDataState("DailyLogUsedEquipmentItems");
  2559.         if (value == null || value.parentObject != null)
  2560.           return;
  2561.         this.dailyLogUsedEquipmentItems.parentObject = (object) this;
  2562.       }
  2563.     }
  2564.  
  2565.     [CustomQuery(QueryStyle.Nonqueryable)]
  2566.     [CustomReporting(Visibility.Nonreportable)]
  2567.     public DailyLogUsedSupplyItemList DailyLogUsedSupplyItems
  2568.     {
  2569.       get
  2570.       {
  2571.         if (this.dailyLogUsedSupplyItems == null)
  2572.         {
  2573.           this.dailyLogUsedSupplyItems = new DailyLogUsedSupplyItemList();
  2574.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2575.             this.dailyLogUsedSupplyItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2576.           this.dailyLogUsedSupplyItems.parentObject = (object) this;
  2577.         }
  2578.         return this.dailyLogUsedSupplyItems;
  2579.       }
  2580.       set
  2581.       {
  2582.         this.dailyLogUsedSupplyItems = value;
  2583.         this.SetDataState("DailyLogUsedSupplyItems");
  2584.         if (value == null || value.parentObject != null)
  2585.           return;
  2586.         this.dailyLogUsedSupplyItems.parentObject = (object) this;
  2587.       }
  2588.     }
  2589.  
  2590.     [CustomQuery(QueryStyle.Nonqueryable)]
  2591.     [CustomReporting(Visibility.Nonreportable)]
  2592.     public DepartmentFDIDList DepartmentFDIDs
  2593.     {
  2594.       get
  2595.       {
  2596.         if (this.departmentFDIDs == null)
  2597.         {
  2598.           this.departmentFDIDs = new DepartmentFDIDList();
  2599.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2600.             this.departmentFDIDs.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2601.           this.departmentFDIDs.parentObject = (object) this;
  2602.         }
  2603.         return this.departmentFDIDs;
  2604.       }
  2605.       set
  2606.       {
  2607.         this.departmentFDIDs = value;
  2608.         this.SetDataState("DepartmentFDIDs");
  2609.         if (value == null || value.parentObject != null)
  2610.           return;
  2611.         this.departmentFDIDs.parentObject = (object) this;
  2612.       }
  2613.     }
  2614.  
  2615.     [CustomQuery(QueryStyle.Nonqueryable)]
  2616.     [CustomReporting(Visibility.Nonreportable)]
  2617.     public DepartmentLoginComponentList DepartmentLoginComponents
  2618.     {
  2619.       get
  2620.       {
  2621.         if (this.departmentLoginComponents == null)
  2622.         {
  2623.           this.departmentLoginComponents = new DepartmentLoginComponentList();
  2624.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2625.             this.departmentLoginComponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2626.           this.departmentLoginComponents.parentObject = (object) this;
  2627.         }
  2628.         return this.departmentLoginComponents;
  2629.       }
  2630.       set
  2631.       {
  2632.         this.departmentLoginComponents = value;
  2633.         this.SetDataState("DepartmentLoginComponents");
  2634.         if (value == null || value.parentObject != null)
  2635.           return;
  2636.         this.departmentLoginComponents.parentObject = (object) this;
  2637.       }
  2638.     }
  2639.  
  2640.     [CustomReporting(Visibility.Nonreportable)]
  2641.     [CustomQuery(QueryStyle.Nonqueryable)]
  2642.     public DepartmentLoginPermissionList DepartmentLoginPermissions
  2643.     {
  2644.       get
  2645.       {
  2646.         if (this.departmentLoginPermissions == null)
  2647.         {
  2648.           this.departmentLoginPermissions = new DepartmentLoginPermissionList();
  2649.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2650.             this.departmentLoginPermissions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2651.           this.departmentLoginPermissions.parentObject = (object) this;
  2652.         }
  2653.         return this.departmentLoginPermissions;
  2654.       }
  2655.       set
  2656.       {
  2657.         this.departmentLoginPermissions = value;
  2658.         this.SetDataState("DepartmentLoginPermissions");
  2659.         if (value == null || value.parentObject != null)
  2660.           return;
  2661.         this.departmentLoginPermissions.parentObject = (object) this;
  2662.       }
  2663.     }
  2664.  
  2665.     [CustomReporting(Visibility.Nonreportable)]
  2666.     [CustomQuery(QueryStyle.Nonqueryable)]
  2667.     public DepartmentLoginRoleList DepartmentLoginRoles
  2668.     {
  2669.       get
  2670.       {
  2671.         if (this.departmentLoginRoles == null)
  2672.         {
  2673.           this.departmentLoginRoles = new DepartmentLoginRoleList();
  2674.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2675.             this.departmentLoginRoles.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2676.           this.departmentLoginRoles.parentObject = (object) this;
  2677.         }
  2678.         return this.departmentLoginRoles;
  2679.       }
  2680.       set
  2681.       {
  2682.         this.departmentLoginRoles = value;
  2683.         this.SetDataState("DepartmentLoginRoles");
  2684.         if (value == null || value.parentObject != null)
  2685.           return;
  2686.         this.departmentLoginRoles.parentObject = (object) this;
  2687.       }
  2688.     }
  2689.  
  2690.     [CustomReporting(Visibility.Nonreportable)]
  2691.     [CustomQuery(QueryStyle.Nonqueryable)]
  2692.     public DepartmentLoginList DepartmentLogins
  2693.     {
  2694.       get
  2695.       {
  2696.         if (this.departmentLogins == null)
  2697.         {
  2698.           this.departmentLogins = new DepartmentLoginList();
  2699.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2700.             this.departmentLogins.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2701.           this.departmentLogins.parentObject = (object) this;
  2702.         }
  2703.         return this.departmentLogins;
  2704.       }
  2705.       set
  2706.       {
  2707.         this.departmentLogins = value;
  2708.         this.SetDataState("DepartmentLogins");
  2709.         if (value == null || value.parentObject != null)
  2710.           return;
  2711.         this.departmentLogins.parentObject = (object) this;
  2712.       }
  2713.     }
  2714.  
  2715.     [CustomQuery(QueryStyle.Nonqueryable)]
  2716.     [CustomReporting(Visibility.Nonreportable)]
  2717.     public DepartmentLoginList UserLoginDepartmentLogins
  2718.     {
  2719.       get
  2720.       {
  2721.         if (this.userLoginDepartmentLogins == null)
  2722.         {
  2723.           this.userLoginDepartmentLogins = new DepartmentLoginList();
  2724.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2725.             this.userLoginDepartmentLogins.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2726.           this.userLoginDepartmentLogins.parentObject = (object) this;
  2727.         }
  2728.         return this.userLoginDepartmentLogins;
  2729.       }
  2730.       set
  2731.       {
  2732.         this.userLoginDepartmentLogins = value;
  2733.         this.SetDataState("UserLoginDepartmentLogins");
  2734.         if (value == null || value.parentObject != null)
  2735.           return;
  2736.         this.userLoginDepartmentLogins.parentObject = (object) this;
  2737.       }
  2738.     }
  2739.  
  2740.     [CustomReporting(Visibility.Nonreportable)]
  2741.     [CustomQuery(QueryStyle.Nonqueryable)]
  2742.     public DepartmentLoginSubcomponentList DepartmentLoginSubcomponents
  2743.     {
  2744.       get
  2745.       {
  2746.         if (this.departmentLoginSubcomponents == null)
  2747.         {
  2748.           this.departmentLoginSubcomponents = new DepartmentLoginSubcomponentList();
  2749.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2750.             this.departmentLoginSubcomponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2751.           this.departmentLoginSubcomponents.parentObject = (object) this;
  2752.         }
  2753.         return this.departmentLoginSubcomponents;
  2754.       }
  2755.       set
  2756.       {
  2757.         this.departmentLoginSubcomponents = value;
  2758.         this.SetDataState("DepartmentLoginSubcomponents");
  2759.         if (value == null || value.parentObject != null)
  2760.           return;
  2761.         this.departmentLoginSubcomponents.parentObject = (object) this;
  2762.       }
  2763.     }
  2764.  
  2765.     [CustomQuery(QueryStyle.Nonqueryable)]
  2766.     [CustomReporting(Visibility.Nonreportable)]
  2767.     public DisciplinaryReportList DisciplinaryReports
  2768.     {
  2769.       get
  2770.       {
  2771.         if (this.disciplinaryReports == null)
  2772.         {
  2773.           this.disciplinaryReports = new DisciplinaryReportList();
  2774.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2775.             this.disciplinaryReports.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2776.           this.disciplinaryReports.parentObject = (object) this;
  2777.         }
  2778.         return this.disciplinaryReports;
  2779.       }
  2780.       set
  2781.       {
  2782.         this.disciplinaryReports = value;
  2783.         this.SetDataState("DisciplinaryReports");
  2784.         if (value == null || value.parentObject != null)
  2785.           return;
  2786.         this.disciplinaryReports.parentObject = (object) this;
  2787.       }
  2788.     }
  2789.  
  2790.     [CustomReporting(Visibility.Nonreportable)]
  2791.     [CustomQuery(QueryStyle.Nonqueryable)]
  2792.     public DistrictList Districts
  2793.     {
  2794.       get
  2795.       {
  2796.         if (this.districts == null)
  2797.         {
  2798.           this.districts = new DistrictList();
  2799.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2800.             this.districts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2801.           this.districts.parentObject = (object) this;
  2802.         }
  2803.         return this.districts;
  2804.       }
  2805.       set
  2806.       {
  2807.         this.districts = value;
  2808.         this.SetDataState("Districts");
  2809.         if (value == null || value.parentObject != null)
  2810.           return;
  2811.         this.districts.parentObject = (object) this;
  2812.       }
  2813.     }
  2814.  
  2815.     [CustomReporting(Visibility.Nonreportable)]
  2816.     [CustomQuery(QueryStyle.Nonqueryable)]
  2817.     public EmploymentCategorySchedulingConstraintList EmploymentCategorySchedulingConstraints
  2818.     {
  2819.       get
  2820.       {
  2821.         if (this.employmentCategorySchedulingConstraints == null)
  2822.         {
  2823.           this.employmentCategorySchedulingConstraints = new EmploymentCategorySchedulingConstraintList();
  2824.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2825.             this.employmentCategorySchedulingConstraints.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2826.           this.employmentCategorySchedulingConstraints.parentObject = (object) this;
  2827.         }
  2828.         return this.employmentCategorySchedulingConstraints;
  2829.       }
  2830.       set
  2831.       {
  2832.         this.employmentCategorySchedulingConstraints = value;
  2833.         this.SetDataState("EmploymentCategorySchedulingConstraints");
  2834.         if (value == null || value.parentObject != null)
  2835.           return;
  2836.         this.employmentCategorySchedulingConstraints.parentObject = (object) this;
  2837.       }
  2838.     }
  2839.  
  2840.     [CustomQuery(QueryStyle.Nonqueryable)]
  2841.     [CustomReporting(Visibility.Nonreportable)]
  2842.     public EMSPatientList EMSPatients
  2843.     {
  2844.       get
  2845.       {
  2846.         if (this.eMSPatients == null)
  2847.         {
  2848.           this.eMSPatients = new EMSPatientList();
  2849.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2850.             this.eMSPatients.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2851.           this.eMSPatients.parentObject = (object) this;
  2852.         }
  2853.         return this.eMSPatients;
  2854.       }
  2855.       set
  2856.       {
  2857.         this.eMSPatients = value;
  2858.         this.SetDataState("EMSPatients");
  2859.         if (value == null || value.parentObject != null)
  2860.           return;
  2861.         this.eMSPatients.parentObject = (object) this;
  2862.       }
  2863.     }
  2864.  
  2865.     [CustomQuery(QueryStyle.Nonqueryable)]
  2866.     [CustomReporting(Visibility.Nonreportable)]
  2867.     public EPADictionaryEntryList EPADictionaryEntries
  2868.     {
  2869.       get
  2870.       {
  2871.         if (this.ePADictionaryEntries == null)
  2872.         {
  2873.           this.ePADictionaryEntries = new EPADictionaryEntryList();
  2874.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2875.             this.ePADictionaryEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2876.           this.ePADictionaryEntries.parentObject = (object) this;
  2877.         }
  2878.         return this.ePADictionaryEntries;
  2879.       }
  2880.       set
  2881.       {
  2882.         this.ePADictionaryEntries = value;
  2883.         this.SetDataState("EPADictionaryEntries");
  2884.         if (value == null || value.parentObject != null)
  2885.           return;
  2886.         this.ePADictionaryEntries.parentObject = (object) this;
  2887.       }
  2888.     }
  2889.  
  2890.     [CustomQuery(QueryStyle.Nonqueryable)]
  2891.     [CustomReporting(Visibility.Nonreportable)]
  2892.     public EquipmentConditionRecordList EquipmentConditionRecords
  2893.     {
  2894.       get
  2895.       {
  2896.         if (this.equipmentConditionRecords == null)
  2897.         {
  2898.           this.equipmentConditionRecords = new EquipmentConditionRecordList();
  2899.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2900.             this.equipmentConditionRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2901.           this.equipmentConditionRecords.parentObject = (object) this;
  2902.         }
  2903.         return this.equipmentConditionRecords;
  2904.       }
  2905.       set
  2906.       {
  2907.         this.equipmentConditionRecords = value;
  2908.         this.SetDataState("EquipmentConditionRecords");
  2909.         if (value == null || value.parentObject != null)
  2910.           return;
  2911.         this.equipmentConditionRecords.parentObject = (object) this;
  2912.       }
  2913.     }
  2914.  
  2915.     [CustomReporting(Visibility.Nonreportable)]
  2916.     [CustomQuery(QueryStyle.Nonqueryable)]
  2917.     public EquipmentConditionList EquipmentConditions
  2918.     {
  2919.       get
  2920.       {
  2921.         if (this.equipmentConditions == null)
  2922.         {
  2923.           this.equipmentConditions = new EquipmentConditionList();
  2924.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2925.             this.equipmentConditions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2926.           this.equipmentConditions.parentObject = (object) this;
  2927.         }
  2928.         return this.equipmentConditions;
  2929.       }
  2930.       set
  2931.       {
  2932.         this.equipmentConditions = value;
  2933.         this.SetDataState("EquipmentConditions");
  2934.         if (value == null || value.parentObject != null)
  2935.           return;
  2936.         this.equipmentConditions.parentObject = (object) this;
  2937.       }
  2938.     }
  2939.  
  2940.     [CustomReporting(Visibility.Nonreportable)]
  2941.     [CustomQuery(QueryStyle.Nonqueryable)]
  2942.     public EquipmentItemInspectionList EquipmentItemInspections
  2943.     {
  2944.       get
  2945.       {
  2946.         if (this.equipmentItemInspections == null)
  2947.         {
  2948.           this.equipmentItemInspections = new EquipmentItemInspectionList();
  2949.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2950.             this.equipmentItemInspections.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2951.           this.equipmentItemInspections.parentObject = (object) this;
  2952.         }
  2953.         return this.equipmentItemInspections;
  2954.       }
  2955.       set
  2956.       {
  2957.         this.equipmentItemInspections = value;
  2958.         this.SetDataState("EquipmentItemInspections");
  2959.         if (value == null || value.parentObject != null)
  2960.           return;
  2961.         this.equipmentItemInspections.parentObject = (object) this;
  2962.       }
  2963.     }
  2964.  
  2965.     [CustomQuery(QueryStyle.Nonqueryable)]
  2966.     [CustomReporting(Visibility.Nonreportable)]
  2967.     public EquipmentItemList EquipmentItems
  2968.     {
  2969.       get
  2970.       {
  2971.         if (this.equipmentItems == null)
  2972.         {
  2973.           this.equipmentItems = new EquipmentItemList();
  2974.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  2975.             this.equipmentItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  2976.           this.equipmentItems.parentObject = (object) this;
  2977.         }
  2978.         return this.equipmentItems;
  2979.       }
  2980.       set
  2981.       {
  2982.         this.equipmentItems = value;
  2983.         this.SetDataState("EquipmentItems");
  2984.         if (value == null || value.parentObject != null)
  2985.           return;
  2986.         this.equipmentItems.parentObject = (object) this;
  2987.       }
  2988.     }
  2989.  
  2990.     [CustomReporting(Visibility.Nonreportable)]
  2991.     [CustomQuery(QueryStyle.Nonqueryable)]
  2992.     public EquipmentItemSizeList EquipmentItemSizes
  2993.     {
  2994.       get
  2995.       {
  2996.         if (this.equipmentItemSizes == null)
  2997.         {
  2998.           this.equipmentItemSizes = new EquipmentItemSizeList();
  2999.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3000.             this.equipmentItemSizes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3001.           this.equipmentItemSizes.parentObject = (object) this;
  3002.         }
  3003.         return this.equipmentItemSizes;
  3004.       }
  3005.       set
  3006.       {
  3007.         this.equipmentItemSizes = value;
  3008.         this.SetDataState("EquipmentItemSizes");
  3009.         if (value == null || value.parentObject != null)
  3010.           return;
  3011.         this.equipmentItemSizes.parentObject = (object) this;
  3012.       }
  3013.     }
  3014.  
  3015.     [CustomQuery(QueryStyle.Nonqueryable)]
  3016.     [CustomReporting(Visibility.Nonreportable)]
  3017.     public EquipmentItemTestDetailList EquipmentItemTestDetails
  3018.     {
  3019.       get
  3020.       {
  3021.         if (this.equipmentItemTestDetails == null)
  3022.         {
  3023.           this.equipmentItemTestDetails = new EquipmentItemTestDetailList();
  3024.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3025.             this.equipmentItemTestDetails.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3026.           this.equipmentItemTestDetails.parentObject = (object) this;
  3027.         }
  3028.         return this.equipmentItemTestDetails;
  3029.       }
  3030.       set
  3031.       {
  3032.         this.equipmentItemTestDetails = value;
  3033.         this.SetDataState("EquipmentItemTestDetails");
  3034.         if (value == null || value.parentObject != null)
  3035.           return;
  3036.         this.equipmentItemTestDetails.parentObject = (object) this;
  3037.       }
  3038.     }
  3039.  
  3040.     [CustomQuery(QueryStyle.Nonqueryable)]
  3041.     [CustomReporting(Visibility.Nonreportable)]
  3042.     public EquipmentItemTestList EquipmentItemTests
  3043.     {
  3044.       get
  3045.       {
  3046.         if (this.equipmentItemTests == null)
  3047.         {
  3048.           this.equipmentItemTests = new EquipmentItemTestList();
  3049.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3050.             this.equipmentItemTests.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3051.           this.equipmentItemTests.parentObject = (object) this;
  3052.         }
  3053.         return this.equipmentItemTests;
  3054.       }
  3055.       set
  3056.       {
  3057.         this.equipmentItemTests = value;
  3058.         this.SetDataState("EquipmentItemTests");
  3059.         if (value == null || value.parentObject != null)
  3060.           return;
  3061.         this.equipmentItemTests.parentObject = (object) this;
  3062.       }
  3063.     }
  3064.  
  3065.     [CustomQuery(QueryStyle.Nonqueryable)]
  3066.     [CustomReporting(Visibility.Nonreportable)]
  3067.     public EquipmentSizeFieldList EquipmentSizeFields
  3068.     {
  3069.       get
  3070.       {
  3071.         if (this.equipmentSizeFields == null)
  3072.         {
  3073.           this.equipmentSizeFields = new EquipmentSizeFieldList();
  3074.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3075.             this.equipmentSizeFields.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3076.           this.equipmentSizeFields.parentObject = (object) this;
  3077.         }
  3078.         return this.equipmentSizeFields;
  3079.       }
  3080.       set
  3081.       {
  3082.         this.equipmentSizeFields = value;
  3083.         this.SetDataState("EquipmentSizeFields");
  3084.         if (value == null || value.parentObject != null)
  3085.           return;
  3086.         this.equipmentSizeFields.parentObject = (object) this;
  3087.       }
  3088.     }
  3089.  
  3090.     [CustomReporting(Visibility.Nonreportable)]
  3091.     [CustomQuery(QueryStyle.Nonqueryable)]
  3092.     public EquipmentStatusList EquipmentStatuses
  3093.     {
  3094.       get
  3095.       {
  3096.         if (this.equipmentStatuses == null)
  3097.         {
  3098.           this.equipmentStatuses = new EquipmentStatusList();
  3099.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3100.             this.equipmentStatuses.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3101.           this.equipmentStatuses.parentObject = (object) this;
  3102.         }
  3103.         return this.equipmentStatuses;
  3104.       }
  3105.       set
  3106.       {
  3107.         this.equipmentStatuses = value;
  3108.         this.SetDataState("EquipmentStatuses");
  3109.         if (value == null || value.parentObject != null)
  3110.           return;
  3111.         this.equipmentStatuses.parentObject = (object) this;
  3112.       }
  3113.     }
  3114.  
  3115.     [CustomReporting(Visibility.Nonreportable)]
  3116.     [CustomQuery(QueryStyle.Nonqueryable)]
  3117.     public EquipmentStatusRecordList EquipmentStatusRecords
  3118.     {
  3119.       get
  3120.       {
  3121.         if (this.equipmentStatusRecords == null)
  3122.         {
  3123.           this.equipmentStatusRecords = new EquipmentStatusRecordList();
  3124.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3125.             this.equipmentStatusRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3126.           this.equipmentStatusRecords.parentObject = (object) this;
  3127.         }
  3128.         return this.equipmentStatusRecords;
  3129.       }
  3130.       set
  3131.       {
  3132.         this.equipmentStatusRecords = value;
  3133.         this.SetDataState("EquipmentStatusRecords");
  3134.         if (value == null || value.parentObject != null)
  3135.           return;
  3136.         this.equipmentStatusRecords.parentObject = (object) this;
  3137.       }
  3138.     }
  3139.  
  3140.     [CustomQuery(QueryStyle.Nonqueryable)]
  3141.     [CustomReporting(Visibility.Nonreportable)]
  3142.     public EquipmentTypeList EquipmentTypes
  3143.     {
  3144.       get
  3145.       {
  3146.         if (this.equipmentTypes == null)
  3147.         {
  3148.           this.equipmentTypes = new EquipmentTypeList();
  3149.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3150.             this.equipmentTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3151.           this.equipmentTypes.parentObject = (object) this;
  3152.         }
  3153.         return this.equipmentTypes;
  3154.       }
  3155.       set
  3156.       {
  3157.         this.equipmentTypes = value;
  3158.         this.SetDataState("EquipmentTypes");
  3159.         if (value == null || value.parentObject != null)
  3160.           return;
  3161.         this.equipmentTypes.parentObject = (object) this;
  3162.       }
  3163.     }
  3164.  
  3165.     [CustomReporting(Visibility.Nonreportable)]
  3166.     [CustomQuery(QueryStyle.Nonqueryable)]
  3167.     public FieldInvestigationList FieldInvestigations
  3168.     {
  3169.       get
  3170.       {
  3171.         if (this.fieldInvestigations == null)
  3172.         {
  3173.           this.fieldInvestigations = new FieldInvestigationList();
  3174.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3175.             this.fieldInvestigations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3176.           this.fieldInvestigations.parentObject = (object) this;
  3177.         }
  3178.         return this.fieldInvestigations;
  3179.       }
  3180.       set
  3181.       {
  3182.         this.fieldInvestigations = value;
  3183.         this.SetDataState("FieldInvestigations");
  3184.         if (value == null || value.parentObject != null)
  3185.           return;
  3186.         this.fieldInvestigations.parentObject = (object) this;
  3187.       }
  3188.     }
  3189.  
  3190.     [CustomQuery(QueryStyle.Nonqueryable)]
  3191.     [CustomReporting(Visibility.Nonreportable)]
  3192.     public FiledChargeList FiledCharges
  3193.     {
  3194.       get
  3195.       {
  3196.         if (this.filedCharges == null)
  3197.         {
  3198.           this.filedCharges = new FiledChargeList();
  3199.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3200.             this.filedCharges.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3201.           this.filedCharges.parentObject = (object) this;
  3202.         }
  3203.         return this.filedCharges;
  3204.       }
  3205.       set
  3206.       {
  3207.         this.filedCharges = value;
  3208.         this.SetDataState("FiledCharges");
  3209.         if (value == null || value.parentObject != null)
  3210.           return;
  3211.         this.filedCharges.parentObject = (object) this;
  3212.       }
  3213.     }
  3214.  
  3215.     [CustomQuery(QueryStyle.Nonqueryable)]
  3216.     [CustomReporting(Visibility.Nonreportable)]
  3217.     public FireExtinguisherList FireExtinguishers
  3218.     {
  3219.       get
  3220.       {
  3221.         if (this.fireExtinguishers == null)
  3222.         {
  3223.           this.fireExtinguishers = new FireExtinguisherList();
  3224.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3225.             this.fireExtinguishers.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3226.           this.fireExtinguishers.parentObject = (object) this;
  3227.         }
  3228.         return this.fireExtinguishers;
  3229.       }
  3230.       set
  3231.       {
  3232.         this.fireExtinguishers = value;
  3233.         this.SetDataState("FireExtinguishers");
  3234.         if (value == null || value.parentObject != null)
  3235.           return;
  3236.         this.fireExtinguishers.parentObject = (object) this;
  3237.       }
  3238.     }
  3239.  
  3240.     [CustomReporting(Visibility.Nonreportable)]
  3241.     [CustomQuery(QueryStyle.Nonqueryable)]
  3242.     public FireInvestigationList FireInvestigations
  3243.     {
  3244.       get
  3245.       {
  3246.         if (this.fireInvestigations == null)
  3247.         {
  3248.           this.fireInvestigations = new FireInvestigationList();
  3249.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3250.             this.fireInvestigations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3251.           this.fireInvestigations.parentObject = (object) this;
  3252.         }
  3253.         return this.fireInvestigations;
  3254.       }
  3255.       set
  3256.       {
  3257.         this.fireInvestigations = value;
  3258.         this.SetDataState("FireInvestigations");
  3259.         if (value == null || value.parentObject != null)
  3260.           return;
  3261.         this.fireInvestigations.parentObject = (object) this;
  3262.       }
  3263.     }
  3264.  
  3265.     [CustomQuery(QueryStyle.Nonqueryable)]
  3266.     [CustomReporting(Visibility.Nonreportable)]
  3267.     public FireInvestigationList LockedByUserFireInvestigations
  3268.     {
  3269.       get
  3270.       {
  3271.         if (this.lockedByUserFireInvestigations == null)
  3272.         {
  3273.           this.lockedByUserFireInvestigations = new FireInvestigationList();
  3274.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3275.             this.lockedByUserFireInvestigations.Reload("LockedByUserID = '" + this.recordID.ToString() + "'");
  3276.           this.lockedByUserFireInvestigations.parentObject = (object) this;
  3277.         }
  3278.         return this.lockedByUserFireInvestigations;
  3279.       }
  3280.       set
  3281.       {
  3282.         this.lockedByUserFireInvestigations = value;
  3283.         this.SetDataState("LockedByUserFireInvestigations");
  3284.         if (value == null || value.parentObject != null)
  3285.           return;
  3286.         this.lockedByUserFireInvestigations.parentObject = (object) this;
  3287.       }
  3288.     }
  3289.  
  3290.     [CustomReporting(Visibility.Nonreportable)]
  3291.     [CustomQuery(QueryStyle.Nonqueryable)]
  3292.     public FireServiceCasualtyList FireServiceCasualties
  3293.     {
  3294.       get
  3295.       {
  3296.         if (this.fireServiceCasualties == null)
  3297.         {
  3298.           this.fireServiceCasualties = new FireServiceCasualtyList();
  3299.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3300.             this.fireServiceCasualties.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3301.           this.fireServiceCasualties.parentObject = (object) this;
  3302.         }
  3303.         return this.fireServiceCasualties;
  3304.       }
  3305.       set
  3306.       {
  3307.         this.fireServiceCasualties = value;
  3308.         this.SetDataState("FireServiceCasualties");
  3309.         if (value == null || value.parentObject != null)
  3310.           return;
  3311.         this.fireServiceCasualties.parentObject = (object) this;
  3312.       }
  3313.     }
  3314.  
  3315.     [CustomReporting(Visibility.Nonreportable)]
  3316.     [CustomQuery(QueryStyle.Nonqueryable)]
  3317.     public FixedAssetInventoryItemList FixedAssetInventoryItems
  3318.     {
  3319.       get
  3320.       {
  3321.         if (this.fixedAssetInventoryItems == null)
  3322.         {
  3323.           this.fixedAssetInventoryItems = new FixedAssetInventoryItemList();
  3324.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3325.             this.fixedAssetInventoryItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3326.           this.fixedAssetInventoryItems.parentObject = (object) this;
  3327.         }
  3328.         return this.fixedAssetInventoryItems;
  3329.       }
  3330.       set
  3331.       {
  3332.         this.fixedAssetInventoryItems = value;
  3333.         this.SetDataState("FixedAssetInventoryItems");
  3334.         if (value == null || value.parentObject != null)
  3335.           return;
  3336.         this.fixedAssetInventoryItems.parentObject = (object) this;
  3337.       }
  3338.     }
  3339.  
  3340.     [CustomReporting(Visibility.Nonreportable)]
  3341.     [CustomQuery(QueryStyle.Nonqueryable)]
  3342.     public FixedAssetItemTestList FixedAssetItemTests
  3343.     {
  3344.       get
  3345.       {
  3346.         if (this.fixedAssetItemTests == null)
  3347.         {
  3348.           this.fixedAssetItemTests = new FixedAssetItemTestList();
  3349.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3350.             this.fixedAssetItemTests.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3351.           this.fixedAssetItemTests.parentObject = (object) this;
  3352.         }
  3353.         return this.fixedAssetItemTests;
  3354.       }
  3355.       set
  3356.       {
  3357.         this.fixedAssetItemTests = value;
  3358.         this.SetDataState("FixedAssetItemTests");
  3359.         if (value == null || value.parentObject != null)
  3360.           return;
  3361.         this.fixedAssetItemTests.parentObject = (object) this;
  3362.       }
  3363.     }
  3364.  
  3365.     [CustomQuery(QueryStyle.Nonqueryable)]
  3366.     [CustomReporting(Visibility.Nonreportable)]
  3367.     public FleetApparatusRecordList FleetApparatusRecords
  3368.     {
  3369.       get
  3370.       {
  3371.         if (this.fleetApparatusRecords == null)
  3372.         {
  3373.           this.fleetApparatusRecords = new FleetApparatusRecordList();
  3374.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3375.             this.fleetApparatusRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3376.           this.fleetApparatusRecords.parentObject = (object) this;
  3377.         }
  3378.         return this.fleetApparatusRecords;
  3379.       }
  3380.       set
  3381.       {
  3382.         this.fleetApparatusRecords = value;
  3383.         this.SetDataState("FleetApparatusRecords");
  3384.         if (value == null || value.parentObject != null)
  3385.           return;
  3386.         this.fleetApparatusRecords.parentObject = (object) this;
  3387.       }
  3388.     }
  3389.  
  3390.     [CustomQuery(QueryStyle.Nonqueryable)]
  3391.     [CustomReporting(Visibility.Nonreportable)]
  3392.     public FleetApparatusTypeList FleetApparatusTypes
  3393.     {
  3394.       get
  3395.       {
  3396.         if (this.fleetApparatusTypes == null)
  3397.         {
  3398.           this.fleetApparatusTypes = new FleetApparatusTypeList();
  3399.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3400.             this.fleetApparatusTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3401.           this.fleetApparatusTypes.parentObject = (object) this;
  3402.         }
  3403.         return this.fleetApparatusTypes;
  3404.       }
  3405.       set
  3406.       {
  3407.         this.fleetApparatusTypes = value;
  3408.         this.SetDataState("FleetApparatusTypes");
  3409.         if (value == null || value.parentObject != null)
  3410.           return;
  3411.         this.fleetApparatusTypes.parentObject = (object) this;
  3412.       }
  3413.     }
  3414.  
  3415.     [CustomQuery(QueryStyle.Nonqueryable)]
  3416.     [CustomReporting(Visibility.Nonreportable)]
  3417.     public FLSAPeriodList FLSAPeriods
  3418.     {
  3419.       get
  3420.       {
  3421.         if (this.fLSAPeriods == null)
  3422.         {
  3423.           this.fLSAPeriods = new FLSAPeriodList();
  3424.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3425.             this.fLSAPeriods.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3426.           this.fLSAPeriods.parentObject = (object) this;
  3427.         }
  3428.         return this.fLSAPeriods;
  3429.       }
  3430.       set
  3431.       {
  3432.         this.fLSAPeriods = value;
  3433.         this.SetDataState("FLSAPeriods");
  3434.         if (value == null || value.parentObject != null)
  3435.           return;
  3436.         this.fLSAPeriods.parentObject = (object) this;
  3437.       }
  3438.     }
  3439.  
  3440.     [CustomQuery(QueryStyle.Nonqueryable)]
  3441.     [CustomReporting(Visibility.Nonreportable)]
  3442.     public FluidTypeList FluidTypes
  3443.     {
  3444.       get
  3445.       {
  3446.         if (this.fluidTypes == null)
  3447.         {
  3448.           this.fluidTypes = new FluidTypeList();
  3449.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3450.             this.fluidTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3451.           this.fluidTypes.parentObject = (object) this;
  3452.         }
  3453.         return this.fluidTypes;
  3454.       }
  3455.       set
  3456.       {
  3457.         this.fluidTypes = value;
  3458.         this.SetDataState("FluidTypes");
  3459.         if (value == null || value.parentObject != null)
  3460.           return;
  3461.         this.fluidTypes.parentObject = (object) this;
  3462.       }
  3463.     }
  3464.  
  3465.     [CustomQuery(QueryStyle.Nonqueryable)]
  3466.     [CustomReporting(Visibility.Nonreportable)]
  3467.     public HazMatActionList HazMatActions
  3468.     {
  3469.       get
  3470.       {
  3471.         if (this.hazMatActions == null)
  3472.         {
  3473.           this.hazMatActions = new HazMatActionList();
  3474.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3475.             this.hazMatActions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3476.           this.hazMatActions.parentObject = (object) this;
  3477.         }
  3478.         return this.hazMatActions;
  3479.       }
  3480.       set
  3481.       {
  3482.         this.hazMatActions = value;
  3483.         this.SetDataState("HazMatActions");
  3484.         if (value == null || value.parentObject != null)
  3485.           return;
  3486.         this.hazMatActions.parentObject = (object) this;
  3487.       }
  3488.     }
  3489.  
  3490.     [CustomReporting(Visibility.Nonreportable)]
  3491.     [CustomQuery(QueryStyle.Nonqueryable)]
  3492.     public HazMatChemicalReleaseList HazMatChemicalReleases
  3493.     {
  3494.       get
  3495.       {
  3496.         if (this.hazMatChemicalReleases == null)
  3497.         {
  3498.           this.hazMatChemicalReleases = new HazMatChemicalReleaseList();
  3499.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3500.             this.hazMatChemicalReleases.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3501.           this.hazMatChemicalReleases.parentObject = (object) this;
  3502.         }
  3503.         return this.hazMatChemicalReleases;
  3504.       }
  3505.       set
  3506.       {
  3507.         this.hazMatChemicalReleases = value;
  3508.         this.SetDataState("HazMatChemicalReleases");
  3509.         if (value == null || value.parentObject != null)
  3510.           return;
  3511.         this.hazMatChemicalReleases.parentObject = (object) this;
  3512.       }
  3513.     }
  3514.  
  3515.     [CustomQuery(QueryStyle.Nonqueryable)]
  3516.     [CustomReporting(Visibility.Nonreportable)]
  3517.     public HazMatExposureList HazMatExposures
  3518.     {
  3519.       get
  3520.       {
  3521.         if (this.hazMatExposures == null)
  3522.         {
  3523.           this.hazMatExposures = new HazMatExposureList();
  3524.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3525.             this.hazMatExposures.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3526.           this.hazMatExposures.parentObject = (object) this;
  3527.         }
  3528.         return this.hazMatExposures;
  3529.       }
  3530.       set
  3531.       {
  3532.         this.hazMatExposures = value;
  3533.         this.SetDataState("HazMatExposures");
  3534.         if (value == null || value.parentObject != null)
  3535.           return;
  3536.         this.hazMatExposures.parentObject = (object) this;
  3537.       }
  3538.     }
  3539.  
  3540.     [CustomReporting(Visibility.Nonreportable)]
  3541.     [CustomQuery(QueryStyle.Nonqueryable)]
  3542.     public HazMatMitigationFactorList HazMatMitigationFactors
  3543.     {
  3544.       get
  3545.       {
  3546.         if (this.hazMatMitigationFactors == null)
  3547.         {
  3548.           this.hazMatMitigationFactors = new HazMatMitigationFactorList();
  3549.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3550.             this.hazMatMitigationFactors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3551.           this.hazMatMitigationFactors.parentObject = (object) this;
  3552.         }
  3553.         return this.hazMatMitigationFactors;
  3554.       }
  3555.       set
  3556.       {
  3557.         this.hazMatMitigationFactors = value;
  3558.         this.SetDataState("HazMatMitigationFactors");
  3559.         if (value == null || value.parentObject != null)
  3560.           return;
  3561.         this.hazMatMitigationFactors.parentObject = (object) this;
  3562.       }
  3563.     }
  3564.  
  3565.     [CustomReporting(Visibility.Nonreportable)]
  3566.     [CustomQuery(QueryStyle.Nonqueryable)]
  3567.     public HazMatRecordList HazMatRecords
  3568.     {
  3569.       get
  3570.       {
  3571.         if (this.hazMatRecords == null)
  3572.         {
  3573.           this.hazMatRecords = new HazMatRecordList();
  3574.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3575.             this.hazMatRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3576.           this.hazMatRecords.parentObject = (object) this;
  3577.         }
  3578.         return this.hazMatRecords;
  3579.       }
  3580.       set
  3581.       {
  3582.         this.hazMatRecords = value;
  3583.         this.SetDataState("HazMatRecords");
  3584.         if (value == null || value.parentObject != null)
  3585.           return;
  3586.         this.hazMatRecords.parentObject = (object) this;
  3587.       }
  3588.     }
  3589.  
  3590.     [CustomQuery(QueryStyle.Nonqueryable)]
  3591.     [CustomReporting(Visibility.Nonreportable)]
  3592.     public HazMatReleaseFactorList HazMatReleaseFactors
  3593.     {
  3594.       get
  3595.       {
  3596.         if (this.hazMatReleaseFactors == null)
  3597.         {
  3598.           this.hazMatReleaseFactors = new HazMatReleaseFactorList();
  3599.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3600.             this.hazMatReleaseFactors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3601.           this.hazMatReleaseFactors.parentObject = (object) this;
  3602.         }
  3603.         return this.hazMatReleaseFactors;
  3604.       }
  3605.       set
  3606.       {
  3607.         this.hazMatReleaseFactors = value;
  3608.         this.SetDataState("HazMatReleaseFactors");
  3609.         if (value == null || value.parentObject != null)
  3610.           return;
  3611.         this.hazMatReleaseFactors.parentObject = (object) this;
  3612.       }
  3613.     }
  3614.  
  3615.     [CustomReporting(Visibility.Nonreportable)]
  3616.     [CustomQuery(QueryStyle.Nonqueryable)]
  3617.     public HazTrakHealthHazardList HazTrakHealthHazards
  3618.     {
  3619.       get
  3620.       {
  3621.         if (this.hazTrakHealthHazards == null)
  3622.         {
  3623.           this.hazTrakHealthHazards = new HazTrakHealthHazardList();
  3624.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3625.             this.hazTrakHealthHazards.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3626.           this.hazTrakHealthHazards.parentObject = (object) this;
  3627.         }
  3628.         return this.hazTrakHealthHazards;
  3629.       }
  3630.       set
  3631.       {
  3632.         this.hazTrakHealthHazards = value;
  3633.         this.SetDataState("HazTrakHealthHazards");
  3634.         if (value == null || value.parentObject != null)
  3635.           return;
  3636.         this.hazTrakHealthHazards.parentObject = (object) this;
  3637.       }
  3638.     }
  3639.  
  3640.     [CustomQuery(QueryStyle.Nonqueryable)]
  3641.     [CustomReporting(Visibility.Nonreportable)]
  3642.     public HazTrakRecordList HazTrakRecords
  3643.     {
  3644.       get
  3645.       {
  3646.         if (this.hazTrakRecords == null)
  3647.         {
  3648.           this.hazTrakRecords = new HazTrakRecordList();
  3649.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3650.             this.hazTrakRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3651.           this.hazTrakRecords.parentObject = (object) this;
  3652.         }
  3653.         return this.hazTrakRecords;
  3654.       }
  3655.       set
  3656.       {
  3657.         this.hazTrakRecords = value;
  3658.         this.SetDataState("HazTrakRecords");
  3659.         if (value == null || value.parentObject != null)
  3660.           return;
  3661.         this.hazTrakRecords.parentObject = (object) this;
  3662.       }
  3663.     }
  3664.  
  3665.     [CustomReporting(Visibility.Nonreportable)]
  3666.     [CustomQuery(QueryStyle.Nonqueryable)]
  3667.     public HazTrakStorageLocationList HazTrakStorageLocations
  3668.     {
  3669.       get
  3670.       {
  3671.         if (this.hazTrakStorageLocations == null)
  3672.         {
  3673.           this.hazTrakStorageLocations = new HazTrakStorageLocationList();
  3674.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3675.             this.hazTrakStorageLocations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3676.           this.hazTrakStorageLocations.parentObject = (object) this;
  3677.         }
  3678.         return this.hazTrakStorageLocations;
  3679.       }
  3680.       set
  3681.       {
  3682.         this.hazTrakStorageLocations = value;
  3683.         this.SetDataState("HazTrakStorageLocations");
  3684.         if (value == null || value.parentObject != null)
  3685.           return;
  3686.         this.hazTrakStorageLocations.parentObject = (object) this;
  3687.       }
  3688.     }
  3689.  
  3690.     [CustomQuery(QueryStyle.Nonqueryable)]
  3691.     [CustomReporting(Visibility.Nonreportable)]
  3692.     public HelpFileEntryList HelpFileEntries
  3693.     {
  3694.       get
  3695.       {
  3696.         if (this.helpFileEntries == null)
  3697.         {
  3698.           this.helpFileEntries = new HelpFileEntryList();
  3699.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3700.             this.helpFileEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3701.           this.helpFileEntries.parentObject = (object) this;
  3702.         }
  3703.         return this.helpFileEntries;
  3704.       }
  3705.       set
  3706.       {
  3707.         this.helpFileEntries = value;
  3708.         this.SetDataState("HelpFileEntries");
  3709.         if (value == null || value.parentObject != null)
  3710.           return;
  3711.         this.helpFileEntries.parentObject = (object) this;
  3712.       }
  3713.     }
  3714.  
  3715.     [CustomQuery(QueryStyle.Nonqueryable)]
  3716.     [CustomReporting(Visibility.Nonreportable)]
  3717.     public HoseList Hoses
  3718.     {
  3719.       get
  3720.       {
  3721.         if (this.hoses == null)
  3722.         {
  3723.           this.hoses = new HoseList();
  3724.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3725.             this.hoses.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3726.           this.hoses.parentObject = (object) this;
  3727.         }
  3728.         return this.hoses;
  3729.       }
  3730.       set
  3731.       {
  3732.         this.hoses = value;
  3733.         this.SetDataState("Hoses");
  3734.         if (value == null || value.parentObject != null)
  3735.           return;
  3736.         this.hoses.parentObject = (object) this;
  3737.       }
  3738.     }
  3739.  
  3740.     [CustomReporting(Visibility.Nonreportable)]
  3741.     [CustomQuery(QueryStyle.Nonqueryable)]
  3742.     public HoseTestDetailList HoseTestDetails
  3743.     {
  3744.       get
  3745.       {
  3746.         if (this.hoseTestDetails == null)
  3747.         {
  3748.           this.hoseTestDetails = new HoseTestDetailList();
  3749.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3750.             this.hoseTestDetails.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3751.           this.hoseTestDetails.parentObject = (object) this;
  3752.         }
  3753.         return this.hoseTestDetails;
  3754.       }
  3755.       set
  3756.       {
  3757.         this.hoseTestDetails = value;
  3758.         this.SetDataState("HoseTestDetails");
  3759.         if (value == null || value.parentObject != null)
  3760.           return;
  3761.         this.hoseTestDetails.parentObject = (object) this;
  3762.       }
  3763.     }
  3764.  
  3765.     [CustomQuery(QueryStyle.Nonqueryable)]
  3766.     [CustomReporting(Visibility.Nonreportable)]
  3767.     public HoseTestList HoseTests
  3768.     {
  3769.       get
  3770.       {
  3771.         if (this.hoseTests == null)
  3772.         {
  3773.           this.hoseTests = new HoseTestList();
  3774.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3775.             this.hoseTests.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3776.           this.hoseTests.parentObject = (object) this;
  3777.         }
  3778.         return this.hoseTests;
  3779.       }
  3780.       set
  3781.       {
  3782.         this.hoseTests = value;
  3783.         this.SetDataState("HoseTests");
  3784.         if (value == null || value.parentObject != null)
  3785.           return;
  3786.         this.hoseTests.parentObject = (object) this;
  3787.       }
  3788.     }
  3789.  
  3790.     [CustomReporting(Visibility.Nonreportable)]
  3791.     [CustomQuery(QueryStyle.Nonqueryable)]
  3792.     public HoseTypeList HoseTypes
  3793.     {
  3794.       get
  3795.       {
  3796.         if (this.hoseTypes == null)
  3797.         {
  3798.           this.hoseTypes = new HoseTypeList();
  3799.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3800.             this.hoseTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3801.           this.hoseTypes.parentObject = (object) this;
  3802.         }
  3803.         return this.hoseTypes;
  3804.       }
  3805.       set
  3806.       {
  3807.         this.hoseTypes = value;
  3808.         this.SetDataState("HoseTypes");
  3809.         if (value == null || value.parentObject != null)
  3810.           return;
  3811.         this.hoseTypes.parentObject = (object) this;
  3812.       }
  3813.     }
  3814.  
  3815.     [CustomQuery(QueryStyle.Nonqueryable)]
  3816.     [CustomReporting(Visibility.Nonreportable)]
  3817.     public HumanFactorList HumanFactors
  3818.     {
  3819.       get
  3820.       {
  3821.         if (this.humanFactors == null)
  3822.         {
  3823.           this.humanFactors = new HumanFactorList();
  3824.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3825.             this.humanFactors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3826.           this.humanFactors.parentObject = (object) this;
  3827.         }
  3828.         return this.humanFactors;
  3829.       }
  3830.       set
  3831.       {
  3832.         this.humanFactors = value;
  3833.         this.SetDataState("HumanFactors");
  3834.         if (value == null || value.parentObject != null)
  3835.           return;
  3836.         this.humanFactors.parentObject = (object) this;
  3837.       }
  3838.     }
  3839.  
  3840.     [CustomReporting(Visibility.Nonreportable)]
  3841.     [CustomQuery(QueryStyle.Nonqueryable)]
  3842.     public HumanInjuryFactorList HumanInjuryFactors
  3843.     {
  3844.       get
  3845.       {
  3846.         if (this.humanInjuryFactors == null)
  3847.         {
  3848.           this.humanInjuryFactors = new HumanInjuryFactorList();
  3849.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3850.             this.humanInjuryFactors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3851.           this.humanInjuryFactors.parentObject = (object) this;
  3852.         }
  3853.         return this.humanInjuryFactors;
  3854.       }
  3855.       set
  3856.       {
  3857.         this.humanInjuryFactors = value;
  3858.         this.SetDataState("HumanInjuryFactors");
  3859.         if (value == null || value.parentObject != null)
  3860.           return;
  3861.         this.humanInjuryFactors.parentObject = (object) this;
  3862.       }
  3863.     }
  3864.  
  3865.     [CustomQuery(QueryStyle.Nonqueryable)]
  3866.     [CustomReporting(Visibility.Nonreportable)]
  3867.     public HydrantInspectionList HydrantInspections
  3868.     {
  3869.       get
  3870.       {
  3871.         if (this.hydrantInspections == null)
  3872.         {
  3873.           this.hydrantInspections = new HydrantInspectionList();
  3874.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3875.             this.hydrantInspections.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3876.           this.hydrantInspections.parentObject = (object) this;
  3877.         }
  3878.         return this.hydrantInspections;
  3879.       }
  3880.       set
  3881.       {
  3882.         this.hydrantInspections = value;
  3883.         this.SetDataState("HydrantInspections");
  3884.         if (value == null || value.parentObject != null)
  3885.           return;
  3886.         this.hydrantInspections.parentObject = (object) this;
  3887.       }
  3888.     }
  3889.  
  3890.     [CustomReporting(Visibility.Nonreportable)]
  3891.     [CustomQuery(QueryStyle.Nonqueryable)]
  3892.     public HydrantList Hydrants
  3893.     {
  3894.       get
  3895.       {
  3896.         if (this.hydrants == null)
  3897.         {
  3898.           this.hydrants = new HydrantList();
  3899.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3900.             this.hydrants.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3901.           this.hydrants.parentObject = (object) this;
  3902.         }
  3903.         return this.hydrants;
  3904.       }
  3905.       set
  3906.       {
  3907.         this.hydrants = value;
  3908.         this.SetDataState("Hydrants");
  3909.         if (value == null || value.parentObject != null)
  3910.           return;
  3911.         this.hydrants.parentObject = (object) this;
  3912.       }
  3913.     }
  3914.  
  3915.     [CustomReporting(Visibility.Nonreportable)]
  3916.     [CustomQuery(QueryStyle.Nonqueryable)]
  3917.     public HydrantTestList HydrantTests
  3918.     {
  3919.       get
  3920.       {
  3921.         if (this.hydrantTests == null)
  3922.         {
  3923.           this.hydrantTests = new HydrantTestList();
  3924.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3925.             this.hydrantTests.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3926.           this.hydrantTests.parentObject = (object) this;
  3927.         }
  3928.         return this.hydrantTests;
  3929.       }
  3930.       set
  3931.       {
  3932.         this.hydrantTests = value;
  3933.         this.SetDataState("HydrantTests");
  3934.         if (value == null || value.parentObject != null)
  3935.           return;
  3936.         this.hydrantTests.parentObject = (object) this;
  3937.       }
  3938.     }
  3939.  
  3940.     [CustomQuery(QueryStyle.Nonqueryable)]
  3941.     [CustomReporting(Visibility.Nonreportable)]
  3942.     public IncidentActionList IncidentActions
  3943.     {
  3944.       get
  3945.       {
  3946.         if (this.incidentActions == null)
  3947.         {
  3948.           this.incidentActions = new IncidentActionList();
  3949.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3950.             this.incidentActions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3951.           this.incidentActions.parentObject = (object) this;
  3952.         }
  3953.         return this.incidentActions;
  3954.       }
  3955.       set
  3956.       {
  3957.         this.incidentActions = value;
  3958.         this.SetDataState("IncidentActions");
  3959.         if (value == null || value.parentObject != null)
  3960.           return;
  3961.         this.incidentActions.parentObject = (object) this;
  3962.       }
  3963.     }
  3964.  
  3965.     [CustomQuery(QueryStyle.Nonqueryable)]
  3966.     [CustomReporting(Visibility.Nonreportable)]
  3967.     public IncidentExposureList IncidentExposures
  3968.     {
  3969.       get
  3970.       {
  3971.         if (this.incidentExposures == null)
  3972.         {
  3973.           this.incidentExposures = new IncidentExposureList();
  3974.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  3975.             this.incidentExposures.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  3976.           this.incidentExposures.parentObject = (object) this;
  3977.         }
  3978.         return this.incidentExposures;
  3979.       }
  3980.       set
  3981.       {
  3982.         this.incidentExposures = value;
  3983.         this.SetDataState("IncidentExposures");
  3984.         if (value == null || value.parentObject != null)
  3985.           return;
  3986.         this.incidentExposures.parentObject = (object) this;
  3987.       }
  3988.     }
  3989.  
  3990.     [CustomQuery(QueryStyle.Nonqueryable)]
  3991.     [CustomReporting(Visibility.Nonreportable)]
  3992.     public IncidentMappingSettingList IncidentMappingSettings
  3993.     {
  3994.       get
  3995.       {
  3996.         if (this.incidentMappingSettings == null)
  3997.         {
  3998.           this.incidentMappingSettings = new IncidentMappingSettingList();
  3999.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4000.             this.incidentMappingSettings.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4001.           this.incidentMappingSettings.parentObject = (object) this;
  4002.         }
  4003.         return this.incidentMappingSettings;
  4004.       }
  4005.       set
  4006.       {
  4007.         this.incidentMappingSettings = value;
  4008.         this.SetDataState("IncidentMappingSettings");
  4009.         if (value == null || value.parentObject != null)
  4010.           return;
  4011.         this.incidentMappingSettings.parentObject = (object) this;
  4012.       }
  4013.     }
  4014.  
  4015.     [CustomReporting(Visibility.Nonreportable)]
  4016.     [CustomQuery(QueryStyle.Nonqueryable)]
  4017.     public IncidentMappingSettingList UserLoginIncidentMappingSettings
  4018.     {
  4019.       get
  4020.       {
  4021.         if (this.userLoginIncidentMappingSettings == null)
  4022.         {
  4023.           this.userLoginIncidentMappingSettings = new IncidentMappingSettingList();
  4024.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4025.             this.userLoginIncidentMappingSettings.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4026.           this.userLoginIncidentMappingSettings.parentObject = (object) this;
  4027.         }
  4028.         return this.userLoginIncidentMappingSettings;
  4029.       }
  4030.       set
  4031.       {
  4032.         this.userLoginIncidentMappingSettings = value;
  4033.         this.SetDataState("UserLoginIncidentMappingSettings");
  4034.         if (value == null || value.parentObject != null)
  4035.           return;
  4036.         this.userLoginIncidentMappingSettings.parentObject = (object) this;
  4037.       }
  4038.     }
  4039.  
  4040.     [CustomReporting(Visibility.Nonreportable)]
  4041.     [CustomQuery(QueryStyle.Nonqueryable)]
  4042.     public IncidentRecordList IncidentRecords
  4043.     {
  4044.       get
  4045.       {
  4046.         if (this.incidentRecords == null)
  4047.         {
  4048.           this.incidentRecords = new IncidentRecordList();
  4049.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4050.             this.incidentRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4051.           this.incidentRecords.parentObject = (object) this;
  4052.         }
  4053.         return this.incidentRecords;
  4054.       }
  4055.       set
  4056.       {
  4057.         this.incidentRecords = value;
  4058.         this.SetDataState("IncidentRecords");
  4059.         if (value == null || value.parentObject != null)
  4060.           return;
  4061.         this.incidentRecords.parentObject = (object) this;
  4062.       }
  4063.     }
  4064.  
  4065.     [CustomQuery(QueryStyle.Nonqueryable)]
  4066.     [CustomReporting(Visibility.Nonreportable)]
  4067.     public IncidentRoleList IncidentRoles
  4068.     {
  4069.       get
  4070.       {
  4071.         if (this.incidentRoles == null)
  4072.         {
  4073.           this.incidentRoles = new IncidentRoleList();
  4074.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4075.             this.incidentRoles.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4076.           this.incidentRoles.parentObject = (object) this;
  4077.         }
  4078.         return this.incidentRoles;
  4079.       }
  4080.       set
  4081.       {
  4082.         this.incidentRoles = value;
  4083.         this.SetDataState("IncidentRoles");
  4084.         if (value == null || value.parentObject != null)
  4085.           return;
  4086.         this.incidentRoles.parentObject = (object) this;
  4087.       }
  4088.     }
  4089.  
  4090.     [CustomQuery(QueryStyle.Nonqueryable)]
  4091.     [CustomReporting(Visibility.Nonreportable)]
  4092.     public IncidentSpecialStudyList IncidentSpecialStudies
  4093.     {
  4094.       get
  4095.       {
  4096.         if (this.incidentSpecialStudies == null)
  4097.         {
  4098.           this.incidentSpecialStudies = new IncidentSpecialStudyList();
  4099.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4100.             this.incidentSpecialStudies.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4101.           this.incidentSpecialStudies.parentObject = (object) this;
  4102.         }
  4103.         return this.incidentSpecialStudies;
  4104.       }
  4105.       set
  4106.       {
  4107.         this.incidentSpecialStudies = value;
  4108.         this.SetDataState("IncidentSpecialStudies");
  4109.         if (value == null || value.parentObject != null)
  4110.           return;
  4111.         this.incidentSpecialStudies.parentObject = (object) this;
  4112.       }
  4113.     }
  4114.  
  4115.     [CustomReporting(Visibility.Nonreportable)]
  4116.     [CustomQuery(QueryStyle.Nonqueryable)]
  4117.     public IncidentUsedEquipmentItemList IncidentUsedEquipmentItems
  4118.     {
  4119.       get
  4120.       {
  4121.         if (this.incidentUsedEquipmentItems == null)
  4122.         {
  4123.           this.incidentUsedEquipmentItems = new IncidentUsedEquipmentItemList();
  4124.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4125.             this.incidentUsedEquipmentItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4126.           this.incidentUsedEquipmentItems.parentObject = (object) this;
  4127.         }
  4128.         return this.incidentUsedEquipmentItems;
  4129.       }
  4130.       set
  4131.       {
  4132.         this.incidentUsedEquipmentItems = value;
  4133.         this.SetDataState("IncidentUsedEquipmentItems");
  4134.         if (value == null || value.parentObject != null)
  4135.           return;
  4136.         this.incidentUsedEquipmentItems.parentObject = (object) this;
  4137.       }
  4138.     }
  4139.  
  4140.     [CustomQuery(QueryStyle.Nonqueryable)]
  4141.     [CustomReporting(Visibility.Nonreportable)]
  4142.     public IncidentUsedSupplyItemList IncidentUsedSupplyItems
  4143.     {
  4144.       get
  4145.       {
  4146.         if (this.incidentUsedSupplyItems == null)
  4147.         {
  4148.           this.incidentUsedSupplyItems = new IncidentUsedSupplyItemList();
  4149.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4150.             this.incidentUsedSupplyItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4151.           this.incidentUsedSupplyItems.parentObject = (object) this;
  4152.         }
  4153.         return this.incidentUsedSupplyItems;
  4154.       }
  4155.       set
  4156.       {
  4157.         this.incidentUsedSupplyItems = value;
  4158.         this.SetDataState("IncidentUsedSupplyItems");
  4159.         if (value == null || value.parentObject != null)
  4160.           return;
  4161.         this.incidentUsedSupplyItems.parentObject = (object) this;
  4162.       }
  4163.     }
  4164.  
  4165.     [CustomQuery(QueryStyle.Nonqueryable)]
  4166.     [CustomReporting(Visibility.Nonreportable)]
  4167.     public InitialObservationList InitialObservations
  4168.     {
  4169.       get
  4170.       {
  4171.         if (this.initialObservations == null)
  4172.         {
  4173.           this.initialObservations = new InitialObservationList();
  4174.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4175.             this.initialObservations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4176.           this.initialObservations.parentObject = (object) this;
  4177.         }
  4178.         return this.initialObservations;
  4179.       }
  4180.       set
  4181.       {
  4182.         this.initialObservations = value;
  4183.         this.SetDataState("InitialObservations");
  4184.         if (value == null || value.parentObject != null)
  4185.           return;
  4186.         this.initialObservations.parentObject = (object) this;
  4187.       }
  4188.     }
  4189.  
  4190.     [CustomQuery(QueryStyle.Nonqueryable)]
  4191.     [CustomReporting(Visibility.Nonreportable)]
  4192.     public InspectionDistrictList InspectionDistricts
  4193.     {
  4194.       get
  4195.       {
  4196.         if (this.inspectionDistricts == null)
  4197.         {
  4198.           this.inspectionDistricts = new InspectionDistrictList();
  4199.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4200.             this.inspectionDistricts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4201.           this.inspectionDistricts.parentObject = (object) this;
  4202.         }
  4203.         return this.inspectionDistricts;
  4204.       }
  4205.       set
  4206.       {
  4207.         this.inspectionDistricts = value;
  4208.         this.SetDataState("InspectionDistricts");
  4209.         if (value == null || value.parentObject != null)
  4210.           return;
  4211.         this.inspectionDistricts.parentObject = (object) this;
  4212.       }
  4213.     }
  4214.  
  4215.     [CustomReporting(Visibility.Nonreportable)]
  4216.     [CustomQuery(QueryStyle.Nonqueryable)]
  4217.     public InspectionGroupList InspectionGroups
  4218.     {
  4219.       get
  4220.       {
  4221.         if (this.inspectionGroups == null)
  4222.         {
  4223.           this.inspectionGroups = new InspectionGroupList();
  4224.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4225.             this.inspectionGroups.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4226.           this.inspectionGroups.parentObject = (object) this;
  4227.         }
  4228.         return this.inspectionGroups;
  4229.       }
  4230.       set
  4231.       {
  4232.         this.inspectionGroups = value;
  4233.         this.SetDataState("InspectionGroups");
  4234.         if (value == null || value.parentObject != null)
  4235.           return;
  4236.         this.inspectionGroups.parentObject = (object) this;
  4237.       }
  4238.     }
  4239.  
  4240.     [CustomReporting(Visibility.Nonreportable)]
  4241.     [CustomQuery(QueryStyle.Nonqueryable)]
  4242.     public InsuranceClaimList InsuranceClaims
  4243.     {
  4244.       get
  4245.       {
  4246.         if (this.insuranceClaims == null)
  4247.         {
  4248.           this.insuranceClaims = new InsuranceClaimList();
  4249.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4250.             this.insuranceClaims.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4251.           this.insuranceClaims.parentObject = (object) this;
  4252.         }
  4253.         return this.insuranceClaims;
  4254.       }
  4255.       set
  4256.       {
  4257.         this.insuranceClaims = value;
  4258.         this.SetDataState("InsuranceClaims");
  4259.         if (value == null || value.parentObject != null)
  4260.           return;
  4261.         this.insuranceClaims.parentObject = (object) this;
  4262.       }
  4263.     }
  4264.  
  4265.     [CustomReporting(Visibility.Nonreportable)]
  4266.     [CustomQuery(QueryStyle.Nonqueryable)]
  4267.     public InsuranceCompanyList InsuranceCompanies
  4268.     {
  4269.       get
  4270.       {
  4271.         if (this.insuranceCompanies == null)
  4272.         {
  4273.           this.insuranceCompanies = new InsuranceCompanyList();
  4274.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4275.             this.insuranceCompanies.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4276.           this.insuranceCompanies.parentObject = (object) this;
  4277.         }
  4278.         return this.insuranceCompanies;
  4279.       }
  4280.       set
  4281.       {
  4282.         this.insuranceCompanies = value;
  4283.         this.SetDataState("InsuranceCompanies");
  4284.         if (value == null || value.parentObject != null)
  4285.           return;
  4286.         this.insuranceCompanies.parentObject = (object) this;
  4287.       }
  4288.     }
  4289.  
  4290.     [CustomQuery(QueryStyle.Nonqueryable)]
  4291.     [CustomReporting(Visibility.Nonreportable)]
  4292.     public InsurancePolicyList InsurancePolicies
  4293.     {
  4294.       get
  4295.       {
  4296.         if (this.insurancePolicies == null)
  4297.         {
  4298.           this.insurancePolicies = new InsurancePolicyList();
  4299.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4300.             this.insurancePolicies.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4301.           this.insurancePolicies.parentObject = (object) this;
  4302.         }
  4303.         return this.insurancePolicies;
  4304.       }
  4305.       set
  4306.       {
  4307.         this.insurancePolicies = value;
  4308.         this.SetDataState("InsurancePolicies");
  4309.         if (value == null || value.parentObject != null)
  4310.           return;
  4311.         this.insurancePolicies.parentObject = (object) this;
  4312.       }
  4313.     }
  4314.  
  4315.     [CustomQuery(QueryStyle.Nonqueryable)]
  4316.     [CustomReporting(Visibility.Nonreportable)]
  4317.     public InterviewQuestionList InterviewQuestions
  4318.     {
  4319.       get
  4320.       {
  4321.         if (this.interviewQuestions == null)
  4322.         {
  4323.           this.interviewQuestions = new InterviewQuestionList();
  4324.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4325.             this.interviewQuestions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4326.           this.interviewQuestions.parentObject = (object) this;
  4327.         }
  4328.         return this.interviewQuestions;
  4329.       }
  4330.       set
  4331.       {
  4332.         this.interviewQuestions = value;
  4333.         this.SetDataState("InterviewQuestions");
  4334.         if (value == null || value.parentObject != null)
  4335.           return;
  4336.         this.interviewQuestions.parentObject = (object) this;
  4337.       }
  4338.     }
  4339.  
  4340.     [CustomQuery(QueryStyle.Nonqueryable)]
  4341.     [CustomReporting(Visibility.Nonreportable)]
  4342.     public InterviewList Interviews
  4343.     {
  4344.       get
  4345.       {
  4346.         if (this.interviews == null)
  4347.         {
  4348.           this.interviews = new InterviewList();
  4349.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4350.             this.interviews.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4351.           this.interviews.parentObject = (object) this;
  4352.         }
  4353.         return this.interviews;
  4354.       }
  4355.       set
  4356.       {
  4357.         this.interviews = value;
  4358.         this.SetDataState("Interviews");
  4359.         if (value == null || value.parentObject != null)
  4360.           return;
  4361.         this.interviews.parentObject = (object) this;
  4362.       }
  4363.     }
  4364.  
  4365.     [CustomReporting(Visibility.Nonreportable)]
  4366.     [CustomQuery(QueryStyle.Nonqueryable)]
  4367.     public InterviewStandardQuestionList InterviewStandardQuestions
  4368.     {
  4369.       get
  4370.       {
  4371.         if (this.interviewStandardQuestions == null)
  4372.         {
  4373.           this.interviewStandardQuestions = new InterviewStandardQuestionList();
  4374.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4375.             this.interviewStandardQuestions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4376.           this.interviewStandardQuestions.parentObject = (object) this;
  4377.         }
  4378.         return this.interviewStandardQuestions;
  4379.       }
  4380.       set
  4381.       {
  4382.         this.interviewStandardQuestions = value;
  4383.         this.SetDataState("InterviewStandardQuestions");
  4384.         if (value == null || value.parentObject != null)
  4385.           return;
  4386.         this.interviewStandardQuestions.parentObject = (object) this;
  4387.       }
  4388.     }
  4389.  
  4390.     [CustomQuery(QueryStyle.Nonqueryable)]
  4391.     [CustomReporting(Visibility.Nonreportable)]
  4392.     public InventoryItemCategoryList InventoryItemCategories
  4393.     {
  4394.       get
  4395.       {
  4396.         if (this.inventoryItemCategories == null)
  4397.         {
  4398.           this.inventoryItemCategories = new InventoryItemCategoryList();
  4399.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4400.             this.inventoryItemCategories.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4401.           this.inventoryItemCategories.parentObject = (object) this;
  4402.         }
  4403.         return this.inventoryItemCategories;
  4404.       }
  4405.       set
  4406.       {
  4407.         this.inventoryItemCategories = value;
  4408.         this.SetDataState("InventoryItemCategories");
  4409.         if (value == null || value.parentObject != null)
  4410.           return;
  4411.         this.inventoryItemCategories.parentObject = (object) this;
  4412.       }
  4413.     }
  4414.  
  4415.     [CustomQuery(QueryStyle.Nonqueryable)]
  4416.     [CustomReporting(Visibility.Nonreportable)]
  4417.     public InvolvedAttorneyList InvolvedAttorneys
  4418.     {
  4419.       get
  4420.       {
  4421.         if (this.involvedAttorneys == null)
  4422.         {
  4423.           this.involvedAttorneys = new InvolvedAttorneyList();
  4424.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4425.             this.involvedAttorneys.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4426.           this.involvedAttorneys.parentObject = (object) this;
  4427.         }
  4428.         return this.involvedAttorneys;
  4429.       }
  4430.       set
  4431.       {
  4432.         this.involvedAttorneys = value;
  4433.         this.SetDataState("InvolvedAttorneys");
  4434.         if (value == null || value.parentObject != null)
  4435.           return;
  4436.         this.involvedAttorneys.parentObject = (object) this;
  4437.       }
  4438.     }
  4439.  
  4440.     [CustomQuery(QueryStyle.Nonqueryable)]
  4441.     [CustomReporting(Visibility.Nonreportable)]
  4442.     public InvolvedEntityList InvolvedEntities
  4443.     {
  4444.       get
  4445.       {
  4446.         if (this.involvedEntities == null)
  4447.         {
  4448.           this.involvedEntities = new InvolvedEntityList();
  4449.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4450.             this.involvedEntities.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4451.           this.involvedEntities.parentObject = (object) this;
  4452.         }
  4453.         return this.involvedEntities;
  4454.       }
  4455.       set
  4456.       {
  4457.         this.involvedEntities = value;
  4458.         this.SetDataState("InvolvedEntities");
  4459.         if (value == null || value.parentObject != null)
  4460.           return;
  4461.         this.involvedEntities.parentObject = (object) this;
  4462.       }
  4463.     }
  4464.  
  4465.     [CustomQuery(QueryStyle.Nonqueryable)]
  4466.     [CustomReporting(Visibility.Nonreportable)]
  4467.     public InvolvedPersonList InvolvedPersons
  4468.     {
  4469.       get
  4470.       {
  4471.         if (this.involvedPersons == null)
  4472.         {
  4473.           this.involvedPersons = new InvolvedPersonList();
  4474.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4475.             this.involvedPersons.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4476.           this.involvedPersons.parentObject = (object) this;
  4477.         }
  4478.         return this.involvedPersons;
  4479.       }
  4480.       set
  4481.       {
  4482.         this.involvedPersons = value;
  4483.         this.SetDataState("InvolvedPersons");
  4484.         if (value == null || value.parentObject != null)
  4485.           return;
  4486.         this.involvedPersons.parentObject = (object) this;
  4487.       }
  4488.     }
  4489.  
  4490.     [CustomQuery(QueryStyle.Nonqueryable)]
  4491.     [CustomReporting(Visibility.Nonreportable)]
  4492.     public IrregularAssignmentList IrregularAssignments
  4493.     {
  4494.       get
  4495.       {
  4496.         if (this.irregularAssignments == null)
  4497.         {
  4498.           this.irregularAssignments = new IrregularAssignmentList();
  4499.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4500.             this.irregularAssignments.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4501.           this.irregularAssignments.parentObject = (object) this;
  4502.         }
  4503.         return this.irregularAssignments;
  4504.       }
  4505.       set
  4506.       {
  4507.         this.irregularAssignments = value;
  4508.         this.SetDataState("IrregularAssignments");
  4509.         if (value == null || value.parentObject != null)
  4510.           return;
  4511.         this.irregularAssignments.parentObject = (object) this;
  4512.       }
  4513.     }
  4514.  
  4515.     [CustomReporting(Visibility.Nonreportable)]
  4516.     [CustomQuery(QueryStyle.Nonqueryable)]
  4517.     public IssuedPermitList IssuedPermits
  4518.     {
  4519.       get
  4520.       {
  4521.         if (this.issuedPermits == null)
  4522.         {
  4523.           this.issuedPermits = new IssuedPermitList();
  4524.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4525.             this.issuedPermits.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4526.           this.issuedPermits.parentObject = (object) this;
  4527.         }
  4528.         return this.issuedPermits;
  4529.       }
  4530.       set
  4531.       {
  4532.         this.issuedPermits = value;
  4533.         this.SetDataState("IssuedPermits");
  4534.         if (value == null || value.parentObject != null)
  4535.           return;
  4536.         this.issuedPermits.parentObject = (object) this;
  4537.       }
  4538.     }
  4539.  
  4540.     [CustomReporting(Visibility.Nonreportable)]
  4541.     [CustomQuery(QueryStyle.Nonqueryable)]
  4542.     public ItemCheckOutList ItemCheckOuts
  4543.     {
  4544.       get
  4545.       {
  4546.         if (this.itemCheckOuts == null)
  4547.         {
  4548.           this.itemCheckOuts = new ItemCheckOutList();
  4549.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4550.             this.itemCheckOuts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4551.           this.itemCheckOuts.parentObject = (object) this;
  4552.         }
  4553.         return this.itemCheckOuts;
  4554.       }
  4555.       set
  4556.       {
  4557.         this.itemCheckOuts = value;
  4558.         this.SetDataState("ItemCheckOuts");
  4559.         if (value == null || value.parentObject != null)
  4560.           return;
  4561.         this.itemCheckOuts.parentObject = (object) this;
  4562.       }
  4563.     }
  4564.  
  4565.     [CustomReporting(Visibility.Nonreportable)]
  4566.     [CustomQuery(QueryStyle.Nonqueryable)]
  4567.     public JuvenileList Juveniles
  4568.     {
  4569.       get
  4570.       {
  4571.         if (this.juveniles == null)
  4572.         {
  4573.           this.juveniles = new JuvenileList();
  4574.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4575.             this.juveniles.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4576.           this.juveniles.parentObject = (object) this;
  4577.         }
  4578.         return this.juveniles;
  4579.       }
  4580.       set
  4581.       {
  4582.         this.juveniles = value;
  4583.         this.SetDataState("Juveniles");
  4584.         if (value == null || value.parentObject != null)
  4585.           return;
  4586.         this.juveniles.parentObject = (object) this;
  4587.       }
  4588.     }
  4589.  
  4590.     [CustomQuery(QueryStyle.Nonqueryable)]
  4591.     [CustomReporting(Visibility.Nonreportable)]
  4592.     public LabRequestList LabRequests
  4593.     {
  4594.       get
  4595.       {
  4596.         if (this.labRequests == null)
  4597.         {
  4598.           this.labRequests = new LabRequestList();
  4599.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4600.             this.labRequests.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4601.           this.labRequests.parentObject = (object) this;
  4602.         }
  4603.         return this.labRequests;
  4604.       }
  4605.       set
  4606.       {
  4607.         this.labRequests = value;
  4608.         this.SetDataState("LabRequests");
  4609.         if (value == null || value.parentObject != null)
  4610.           return;
  4611.         this.labRequests.parentObject = (object) this;
  4612.       }
  4613.     }
  4614.  
  4615.     [CustomQuery(QueryStyle.Nonqueryable)]
  4616.     [CustomReporting(Visibility.Nonreportable)]
  4617.     public LabTechnicianList LabTechnicians
  4618.     {
  4619.       get
  4620.       {
  4621.         if (this.labTechnicians == null)
  4622.         {
  4623.           this.labTechnicians = new LabTechnicianList();
  4624.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4625.             this.labTechnicians.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4626.           this.labTechnicians.parentObject = (object) this;
  4627.         }
  4628.         return this.labTechnicians;
  4629.       }
  4630.       set
  4631.       {
  4632.         this.labTechnicians = value;
  4633.         this.SetDataState("LabTechnicians");
  4634.         if (value == null || value.parentObject != null)
  4635.           return;
  4636.         this.labTechnicians.parentObject = (object) this;
  4637.       }
  4638.     }
  4639.  
  4640.     [CustomReporting(Visibility.Nonreportable)]
  4641.     [CustomQuery(QueryStyle.Nonqueryable)]
  4642.     public LegalOfficerList LegalOfficers
  4643.     {
  4644.       get
  4645.       {
  4646.         if (this.legalOfficers == null)
  4647.         {
  4648.           this.legalOfficers = new LegalOfficerList();
  4649.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4650.             this.legalOfficers.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4651.           this.legalOfficers.parentObject = (object) this;
  4652.         }
  4653.         return this.legalOfficers;
  4654.       }
  4655.       set
  4656.       {
  4657.         this.legalOfficers = value;
  4658.         this.SetDataState("LegalOfficers");
  4659.         if (value == null || value.parentObject != null)
  4660.           return;
  4661.         this.legalOfficers.parentObject = (object) this;
  4662.       }
  4663.     }
  4664.  
  4665.     [CustomReporting(Visibility.Nonreportable)]
  4666.     [CustomQuery(QueryStyle.Nonqueryable)]
  4667.     public LicenseModuleList LicenseModules
  4668.     {
  4669.       get
  4670.       {
  4671.         if (this.licenseModules == null)
  4672.         {
  4673.           this.licenseModules = new LicenseModuleList();
  4674.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4675.             this.licenseModules.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4676.           this.licenseModules.parentObject = (object) this;
  4677.         }
  4678.         return this.licenseModules;
  4679.       }
  4680.       set
  4681.       {
  4682.         this.licenseModules = value;
  4683.         this.SetDataState("LicenseModules");
  4684.         if (value == null || value.parentObject != null)
  4685.           return;
  4686.         this.licenseModules.parentObject = (object) this;
  4687.       }
  4688.     }
  4689.  
  4690.     [CustomReporting(Visibility.Nonreportable)]
  4691.     [CustomQuery(QueryStyle.Nonqueryable)]
  4692.     public LicenseList Licenses
  4693.     {
  4694.       get
  4695.       {
  4696.         if (this.licenses == null)
  4697.         {
  4698.           this.licenses = new LicenseList();
  4699.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4700.             this.licenses.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4701.           this.licenses.parentObject = (object) this;
  4702.         }
  4703.         return this.licenses;
  4704.       }
  4705.       set
  4706.       {
  4707.         this.licenses = value;
  4708.         this.SetDataState("Licenses");
  4709.         if (value == null || value.parentObject != null)
  4710.           return;
  4711.         this.licenses.parentObject = (object) this;
  4712.       }
  4713.     }
  4714.  
  4715.     [CustomQuery(QueryStyle.Nonqueryable)]
  4716.     [CustomReporting(Visibility.Nonreportable)]
  4717.     public LicenseUserSessionList LicenseUserSessions
  4718.     {
  4719.       get
  4720.       {
  4721.         if (this.licenseUserSessions == null)
  4722.         {
  4723.           this.licenseUserSessions = new LicenseUserSessionList();
  4724.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4725.             this.licenseUserSessions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4726.           this.licenseUserSessions.parentObject = (object) this;
  4727.         }
  4728.         return this.licenseUserSessions;
  4729.       }
  4730.       set
  4731.       {
  4732.         this.licenseUserSessions = value;
  4733.         this.SetDataState("LicenseUserSessions");
  4734.         if (value == null || value.parentObject != null)
  4735.           return;
  4736.         this.licenseUserSessions.parentObject = (object) this;
  4737.       }
  4738.     }
  4739.  
  4740.     [CustomQuery(QueryStyle.Nonqueryable)]
  4741.     [CustomReporting(Visibility.Nonreportable)]
  4742.     public LicenseUserSessionList UserLoginLicenseUserSessions
  4743.     {
  4744.       get
  4745.       {
  4746.         if (this.userLoginLicenseUserSessions == null)
  4747.         {
  4748.           this.userLoginLicenseUserSessions = new LicenseUserSessionList();
  4749.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4750.             this.userLoginLicenseUserSessions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4751.           this.userLoginLicenseUserSessions.parentObject = (object) this;
  4752.         }
  4753.         return this.userLoginLicenseUserSessions;
  4754.       }
  4755.       set
  4756.       {
  4757.         this.userLoginLicenseUserSessions = value;
  4758.         this.SetDataState("UserLoginLicenseUserSessions");
  4759.         if (value == null || value.parentObject != null)
  4760.           return;
  4761.         this.userLoginLicenseUserSessions.parentObject = (object) this;
  4762.       }
  4763.     }
  4764.  
  4765.     [CustomQuery(QueryStyle.Nonqueryable)]
  4766.     [CustomReporting(Visibility.Nonreportable)]
  4767.     public LocationCrossStreetList LocationCrossStreets
  4768.     {
  4769.       get
  4770.       {
  4771.         if (this.locationCrossStreets == null)
  4772.         {
  4773.           this.locationCrossStreets = new LocationCrossStreetList();
  4774.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4775.             this.locationCrossStreets.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4776.           this.locationCrossStreets.parentObject = (object) this;
  4777.         }
  4778.         return this.locationCrossStreets;
  4779.       }
  4780.       set
  4781.       {
  4782.         this.locationCrossStreets = value;
  4783.         this.SetDataState("LocationCrossStreets");
  4784.         if (value == null || value.parentObject != null)
  4785.           return;
  4786.         this.locationCrossStreets.parentObject = (object) this;
  4787.       }
  4788.     }
  4789.  
  4790.     [CustomQuery(QueryStyle.Nonqueryable)]
  4791.     [CustomReporting(Visibility.Nonreportable)]
  4792.     public LocationList Locations
  4793.     {
  4794.       get
  4795.       {
  4796.         if (this.locations == null)
  4797.         {
  4798.           this.locations = new LocationList();
  4799.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4800.             this.locations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4801.           this.locations.parentObject = (object) this;
  4802.         }
  4803.         return this.locations;
  4804.       }
  4805.       set
  4806.       {
  4807.         this.locations = value;
  4808.         this.SetDataState("Locations");
  4809.         if (value == null || value.parentObject != null)
  4810.           return;
  4811.         this.locations.parentObject = (object) this;
  4812.       }
  4813.     }
  4814.  
  4815.     [CustomReporting(Visibility.Nonreportable)]
  4816.     [CustomQuery(QueryStyle.Nonqueryable)]
  4817.     public MaintenanceRequestItemList MaintenanceRequestItems
  4818.     {
  4819.       get
  4820.       {
  4821.         if (this.maintenanceRequestItems == null)
  4822.         {
  4823.           this.maintenanceRequestItems = new MaintenanceRequestItemList();
  4824.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4825.             this.maintenanceRequestItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4826.           this.maintenanceRequestItems.parentObject = (object) this;
  4827.         }
  4828.         return this.maintenanceRequestItems;
  4829.       }
  4830.       set
  4831.       {
  4832.         this.maintenanceRequestItems = value;
  4833.         this.SetDataState("MaintenanceRequestItems");
  4834.         if (value == null || value.parentObject != null)
  4835.           return;
  4836.         this.maintenanceRequestItems.parentObject = (object) this;
  4837.       }
  4838.     }
  4839.  
  4840.     [CustomQuery(QueryStyle.Nonqueryable)]
  4841.     [CustomReporting(Visibility.Nonreportable)]
  4842.     public MaintenanceRequestList MaintenanceRequests
  4843.     {
  4844.       get
  4845.       {
  4846.         if (this.maintenanceRequests == null)
  4847.         {
  4848.           this.maintenanceRequests = new MaintenanceRequestList();
  4849.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4850.             this.maintenanceRequests.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4851.           this.maintenanceRequests.parentObject = (object) this;
  4852.         }
  4853.         return this.maintenanceRequests;
  4854.       }
  4855.       set
  4856.       {
  4857.         this.maintenanceRequests = value;
  4858.         this.SetDataState("MaintenanceRequests");
  4859.         if (value == null || value.parentObject != null)
  4860.           return;
  4861.         this.maintenanceRequests.parentObject = (object) this;
  4862.       }
  4863.     }
  4864.  
  4865.     [CustomReporting(Visibility.Nonreportable)]
  4866.     [CustomQuery(QueryStyle.Nonqueryable)]
  4867.     public MaintenanceTaskScheduleList MaintenanceTaskSchedules
  4868.     {
  4869.       get
  4870.       {
  4871.         if (this.maintenanceTaskSchedules == null)
  4872.         {
  4873.           this.maintenanceTaskSchedules = new MaintenanceTaskScheduleList();
  4874.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4875.             this.maintenanceTaskSchedules.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4876.           this.maintenanceTaskSchedules.parentObject = (object) this;
  4877.         }
  4878.         return this.maintenanceTaskSchedules;
  4879.       }
  4880.       set
  4881.       {
  4882.         this.maintenanceTaskSchedules = value;
  4883.         this.SetDataState("MaintenanceTaskSchedules");
  4884.         if (value == null || value.parentObject != null)
  4885.           return;
  4886.         this.maintenanceTaskSchedules.parentObject = (object) this;
  4887.       }
  4888.     }
  4889.  
  4890.     [CustomReporting(Visibility.Nonreportable)]
  4891.     [CustomQuery(QueryStyle.Nonqueryable)]
  4892.     public ManufacturerList Manufacturers
  4893.     {
  4894.       get
  4895.       {
  4896.         if (this.manufacturers == null)
  4897.         {
  4898.           this.manufacturers = new ManufacturerList();
  4899.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4900.             this.manufacturers.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4901.           this.manufacturers.parentObject = (object) this;
  4902.         }
  4903.         return this.manufacturers;
  4904.       }
  4905.       set
  4906.       {
  4907.         this.manufacturers = value;
  4908.         this.SetDataState("Manufacturers");
  4909.         if (value == null || value.parentObject != null)
  4910.           return;
  4911.         this.manufacturers.parentObject = (object) this;
  4912.       }
  4913.     }
  4914.  
  4915.     [CustomReporting(Visibility.Nonreportable)]
  4916.     [CustomQuery(QueryStyle.Nonqueryable)]
  4917.     public ManufacturerTypeList ManufacturerTypes
  4918.     {
  4919.       get
  4920.       {
  4921.         if (this.manufacturerTypes == null)
  4922.         {
  4923.           this.manufacturerTypes = new ManufacturerTypeList();
  4924.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4925.             this.manufacturerTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4926.           this.manufacturerTypes.parentObject = (object) this;
  4927.         }
  4928.         return this.manufacturerTypes;
  4929.       }
  4930.       set
  4931.       {
  4932.         this.manufacturerTypes = value;
  4933.         this.SetDataState("ManufacturerTypes");
  4934.         if (value == null || value.parentObject != null)
  4935.           return;
  4936.         this.manufacturerTypes.parentObject = (object) this;
  4937.       }
  4938.     }
  4939.  
  4940.     [CustomQuery(QueryStyle.Nonqueryable)]
  4941.     [CustomReporting(Visibility.Nonreportable)]
  4942.     public MapLayoutFilterFieldList MapLayoutFilterFields
  4943.     {
  4944.       get
  4945.       {
  4946.         if (this.mapLayoutFilterFields == null)
  4947.         {
  4948.           this.mapLayoutFilterFields = new MapLayoutFilterFieldList();
  4949.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4950.             this.mapLayoutFilterFields.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4951.           this.mapLayoutFilterFields.parentObject = (object) this;
  4952.         }
  4953.         return this.mapLayoutFilterFields;
  4954.       }
  4955.       set
  4956.       {
  4957.         this.mapLayoutFilterFields = value;
  4958.         this.SetDataState("MapLayoutFilterFields");
  4959.         if (value == null || value.parentObject != null)
  4960.           return;
  4961.         this.mapLayoutFilterFields.parentObject = (object) this;
  4962.       }
  4963.     }
  4964.  
  4965.     [CustomQuery(QueryStyle.Nonqueryable)]
  4966.     [CustomReporting(Visibility.Nonreportable)]
  4967.     public MapLayoutList MapLayouts
  4968.     {
  4969.       get
  4970.       {
  4971.         if (this.mapLayouts == null)
  4972.         {
  4973.           this.mapLayouts = new MapLayoutList();
  4974.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  4975.             this.mapLayouts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  4976.           this.mapLayouts.parentObject = (object) this;
  4977.         }
  4978.         return this.mapLayouts;
  4979.       }
  4980.       set
  4981.       {
  4982.         this.mapLayouts = value;
  4983.         this.SetDataState("MapLayouts");
  4984.         if (value == null || value.parentObject != null)
  4985.           return;
  4986.         this.mapLayouts.parentObject = (object) this;
  4987.       }
  4988.     }
  4989.  
  4990.     [CustomReporting(Visibility.Nonreportable)]
  4991.     [CustomQuery(QueryStyle.Nonqueryable)]
  4992.     public MappingComponentList MappingComponents
  4993.     {
  4994.       get
  4995.       {
  4996.         if (this.mappingComponents == null)
  4997.         {
  4998.           this.mappingComponents = new MappingComponentList();
  4999.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5000.             this.mappingComponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5001.           this.mappingComponents.parentObject = (object) this;
  5002.         }
  5003.         return this.mappingComponents;
  5004.       }
  5005.       set
  5006.       {
  5007.         this.mappingComponents = value;
  5008.         this.SetDataState("MappingComponents");
  5009.         if (value == null || value.parentObject != null)
  5010.           return;
  5011.         this.mappingComponents.parentObject = (object) this;
  5012.       }
  5013.     }
  5014.  
  5015.     [CustomQuery(QueryStyle.Nonqueryable)]
  5016.     [CustomReporting(Visibility.Nonreportable)]
  5017.     public MedicalExaminationList MedicalExaminations
  5018.     {
  5019.       get
  5020.       {
  5021.         if (this.medicalExaminations == null)
  5022.         {
  5023.           this.medicalExaminations = new MedicalExaminationList();
  5024.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5025.             this.medicalExaminations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5026.           this.medicalExaminations.parentObject = (object) this;
  5027.         }
  5028.         return this.medicalExaminations;
  5029.       }
  5030.       set
  5031.       {
  5032.         this.medicalExaminations = value;
  5033.         this.SetDataState("MedicalExaminations");
  5034.         if (value == null || value.parentObject != null)
  5035.           return;
  5036.         this.medicalExaminations.parentObject = (object) this;
  5037.       }
  5038.     }
  5039.  
  5040.     [CustomReporting(Visibility.Nonreportable)]
  5041.     [CustomQuery(QueryStyle.Nonqueryable)]
  5042.     public MedicalOfficerList MedicalOfficers
  5043.     {
  5044.       get
  5045.       {
  5046.         if (this.medicalOfficers == null)
  5047.         {
  5048.           this.medicalOfficers = new MedicalOfficerList();
  5049.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5050.             this.medicalOfficers.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5051.           this.medicalOfficers.parentObject = (object) this;
  5052.         }
  5053.         return this.medicalOfficers;
  5054.       }
  5055.       set
  5056.       {
  5057.         this.medicalOfficers = value;
  5058.         this.SetDataState("MedicalOfficers");
  5059.         if (value == null || value.parentObject != null)
  5060.           return;
  5061.         this.medicalOfficers.parentObject = (object) this;
  5062.       }
  5063.     }
  5064.  
  5065.     [CustomQuery(QueryStyle.Nonqueryable)]
  5066.     [CustomReporting(Visibility.Nonreportable)]
  5067.     public MobilePropertyList MobileProperties
  5068.     {
  5069.       get
  5070.       {
  5071.         if (this.mobileProperties == null)
  5072.         {
  5073.           this.mobileProperties = new MobilePropertyList();
  5074.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5075.             this.mobileProperties.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5076.           this.mobileProperties.parentObject = (object) this;
  5077.         }
  5078.         return this.mobileProperties;
  5079.       }
  5080.       set
  5081.       {
  5082.         this.mobileProperties = value;
  5083.         this.SetDataState("MobileProperties");
  5084.         if (value == null || value.parentObject != null)
  5085.           return;
  5086.         this.mobileProperties.parentObject = (object) this;
  5087.       }
  5088.     }
  5089.  
  5090.     [CustomReporting(Visibility.Nonreportable)]
  5091.     [CustomQuery(QueryStyle.Nonqueryable)]
  5092.     public MortgageCompanyList MortgageCompanies
  5093.     {
  5094.       get
  5095.       {
  5096.         if (this.mortgageCompanies == null)
  5097.         {
  5098.           this.mortgageCompanies = new MortgageCompanyList();
  5099.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5100.             this.mortgageCompanies.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5101.           this.mortgageCompanies.parentObject = (object) this;
  5102.         }
  5103.         return this.mortgageCompanies;
  5104.       }
  5105.       set
  5106.       {
  5107.         this.mortgageCompanies = value;
  5108.         this.SetDataState("MortgageCompanies");
  5109.         if (value == null || value.parentObject != null)
  5110.           return;
  5111.         this.mortgageCompanies.parentObject = (object) this;
  5112.       }
  5113.     }
  5114.  
  5115.     [CustomQuery(QueryStyle.Nonqueryable)]
  5116.     [CustomReporting(Visibility.Nonreportable)]
  5117.     public MortgageList Mortgages
  5118.     {
  5119.       get
  5120.       {
  5121.         if (this.mortgages == null)
  5122.         {
  5123.           this.mortgages = new MortgageList();
  5124.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5125.             this.mortgages.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5126.           this.mortgages.parentObject = (object) this;
  5127.         }
  5128.         return this.mortgages;
  5129.       }
  5130.       set
  5131.       {
  5132.         this.mortgages = value;
  5133.         this.SetDataState("Mortgages");
  5134.         if (value == null || value.parentObject != null)
  5135.           return;
  5136.         this.mortgages.parentObject = (object) this;
  5137.       }
  5138.     }
  5139.  
  5140.     [CustomQuery(QueryStyle.Nonqueryable)]
  5141.     [CustomReporting(Visibility.Nonreportable)]
  5142.     public MutualAidRecordList MutualAidRecords
  5143.     {
  5144.       get
  5145.       {
  5146.         if (this.mutualAidRecords == null)
  5147.         {
  5148.           this.mutualAidRecords = new MutualAidRecordList();
  5149.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5150.             this.mutualAidRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5151.           this.mutualAidRecords.parentObject = (object) this;
  5152.         }
  5153.         return this.mutualAidRecords;
  5154.       }
  5155.       set
  5156.       {
  5157.         this.mutualAidRecords = value;
  5158.         this.SetDataState("MutualAidRecords");
  5159.         if (value == null || value.parentObject != null)
  5160.           return;
  5161.         this.mutualAidRecords.parentObject = (object) this;
  5162.       }
  5163.     }
  5164.  
  5165.     [CustomQuery(QueryStyle.Nonqueryable)]
  5166.     [CustomReporting(Visibility.Nonreportable)]
  5167.     public NarrativeLinkList NarrativeLinks
  5168.     {
  5169.       get
  5170.       {
  5171.         if (this.narrativeLinks == null)
  5172.         {
  5173.           this.narrativeLinks = new NarrativeLinkList();
  5174.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5175.             this.narrativeLinks.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5176.           this.narrativeLinks.parentObject = (object) this;
  5177.         }
  5178.         return this.narrativeLinks;
  5179.       }
  5180.       set
  5181.       {
  5182.         this.narrativeLinks = value;
  5183.         this.SetDataState("NarrativeLinks");
  5184.         if (value == null || value.parentObject != null)
  5185.           return;
  5186.         this.narrativeLinks.parentObject = (object) this;
  5187.       }
  5188.     }
  5189.  
  5190.     [CustomReporting(Visibility.Nonreportable)]
  5191.     [CustomQuery(QueryStyle.Nonqueryable)]
  5192.     public NarrativeList Narratives
  5193.     {
  5194.       get
  5195.       {
  5196.         if (this.narratives == null)
  5197.         {
  5198.           this.narratives = new NarrativeList();
  5199.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5200.             this.narratives.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5201.           this.narratives.parentObject = (object) this;
  5202.         }
  5203.         return this.narratives;
  5204.       }
  5205.       set
  5206.       {
  5207.         this.narratives = value;
  5208.         this.SetDataState("Narratives");
  5209.         if (value == null || value.parentObject != null)
  5210.           return;
  5211.         this.narratives.parentObject = (object) this;
  5212.       }
  5213.     }
  5214.  
  5215.     [CustomQuery(QueryStyle.Nonqueryable)]
  5216.     [CustomReporting(Visibility.Nonreportable)]
  5217.     public NarrativeTemplateList NarrativeTemplates
  5218.     {
  5219.       get
  5220.       {
  5221.         if (this.narrativeTemplates == null)
  5222.         {
  5223.           this.narrativeTemplates = new NarrativeTemplateList();
  5224.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5225.             this.narrativeTemplates.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5226.           this.narrativeTemplates.parentObject = (object) this;
  5227.         }
  5228.         return this.narrativeTemplates;
  5229.       }
  5230.       set
  5231.       {
  5232.         this.narrativeTemplates = value;
  5233.         this.SetDataState("NarrativeTemplates");
  5234.         if (value == null || value.parentObject != null)
  5235.           return;
  5236.         this.narrativeTemplates.parentObject = (object) this;
  5237.       }
  5238.     }
  5239.  
  5240.     [CustomReporting(Visibility.Nonreportable)]
  5241.     [CustomQuery(QueryStyle.Nonqueryable)]
  5242.     public NearbyPropertyList NearbyProperties
  5243.     {
  5244.       get
  5245.       {
  5246.         if (this.nearbyProperties == null)
  5247.         {
  5248.           this.nearbyProperties = new NearbyPropertyList();
  5249.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5250.             this.nearbyProperties.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5251.           this.nearbyProperties.parentObject = (object) this;
  5252.         }
  5253.         return this.nearbyProperties;
  5254.       }
  5255.       set
  5256.       {
  5257.         this.nearbyProperties = value;
  5258.         this.SetDataState("NearbyProperties");
  5259.         if (value == null || value.parentObject != null)
  5260.           return;
  5261.         this.nearbyProperties.parentObject = (object) this;
  5262.       }
  5263.     }
  5264.  
  5265.     [CustomQuery(QueryStyle.Nonqueryable)]
  5266.     [CustomReporting(Visibility.Nonreportable)]
  5267.     public NeededResourceList NeededResources
  5268.     {
  5269.       get
  5270.       {
  5271.         if (this.neededResources == null)
  5272.         {
  5273.           this.neededResources = new NeededResourceList();
  5274.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5275.             this.neededResources.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5276.           this.neededResources.parentObject = (object) this;
  5277.         }
  5278.         return this.neededResources;
  5279.       }
  5280.       set
  5281.       {
  5282.         this.neededResources = value;
  5283.         this.SetDataState("NeededResources");
  5284.         if (value == null || value.parentObject != null)
  5285.           return;
  5286.         this.neededResources.parentObject = (object) this;
  5287.       }
  5288.     }
  5289.  
  5290.     [CustomReporting(Visibility.Nonreportable)]
  5291.     [CustomQuery(QueryStyle.Nonqueryable)]
  5292.     public NFIRSDictionaryEntryList NFIRSDictionaryEntries
  5293.     {
  5294.       get
  5295.       {
  5296.         if (this.nFIRSDictionaryEntries == null)
  5297.         {
  5298.           this.nFIRSDictionaryEntries = new NFIRSDictionaryEntryList();
  5299.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5300.             this.nFIRSDictionaryEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5301.           this.nFIRSDictionaryEntries.parentObject = (object) this;
  5302.         }
  5303.         return this.nFIRSDictionaryEntries;
  5304.       }
  5305.       set
  5306.       {
  5307.         this.nFIRSDictionaryEntries = value;
  5308.         this.SetDataState("NFIRSDictionaryEntries");
  5309.         if (value == null || value.parentObject != null)
  5310.           return;
  5311.         this.nFIRSDictionaryEntries.parentObject = (object) this;
  5312.       }
  5313.     }
  5314.  
  5315.     [CustomReporting(Visibility.Nonreportable)]
  5316.     [CustomQuery(QueryStyle.Nonqueryable)]
  5317.     public NFPADictionaryEntryList NFPADictionaryEntries
  5318.     {
  5319.       get
  5320.       {
  5321.         if (this.nFPADictionaryEntries == null)
  5322.         {
  5323.           this.nFPADictionaryEntries = new NFPADictionaryEntryList();
  5324.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5325.             this.nFPADictionaryEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5326.           this.nFPADictionaryEntries.parentObject = (object) this;
  5327.         }
  5328.         return this.nFPADictionaryEntries;
  5329.       }
  5330.       set
  5331.       {
  5332.         this.nFPADictionaryEntries = value;
  5333.         this.SetDataState("NFPADictionaryEntries");
  5334.         if (value == null || value.parentObject != null)
  5335.           return;
  5336.         this.nFPADictionaryEntries.parentObject = (object) this;
  5337.       }
  5338.     }
  5339.  
  5340.     [CustomReporting(Visibility.Nonreportable)]
  5341.     [CustomQuery(QueryStyle.Nonqueryable)]
  5342.     public OfficerList Officers
  5343.     {
  5344.       get
  5345.       {
  5346.         if (this.officers == null)
  5347.         {
  5348.           this.officers = new OfficerList();
  5349.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5350.             this.officers.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5351.           this.officers.parentObject = (object) this;
  5352.         }
  5353.         return this.officers;
  5354.       }
  5355.       set
  5356.       {
  5357.         this.officers = value;
  5358.         this.SetDataState("Officers");
  5359.         if (value == null || value.parentObject != null)
  5360.           return;
  5361.         this.officers.parentObject = (object) this;
  5362.       }
  5363.     }
  5364.  
  5365.     [CustomQuery(QueryStyle.Nonqueryable)]
  5366.     [CustomReporting(Visibility.Nonreportable)]
  5367.     public OnScenePersonList OnScenePersons
  5368.     {
  5369.       get
  5370.       {
  5371.         if (this.onScenePersons == null)
  5372.         {
  5373.           this.onScenePersons = new OnScenePersonList();
  5374.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5375.             this.onScenePersons.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5376.           this.onScenePersons.parentObject = (object) this;
  5377.         }
  5378.         return this.onScenePersons;
  5379.       }
  5380.       set
  5381.       {
  5382.         this.onScenePersons = value;
  5383.         this.SetDataState("OnScenePersons");
  5384.         if (value == null || value.parentObject != null)
  5385.           return;
  5386.         this.onScenePersons.parentObject = (object) this;
  5387.       }
  5388.     }
  5389.  
  5390.     [CustomQuery(QueryStyle.Nonqueryable)]
  5391.     [CustomReporting(Visibility.Nonreportable)]
  5392.     public OnSiteMaterialList OnSiteMaterials
  5393.     {
  5394.       get
  5395.       {
  5396.         if (this.onSiteMaterials == null)
  5397.         {
  5398.           this.onSiteMaterials = new OnSiteMaterialList();
  5399.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5400.             this.onSiteMaterials.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5401.           this.onSiteMaterials.parentObject = (object) this;
  5402.         }
  5403.         return this.onSiteMaterials;
  5404.       }
  5405.       set
  5406.       {
  5407.         this.onSiteMaterials = value;
  5408.         this.SetDataState("OnSiteMaterials");
  5409.         if (value == null || value.parentObject != null)
  5410.           return;
  5411.         this.onSiteMaterials.parentObject = (object) this;
  5412.       }
  5413.     }
  5414.  
  5415.     [CustomReporting(Visibility.Nonreportable)]
  5416.     [CustomQuery(QueryStyle.Nonqueryable)]
  5417.     public OtherObservationList OtherObservations
  5418.     {
  5419.       get
  5420.       {
  5421.         if (this.otherObservations == null)
  5422.         {
  5423.           this.otherObservations = new OtherObservationList();
  5424.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5425.             this.otherObservations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5426.           this.otherObservations.parentObject = (object) this;
  5427.         }
  5428.         return this.otherObservations;
  5429.       }
  5430.       set
  5431.       {
  5432.         this.otherObservations = value;
  5433.         this.SetDataState("OtherObservations");
  5434.         if (value == null || value.parentObject != null)
  5435.           return;
  5436.         this.otherObservations.parentObject = (object) this;
  5437.       }
  5438.     }
  5439.  
  5440.     [CustomReporting(Visibility.Nonreportable)]
  5441.     [CustomQuery(QueryStyle.Nonqueryable)]
  5442.     public PageComponentList PageComponents
  5443.     {
  5444.       get
  5445.       {
  5446.         if (this.pageComponents == null)
  5447.         {
  5448.           this.pageComponents = new PageComponentList();
  5449.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5450.             this.pageComponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5451.           this.pageComponents.parentObject = (object) this;
  5452.         }
  5453.         return this.pageComponents;
  5454.       }
  5455.       set
  5456.       {
  5457.         this.pageComponents = value;
  5458.         this.SetDataState("PageComponents");
  5459.         if (value == null || value.parentObject != null)
  5460.           return;
  5461.         this.pageComponents.parentObject = (object) this;
  5462.       }
  5463.     }
  5464.  
  5465.     [CustomQuery(QueryStyle.Nonqueryable)]
  5466.     [CustomReporting(Visibility.Nonreportable)]
  5467.     public PageLayoutList PageLayouts
  5468.     {
  5469.       get
  5470.       {
  5471.         if (this.pageLayouts == null)
  5472.         {
  5473.           this.pageLayouts = new PageLayoutList();
  5474.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5475.             this.pageLayouts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5476.           this.pageLayouts.parentObject = (object) this;
  5477.         }
  5478.         return this.pageLayouts;
  5479.       }
  5480.       set
  5481.       {
  5482.         this.pageLayouts = value;
  5483.         this.SetDataState("PageLayouts");
  5484.         if (value == null || value.parentObject != null)
  5485.           return;
  5486.         this.pageLayouts.parentObject = (object) this;
  5487.       }
  5488.     }
  5489.  
  5490.     [CustomReporting(Visibility.Nonreportable)]
  5491.     [CustomQuery(QueryStyle.Nonqueryable)]
  5492.     public PageLayoutList UserLoginPageLayouts
  5493.     {
  5494.       get
  5495.       {
  5496.         if (this.userLoginPageLayouts == null)
  5497.         {
  5498.           this.userLoginPageLayouts = new PageLayoutList();
  5499.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5500.             this.userLoginPageLayouts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5501.           this.userLoginPageLayouts.parentObject = (object) this;
  5502.         }
  5503.         return this.userLoginPageLayouts;
  5504.       }
  5505.       set
  5506.       {
  5507.         this.userLoginPageLayouts = value;
  5508.         this.SetDataState("UserLoginPageLayouts");
  5509.         if (value == null || value.parentObject != null)
  5510.           return;
  5511.         this.userLoginPageLayouts.parentObject = (object) this;
  5512.       }
  5513.     }
  5514.  
  5515.     [CustomReporting(Visibility.Nonreportable)]
  5516.     [CustomQuery(QueryStyle.Nonqueryable)]
  5517.     public PayPeriodList PayPeriods
  5518.     {
  5519.       get
  5520.       {
  5521.         if (this.payPeriods == null)
  5522.         {
  5523.           this.payPeriods = new PayPeriodList();
  5524.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5525.             this.payPeriods.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5526.           this.payPeriods.parentObject = (object) this;
  5527.         }
  5528.         return this.payPeriods;
  5529.       }
  5530.       set
  5531.       {
  5532.         this.payPeriods = value;
  5533.         this.SetDataState("PayPeriods");
  5534.         if (value == null || value.parentObject != null)
  5535.           return;
  5536.         this.payPeriods.parentObject = (object) this;
  5537.       }
  5538.     }
  5539.  
  5540.     [CustomReporting(Visibility.Nonreportable)]
  5541.     [CustomQuery(QueryStyle.Nonqueryable)]
  5542.     public PerformedProcedureList PerformedProcedures
  5543.     {
  5544.       get
  5545.       {
  5546.         if (this.performedProcedures == null)
  5547.         {
  5548.           this.performedProcedures = new PerformedProcedureList();
  5549.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5550.             this.performedProcedures.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5551.           this.performedProcedures.parentObject = (object) this;
  5552.         }
  5553.         return this.performedProcedures;
  5554.       }
  5555.       set
  5556.       {
  5557.         this.performedProcedures = value;
  5558.         this.SetDataState("PerformedProcedures");
  5559.         if (value == null || value.parentObject != null)
  5560.           return;
  5561.         this.performedProcedures.parentObject = (object) this;
  5562.       }
  5563.     }
  5564.  
  5565.     [CustomReporting(Visibility.Nonreportable)]
  5566.     [CustomQuery(QueryStyle.Nonqueryable)]
  5567.     public PersonAliasNameList PersonAliasNames
  5568.     {
  5569.       get
  5570.       {
  5571.         if (this.personAliasNames == null)
  5572.         {
  5573.           this.personAliasNames = new PersonAliasNameList();
  5574.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5575.             this.personAliasNames.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5576.           this.personAliasNames.parentObject = (object) this;
  5577.         }
  5578.         return this.personAliasNames;
  5579.       }
  5580.       set
  5581.       {
  5582.         this.personAliasNames = value;
  5583.         this.SetDataState("PersonAliasNames");
  5584.         if (value == null || value.parentObject != null)
  5585.           return;
  5586.         this.personAliasNames.parentObject = (object) this;
  5587.       }
  5588.     }
  5589.  
  5590.     [CustomReporting(Visibility.Nonreportable)]
  5591.     [CustomQuery(QueryStyle.Nonqueryable)]
  5592.     public PersonLanguageList PersonLanguages
  5593.     {
  5594.       get
  5595.       {
  5596.         if (this.personLanguages == null)
  5597.         {
  5598.           this.personLanguages = new PersonLanguageList();
  5599.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5600.             this.personLanguages.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5601.           this.personLanguages.parentObject = (object) this;
  5602.         }
  5603.         return this.personLanguages;
  5604.       }
  5605.       set
  5606.       {
  5607.         this.personLanguages = value;
  5608.         this.SetDataState("PersonLanguages");
  5609.         if (value == null || value.parentObject != null)
  5610.           return;
  5611.         this.personLanguages.parentObject = (object) this;
  5612.       }
  5613.     }
  5614.  
  5615.     [CustomReporting(Visibility.Nonreportable)]
  5616.     [CustomQuery(QueryStyle.Nonqueryable)]
  5617.     public PersonnelAllergyList PersonnelAllergies
  5618.     {
  5619.       get
  5620.       {
  5621.         if (this.personnelAllergies == null)
  5622.         {
  5623.           this.personnelAllergies = new PersonnelAllergyList();
  5624.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5625.             this.personnelAllergies.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5626.           this.personnelAllergies.parentObject = (object) this;
  5627.         }
  5628.         return this.personnelAllergies;
  5629.       }
  5630.       set
  5631.       {
  5632.         this.personnelAllergies = value;
  5633.         this.SetDataState("PersonnelAllergies");
  5634.         if (value == null || value.parentObject != null)
  5635.           return;
  5636.         this.personnelAllergies.parentObject = (object) this;
  5637.       }
  5638.     }
  5639.  
  5640.     [CustomReporting(Visibility.Nonreportable)]
  5641.     [CustomQuery(QueryStyle.Nonqueryable)]
  5642.     public PersonnelCertificationList PersonnelCertifications
  5643.     {
  5644.       get
  5645.       {
  5646.         if (this.personnelCertifications == null)
  5647.         {
  5648.           this.personnelCertifications = new PersonnelCertificationList();
  5649.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5650.             this.personnelCertifications.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5651.           this.personnelCertifications.parentObject = (object) this;
  5652.         }
  5653.         return this.personnelCertifications;
  5654.       }
  5655.       set
  5656.       {
  5657.         this.personnelCertifications = value;
  5658.         this.SetDataState("PersonnelCertifications");
  5659.         if (value == null || value.parentObject != null)
  5660.           return;
  5661.         this.personnelCertifications.parentObject = (object) this;
  5662.       }
  5663.     }
  5664.  
  5665.     [CustomQuery(QueryStyle.Nonqueryable)]
  5666.     [CustomReporting(Visibility.Nonreportable)]
  5667.     public PersonnelEmploymentCategoryList PersonnelEmploymentCategories
  5668.     {
  5669.       get
  5670.       {
  5671.         if (this.personnelEmploymentCategories == null)
  5672.         {
  5673.           this.personnelEmploymentCategories = new PersonnelEmploymentCategoryList();
  5674.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5675.             this.personnelEmploymentCategories.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5676.           this.personnelEmploymentCategories.parentObject = (object) this;
  5677.         }
  5678.         return this.personnelEmploymentCategories;
  5679.       }
  5680.       set
  5681.       {
  5682.         this.personnelEmploymentCategories = value;
  5683.         this.SetDataState("PersonnelEmploymentCategories");
  5684.         if (value == null || value.parentObject != null)
  5685.           return;
  5686.         this.personnelEmploymentCategories.parentObject = (object) this;
  5687.       }
  5688.     }
  5689.  
  5690.     [CustomReporting(Visibility.Nonreportable)]
  5691.     [CustomQuery(QueryStyle.Nonqueryable)]
  5692.     public PersonnelEmploymentDetailList PersonnelEmploymentDetails
  5693.     {
  5694.       get
  5695.       {
  5696.         if (this.personnelEmploymentDetails == null)
  5697.         {
  5698.           this.personnelEmploymentDetails = new PersonnelEmploymentDetailList();
  5699.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5700.             this.personnelEmploymentDetails.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5701.           this.personnelEmploymentDetails.parentObject = (object) this;
  5702.         }
  5703.         return this.personnelEmploymentDetails;
  5704.       }
  5705.       set
  5706.       {
  5707.         this.personnelEmploymentDetails = value;
  5708.         this.SetDataState("PersonnelEmploymentDetails");
  5709.         if (value == null || value.parentObject != null)
  5710.           return;
  5711.         this.personnelEmploymentDetails.parentObject = (object) this;
  5712.       }
  5713.     }
  5714.  
  5715.     [CustomQuery(QueryStyle.Nonqueryable)]
  5716.     [CustomReporting(Visibility.Nonreportable)]
  5717.     public PersonnelEquipmentSizeList PersonnelEquipmentSizes
  5718.     {
  5719.       get
  5720.       {
  5721.         if (this.personnelEquipmentSizes == null)
  5722.         {
  5723.           this.personnelEquipmentSizes = new PersonnelEquipmentSizeList();
  5724.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5725.             this.personnelEquipmentSizes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5726.           this.personnelEquipmentSizes.parentObject = (object) this;
  5727.         }
  5728.         return this.personnelEquipmentSizes;
  5729.       }
  5730.       set
  5731.       {
  5732.         this.personnelEquipmentSizes = value;
  5733.         this.SetDataState("PersonnelEquipmentSizes");
  5734.         if (value == null || value.parentObject != null)
  5735.           return;
  5736.         this.personnelEquipmentSizes.parentObject = (object) this;
  5737.       }
  5738.     }
  5739.  
  5740.     [CustomQuery(QueryStyle.Nonqueryable)]
  5741.     [CustomReporting(Visibility.Nonreportable)]
  5742.     public PersonnelEquipmentTestRecordList PersonnelEquipmentTestRecords
  5743.     {
  5744.       get
  5745.       {
  5746.         if (this.personnelEquipmentTestRecords == null)
  5747.         {
  5748.           this.personnelEquipmentTestRecords = new PersonnelEquipmentTestRecordList();
  5749.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5750.             this.personnelEquipmentTestRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5751.           this.personnelEquipmentTestRecords.parentObject = (object) this;
  5752.         }
  5753.         return this.personnelEquipmentTestRecords;
  5754.       }
  5755.       set
  5756.       {
  5757.         this.personnelEquipmentTestRecords = value;
  5758.         this.SetDataState("PersonnelEquipmentTestRecords");
  5759.         if (value == null || value.parentObject != null)
  5760.           return;
  5761.         this.personnelEquipmentTestRecords.parentObject = (object) this;
  5762.       }
  5763.     }
  5764.  
  5765.     [CustomQuery(QueryStyle.Nonqueryable)]
  5766.     [CustomReporting(Visibility.Nonreportable)]
  5767.     public PersonnelIrregularWorkPlaceList PersonnelIrregularWorkPlaces
  5768.     {
  5769.       get
  5770.       {
  5771.         if (this.personnelIrregularWorkPlaces == null)
  5772.         {
  5773.           this.personnelIrregularWorkPlaces = new PersonnelIrregularWorkPlaceList();
  5774.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5775.             this.personnelIrregularWorkPlaces.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5776.           this.personnelIrregularWorkPlaces.parentObject = (object) this;
  5777.         }
  5778.         return this.personnelIrregularWorkPlaces;
  5779.       }
  5780.       set
  5781.       {
  5782.         this.personnelIrregularWorkPlaces = value;
  5783.         this.SetDataState("PersonnelIrregularWorkPlaces");
  5784.         if (value == null || value.parentObject != null)
  5785.           return;
  5786.         this.personnelIrregularWorkPlaces.parentObject = (object) this;
  5787.       }
  5788.     }
  5789.  
  5790.     [CustomReporting(Visibility.Nonreportable)]
  5791.     [CustomQuery(QueryStyle.Nonqueryable)]
  5792.     public PersonnelIrregularWorkTimeList PersonnelIrregularWorkTimes
  5793.     {
  5794.       get
  5795.       {
  5796.         if (this.personnelIrregularWorkTimes == null)
  5797.         {
  5798.           this.personnelIrregularWorkTimes = new PersonnelIrregularWorkTimeList();
  5799.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5800.             this.personnelIrregularWorkTimes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5801.           this.personnelIrregularWorkTimes.parentObject = (object) this;
  5802.         }
  5803.         return this.personnelIrregularWorkTimes;
  5804.       }
  5805.       set
  5806.       {
  5807.         this.personnelIrregularWorkTimes = value;
  5808.         this.SetDataState("PersonnelIrregularWorkTimes");
  5809.         if (value == null || value.parentObject != null)
  5810.           return;
  5811.         this.personnelIrregularWorkTimes.parentObject = (object) this;
  5812.       }
  5813.     }
  5814.  
  5815.     [CustomQuery(QueryStyle.Nonqueryable)]
  5816.     [CustomReporting(Visibility.Nonreportable)]
  5817.     public PersonnelMedicalDetailList PersonnelMedicalDetails
  5818.     {
  5819.       get
  5820.       {
  5821.         if (this.personnelMedicalDetails == null)
  5822.         {
  5823.           this.personnelMedicalDetails = new PersonnelMedicalDetailList();
  5824.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5825.             this.personnelMedicalDetails.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5826.           this.personnelMedicalDetails.parentObject = (object) this;
  5827.         }
  5828.         return this.personnelMedicalDetails;
  5829.       }
  5830.       set
  5831.       {
  5832.         this.personnelMedicalDetails = value;
  5833.         this.SetDataState("PersonnelMedicalDetails");
  5834.         if (value == null || value.parentObject != null)
  5835.           return;
  5836.         this.personnelMedicalDetails.parentObject = (object) this;
  5837.       }
  5838.     }
  5839.  
  5840.     [CustomQuery(QueryStyle.Nonqueryable)]
  5841.     [CustomReporting(Visibility.Nonreportable)]
  5842.     public PersonnelMedicationList PersonnelMedications
  5843.     {
  5844.       get
  5845.       {
  5846.         if (this.personnelMedications == null)
  5847.         {
  5848.           this.personnelMedications = new PersonnelMedicationList();
  5849.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5850.             this.personnelMedications.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5851.           this.personnelMedications.parentObject = (object) this;
  5852.         }
  5853.         return this.personnelMedications;
  5854.       }
  5855.       set
  5856.       {
  5857.         this.personnelMedications = value;
  5858.         this.SetDataState("PersonnelMedications");
  5859.         if (value == null || value.parentObject != null)
  5860.           return;
  5861.         this.personnelMedications.parentObject = (object) this;
  5862.       }
  5863.     }
  5864.  
  5865.     [CustomQuery(QueryStyle.Nonqueryable)]
  5866.     [CustomReporting(Visibility.Nonreportable)]
  5867.     public PersonnelRankHistoryList PersonnelRankHistory
  5868.     {
  5869.       get
  5870.       {
  5871.         if (this.personnelRankHistory == null)
  5872.         {
  5873.           this.personnelRankHistory = new PersonnelRankHistoryList();
  5874.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5875.             this.personnelRankHistory.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5876.           this.personnelRankHistory.parentObject = (object) this;
  5877.         }
  5878.         return this.personnelRankHistory;
  5879.       }
  5880.       set
  5881.       {
  5882.         this.personnelRankHistory = value;
  5883.         this.SetDataState("PersonnelRankHistory");
  5884.         if (value == null || value.parentObject != null)
  5885.           return;
  5886.         this.personnelRankHistory.parentObject = (object) this;
  5887.       }
  5888.     }
  5889.  
  5890.     [CustomReporting(Visibility.Nonreportable)]
  5891.     [CustomQuery(QueryStyle.Nonqueryable)]
  5892.     public PersonnelRankList PersonnelRanks
  5893.     {
  5894.       get
  5895.       {
  5896.         if (this.personnelRanks == null)
  5897.         {
  5898.           this.personnelRanks = new PersonnelRankList();
  5899.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5900.             this.personnelRanks.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5901.           this.personnelRanks.parentObject = (object) this;
  5902.         }
  5903.         return this.personnelRanks;
  5904.       }
  5905.       set
  5906.       {
  5907.         this.personnelRanks = value;
  5908.         this.SetDataState("PersonnelRanks");
  5909.         if (value == null || value.parentObject != null)
  5910.           return;
  5911.         this.personnelRanks.parentObject = (object) this;
  5912.       }
  5913.     }
  5914.  
  5915.     [CustomReporting(Visibility.Nonreportable)]
  5916.     [CustomQuery(QueryStyle.Nonqueryable)]
  5917.     public PersonnelRecordList PersonnelRecords
  5918.     {
  5919.       get
  5920.       {
  5921.         if (this.personnelRecords == null)
  5922.         {
  5923.           this.personnelRecords = new PersonnelRecordList();
  5924.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5925.             this.personnelRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5926.           this.personnelRecords.parentObject = (object) this;
  5927.         }
  5928.         return this.personnelRecords;
  5929.       }
  5930.       set
  5931.       {
  5932.         this.personnelRecords = value;
  5933.         this.SetDataState("PersonnelRecords");
  5934.         if (value == null || value.parentObject != null)
  5935.           return;
  5936.         this.personnelRecords.parentObject = (object) this;
  5937.       }
  5938.     }
  5939.  
  5940.     [CustomQuery(QueryStyle.Nonqueryable)]
  5941.     [CustomReporting(Visibility.Nonreportable)]
  5942.     public PersonnelRecordList UserLoginPersonnelRecords
  5943.     {
  5944.       get
  5945.       {
  5946.         if (this.userLoginPersonnelRecords == null)
  5947.         {
  5948.           this.userLoginPersonnelRecords = new PersonnelRecordList();
  5949.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5950.             this.userLoginPersonnelRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5951.           this.userLoginPersonnelRecords.parentObject = (object) this;
  5952.         }
  5953.         return this.userLoginPersonnelRecords;
  5954.       }
  5955.       set
  5956.       {
  5957.         this.userLoginPersonnelRecords = value;
  5958.         this.SetDataState("UserLoginPersonnelRecords");
  5959.         if (value == null || value.parentObject != null)
  5960.           return;
  5961.         this.userLoginPersonnelRecords.parentObject = (object) this;
  5962.       }
  5963.     }
  5964.  
  5965.     [CustomReporting(Visibility.Nonreportable)]
  5966.     [CustomQuery(QueryStyle.Nonqueryable)]
  5967.     public PersonnelRegularWorkPlaceList PersonnelRegularWorkPlaces
  5968.     {
  5969.       get
  5970.       {
  5971.         if (this.personnelRegularWorkPlaces == null)
  5972.         {
  5973.           this.personnelRegularWorkPlaces = new PersonnelRegularWorkPlaceList();
  5974.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  5975.             this.personnelRegularWorkPlaces.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  5976.           this.personnelRegularWorkPlaces.parentObject = (object) this;
  5977.         }
  5978.         return this.personnelRegularWorkPlaces;
  5979.       }
  5980.       set
  5981.       {
  5982.         this.personnelRegularWorkPlaces = value;
  5983.         this.SetDataState("PersonnelRegularWorkPlaces");
  5984.         if (value == null || value.parentObject != null)
  5985.           return;
  5986.         this.personnelRegularWorkPlaces.parentObject = (object) this;
  5987.       }
  5988.     }
  5989.  
  5990.     [CustomReporting(Visibility.Nonreportable)]
  5991.     [CustomQuery(QueryStyle.Nonqueryable)]
  5992.     public PersonnelRegularWorkTimeList PersonnelRegularWorkTimes
  5993.     {
  5994.       get
  5995.       {
  5996.         if (this.personnelRegularWorkTimes == null)
  5997.         {
  5998.           this.personnelRegularWorkTimes = new PersonnelRegularWorkTimeList();
  5999.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6000.             this.personnelRegularWorkTimes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6001.           this.personnelRegularWorkTimes.parentObject = (object) this;
  6002.         }
  6003.         return this.personnelRegularWorkTimes;
  6004.       }
  6005.       set
  6006.       {
  6007.         this.personnelRegularWorkTimes = value;
  6008.         this.SetDataState("PersonnelRegularWorkTimes");
  6009.         if (value == null || value.parentObject != null)
  6010.           return;
  6011.         this.personnelRegularWorkTimes.parentObject = (object) this;
  6012.       }
  6013.     }
  6014.  
  6015.     [CustomQuery(QueryStyle.Nonqueryable)]
  6016.     [CustomReporting(Visibility.Nonreportable)]
  6017.     public PersonnelScheduledOffTimeList PersonnelScheduledOffTimes
  6018.     {
  6019.       get
  6020.       {
  6021.         if (this.personnelScheduledOffTimes == null)
  6022.         {
  6023.           this.personnelScheduledOffTimes = new PersonnelScheduledOffTimeList();
  6024.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6025.             this.personnelScheduledOffTimes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6026.           this.personnelScheduledOffTimes.parentObject = (object) this;
  6027.         }
  6028.         return this.personnelScheduledOffTimes;
  6029.       }
  6030.       set
  6031.       {
  6032.         this.personnelScheduledOffTimes = value;
  6033.         this.SetDataState("PersonnelScheduledOffTimes");
  6034.         if (value == null || value.parentObject != null)
  6035.           return;
  6036.         this.personnelScheduledOffTimes.parentObject = (object) this;
  6037.       }
  6038.     }
  6039.  
  6040.     [CustomQuery(QueryStyle.Nonqueryable)]
  6041.     [CustomReporting(Visibility.Nonreportable)]
  6042.     public PersonnelSchedulingConstraintList PersonnelSchedulingConstraints
  6043.     {
  6044.       get
  6045.       {
  6046.         if (this.personnelSchedulingConstraints == null)
  6047.         {
  6048.           this.personnelSchedulingConstraints = new PersonnelSchedulingConstraintList();
  6049.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6050.             this.personnelSchedulingConstraints.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6051.           this.personnelSchedulingConstraints.parentObject = (object) this;
  6052.         }
  6053.         return this.personnelSchedulingConstraints;
  6054.       }
  6055.       set
  6056.       {
  6057.         this.personnelSchedulingConstraints = value;
  6058.         this.SetDataState("PersonnelSchedulingConstraints");
  6059.         if (value == null || value.parentObject != null)
  6060.           return;
  6061.         this.personnelSchedulingConstraints.parentObject = (object) this;
  6062.       }
  6063.     }
  6064.  
  6065.     [CustomQuery(QueryStyle.Nonqueryable)]
  6066.     [CustomReporting(Visibility.Nonreportable)]
  6067.     public PersonnelSkillList PersonnelSkills
  6068.     {
  6069.       get
  6070.       {
  6071.         if (this.personnelSkills == null)
  6072.         {
  6073.           this.personnelSkills = new PersonnelSkillList();
  6074.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6075.             this.personnelSkills.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6076.           this.personnelSkills.parentObject = (object) this;
  6077.         }
  6078.         return this.personnelSkills;
  6079.       }
  6080.       set
  6081.       {
  6082.         this.personnelSkills = value;
  6083.         this.SetDataState("PersonnelSkills");
  6084.         if (value == null || value.parentObject != null)
  6085.           return;
  6086.         this.personnelSkills.parentObject = (object) this;
  6087.       }
  6088.     }
  6089.  
  6090.     [CustomReporting(Visibility.Nonreportable)]
  6091.     [CustomQuery(QueryStyle.Nonqueryable)]
  6092.     public PersonnelStatusRequestList PersonnelStatusRequests
  6093.     {
  6094.       get
  6095.       {
  6096.         if (this.personnelStatusRequests == null)
  6097.         {
  6098.           this.personnelStatusRequests = new PersonnelStatusRequestList();
  6099.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6100.             this.personnelStatusRequests.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6101.           this.personnelStatusRequests.parentObject = (object) this;
  6102.         }
  6103.         return this.personnelStatusRequests;
  6104.       }
  6105.       set
  6106.       {
  6107.         this.personnelStatusRequests = value;
  6108.         this.SetDataState("PersonnelStatusRequests");
  6109.         if (value == null || value.parentObject != null)
  6110.           return;
  6111.         this.personnelStatusRequests.parentObject = (object) this;
  6112.       }
  6113.     }
  6114.  
  6115.     [CustomQuery(QueryStyle.Nonqueryable)]
  6116.     [CustomReporting(Visibility.Nonreportable)]
  6117.     public PersonnelStatusTimeList PersonnelStatusTimes
  6118.     {
  6119.       get
  6120.       {
  6121.         if (this.personnelStatusTimes == null)
  6122.         {
  6123.           this.personnelStatusTimes = new PersonnelStatusTimeList();
  6124.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6125.             this.personnelStatusTimes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6126.           this.personnelStatusTimes.parentObject = (object) this;
  6127.         }
  6128.         return this.personnelStatusTimes;
  6129.       }
  6130.       set
  6131.       {
  6132.         this.personnelStatusTimes = value;
  6133.         this.SetDataState("PersonnelStatusTimes");
  6134.         if (value == null || value.parentObject != null)
  6135.           return;
  6136.         this.personnelStatusTimes.parentObject = (object) this;
  6137.       }
  6138.     }
  6139.  
  6140.     [CustomReporting(Visibility.Nonreportable)]
  6141.     [CustomQuery(QueryStyle.Nonqueryable)]
  6142.     public PersonnelStatusTypeList PersonnelStatusTypes
  6143.     {
  6144.       get
  6145.       {
  6146.         if (this.personnelStatusTypes == null)
  6147.         {
  6148.           this.personnelStatusTypes = new PersonnelStatusTypeList();
  6149.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6150.             this.personnelStatusTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6151.           this.personnelStatusTypes.parentObject = (object) this;
  6152.         }
  6153.         return this.personnelStatusTypes;
  6154.       }
  6155.       set
  6156.       {
  6157.         this.personnelStatusTypes = value;
  6158.         this.SetDataState("PersonnelStatusTypes");
  6159.         if (value == null || value.parentObject != null)
  6160.           return;
  6161.         this.personnelStatusTypes.parentObject = (object) this;
  6162.       }
  6163.     }
  6164.  
  6165.     [CustomReporting(Visibility.Nonreportable)]
  6166.     [CustomQuery(QueryStyle.Nonqueryable)]
  6167.     public PersonnelTimesheetRecordList PersonnelTimesheetRecords
  6168.     {
  6169.       get
  6170.       {
  6171.         if (this.personnelTimesheetRecords == null)
  6172.         {
  6173.           this.personnelTimesheetRecords = new PersonnelTimesheetRecordList();
  6174.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6175.             this.personnelTimesheetRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6176.           this.personnelTimesheetRecords.parentObject = (object) this;
  6177.         }
  6178.         return this.personnelTimesheetRecords;
  6179.       }
  6180.       set
  6181.       {
  6182.         this.personnelTimesheetRecords = value;
  6183.         this.SetDataState("PersonnelTimesheetRecords");
  6184.         if (value == null || value.parentObject != null)
  6185.           return;
  6186.         this.personnelTimesheetRecords.parentObject = (object) this;
  6187.       }
  6188.     }
  6189.  
  6190.     [CustomQuery(QueryStyle.Nonqueryable)]
  6191.     [CustomReporting(Visibility.Nonreportable)]
  6192.     public PersonRecordList PersonRecords
  6193.     {
  6194.       get
  6195.       {
  6196.         if (this.personRecords == null)
  6197.         {
  6198.           this.personRecords = new PersonRecordList();
  6199.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6200.             this.personRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6201.           this.personRecords.parentObject = (object) this;
  6202.         }
  6203.         return this.personRecords;
  6204.       }
  6205.       set
  6206.       {
  6207.         this.personRecords = value;
  6208.         this.SetDataState("PersonRecords");
  6209.         if (value == null || value.parentObject != null)
  6210.           return;
  6211.         this.personRecords.parentObject = (object) this;
  6212.       }
  6213.     }
  6214.  
  6215.     [CustomReporting(Visibility.Nonreportable)]
  6216.     [CustomQuery(QueryStyle.Nonqueryable)]
  6217.     public PersonRoleList PersonRoles
  6218.     {
  6219.       get
  6220.       {
  6221.         if (this.personRoles == null)
  6222.         {
  6223.           this.personRoles = new PersonRoleList();
  6224.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6225.             this.personRoles.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6226.           this.personRoles.parentObject = (object) this;
  6227.         }
  6228.         return this.personRoles;
  6229.       }
  6230.       set
  6231.       {
  6232.         this.personRoles = value;
  6233.         this.SetDataState("PersonRoles");
  6234.         if (value == null || value.parentObject != null)
  6235.           return;
  6236.         this.personRoles.parentObject = (object) this;
  6237.       }
  6238.     }
  6239.  
  6240.     [CustomQuery(QueryStyle.Nonqueryable)]
  6241.     [CustomReporting(Visibility.Nonreportable)]
  6242.     public PrePlanList PrePlans
  6243.     {
  6244.       get
  6245.       {
  6246.         if (this.prePlans == null)
  6247.         {
  6248.           this.prePlans = new PrePlanList();
  6249.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6250.             this.prePlans.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6251.           this.prePlans.parentObject = (object) this;
  6252.         }
  6253.         return this.prePlans;
  6254.       }
  6255.       set
  6256.       {
  6257.         this.prePlans = value;
  6258.         this.SetDataState("PrePlans");
  6259.         if (value == null || value.parentObject != null)
  6260.           return;
  6261.         this.prePlans.parentObject = (object) this;
  6262.       }
  6263.     }
  6264.  
  6265.     [CustomQuery(QueryStyle.Nonqueryable)]
  6266.     [CustomReporting(Visibility.Nonreportable)]
  6267.     public PropertyCodeViolationList PropertyCodeViolations
  6268.     {
  6269.       get
  6270.       {
  6271.         if (this.propertyCodeViolations == null)
  6272.         {
  6273.           this.propertyCodeViolations = new PropertyCodeViolationList();
  6274.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6275.             this.propertyCodeViolations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6276.           this.propertyCodeViolations.parentObject = (object) this;
  6277.         }
  6278.         return this.propertyCodeViolations;
  6279.       }
  6280.       set
  6281.       {
  6282.         this.propertyCodeViolations = value;
  6283.         this.SetDataState("PropertyCodeViolations");
  6284.         if (value == null || value.parentObject != null)
  6285.           return;
  6286.         this.propertyCodeViolations.parentObject = (object) this;
  6287.       }
  6288.     }
  6289.  
  6290.     [CustomQuery(QueryStyle.Nonqueryable)]
  6291.     [CustomReporting(Visibility.Nonreportable)]
  6292.     public PropertyHydrantList PropertyHydrants
  6293.     {
  6294.       get
  6295.       {
  6296.         if (this.propertyHydrants == null)
  6297.         {
  6298.           this.propertyHydrants = new PropertyHydrantList();
  6299.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6300.             this.propertyHydrants.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6301.           this.propertyHydrants.parentObject = (object) this;
  6302.         }
  6303.         return this.propertyHydrants;
  6304.       }
  6305.       set
  6306.       {
  6307.         this.propertyHydrants = value;
  6308.         this.SetDataState("PropertyHydrants");
  6309.         if (value == null || value.parentObject != null)
  6310.           return;
  6311.         this.propertyHydrants.parentObject = (object) this;
  6312.       }
  6313.     }
  6314.  
  6315.     [CustomReporting(Visibility.Nonreportable)]
  6316.     [CustomQuery(QueryStyle.Nonqueryable)]
  6317.     public PropertyInspectionCodeList PropertyInspectionCodes
  6318.     {
  6319.       get
  6320.       {
  6321.         if (this.propertyInspectionCodes == null)
  6322.         {
  6323.           this.propertyInspectionCodes = new PropertyInspectionCodeList();
  6324.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6325.             this.propertyInspectionCodes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6326.           this.propertyInspectionCodes.parentObject = (object) this;
  6327.         }
  6328.         return this.propertyInspectionCodes;
  6329.       }
  6330.       set
  6331.       {
  6332.         this.propertyInspectionCodes = value;
  6333.         this.SetDataState("PropertyInspectionCodes");
  6334.         if (value == null || value.parentObject != null)
  6335.           return;
  6336.         this.propertyInspectionCodes.parentObject = (object) this;
  6337.       }
  6338.     }
  6339.  
  6340.     [CustomReporting(Visibility.Nonreportable)]
  6341.     [CustomQuery(QueryStyle.Nonqueryable)]
  6342.     public PropertyInspectionList PropertyInspections
  6343.     {
  6344.       get
  6345.       {
  6346.         if (this.propertyInspections == null)
  6347.         {
  6348.           this.propertyInspections = new PropertyInspectionList();
  6349.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6350.             this.propertyInspections.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6351.           this.propertyInspections.parentObject = (object) this;
  6352.         }
  6353.         return this.propertyInspections;
  6354.       }
  6355.       set
  6356.       {
  6357.         this.propertyInspections = value;
  6358.         this.SetDataState("PropertyInspections");
  6359.         if (value == null || value.parentObject != null)
  6360.           return;
  6361.         this.propertyInspections.parentObject = (object) this;
  6362.       }
  6363.     }
  6364.  
  6365.     [CustomQuery(QueryStyle.Nonqueryable)]
  6366.     [CustomReporting(Visibility.Nonreportable)]
  6367.     public PropertyInspectionTypeList PropertyInspectionTypes
  6368.     {
  6369.       get
  6370.       {
  6371.         if (this.propertyInspectionTypes == null)
  6372.         {
  6373.           this.propertyInspectionTypes = new PropertyInspectionTypeList();
  6374.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6375.             this.propertyInspectionTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6376.           this.propertyInspectionTypes.parentObject = (object) this;
  6377.         }
  6378.         return this.propertyInspectionTypes;
  6379.       }
  6380.       set
  6381.       {
  6382.         this.propertyInspectionTypes = value;
  6383.         this.SetDataState("PropertyInspectionTypes");
  6384.         if (value == null || value.parentObject != null)
  6385.           return;
  6386.         this.propertyInspectionTypes.parentObject = (object) this;
  6387.       }
  6388.     }
  6389.  
  6390.     [CustomReporting(Visibility.Nonreportable)]
  6391.     [CustomQuery(QueryStyle.Nonqueryable)]
  6392.     public PropertyNameList PropertyNames
  6393.     {
  6394.       get
  6395.       {
  6396.         if (this.propertyNames == null)
  6397.         {
  6398.           this.propertyNames = new PropertyNameList();
  6399.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6400.             this.propertyNames.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6401.           this.propertyNames.parentObject = (object) this;
  6402.         }
  6403.         return this.propertyNames;
  6404.       }
  6405.       set
  6406.       {
  6407.         this.propertyNames = value;
  6408.         this.SetDataState("PropertyNames");
  6409.         if (value == null || value.parentObject != null)
  6410.           return;
  6411.         this.propertyNames.parentObject = (object) this;
  6412.       }
  6413.     }
  6414.  
  6415.     [CustomQuery(QueryStyle.Nonqueryable)]
  6416.     [CustomReporting(Visibility.Nonreportable)]
  6417.     public PropertyOccupancyRecordList PropertyOccupancyRecords
  6418.     {
  6419.       get
  6420.       {
  6421.         if (this.propertyOccupancyRecords == null)
  6422.         {
  6423.           this.propertyOccupancyRecords = new PropertyOccupancyRecordList();
  6424.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6425.             this.propertyOccupancyRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6426.           this.propertyOccupancyRecords.parentObject = (object) this;
  6427.         }
  6428.         return this.propertyOccupancyRecords;
  6429.       }
  6430.       set
  6431.       {
  6432.         this.propertyOccupancyRecords = value;
  6433.         this.SetDataState("PropertyOccupancyRecords");
  6434.         if (value == null || value.parentObject != null)
  6435.           return;
  6436.         this.propertyOccupancyRecords.parentObject = (object) this;
  6437.       }
  6438.     }
  6439.  
  6440.     [CustomQuery(QueryStyle.Nonqueryable)]
  6441.     [CustomReporting(Visibility.Nonreportable)]
  6442.     public PropertyOwnershipRecordList PropertyOwnershipRecords
  6443.     {
  6444.       get
  6445.       {
  6446.         if (this.propertyOwnershipRecords == null)
  6447.         {
  6448.           this.propertyOwnershipRecords = new PropertyOwnershipRecordList();
  6449.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6450.             this.propertyOwnershipRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6451.           this.propertyOwnershipRecords.parentObject = (object) this;
  6452.         }
  6453.         return this.propertyOwnershipRecords;
  6454.       }
  6455.       set
  6456.       {
  6457.         this.propertyOwnershipRecords = value;
  6458.         this.SetDataState("PropertyOwnershipRecords");
  6459.         if (value == null || value.parentObject != null)
  6460.           return;
  6461.         this.propertyOwnershipRecords.parentObject = (object) this;
  6462.       }
  6463.     }
  6464.  
  6465.     [CustomReporting(Visibility.Nonreportable)]
  6466.     [CustomQuery(QueryStyle.Nonqueryable)]
  6467.     public ProtectedPropertyList ProtectedProperties
  6468.     {
  6469.       get
  6470.       {
  6471.         if (this.protectedProperties == null)
  6472.         {
  6473.           this.protectedProperties = new ProtectedPropertyList();
  6474.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6475.             this.protectedProperties.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6476.           this.protectedProperties.parentObject = (object) this;
  6477.         }
  6478.         return this.protectedProperties;
  6479.       }
  6480.       set
  6481.       {
  6482.         this.protectedProperties = value;
  6483.         this.SetDataState("ProtectedProperties");
  6484.         if (value == null || value.parentObject != null)
  6485.           return;
  6486.         this.protectedProperties.parentObject = (object) this;
  6487.       }
  6488.     }
  6489.  
  6490.     [CustomQuery(QueryStyle.Nonqueryable)]
  6491.     [CustomReporting(Visibility.Nonreportable)]
  6492.     public ProtectedPropertyContactList ProtectedPropertyContacts
  6493.     {
  6494.       get
  6495.       {
  6496.         if (this.protectedPropertyContacts == null)
  6497.         {
  6498.           this.protectedPropertyContacts = new ProtectedPropertyContactList();
  6499.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6500.             this.protectedPropertyContacts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6501.           this.protectedPropertyContacts.parentObject = (object) this;
  6502.         }
  6503.         return this.protectedPropertyContacts;
  6504.       }
  6505.       set
  6506.       {
  6507.         this.protectedPropertyContacts = value;
  6508.         this.SetDataState("ProtectedPropertyContacts");
  6509.         if (value == null || value.parentObject != null)
  6510.           return;
  6511.         this.protectedPropertyContacts.parentObject = (object) this;
  6512.       }
  6513.     }
  6514.  
  6515.     [CustomQuery(QueryStyle.Nonqueryable)]
  6516.     [CustomReporting(Visibility.Nonreportable)]
  6517.     public ProtectedPropertyDirectionList ProtectedPropertyDirections
  6518.     {
  6519.       get
  6520.       {
  6521.         if (this.protectedPropertyDirections == null)
  6522.         {
  6523.           this.protectedPropertyDirections = new ProtectedPropertyDirectionList();
  6524.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6525.             this.protectedPropertyDirections.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6526.           this.protectedPropertyDirections.parentObject = (object) this;
  6527.         }
  6528.         return this.protectedPropertyDirections;
  6529.       }
  6530.       set
  6531.       {
  6532.         this.protectedPropertyDirections = value;
  6533.         this.SetDataState("ProtectedPropertyDirections");
  6534.         if (value == null || value.parentObject != null)
  6535.           return;
  6536.         this.protectedPropertyDirections.parentObject = (object) this;
  6537.       }
  6538.     }
  6539.  
  6540.     [CustomReporting(Visibility.Nonreportable)]
  6541.     [CustomQuery(QueryStyle.Nonqueryable)]
  6542.     public ProtectedPropertyInspectionGroupList ProtectedPropertyInspectionGroups
  6543.     {
  6544.       get
  6545.       {
  6546.         if (this.protectedPropertyInspectionGroups == null)
  6547.         {
  6548.           this.protectedPropertyInspectionGroups = new ProtectedPropertyInspectionGroupList();
  6549.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6550.             this.protectedPropertyInspectionGroups.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6551.           this.protectedPropertyInspectionGroups.parentObject = (object) this;
  6552.         }
  6553.         return this.protectedPropertyInspectionGroups;
  6554.       }
  6555.       set
  6556.       {
  6557.         this.protectedPropertyInspectionGroups = value;
  6558.         this.SetDataState("ProtectedPropertyInspectionGroups");
  6559.         if (value == null || value.parentObject != null)
  6560.           return;
  6561.         this.protectedPropertyInspectionGroups.parentObject = (object) this;
  6562.       }
  6563.     }
  6564.  
  6565.     [CustomQuery(QueryStyle.Nonqueryable)]
  6566.     [CustomReporting(Visibility.Nonreportable)]
  6567.     public ProtectiveEquipmentFailureList ProtectiveEquipmentFailures
  6568.     {
  6569.       get
  6570.       {
  6571.         if (this.protectiveEquipmentFailures == null)
  6572.         {
  6573.           this.protectiveEquipmentFailures = new ProtectiveEquipmentFailureList();
  6574.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6575.             this.protectiveEquipmentFailures.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6576.           this.protectiveEquipmentFailures.parentObject = (object) this;
  6577.         }
  6578.         return this.protectiveEquipmentFailures;
  6579.       }
  6580.       set
  6581.       {
  6582.         this.protectiveEquipmentFailures = value;
  6583.         this.SetDataState("ProtectiveEquipmentFailures");
  6584.         if (value == null || value.parentObject != null)
  6585.           return;
  6586.         this.protectiveEquipmentFailures.parentObject = (object) this;
  6587.       }
  6588.     }
  6589.  
  6590.     [CustomReporting(Visibility.Nonreportable)]
  6591.     [CustomQuery(QueryStyle.Nonqueryable)]
  6592.     public ProvidedResourceList ProvidedResources
  6593.     {
  6594.       get
  6595.       {
  6596.         if (this.providedResources == null)
  6597.         {
  6598.           this.providedResources = new ProvidedResourceList();
  6599.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6600.             this.providedResources.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6601.           this.providedResources.parentObject = (object) this;
  6602.         }
  6603.         return this.providedResources;
  6604.       }
  6605.       set
  6606.       {
  6607.         this.providedResources = value;
  6608.         this.SetDataState("ProvidedResources");
  6609.         if (value == null || value.parentObject != null)
  6610.           return;
  6611.         this.providedResources.parentObject = (object) this;
  6612.       }
  6613.     }
  6614.  
  6615.     [CustomQuery(QueryStyle.Nonqueryable)]
  6616.     [CustomReporting(Visibility.Nonreportable)]
  6617.     public PurchaseOrderItemList PurchaseOrderItems
  6618.     {
  6619.       get
  6620.       {
  6621.         if (this.purchaseOrderItems == null)
  6622.         {
  6623.           this.purchaseOrderItems = new PurchaseOrderItemList();
  6624.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6625.             this.purchaseOrderItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6626.           this.purchaseOrderItems.parentObject = (object) this;
  6627.         }
  6628.         return this.purchaseOrderItems;
  6629.       }
  6630.       set
  6631.       {
  6632.         this.purchaseOrderItems = value;
  6633.         this.SetDataState("PurchaseOrderItems");
  6634.         if (value == null || value.parentObject != null)
  6635.           return;
  6636.         this.purchaseOrderItems.parentObject = (object) this;
  6637.       }
  6638.     }
  6639.  
  6640.     [CustomReporting(Visibility.Nonreportable)]
  6641.     [CustomQuery(QueryStyle.Nonqueryable)]
  6642.     public PurchaseOrderReceivedItemList PurchaseOrderReceivedItems
  6643.     {
  6644.       get
  6645.       {
  6646.         if (this.purchaseOrderReceivedItems == null)
  6647.         {
  6648.           this.purchaseOrderReceivedItems = new PurchaseOrderReceivedItemList();
  6649.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6650.             this.purchaseOrderReceivedItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6651.           this.purchaseOrderReceivedItems.parentObject = (object) this;
  6652.         }
  6653.         return this.purchaseOrderReceivedItems;
  6654.       }
  6655.       set
  6656.       {
  6657.         this.purchaseOrderReceivedItems = value;
  6658.         this.SetDataState("PurchaseOrderReceivedItems");
  6659.         if (value == null || value.parentObject != null)
  6660.           return;
  6661.         this.purchaseOrderReceivedItems.parentObject = (object) this;
  6662.       }
  6663.     }
  6664.  
  6665.     [CustomReporting(Visibility.Nonreportable)]
  6666.     [CustomQuery(QueryStyle.Nonqueryable)]
  6667.     public PurchaseOrderList PurchaseOrders
  6668.     {
  6669.       get
  6670.       {
  6671.         if (this.purchaseOrders == null)
  6672.         {
  6673.           this.purchaseOrders = new PurchaseOrderList();
  6674.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6675.             this.purchaseOrders.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6676.           this.purchaseOrders.parentObject = (object) this;
  6677.         }
  6678.         return this.purchaseOrders;
  6679.       }
  6680.       set
  6681.       {
  6682.         this.purchaseOrders = value;
  6683.         this.SetDataState("PurchaseOrders");
  6684.         if (value == null || value.parentObject != null)
  6685.           return;
  6686.         this.purchaseOrders.parentObject = (object) this;
  6687.       }
  6688.     }
  6689.  
  6690.     [CustomReporting(Visibility.Nonreportable)]
  6691.     [CustomQuery(QueryStyle.Nonqueryable)]
  6692.     public ReceivedSynchronizationList ReceivedSynchronizations
  6693.     {
  6694.       get
  6695.       {
  6696.         if (this.receivedSynchronizations == null)
  6697.         {
  6698.           this.receivedSynchronizations = new ReceivedSynchronizationList();
  6699.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6700.             this.receivedSynchronizations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6701.           this.receivedSynchronizations.parentObject = (object) this;
  6702.         }
  6703.         return this.receivedSynchronizations;
  6704.       }
  6705.       set
  6706.       {
  6707.         this.receivedSynchronizations = value;
  6708.         this.SetDataState("ReceivedSynchronizations");
  6709.         if (value == null || value.parentObject != null)
  6710.           return;
  6711.         this.receivedSynchronizations.parentObject = (object) this;
  6712.       }
  6713.     }
  6714.  
  6715.     [CustomReporting(Visibility.Nonreportable)]
  6716.     [CustomQuery(QueryStyle.Nonqueryable)]
  6717.     public RecordAttachmentList RecordAttachments
  6718.     {
  6719.       get
  6720.       {
  6721.         if (this.recordAttachments == null)
  6722.         {
  6723.           this.recordAttachments = new RecordAttachmentList();
  6724.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6725.             this.recordAttachments.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6726.           this.recordAttachments.parentObject = (object) this;
  6727.         }
  6728.         return this.recordAttachments;
  6729.       }
  6730.       set
  6731.       {
  6732.         this.recordAttachments = value;
  6733.         this.SetDataState("RecordAttachments");
  6734.         if (value == null || value.parentObject != null)
  6735.           return;
  6736.         this.recordAttachments.parentObject = (object) this;
  6737.       }
  6738.     }
  6739.  
  6740.     [CustomQuery(QueryStyle.Nonqueryable)]
  6741.     [CustomReporting(Visibility.Nonreportable)]
  6742.     public RecordNoteList RecordNotes
  6743.     {
  6744.       get
  6745.       {
  6746.         if (this.recordNotes == null)
  6747.         {
  6748.           this.recordNotes = new RecordNoteList();
  6749.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6750.             this.recordNotes.Reload("AddedByUserLoginID = '" + this.recordID.ToString() + "'");
  6751.           this.recordNotes.parentObject = (object) this;
  6752.         }
  6753.         return this.recordNotes;
  6754.       }
  6755.       set
  6756.       {
  6757.         this.recordNotes = value;
  6758.         this.SetDataState("RecordNotes");
  6759.         if (value == null || value.parentObject != null)
  6760.           return;
  6761.         this.recordNotes.parentObject = (object) this;
  6762.       }
  6763.     }
  6764.  
  6765.     [CustomQuery(QueryStyle.Nonqueryable)]
  6766.     [CustomReporting(Visibility.Nonreportable)]
  6767.     public RecordNoteList CreatedByUserLoginRecordNotes
  6768.     {
  6769.       get
  6770.       {
  6771.         if (this.createdByUserLoginRecordNotes == null)
  6772.         {
  6773.           this.createdByUserLoginRecordNotes = new RecordNoteList();
  6774.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6775.             this.createdByUserLoginRecordNotes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6776.           this.createdByUserLoginRecordNotes.parentObject = (object) this;
  6777.         }
  6778.         return this.createdByUserLoginRecordNotes;
  6779.       }
  6780.       set
  6781.       {
  6782.         this.createdByUserLoginRecordNotes = value;
  6783.         this.SetDataState("CreatedByUserLoginRecordNotes");
  6784.         if (value == null || value.parentObject != null)
  6785.           return;
  6786.         this.createdByUserLoginRecordNotes.parentObject = (object) this;
  6787.       }
  6788.     }
  6789.  
  6790.     [CustomQuery(QueryStyle.Nonqueryable)]
  6791.     [CustomReporting(Visibility.Nonreportable)]
  6792.     public RegisteredDepartmentList RegisteredDepartments
  6793.     {
  6794.       get
  6795.       {
  6796.         if (this.registeredDepartments == null)
  6797.         {
  6798.           this.registeredDepartments = new RegisteredDepartmentList();
  6799.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6800.             this.registeredDepartments.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6801.           this.registeredDepartments.parentObject = (object) this;
  6802.         }
  6803.         return this.registeredDepartments;
  6804.       }
  6805.       set
  6806.       {
  6807.         this.registeredDepartments = value;
  6808.         this.SetDataState("RegisteredDepartments");
  6809.         if (value == null || value.parentObject != null)
  6810.           return;
  6811.         this.registeredDepartments.parentObject = (object) this;
  6812.       }
  6813.     }
  6814.  
  6815.     [CustomQuery(QueryStyle.Nonqueryable)]
  6816.     [CustomReporting(Visibility.Nonreportable)]
  6817.     public RegularApparatusAssignmentList RegularApparatusAssignments
  6818.     {
  6819.       get
  6820.       {
  6821.         if (this.regularApparatusAssignments == null)
  6822.         {
  6823.           this.regularApparatusAssignments = new RegularApparatusAssignmentList();
  6824.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6825.             this.regularApparatusAssignments.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6826.           this.regularApparatusAssignments.parentObject = (object) this;
  6827.         }
  6828.         return this.regularApparatusAssignments;
  6829.       }
  6830.       set
  6831.       {
  6832.         this.regularApparatusAssignments = value;
  6833.         this.SetDataState("RegularApparatusAssignments");
  6834.         if (value == null || value.parentObject != null)
  6835.           return;
  6836.         this.regularApparatusAssignments.parentObject = (object) this;
  6837.       }
  6838.     }
  6839.  
  6840.     [CustomQuery(QueryStyle.Nonqueryable)]
  6841.     [CustomReporting(Visibility.Nonreportable)]
  6842.     public RegularAssignmentList RegularAssignments
  6843.     {
  6844.       get
  6845.       {
  6846.         if (this.regularAssignments == null)
  6847.         {
  6848.           this.regularAssignments = new RegularAssignmentList();
  6849.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6850.             this.regularAssignments.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6851.           this.regularAssignments.parentObject = (object) this;
  6852.         }
  6853.         return this.regularAssignments;
  6854.       }
  6855.       set
  6856.       {
  6857.         this.regularAssignments = value;
  6858.         this.SetDataState("RegularAssignments");
  6859.         if (value == null || value.parentObject != null)
  6860.           return;
  6861.         this.regularAssignments.parentObject = (object) this;
  6862.       }
  6863.     }
  6864.  
  6865.     [CustomReporting(Visibility.Nonreportable)]
  6866.     [CustomQuery(QueryStyle.Nonqueryable)]
  6867.     public RelatedInvestigationList RelatedInvestigations
  6868.     {
  6869.       get
  6870.       {
  6871.         if (this.relatedInvestigations == null)
  6872.         {
  6873.           this.relatedInvestigations = new RelatedInvestigationList();
  6874.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6875.             this.relatedInvestigations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6876.           this.relatedInvestigations.parentObject = (object) this;
  6877.         }
  6878.         return this.relatedInvestigations;
  6879.       }
  6880.       set
  6881.       {
  6882.         this.relatedInvestigations = value;
  6883.         this.SetDataState("RelatedInvestigations");
  6884.         if (value == null || value.parentObject != null)
  6885.           return;
  6886.         this.relatedInvestigations.parentObject = (object) this;
  6887.       }
  6888.     }
  6889.  
  6890.     [CustomQuery(QueryStyle.Nonqueryable)]
  6891.     [CustomReporting(Visibility.Nonreportable)]
  6892.     public ReportComponentFieldList ReportComponentFields
  6893.     {
  6894.       get
  6895.       {
  6896.         if (this.reportComponentFields == null)
  6897.         {
  6898.           this.reportComponentFields = new ReportComponentFieldList();
  6899.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6900.             this.reportComponentFields.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6901.           this.reportComponentFields.parentObject = (object) this;
  6902.         }
  6903.         return this.reportComponentFields;
  6904.       }
  6905.       set
  6906.       {
  6907.         this.reportComponentFields = value;
  6908.         this.SetDataState("ReportComponentFields");
  6909.         if (value == null || value.parentObject != null)
  6910.           return;
  6911.         this.reportComponentFields.parentObject = (object) this;
  6912.       }
  6913.     }
  6914.  
  6915.     [CustomReporting(Visibility.Nonreportable)]
  6916.     [CustomQuery(QueryStyle.Nonqueryable)]
  6917.     public ReportComponentFilterList ReportComponentFilters
  6918.     {
  6919.       get
  6920.       {
  6921.         if (this.reportComponentFilters == null)
  6922.         {
  6923.           this.reportComponentFilters = new ReportComponentFilterList();
  6924.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6925.             this.reportComponentFilters.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6926.           this.reportComponentFilters.parentObject = (object) this;
  6927.         }
  6928.         return this.reportComponentFilters;
  6929.       }
  6930.       set
  6931.       {
  6932.         this.reportComponentFilters = value;
  6933.         this.SetDataState("ReportComponentFilters");
  6934.         if (value == null || value.parentObject != null)
  6935.           return;
  6936.         this.reportComponentFilters.parentObject = (object) this;
  6937.       }
  6938.     }
  6939.  
  6940.     [CustomQuery(QueryStyle.Nonqueryable)]
  6941.     [CustomReporting(Visibility.Nonreportable)]
  6942.     public ReportComponentList ReportComponents
  6943.     {
  6944.       get
  6945.       {
  6946.         if (this.reportComponents == null)
  6947.         {
  6948.           this.reportComponents = new ReportComponentList();
  6949.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6950.             this.reportComponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6951.           this.reportComponents.parentObject = (object) this;
  6952.         }
  6953.         return this.reportComponents;
  6954.       }
  6955.       set
  6956.       {
  6957.         this.reportComponents = value;
  6958.         this.SetDataState("ReportComponents");
  6959.         if (value == null || value.parentObject != null)
  6960.           return;
  6961.         this.reportComponents.parentObject = (object) this;
  6962.       }
  6963.     }
  6964.  
  6965.     [CustomReporting(Visibility.Nonreportable)]
  6966.     [CustomQuery(QueryStyle.Nonqueryable)]
  6967.     public ReportFilterList ReportFilters
  6968.     {
  6969.       get
  6970.       {
  6971.         if (this.reportFilters == null)
  6972.         {
  6973.           this.reportFilters = new ReportFilterList();
  6974.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  6975.             this.reportFilters.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  6976.           this.reportFilters.parentObject = (object) this;
  6977.         }
  6978.         return this.reportFilters;
  6979.       }
  6980.       set
  6981.       {
  6982.         this.reportFilters = value;
  6983.         this.SetDataState("ReportFilters");
  6984.         if (value == null || value.parentObject != null)
  6985.           return;
  6986.         this.reportFilters.parentObject = (object) this;
  6987.       }
  6988.     }
  6989.  
  6990.     [CustomReporting(Visibility.Nonreportable)]
  6991.     [CustomQuery(QueryStyle.Nonqueryable)]
  6992.     public ReportLayoutList ReportLayouts
  6993.     {
  6994.       get
  6995.       {
  6996.         if (this.reportLayouts == null)
  6997.         {
  6998.           this.reportLayouts = new ReportLayoutList();
  6999.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7000.             this.reportLayouts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7001.           this.reportLayouts.parentObject = (object) this;
  7002.         }
  7003.         return this.reportLayouts;
  7004.       }
  7005.       set
  7006.       {
  7007.         this.reportLayouts = value;
  7008.         this.SetDataState("ReportLayouts");
  7009.         if (value == null || value.parentObject != null)
  7010.           return;
  7011.         this.reportLayouts.parentObject = (object) this;
  7012.       }
  7013.     }
  7014.  
  7015.     [CustomQuery(QueryStyle.Nonqueryable)]
  7016.     [CustomReporting(Visibility.Nonreportable)]
  7017.     public ReportRecipientList ReportRecipients
  7018.     {
  7019.       get
  7020.       {
  7021.         if (this.reportRecipients == null)
  7022.         {
  7023.           this.reportRecipients = new ReportRecipientList();
  7024.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7025.             this.reportRecipients.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7026.           this.reportRecipients.parentObject = (object) this;
  7027.         }
  7028.         return this.reportRecipients;
  7029.       }
  7030.       set
  7031.       {
  7032.         this.reportRecipients = value;
  7033.         this.SetDataState("ReportRecipients");
  7034.         if (value == null || value.parentObject != null)
  7035.           return;
  7036.         this.reportRecipients.parentObject = (object) this;
  7037.       }
  7038.     }
  7039.  
  7040.     [CustomReporting(Visibility.Nonreportable)]
  7041.     [CustomQuery(QueryStyle.Nonqueryable)]
  7042.     public ReportList Reports
  7043.     {
  7044.       get
  7045.       {
  7046.         if (this.reports == null)
  7047.         {
  7048.           this.reports = new ReportList();
  7049.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7050.             this.reports.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7051.           this.reports.parentObject = (object) this;
  7052.         }
  7053.         return this.reports;
  7054.       }
  7055.       set
  7056.       {
  7057.         this.reports = value;
  7058.         this.SetDataState("Reports");
  7059.         if (value == null || value.parentObject != null)
  7060.           return;
  7061.         this.reports.parentObject = (object) this;
  7062.       }
  7063.     }
  7064.  
  7065.     [CustomQuery(QueryStyle.Nonqueryable)]
  7066.     [CustomReporting(Visibility.Nonreportable)]
  7067.     public ReportScheduleList ReportSchedules
  7068.     {
  7069.       get
  7070.       {
  7071.         if (this.reportSchedules == null)
  7072.         {
  7073.           this.reportSchedules = new ReportScheduleList();
  7074.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7075.             this.reportSchedules.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7076.           this.reportSchedules.parentObject = (object) this;
  7077.         }
  7078.         return this.reportSchedules;
  7079.       }
  7080.       set
  7081.       {
  7082.         this.reportSchedules = value;
  7083.         this.SetDataState("ReportSchedules");
  7084.         if (value == null || value.parentObject != null)
  7085.           return;
  7086.         this.reportSchedules.parentObject = (object) this;
  7087.       }
  7088.     }
  7089.  
  7090.     [CustomReporting(Visibility.Nonreportable)]
  7091.     [CustomQuery(QueryStyle.Nonqueryable)]
  7092.     public ResourceProviderList ResourceProviders
  7093.     {
  7094.       get
  7095.       {
  7096.         if (this.resourceProviders == null)
  7097.         {
  7098.           this.resourceProviders = new ResourceProviderList();
  7099.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7100.             this.resourceProviders.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7101.           this.resourceProviders.parentObject = (object) this;
  7102.         }
  7103.         return this.resourceProviders;
  7104.       }
  7105.       set
  7106.       {
  7107.         this.resourceProviders = value;
  7108.         this.SetDataState("ResourceProviders");
  7109.         if (value == null || value.parentObject != null)
  7110.           return;
  7111.         this.resourceProviders.parentObject = (object) this;
  7112.       }
  7113.     }
  7114.  
  7115.     [CustomQuery(QueryStyle.Nonqueryable)]
  7116.     [CustomReporting(Visibility.Nonreportable)]
  7117.     public RespondingApparatusActionList RespondingApparatusActions
  7118.     {
  7119.       get
  7120.       {
  7121.         if (this.respondingApparatusActions == null)
  7122.         {
  7123.           this.respondingApparatusActions = new RespondingApparatusActionList();
  7124.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7125.             this.respondingApparatusActions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7126.           this.respondingApparatusActions.parentObject = (object) this;
  7127.         }
  7128.         return this.respondingApparatusActions;
  7129.       }
  7130.       set
  7131.       {
  7132.         this.respondingApparatusActions = value;
  7133.         this.SetDataState("RespondingApparatusActions");
  7134.         if (value == null || value.parentObject != null)
  7135.           return;
  7136.         this.respondingApparatusActions.parentObject = (object) this;
  7137.       }
  7138.     }
  7139.  
  7140.     [CustomQuery(QueryStyle.Nonqueryable)]
  7141.     [CustomReporting(Visibility.Nonreportable)]
  7142.     public RespondingApparatusRecordList RespondingApparatusRecords
  7143.     {
  7144.       get
  7145.       {
  7146.         if (this.respondingApparatusRecords == null)
  7147.         {
  7148.           this.respondingApparatusRecords = new RespondingApparatusRecordList();
  7149.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7150.             this.respondingApparatusRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7151.           this.respondingApparatusRecords.parentObject = (object) this;
  7152.         }
  7153.         return this.respondingApparatusRecords;
  7154.       }
  7155.       set
  7156.       {
  7157.         this.respondingApparatusRecords = value;
  7158.         this.SetDataState("RespondingApparatusRecords");
  7159.         if (value == null || value.parentObject != null)
  7160.           return;
  7161.         this.respondingApparatusRecords.parentObject = (object) this;
  7162.       }
  7163.     }
  7164.  
  7165.     [CustomQuery(QueryStyle.Nonqueryable)]
  7166.     [CustomReporting(Visibility.Nonreportable)]
  7167.     public RespondingPersonnelActionList RespondingPersonnelActions
  7168.     {
  7169.       get
  7170.       {
  7171.         if (this.respondingPersonnelActions == null)
  7172.         {
  7173.           this.respondingPersonnelActions = new RespondingPersonnelActionList();
  7174.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7175.             this.respondingPersonnelActions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7176.           this.respondingPersonnelActions.parentObject = (object) this;
  7177.         }
  7178.         return this.respondingPersonnelActions;
  7179.       }
  7180.       set
  7181.       {
  7182.         this.respondingPersonnelActions = value;
  7183.         this.SetDataState("RespondingPersonnelActions");
  7184.         if (value == null || value.parentObject != null)
  7185.           return;
  7186.         this.respondingPersonnelActions.parentObject = (object) this;
  7187.       }
  7188.     }
  7189.  
  7190.     [CustomQuery(QueryStyle.Nonqueryable)]
  7191.     [CustomReporting(Visibility.Nonreportable)]
  7192.     public RespondingPersonnelRecordList RespondingPersonnelRecords
  7193.     {
  7194.       get
  7195.       {
  7196.         if (this.respondingPersonnelRecords == null)
  7197.         {
  7198.           this.respondingPersonnelRecords = new RespondingPersonnelRecordList();
  7199.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7200.             this.respondingPersonnelRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7201.           this.respondingPersonnelRecords.parentObject = (object) this;
  7202.         }
  7203.         return this.respondingPersonnelRecords;
  7204.       }
  7205.       set
  7206.       {
  7207.         this.respondingPersonnelRecords = value;
  7208.         this.SetDataState("RespondingPersonnelRecords");
  7209.         if (value == null || value.parentObject != null)
  7210.           return;
  7211.         this.respondingPersonnelRecords.parentObject = (object) this;
  7212.       }
  7213.     }
  7214.  
  7215.     [CustomQuery(QueryStyle.Nonqueryable)]
  7216.     [CustomReporting(Visibility.Nonreportable)]
  7217.     public RotationList Rotations
  7218.     {
  7219.       get
  7220.       {
  7221.         if (this.rotations == null)
  7222.         {
  7223.           this.rotations = new RotationList();
  7224.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7225.             this.rotations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7226.           this.rotations.parentObject = (object) this;
  7227.         }
  7228.         return this.rotations;
  7229.       }
  7230.       set
  7231.       {
  7232.         this.rotations = value;
  7233.         this.SetDataState("Rotations");
  7234.         if (value == null || value.parentObject != null)
  7235.           return;
  7236.         this.rotations.parentObject = (object) this;
  7237.       }
  7238.     }
  7239.  
  7240.     [CustomReporting(Visibility.Nonreportable)]
  7241.     [CustomQuery(QueryStyle.Nonqueryable)]
  7242.     public SafetyEquipmentRecordList SafetyEquipmentRecords
  7243.     {
  7244.       get
  7245.       {
  7246.         if (this.safetyEquipmentRecords == null)
  7247.         {
  7248.           this.safetyEquipmentRecords = new SafetyEquipmentRecordList();
  7249.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7250.             this.safetyEquipmentRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7251.           this.safetyEquipmentRecords.parentObject = (object) this;
  7252.         }
  7253.         return this.safetyEquipmentRecords;
  7254.       }
  7255.       set
  7256.       {
  7257.         this.safetyEquipmentRecords = value;
  7258.         this.SetDataState("SafetyEquipmentRecords");
  7259.         if (value == null || value.parentObject != null)
  7260.           return;
  7261.         this.safetyEquipmentRecords.parentObject = (object) this;
  7262.       }
  7263.     }
  7264.  
  7265.     [CustomQuery(QueryStyle.Nonqueryable)]
  7266.     [CustomReporting(Visibility.Nonreportable)]
  7267.     public SceneLegalAccessDetailList SceneLegalAccessDetails
  7268.     {
  7269.       get
  7270.       {
  7271.         if (this.sceneLegalAccessDetails == null)
  7272.         {
  7273.           this.sceneLegalAccessDetails = new SceneLegalAccessDetailList();
  7274.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7275.             this.sceneLegalAccessDetails.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7276.           this.sceneLegalAccessDetails.parentObject = (object) this;
  7277.         }
  7278.         return this.sceneLegalAccessDetails;
  7279.       }
  7280.       set
  7281.       {
  7282.         this.sceneLegalAccessDetails = value;
  7283.         this.SetDataState("SceneLegalAccessDetails");
  7284.         if (value == null || value.parentObject != null)
  7285.           return;
  7286.         this.sceneLegalAccessDetails.parentObject = (object) this;
  7287.       }
  7288.     }
  7289.  
  7290.     [CustomQuery(QueryStyle.Nonqueryable)]
  7291.     [CustomReporting(Visibility.Nonreportable)]
  7292.     public ScheduleRequirementList ScheduleRequirements
  7293.     {
  7294.       get
  7295.       {
  7296.         if (this.scheduleRequirements == null)
  7297.         {
  7298.           this.scheduleRequirements = new ScheduleRequirementList();
  7299.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7300.             this.scheduleRequirements.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7301.           this.scheduleRequirements.parentObject = (object) this;
  7302.         }
  7303.         return this.scheduleRequirements;
  7304.       }
  7305.       set
  7306.       {
  7307.         this.scheduleRequirements = value;
  7308.         this.SetDataState("ScheduleRequirements");
  7309.         if (value == null || value.parentObject != null)
  7310.           return;
  7311.         this.scheduleRequirements.parentObject = (object) this;
  7312.       }
  7313.     }
  7314.  
  7315.     [CustomQuery(QueryStyle.Nonqueryable)]
  7316.     [CustomReporting(Visibility.Nonreportable)]
  7317.     public ScheduleList Schedules
  7318.     {
  7319.       get
  7320.       {
  7321.         if (this.schedules == null)
  7322.         {
  7323.           this.schedules = new ScheduleList();
  7324.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7325.             this.schedules.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7326.           this.schedules.parentObject = (object) this;
  7327.         }
  7328.         return this.schedules;
  7329.       }
  7330.       set
  7331.       {
  7332.         this.schedules = value;
  7333.         this.SetDataState("Schedules");
  7334.         if (value == null || value.parentObject != null)
  7335.           return;
  7336.         this.schedules.parentObject = (object) this;
  7337.       }
  7338.     }
  7339.  
  7340.     [CustomReporting(Visibility.Nonreportable)]
  7341.     [CustomQuery(QueryStyle.Nonqueryable)]
  7342.     public SchedulingPageLayoutList SchedulingPageLayouts
  7343.     {
  7344.       get
  7345.       {
  7346.         if (this.schedulingPageLayouts == null)
  7347.         {
  7348.           this.schedulingPageLayouts = new SchedulingPageLayoutList();
  7349.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7350.             this.schedulingPageLayouts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7351.           this.schedulingPageLayouts.parentObject = (object) this;
  7352.         }
  7353.         return this.schedulingPageLayouts;
  7354.       }
  7355.       set
  7356.       {
  7357.         this.schedulingPageLayouts = value;
  7358.         this.SetDataState("SchedulingPageLayouts");
  7359.         if (value == null || value.parentObject != null)
  7360.           return;
  7361.         this.schedulingPageLayouts.parentObject = (object) this;
  7362.       }
  7363.     }
  7364.  
  7365.     [CustomQuery(QueryStyle.Nonqueryable)]
  7366.     [CustomReporting(Visibility.Nonreportable)]
  7367.     public SchedulingPageLayoutList UserLoginSchedulingPageLayouts
  7368.     {
  7369.       get
  7370.       {
  7371.         if (this.userLoginSchedulingPageLayouts == null)
  7372.         {
  7373.           this.userLoginSchedulingPageLayouts = new SchedulingPageLayoutList();
  7374.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7375.             this.userLoginSchedulingPageLayouts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7376.           this.userLoginSchedulingPageLayouts.parentObject = (object) this;
  7377.         }
  7378.         return this.userLoginSchedulingPageLayouts;
  7379.       }
  7380.       set
  7381.       {
  7382.         this.userLoginSchedulingPageLayouts = value;
  7383.         this.SetDataState("UserLoginSchedulingPageLayouts");
  7384.         if (value == null || value.parentObject != null)
  7385.           return;
  7386.         this.userLoginSchedulingPageLayouts.parentObject = (object) this;
  7387.       }
  7388.     }
  7389.  
  7390.     [CustomReporting(Visibility.Nonreportable)]
  7391.     [CustomQuery(QueryStyle.Nonqueryable)]
  7392.     public ShiftRotationList ShiftRotations
  7393.     {
  7394.       get
  7395.       {
  7396.         if (this.shiftRotations == null)
  7397.         {
  7398.           this.shiftRotations = new ShiftRotationList();
  7399.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7400.             this.shiftRotations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7401.           this.shiftRotations.parentObject = (object) this;
  7402.         }
  7403.         return this.shiftRotations;
  7404.       }
  7405.       set
  7406.       {
  7407.         this.shiftRotations = value;
  7408.         this.SetDataState("ShiftRotations");
  7409.         if (value == null || value.parentObject != null)
  7410.           return;
  7411.         this.shiftRotations.parentObject = (object) this;
  7412.       }
  7413.     }
  7414.  
  7415.     [CustomReporting(Visibility.Nonreportable)]
  7416.     [CustomQuery(QueryStyle.Nonqueryable)]
  7417.     public ShiftList Shifts
  7418.     {
  7419.       get
  7420.       {
  7421.         if (this.shifts == null)
  7422.         {
  7423.           this.shifts = new ShiftList();
  7424.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7425.             this.shifts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7426.           this.shifts.parentObject = (object) this;
  7427.         }
  7428.         return this.shifts;
  7429.       }
  7430.       set
  7431.       {
  7432.         this.shifts = value;
  7433.         this.SetDataState("Shifts");
  7434.         if (value == null || value.parentObject != null)
  7435.           return;
  7436.         this.shifts.parentObject = (object) this;
  7437.       }
  7438.     }
  7439.  
  7440.     [CustomQuery(QueryStyle.Nonqueryable)]
  7441.     [CustomReporting(Visibility.Nonreportable)]
  7442.     public SignatureList Signatures
  7443.     {
  7444.       get
  7445.       {
  7446.         if (this.signatures == null)
  7447.         {
  7448.           this.signatures = new SignatureList();
  7449.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7450.             this.signatures.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7451.           this.signatures.parentObject = (object) this;
  7452.         }
  7453.         return this.signatures;
  7454.       }
  7455.       set
  7456.       {
  7457.         this.signatures = value;
  7458.         this.SetDataState("Signatures");
  7459.         if (value == null || value.parentObject != null)
  7460.           return;
  7461.         this.signatures.parentObject = (object) this;
  7462.       }
  7463.     }
  7464.  
  7465.     [CustomReporting(Visibility.Nonreportable)]
  7466.     [CustomQuery(QueryStyle.Nonqueryable)]
  7467.     public SkillComponentList SkillComponents
  7468.     {
  7469.       get
  7470.       {
  7471.         if (this.skillComponents == null)
  7472.         {
  7473.           this.skillComponents = new SkillComponentList();
  7474.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7475.             this.skillComponents.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7476.           this.skillComponents.parentObject = (object) this;
  7477.         }
  7478.         return this.skillComponents;
  7479.       }
  7480.       set
  7481.       {
  7482.         this.skillComponents = value;
  7483.         this.SetDataState("SkillComponents");
  7484.         if (value == null || value.parentObject != null)
  7485.           return;
  7486.         this.skillComponents.parentObject = (object) this;
  7487.       }
  7488.     }
  7489.  
  7490.     [CustomQuery(QueryStyle.Nonqueryable)]
  7491.     [CustomReporting(Visibility.Nonreportable)]
  7492.     public SkillList Skills
  7493.     {
  7494.       get
  7495.       {
  7496.         if (this.skills == null)
  7497.         {
  7498.           this.skills = new SkillList();
  7499.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7500.             this.skills.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7501.           this.skills.parentObject = (object) this;
  7502.         }
  7503.         return this.skills;
  7504.       }
  7505.       set
  7506.       {
  7507.         this.skills = value;
  7508.         this.SetDataState("Skills");
  7509.         if (value == null || value.parentObject != null)
  7510.           return;
  7511.         this.skills.parentObject = (object) this;
  7512.       }
  7513.     }
  7514.  
  7515.     [CustomReporting(Visibility.Nonreportable)]
  7516.     [CustomQuery(QueryStyle.Nonqueryable)]
  7517.     public SpecificPropertyUsageList SpecificPropertyUsages
  7518.     {
  7519.       get
  7520.       {
  7521.         if (this.specificPropertyUsages == null)
  7522.         {
  7523.           this.specificPropertyUsages = new SpecificPropertyUsageList();
  7524.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7525.             this.specificPropertyUsages.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7526.           this.specificPropertyUsages.parentObject = (object) this;
  7527.         }
  7528.         return this.specificPropertyUsages;
  7529.       }
  7530.       set
  7531.       {
  7532.         this.specificPropertyUsages = value;
  7533.         this.SetDataState("SpecificPropertyUsages");
  7534.         if (value == null || value.parentObject != null)
  7535.           return;
  7536.         this.specificPropertyUsages.parentObject = (object) this;
  7537.       }
  7538.     }
  7539.  
  7540.     [CustomQuery(QueryStyle.Nonqueryable)]
  7541.     [CustomReporting(Visibility.Nonreportable)]
  7542.     public StateDictionaryEntryList StateDictionaryEntries
  7543.     {
  7544.       get
  7545.       {
  7546.         if (this.stateDictionaryEntries == null)
  7547.         {
  7548.           this.stateDictionaryEntries = new StateDictionaryEntryList();
  7549.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7550.             this.stateDictionaryEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7551.           this.stateDictionaryEntries.parentObject = (object) this;
  7552.         }
  7553.         return this.stateDictionaryEntries;
  7554.       }
  7555.       set
  7556.       {
  7557.         this.stateDictionaryEntries = value;
  7558.         this.SetDataState("StateDictionaryEntries");
  7559.         if (value == null || value.parentObject != null)
  7560.           return;
  7561.         this.stateDictionaryEntries.parentObject = (object) this;
  7562.       }
  7563.     }
  7564.  
  7565.     [CustomReporting(Visibility.Nonreportable)]
  7566.     [CustomQuery(QueryStyle.Nonqueryable)]
  7567.     public StationContactList StationContacts
  7568.     {
  7569.       get
  7570.       {
  7571.         if (this.stationContacts == null)
  7572.         {
  7573.           this.stationContacts = new StationContactList();
  7574.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7575.             this.stationContacts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7576.           this.stationContacts.parentObject = (object) this;
  7577.         }
  7578.         return this.stationContacts;
  7579.       }
  7580.       set
  7581.       {
  7582.         this.stationContacts = value;
  7583.         this.SetDataState("StationContacts");
  7584.         if (value == null || value.parentObject != null)
  7585.           return;
  7586.         this.stationContacts.parentObject = (object) this;
  7587.       }
  7588.     }
  7589.  
  7590.     [CustomReporting(Visibility.Nonreportable)]
  7591.     [CustomQuery(QueryStyle.Nonqueryable)]
  7592.     public StationLoginList StationLogins
  7593.     {
  7594.       get
  7595.       {
  7596.         if (this.stationLogins == null)
  7597.         {
  7598.           this.stationLogins = new StationLoginList();
  7599.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7600.             this.stationLogins.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7601.           this.stationLogins.parentObject = (object) this;
  7602.         }
  7603.         return this.stationLogins;
  7604.       }
  7605.       set
  7606.       {
  7607.         this.stationLogins = value;
  7608.         this.SetDataState("StationLogins");
  7609.         if (value == null || value.parentObject != null)
  7610.           return;
  7611.         this.stationLogins.parentObject = (object) this;
  7612.       }
  7613.     }
  7614.  
  7615.     [CustomQuery(QueryStyle.Nonqueryable)]
  7616.     [CustomReporting(Visibility.Nonreportable)]
  7617.     public StationLoginList UserLoginStationLogins
  7618.     {
  7619.       get
  7620.       {
  7621.         if (this.userLoginStationLogins == null)
  7622.         {
  7623.           this.userLoginStationLogins = new StationLoginList();
  7624.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7625.             this.userLoginStationLogins.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7626.           this.userLoginStationLogins.parentObject = (object) this;
  7627.         }
  7628.         return this.userLoginStationLogins;
  7629.       }
  7630.       set
  7631.       {
  7632.         this.userLoginStationLogins = value;
  7633.         this.SetDataState("UserLoginStationLogins");
  7634.         if (value == null || value.parentObject != null)
  7635.           return;
  7636.         this.userLoginStationLogins.parentObject = (object) this;
  7637.       }
  7638.     }
  7639.  
  7640.     [CustomQuery(QueryStyle.Nonqueryable)]
  7641.     [CustomReporting(Visibility.Nonreportable)]
  7642.     public StationList Stations
  7643.     {
  7644.       get
  7645.       {
  7646.         if (this.stations == null)
  7647.         {
  7648.           this.stations = new StationList();
  7649.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7650.             this.stations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7651.           this.stations.parentObject = (object) this;
  7652.         }
  7653.         return this.stations;
  7654.       }
  7655.       set
  7656.       {
  7657.         this.stations = value;
  7658.         this.SetDataState("Stations");
  7659.         if (value == null || value.parentObject != null)
  7660.           return;
  7661.         this.stations.parentObject = (object) this;
  7662.       }
  7663.     }
  7664.  
  7665.     [CustomQuery(QueryStyle.Nonqueryable)]
  7666.     [CustomReporting(Visibility.Nonreportable)]
  7667.     public StorageAreaList StorageAreas
  7668.     {
  7669.       get
  7670.       {
  7671.         if (this.storageAreas == null)
  7672.         {
  7673.           this.storageAreas = new StorageAreaList();
  7674.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7675.             this.storageAreas.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7676.           this.storageAreas.parentObject = (object) this;
  7677.         }
  7678.         return this.storageAreas;
  7679.       }
  7680.       set
  7681.       {
  7682.         this.storageAreas = value;
  7683.         this.SetDataState("StorageAreas");
  7684.         if (value == null || value.parentObject != null)
  7685.           return;
  7686.         this.storageAreas.parentObject = (object) this;
  7687.       }
  7688.     }
  7689.  
  7690.     [CustomReporting(Visibility.Nonreportable)]
  7691.     [CustomQuery(QueryStyle.Nonqueryable)]
  7692.     public StreetDictionaryEntryList StreetDictionaryEntries
  7693.     {
  7694.       get
  7695.       {
  7696.         if (this.streetDictionaryEntries == null)
  7697.         {
  7698.           this.streetDictionaryEntries = new StreetDictionaryEntryList();
  7699.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7700.             this.streetDictionaryEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7701.           this.streetDictionaryEntries.parentObject = (object) this;
  7702.         }
  7703.         return this.streetDictionaryEntries;
  7704.       }
  7705.       set
  7706.       {
  7707.         this.streetDictionaryEntries = value;
  7708.         this.SetDataState("StreetDictionaryEntries");
  7709.         if (value == null || value.parentObject != null)
  7710.           return;
  7711.         this.streetDictionaryEntries.parentObject = (object) this;
  7712.       }
  7713.     }
  7714.  
  7715.     [CustomQuery(QueryStyle.Nonqueryable)]
  7716.     [CustomReporting(Visibility.Nonreportable)]
  7717.     public SupplyItemLevelList SupplyItemLevels
  7718.     {
  7719.       get
  7720.       {
  7721.         if (this.supplyItemLevels == null)
  7722.         {
  7723.           this.supplyItemLevels = new SupplyItemLevelList();
  7724.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7725.             this.supplyItemLevels.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7726.           this.supplyItemLevels.parentObject = (object) this;
  7727.         }
  7728.         return this.supplyItemLevels;
  7729.       }
  7730.       set
  7731.       {
  7732.         this.supplyItemLevels = value;
  7733.         this.SetDataState("SupplyItemLevels");
  7734.         if (value == null || value.parentObject != null)
  7735.           return;
  7736.         this.supplyItemLevels.parentObject = (object) this;
  7737.       }
  7738.     }
  7739.  
  7740.     [CustomReporting(Visibility.Nonreportable)]
  7741.     [CustomQuery(QueryStyle.Nonqueryable)]
  7742.     public SupplyItemPurchaseDistributionList SupplyItemPurchaseDistributions
  7743.     {
  7744.       get
  7745.       {
  7746.         if (this.supplyItemPurchaseDistributions == null)
  7747.         {
  7748.           this.supplyItemPurchaseDistributions = new SupplyItemPurchaseDistributionList();
  7749.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7750.             this.supplyItemPurchaseDistributions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7751.           this.supplyItemPurchaseDistributions.parentObject = (object) this;
  7752.         }
  7753.         return this.supplyItemPurchaseDistributions;
  7754.       }
  7755.       set
  7756.       {
  7757.         this.supplyItemPurchaseDistributions = value;
  7758.         this.SetDataState("SupplyItemPurchaseDistributions");
  7759.         if (value == null || value.parentObject != null)
  7760.           return;
  7761.         this.supplyItemPurchaseDistributions.parentObject = (object) this;
  7762.       }
  7763.     }
  7764.  
  7765.     [CustomReporting(Visibility.Nonreportable)]
  7766.     [CustomQuery(QueryStyle.Nonqueryable)]
  7767.     public SupplyItemPurchaseList SupplyItemPurchases
  7768.     {
  7769.       get
  7770.       {
  7771.         if (this.supplyItemPurchases == null)
  7772.         {
  7773.           this.supplyItemPurchases = new SupplyItemPurchaseList();
  7774.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7775.             this.supplyItemPurchases.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7776.           this.supplyItemPurchases.parentObject = (object) this;
  7777.         }
  7778.         return this.supplyItemPurchases;
  7779.       }
  7780.       set
  7781.       {
  7782.         this.supplyItemPurchases = value;
  7783.         this.SetDataState("SupplyItemPurchases");
  7784.         if (value == null || value.parentObject != null)
  7785.           return;
  7786.         this.supplyItemPurchases.parentObject = (object) this;
  7787.       }
  7788.     }
  7789.  
  7790.     [CustomQuery(QueryStyle.Nonqueryable)]
  7791.     [CustomReporting(Visibility.Nonreportable)]
  7792.     public SupplyItemList SupplyItems
  7793.     {
  7794.       get
  7795.       {
  7796.         if (this.supplyItems == null)
  7797.         {
  7798.           this.supplyItems = new SupplyItemList();
  7799.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7800.             this.supplyItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7801.           this.supplyItems.parentObject = (object) this;
  7802.         }
  7803.         return this.supplyItems;
  7804.       }
  7805.       set
  7806.       {
  7807.         this.supplyItems = value;
  7808.         this.SetDataState("SupplyItems");
  7809.         if (value == null || value.parentObject != null)
  7810.           return;
  7811.         this.supplyItems.parentObject = (object) this;
  7812.       }
  7813.     }
  7814.  
  7815.     [CustomReporting(Visibility.Nonreportable)]
  7816.     [CustomQuery(QueryStyle.Nonqueryable)]
  7817.     public SupplyItemTypeList SupplyItemTypes
  7818.     {
  7819.       get
  7820.       {
  7821.         if (this.supplyItemTypes == null)
  7822.         {
  7823.           this.supplyItemTypes = new SupplyItemTypeList();
  7824.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7825.             this.supplyItemTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7826.           this.supplyItemTypes.parentObject = (object) this;
  7827.         }
  7828.         return this.supplyItemTypes;
  7829.       }
  7830.       set
  7831.       {
  7832.         this.supplyItemTypes = value;
  7833.         this.SetDataState("SupplyItemTypes");
  7834.         if (value == null || value.parentObject != null)
  7835.           return;
  7836.         this.supplyItemTypes.parentObject = (object) this;
  7837.       }
  7838.     }
  7839.  
  7840.     [CustomQuery(QueryStyle.Nonqueryable)]
  7841.     [CustomReporting(Visibility.Nonreportable)]
  7842.     public SupplyItemUsageList SupplyItemUsages
  7843.     {
  7844.       get
  7845.       {
  7846.         if (this.supplyItemUsages == null)
  7847.         {
  7848.           this.supplyItemUsages = new SupplyItemUsageList();
  7849.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7850.             this.supplyItemUsages.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7851.           this.supplyItemUsages.parentObject = (object) this;
  7852.         }
  7853.         return this.supplyItemUsages;
  7854.       }
  7855.       set
  7856.       {
  7857.         this.supplyItemUsages = value;
  7858.         this.SetDataState("SupplyItemUsages");
  7859.         if (value == null || value.parentObject != null)
  7860.           return;
  7861.         this.supplyItemUsages.parentObject = (object) this;
  7862.       }
  7863.     }
  7864.  
  7865.     [CustomReporting(Visibility.Nonreportable)]
  7866.     [CustomQuery(QueryStyle.Nonqueryable)]
  7867.     public SuppressionFactorList SuppressionFactors
  7868.     {
  7869.       get
  7870.       {
  7871.         if (this.suppressionFactors == null)
  7872.         {
  7873.           this.suppressionFactors = new SuppressionFactorList();
  7874.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7875.             this.suppressionFactors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7876.           this.suppressionFactors.parentObject = (object) this;
  7877.         }
  7878.         return this.suppressionFactors;
  7879.       }
  7880.       set
  7881.       {
  7882.         this.suppressionFactors = value;
  7883.         this.SetDataState("SuppressionFactors");
  7884.         if (value == null || value.parentObject != null)
  7885.           return;
  7886.         this.suppressionFactors.parentObject = (object) this;
  7887.       }
  7888.     }
  7889.  
  7890.     [CustomQuery(QueryStyle.Nonqueryable)]
  7891.     [CustomReporting(Visibility.Nonreportable)]
  7892.     public SuspectedMotivationFactorList SuspectedMotivationFactors
  7893.     {
  7894.       get
  7895.       {
  7896.         if (this.suspectedMotivationFactors == null)
  7897.         {
  7898.           this.suspectedMotivationFactors = new SuspectedMotivationFactorList();
  7899.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7900.             this.suspectedMotivationFactors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7901.           this.suspectedMotivationFactors.parentObject = (object) this;
  7902.         }
  7903.         return this.suspectedMotivationFactors;
  7904.       }
  7905.       set
  7906.       {
  7907.         this.suspectedMotivationFactors = value;
  7908.         this.SetDataState("SuspectedMotivationFactors");
  7909.         if (value == null || value.parentObject != null)
  7910.           return;
  7911.         this.suspectedMotivationFactors.parentObject = (object) this;
  7912.       }
  7913.     }
  7914.  
  7915.     [CustomQuery(QueryStyle.Nonqueryable)]
  7916.     [CustomReporting(Visibility.Nonreportable)]
  7917.     public SuspectList Suspects
  7918.     {
  7919.       get
  7920.       {
  7921.         if (this.suspects == null)
  7922.         {
  7923.           this.suspects = new SuspectList();
  7924.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7925.             this.suspects.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7926.           this.suspects.parentObject = (object) this;
  7927.         }
  7928.         return this.suspects;
  7929.       }
  7930.       set
  7931.       {
  7932.         this.suspects = value;
  7933.         this.SetDataState("Suspects");
  7934.         if (value == null || value.parentObject != null)
  7935.           return;
  7936.         this.suspects.parentObject = (object) this;
  7937.       }
  7938.     }
  7939.  
  7940.     [CustomQuery(QueryStyle.Nonqueryable)]
  7941.     [CustomReporting(Visibility.Nonreportable)]
  7942.     public SynchronizationRecordList SynchronizationRecords
  7943.     {
  7944.       get
  7945.       {
  7946.         if (this.synchronizationRecords == null)
  7947.         {
  7948.           this.synchronizationRecords = new SynchronizationRecordList();
  7949.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7950.             this.synchronizationRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7951.           this.synchronizationRecords.parentObject = (object) this;
  7952.         }
  7953.         return this.synchronizationRecords;
  7954.       }
  7955.       set
  7956.       {
  7957.         this.synchronizationRecords = value;
  7958.         this.SetDataState("SynchronizationRecords");
  7959.         if (value == null || value.parentObject != null)
  7960.           return;
  7961.         this.synchronizationRecords.parentObject = (object) this;
  7962.       }
  7963.     }
  7964.  
  7965.     [CustomReporting(Visibility.Nonreportable)]
  7966.     [CustomQuery(QueryStyle.Nonqueryable)]
  7967.     public SynchronizerStatusList SynchronizerStatuses
  7968.     {
  7969.       get
  7970.       {
  7971.         if (this.synchronizerStatuses == null)
  7972.         {
  7973.           this.synchronizerStatuses = new SynchronizerStatusList();
  7974.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  7975.             this.synchronizerStatuses.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  7976.           this.synchronizerStatuses.parentObject = (object) this;
  7977.         }
  7978.         return this.synchronizerStatuses;
  7979.       }
  7980.       set
  7981.       {
  7982.         this.synchronizerStatuses = value;
  7983.         this.SetDataState("SynchronizerStatuses");
  7984.         if (value == null || value.parentObject != null)
  7985.           return;
  7986.         this.synchronizerStatuses.parentObject = (object) this;
  7987.       }
  7988.     }
  7989.  
  7990.     [CustomQuery(QueryStyle.Nonqueryable)]
  7991.     [CustomReporting(Visibility.Nonreportable)]
  7992.     public TableLookupList TableLookups
  7993.     {
  7994.       get
  7995.       {
  7996.         if (this.tableLookups == null)
  7997.         {
  7998.           this.tableLookups = new TableLookupList();
  7999.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8000.             this.tableLookups.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8001.           this.tableLookups.parentObject = (object) this;
  8002.         }
  8003.         return this.tableLookups;
  8004.       }
  8005.       set
  8006.       {
  8007.         this.tableLookups = value;
  8008.         this.SetDataState("TableLookups");
  8009.         if (value == null || value.parentObject != null)
  8010.           return;
  8011.         this.tableLookups.parentObject = (object) this;
  8012.       }
  8013.     }
  8014.  
  8015.     [CustomQuery(QueryStyle.Nonqueryable)]
  8016.     [CustomReporting(Visibility.Nonreportable)]
  8017.     public TrainingApparatusRecordList TrainingApparatusRecords
  8018.     {
  8019.       get
  8020.       {
  8021.         if (this.trainingApparatusRecords == null)
  8022.         {
  8023.           this.trainingApparatusRecords = new TrainingApparatusRecordList();
  8024.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8025.             this.trainingApparatusRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8026.           this.trainingApparatusRecords.parentObject = (object) this;
  8027.         }
  8028.         return this.trainingApparatusRecords;
  8029.       }
  8030.       set
  8031.       {
  8032.         this.trainingApparatusRecords = value;
  8033.         this.SetDataState("TrainingApparatusRecords");
  8034.         if (value == null || value.parentObject != null)
  8035.           return;
  8036.         this.trainingApparatusRecords.parentObject = (object) this;
  8037.       }
  8038.     }
  8039.  
  8040.     [CustomReporting(Visibility.Nonreportable)]
  8041.     [CustomQuery(QueryStyle.Nonqueryable)]
  8042.     public TrainingCategoryList TrainingCategories
  8043.     {
  8044.       get
  8045.       {
  8046.         if (this.trainingCategories == null)
  8047.         {
  8048.           this.trainingCategories = new TrainingCategoryList();
  8049.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8050.             this.trainingCategories.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8051.           this.trainingCategories.parentObject = (object) this;
  8052.         }
  8053.         return this.trainingCategories;
  8054.       }
  8055.       set
  8056.       {
  8057.         this.trainingCategories = value;
  8058.         this.SetDataState("TrainingCategories");
  8059.         if (value == null || value.parentObject != null)
  8060.           return;
  8061.         this.trainingCategories.parentObject = (object) this;
  8062.       }
  8063.     }
  8064.  
  8065.     [CustomQuery(QueryStyle.Nonqueryable)]
  8066.     [CustomReporting(Visibility.Nonreportable)]
  8067.     public TrainingCertificateDistributionList TrainingCertificateDistributions
  8068.     {
  8069.       get
  8070.       {
  8071.         if (this.trainingCertificateDistributions == null)
  8072.         {
  8073.           this.trainingCertificateDistributions = new TrainingCertificateDistributionList();
  8074.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8075.             this.trainingCertificateDistributions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8076.           this.trainingCertificateDistributions.parentObject = (object) this;
  8077.         }
  8078.         return this.trainingCertificateDistributions;
  8079.       }
  8080.       set
  8081.       {
  8082.         this.trainingCertificateDistributions = value;
  8083.         this.SetDataState("TrainingCertificateDistributions");
  8084.         if (value == null || value.parentObject != null)
  8085.           return;
  8086.         this.trainingCertificateDistributions.parentObject = (object) this;
  8087.       }
  8088.     }
  8089.  
  8090.     [CustomQuery(QueryStyle.Nonqueryable)]
  8091.     [CustomReporting(Visibility.Nonreportable)]
  8092.     public TrainingClassAttendanceRecordList TrainingClassAttendanceRecords
  8093.     {
  8094.       get
  8095.       {
  8096.         if (this.trainingClassAttendanceRecords == null)
  8097.         {
  8098.           this.trainingClassAttendanceRecords = new TrainingClassAttendanceRecordList();
  8099.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8100.             this.trainingClassAttendanceRecords.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8101.           this.trainingClassAttendanceRecords.parentObject = (object) this;
  8102.         }
  8103.         return this.trainingClassAttendanceRecords;
  8104.       }
  8105.       set
  8106.       {
  8107.         this.trainingClassAttendanceRecords = value;
  8108.         this.SetDataState("TrainingClassAttendanceRecords");
  8109.         if (value == null || value.parentObject != null)
  8110.           return;
  8111.         this.trainingClassAttendanceRecords.parentObject = (object) this;
  8112.       }
  8113.     }
  8114.  
  8115.     [CustomReporting(Visibility.Nonreportable)]
  8116.     [CustomQuery(QueryStyle.Nonqueryable)]
  8117.     public TrainingClassAutoAssignmentList TrainingClassAutoAssignments
  8118.     {
  8119.       get
  8120.       {
  8121.         if (this.trainingClassAutoAssignments == null)
  8122.         {
  8123.           this.trainingClassAutoAssignments = new TrainingClassAutoAssignmentList();
  8124.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8125.             this.trainingClassAutoAssignments.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8126.           this.trainingClassAutoAssignments.parentObject = (object) this;
  8127.         }
  8128.         return this.trainingClassAutoAssignments;
  8129.       }
  8130.       set
  8131.       {
  8132.         this.trainingClassAutoAssignments = value;
  8133.         this.SetDataState("TrainingClassAutoAssignments");
  8134.         if (value == null || value.parentObject != null)
  8135.           return;
  8136.         this.trainingClassAutoAssignments.parentObject = (object) this;
  8137.       }
  8138.     }
  8139.  
  8140.     [CustomQuery(QueryStyle.Nonqueryable)]
  8141.     [CustomReporting(Visibility.Nonreportable)]
  8142.     public TrainingClassList TrainingClasses
  8143.     {
  8144.       get
  8145.       {
  8146.         if (this.trainingClasses == null)
  8147.         {
  8148.           this.trainingClasses = new TrainingClassList();
  8149.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8150.             this.trainingClasses.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8151.           this.trainingClasses.parentObject = (object) this;
  8152.         }
  8153.         return this.trainingClasses;
  8154.       }
  8155.       set
  8156.       {
  8157.         this.trainingClasses = value;
  8158.         this.SetDataState("TrainingClasses");
  8159.         if (value == null || value.parentObject != null)
  8160.           return;
  8161.         this.trainingClasses.parentObject = (object) this;
  8162.       }
  8163.     }
  8164.  
  8165.     [CustomReporting(Visibility.Nonreportable)]
  8166.     [CustomQuery(QueryStyle.Nonqueryable)]
  8167.     public TrainingClassInstructorList TrainingClassInstructors
  8168.     {
  8169.       get
  8170.       {
  8171.         if (this.trainingClassInstructors == null)
  8172.         {
  8173.           this.trainingClassInstructors = new TrainingClassInstructorList();
  8174.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8175.             this.trainingClassInstructors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8176.           this.trainingClassInstructors.parentObject = (object) this;
  8177.         }
  8178.         return this.trainingClassInstructors;
  8179.       }
  8180.       set
  8181.       {
  8182.         this.trainingClassInstructors = value;
  8183.         this.SetDataState("TrainingClassInstructors");
  8184.         if (value == null || value.parentObject != null)
  8185.           return;
  8186.         this.trainingClassInstructors.parentObject = (object) this;
  8187.       }
  8188.     }
  8189.  
  8190.     [CustomReporting(Visibility.Nonreportable)]
  8191.     [CustomQuery(QueryStyle.Nonqueryable)]
  8192.     public TrainingClassPrerequisiteList TrainingClassPrerequisites
  8193.     {
  8194.       get
  8195.       {
  8196.         if (this.trainingClassPrerequisites == null)
  8197.         {
  8198.           this.trainingClassPrerequisites = new TrainingClassPrerequisiteList();
  8199.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8200.             this.trainingClassPrerequisites.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8201.           this.trainingClassPrerequisites.parentObject = (object) this;
  8202.         }
  8203.         return this.trainingClassPrerequisites;
  8204.       }
  8205.       set
  8206.       {
  8207.         this.trainingClassPrerequisites = value;
  8208.         this.SetDataState("TrainingClassPrerequisites");
  8209.         if (value == null || value.parentObject != null)
  8210.           return;
  8211.         this.trainingClassPrerequisites.parentObject = (object) this;
  8212.       }
  8213.     }
  8214.  
  8215.     [CustomReporting(Visibility.Nonreportable)]
  8216.     [CustomQuery(QueryStyle.Nonqueryable)]
  8217.     public TrainingClassSessionInstructorList TrainingClassSessionInstructors
  8218.     {
  8219.       get
  8220.       {
  8221.         if (this.trainingClassSessionInstructors == null)
  8222.         {
  8223.           this.trainingClassSessionInstructors = new TrainingClassSessionInstructorList();
  8224.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8225.             this.trainingClassSessionInstructors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8226.           this.trainingClassSessionInstructors.parentObject = (object) this;
  8227.         }
  8228.         return this.trainingClassSessionInstructors;
  8229.       }
  8230.       set
  8231.       {
  8232.         this.trainingClassSessionInstructors = value;
  8233.         this.SetDataState("TrainingClassSessionInstructors");
  8234.         if (value == null || value.parentObject != null)
  8235.           return;
  8236.         this.trainingClassSessionInstructors.parentObject = (object) this;
  8237.       }
  8238.     }
  8239.  
  8240.     [CustomReporting(Visibility.Nonreportable)]
  8241.     [CustomQuery(QueryStyle.Nonqueryable)]
  8242.     public TrainingClassSessionList TrainingClassSessions
  8243.     {
  8244.       get
  8245.       {
  8246.         if (this.trainingClassSessions == null)
  8247.         {
  8248.           this.trainingClassSessions = new TrainingClassSessionList();
  8249.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8250.             this.trainingClassSessions.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8251.           this.trainingClassSessions.parentObject = (object) this;
  8252.         }
  8253.         return this.trainingClassSessions;
  8254.       }
  8255.       set
  8256.       {
  8257.         this.trainingClassSessions = value;
  8258.         this.SetDataState("TrainingClassSessions");
  8259.         if (value == null || value.parentObject != null)
  8260.           return;
  8261.         this.trainingClassSessions.parentObject = (object) this;
  8262.       }
  8263.     }
  8264.  
  8265.     [CustomReporting(Visibility.Nonreportable)]
  8266.     [CustomQuery(QueryStyle.Nonqueryable)]
  8267.     public TrainingClassSessionTopicList TrainingClassSessionTopics
  8268.     {
  8269.       get
  8270.       {
  8271.         if (this.trainingClassSessionTopics == null)
  8272.         {
  8273.           this.trainingClassSessionTopics = new TrainingClassSessionTopicList();
  8274.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8275.             this.trainingClassSessionTopics.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8276.           this.trainingClassSessionTopics.parentObject = (object) this;
  8277.         }
  8278.         return this.trainingClassSessionTopics;
  8279.       }
  8280.       set
  8281.       {
  8282.         this.trainingClassSessionTopics = value;
  8283.         this.SetDataState("TrainingClassSessionTopics");
  8284.         if (value == null || value.parentObject != null)
  8285.           return;
  8286.         this.trainingClassSessionTopics.parentObject = (object) this;
  8287.       }
  8288.     }
  8289.  
  8290.     [CustomReporting(Visibility.Nonreportable)]
  8291.     [CustomQuery(QueryStyle.Nonqueryable)]
  8292.     public TrainingClassTopicInstructorList TrainingClassTopicInstructors
  8293.     {
  8294.       get
  8295.       {
  8296.         if (this.trainingClassTopicInstructors == null)
  8297.         {
  8298.           this.trainingClassTopicInstructors = new TrainingClassTopicInstructorList();
  8299.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8300.             this.trainingClassTopicInstructors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8301.           this.trainingClassTopicInstructors.parentObject = (object) this;
  8302.         }
  8303.         return this.trainingClassTopicInstructors;
  8304.       }
  8305.       set
  8306.       {
  8307.         this.trainingClassTopicInstructors = value;
  8308.         this.SetDataState("TrainingClassTopicInstructors");
  8309.         if (value == null || value.parentObject != null)
  8310.           return;
  8311.         this.trainingClassTopicInstructors.parentObject = (object) this;
  8312.       }
  8313.     }
  8314.  
  8315.     [CustomQuery(QueryStyle.Nonqueryable)]
  8316.     [CustomReporting(Visibility.Nonreportable)]
  8317.     public TrainingClassTopicList TrainingClassTopics
  8318.     {
  8319.       get
  8320.       {
  8321.         if (this.trainingClassTopics == null)
  8322.         {
  8323.           this.trainingClassTopics = new TrainingClassTopicList();
  8324.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8325.             this.trainingClassTopics.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8326.           this.trainingClassTopics.parentObject = (object) this;
  8327.         }
  8328.         return this.trainingClassTopics;
  8329.       }
  8330.       set
  8331.       {
  8332.         this.trainingClassTopics = value;
  8333.         this.SetDataState("TrainingClassTopics");
  8334.         if (value == null || value.parentObject != null)
  8335.           return;
  8336.         this.trainingClassTopics.parentObject = (object) this;
  8337.       }
  8338.     }
  8339.  
  8340.     [CustomReporting(Visibility.Nonreportable)]
  8341.     [CustomQuery(QueryStyle.Nonqueryable)]
  8342.     public TrainingClassTopicSessionInstructorList TrainingClassTopicSessionInstructors
  8343.     {
  8344.       get
  8345.       {
  8346.         if (this.trainingClassTopicSessionInstructors == null)
  8347.         {
  8348.           this.trainingClassTopicSessionInstructors = new TrainingClassTopicSessionInstructorList();
  8349.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8350.             this.trainingClassTopicSessionInstructors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8351.           this.trainingClassTopicSessionInstructors.parentObject = (object) this;
  8352.         }
  8353.         return this.trainingClassTopicSessionInstructors;
  8354.       }
  8355.       set
  8356.       {
  8357.         this.trainingClassTopicSessionInstructors = value;
  8358.         this.SetDataState("TrainingClassTopicSessionInstructors");
  8359.         if (value == null || value.parentObject != null)
  8360.           return;
  8361.         this.trainingClassTopicSessionInstructors.parentObject = (object) this;
  8362.       }
  8363.     }
  8364.  
  8365.     [CustomQuery(QueryStyle.Nonqueryable)]
  8366.     [CustomReporting(Visibility.Nonreportable)]
  8367.     public TrainingCourseClassList TrainingCourseClasses
  8368.     {
  8369.       get
  8370.       {
  8371.         if (this.trainingCourseClasses == null)
  8372.         {
  8373.           this.trainingCourseClasses = new TrainingCourseClassList();
  8374.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8375.             this.trainingCourseClasses.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8376.           this.trainingCourseClasses.parentObject = (object) this;
  8377.         }
  8378.         return this.trainingCourseClasses;
  8379.       }
  8380.       set
  8381.       {
  8382.         this.trainingCourseClasses = value;
  8383.         this.SetDataState("TrainingCourseClasses");
  8384.         if (value == null || value.parentObject != null)
  8385.           return;
  8386.         this.trainingCourseClasses.parentObject = (object) this;
  8387.       }
  8388.     }
  8389.  
  8390.     [CustomQuery(QueryStyle.Nonqueryable)]
  8391.     [CustomReporting(Visibility.Nonreportable)]
  8392.     public TrainingCourseInstructorList TrainingCourseInstructors
  8393.     {
  8394.       get
  8395.       {
  8396.         if (this.trainingCourseInstructors == null)
  8397.         {
  8398.           this.trainingCourseInstructors = new TrainingCourseInstructorList();
  8399.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8400.             this.trainingCourseInstructors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8401.           this.trainingCourseInstructors.parentObject = (object) this;
  8402.         }
  8403.         return this.trainingCourseInstructors;
  8404.       }
  8405.       set
  8406.       {
  8407.         this.trainingCourseInstructors = value;
  8408.         this.SetDataState("TrainingCourseInstructors");
  8409.         if (value == null || value.parentObject != null)
  8410.           return;
  8411.         this.trainingCourseInstructors.parentObject = (object) this;
  8412.       }
  8413.     }
  8414.  
  8415.     [CustomReporting(Visibility.Nonreportable)]
  8416.     [CustomQuery(QueryStyle.Nonqueryable)]
  8417.     public TrainingCoursePrerequisiteList TrainingCoursePrerequisites
  8418.     {
  8419.       get
  8420.       {
  8421.         if (this.trainingCoursePrerequisites == null)
  8422.         {
  8423.           this.trainingCoursePrerequisites = new TrainingCoursePrerequisiteList();
  8424.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8425.             this.trainingCoursePrerequisites.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8426.           this.trainingCoursePrerequisites.parentObject = (object) this;
  8427.         }
  8428.         return this.trainingCoursePrerequisites;
  8429.       }
  8430.       set
  8431.       {
  8432.         this.trainingCoursePrerequisites = value;
  8433.         this.SetDataState("TrainingCoursePrerequisites");
  8434.         if (value == null || value.parentObject != null)
  8435.           return;
  8436.         this.trainingCoursePrerequisites.parentObject = (object) this;
  8437.       }
  8438.     }
  8439.  
  8440.     [CustomReporting(Visibility.Nonreportable)]
  8441.     [CustomQuery(QueryStyle.Nonqueryable)]
  8442.     public TrainingCourseList TrainingCourses
  8443.     {
  8444.       get
  8445.       {
  8446.         if (this.trainingCourses == null)
  8447.         {
  8448.           this.trainingCourses = new TrainingCourseList();
  8449.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8450.             this.trainingCourses.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8451.           this.trainingCourses.parentObject = (object) this;
  8452.         }
  8453.         return this.trainingCourses;
  8454.       }
  8455.       set
  8456.       {
  8457.         this.trainingCourses = value;
  8458.         this.SetDataState("TrainingCourses");
  8459.         if (value == null || value.parentObject != null)
  8460.           return;
  8461.         this.trainingCourses.parentObject = (object) this;
  8462.       }
  8463.     }
  8464.  
  8465.     [CustomQuery(QueryStyle.Nonqueryable)]
  8466.     [CustomReporting(Visibility.Nonreportable)]
  8467.     public TrainingHourRequirementList TrainingHourRequirements
  8468.     {
  8469.       get
  8470.       {
  8471.         if (this.trainingHourRequirements == null)
  8472.         {
  8473.           this.trainingHourRequirements = new TrainingHourRequirementList();
  8474.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8475.             this.trainingHourRequirements.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8476.           this.trainingHourRequirements.parentObject = (object) this;
  8477.         }
  8478.         return this.trainingHourRequirements;
  8479.       }
  8480.       set
  8481.       {
  8482.         this.trainingHourRequirements = value;
  8483.         this.SetDataState("TrainingHourRequirements");
  8484.         if (value == null || value.parentObject != null)
  8485.           return;
  8486.         this.trainingHourRequirements.parentObject = (object) this;
  8487.       }
  8488.     }
  8489.  
  8490.     [CustomReporting(Visibility.Nonreportable)]
  8491.     [CustomQuery(QueryStyle.Nonqueryable)]
  8492.     public TrainingInstructorList TrainingInstructors
  8493.     {
  8494.       get
  8495.       {
  8496.         if (this.trainingInstructors == null)
  8497.         {
  8498.           this.trainingInstructors = new TrainingInstructorList();
  8499.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8500.             this.trainingInstructors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8501.           this.trainingInstructors.parentObject = (object) this;
  8502.         }
  8503.         return this.trainingInstructors;
  8504.       }
  8505.       set
  8506.       {
  8507.         this.trainingInstructors = value;
  8508.         this.SetDataState("TrainingInstructors");
  8509.         if (value == null || value.parentObject != null)
  8510.           return;
  8511.         this.trainingInstructors.parentObject = (object) this;
  8512.       }
  8513.     }
  8514.  
  8515.     [CustomQuery(QueryStyle.Nonqueryable)]
  8516.     [CustomReporting(Visibility.Nonreportable)]
  8517.     public TrainingTopicList TrainingTopics
  8518.     {
  8519.       get
  8520.       {
  8521.         if (this.trainingTopics == null)
  8522.         {
  8523.           this.trainingTopics = new TrainingTopicList();
  8524.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8525.             this.trainingTopics.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8526.           this.trainingTopics.parentObject = (object) this;
  8527.         }
  8528.         return this.trainingTopics;
  8529.       }
  8530.       set
  8531.       {
  8532.         this.trainingTopics = value;
  8533.         this.SetDataState("TrainingTopics");
  8534.         if (value == null || value.parentObject != null)
  8535.           return;
  8536.         this.trainingTopics.parentObject = (object) this;
  8537.       }
  8538.     }
  8539.  
  8540.     [CustomReporting(Visibility.Nonreportable)]
  8541.     [CustomQuery(QueryStyle.Nonqueryable)]
  8542.     public UsedLaboratoryList UsedLaboratories
  8543.     {
  8544.       get
  8545.       {
  8546.         if (this.usedLaboratories == null)
  8547.         {
  8548.           this.usedLaboratories = new UsedLaboratoryList();
  8549.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8550.             this.usedLaboratories.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8551.           this.usedLaboratories.parentObject = (object) this;
  8552.         }
  8553.         return this.usedLaboratories;
  8554.       }
  8555.       set
  8556.       {
  8557.         this.usedLaboratories = value;
  8558.         this.SetDataState("UsedLaboratories");
  8559.         if (value == null || value.parentObject != null)
  8560.           return;
  8561.         this.usedLaboratories.parentObject = (object) this;
  8562.       }
  8563.     }
  8564.  
  8565.     [CustomQuery(QueryStyle.Nonqueryable)]
  8566.     [CustomReporting(Visibility.Nonreportable)]
  8567.     public UserLoginList UserLogins
  8568.     {
  8569.       get
  8570.       {
  8571.         if (this.userLogins == null)
  8572.         {
  8573.           this.userLogins = new UserLoginList();
  8574.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8575.             this.userLogins.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8576.           this.userLogins.parentObject = (object) this;
  8577.         }
  8578.         return this.userLogins;
  8579.       }
  8580.       set
  8581.       {
  8582.         this.userLogins = value;
  8583.         this.SetDataState("UserLogins");
  8584.         if (value == null || value.parentObject != null)
  8585.           return;
  8586.         this.userLogins.parentObject = (object) this;
  8587.       }
  8588.     }
  8589.  
  8590.     [CustomReporting(Visibility.Nonreportable)]
  8591.     [CustomQuery(QueryStyle.Nonqueryable)]
  8592.     public new UserPreferenceList UserPreferences
  8593.     {
  8594.       get
  8595.       {
  8596.         if (this.userPreferences == null)
  8597.         {
  8598.           this.userPreferences = new UserPreferenceList();
  8599.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8600.             this.userPreferences.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8601.           this.userPreferences.parentObject = (object) this;
  8602.         }
  8603.         return this.userPreferences;
  8604.       }
  8605.       set
  8606.       {
  8607.         this.userPreferences = value;
  8608.         this.SetDataState("UserPreferences");
  8609.         if (value == null || value.parentObject != null)
  8610.           return;
  8611.         this.userPreferences.parentObject = (object) this;
  8612.       }
  8613.     }
  8614.  
  8615.     [CustomQuery(QueryStyle.Nonqueryable)]
  8616.     [CustomReporting(Visibility.Nonreportable)]
  8617.     public UserPreferenceList UserLoginUserPreferences
  8618.     {
  8619.       get
  8620.       {
  8621.         if (this.userLoginUserPreferences == null)
  8622.         {
  8623.           this.userLoginUserPreferences = new UserPreferenceList();
  8624.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8625.             this.userLoginUserPreferences.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8626.           this.userLoginUserPreferences.parentObject = (object) this;
  8627.         }
  8628.         return this.userLoginUserPreferences;
  8629.       }
  8630.       set
  8631.       {
  8632.         this.userLoginUserPreferences = value;
  8633.         this.SetDataState("UserLoginUserPreferences");
  8634.         if (value == null || value.parentObject != null)
  8635.           return;
  8636.         this.userLoginUserPreferences.parentObject = (object) this;
  8637.       }
  8638.     }
  8639.  
  8640.     [CustomReporting(Visibility.Nonreportable)]
  8641.     [CustomQuery(QueryStyle.Nonqueryable)]
  8642.     public UserRoleList UserRoles
  8643.     {
  8644.       get
  8645.       {
  8646.         if (this.userRoles == null)
  8647.         {
  8648.           this.userRoles = new UserRoleList();
  8649.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8650.             this.userRoles.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8651.           this.userRoles.parentObject = (object) this;
  8652.         }
  8653.         return this.userRoles;
  8654.       }
  8655.       set
  8656.       {
  8657.         this.userRoles = value;
  8658.         this.SetDataState("UserRoles");
  8659.         if (value == null || value.parentObject != null)
  8660.           return;
  8661.         this.userRoles.parentObject = (object) this;
  8662.       }
  8663.     }
  8664.  
  8665.     [CustomQuery(QueryStyle.Nonqueryable)]
  8666.     [CustomReporting(Visibility.Nonreportable)]
  8667.     public UserRoleList UserLoginUserRoles
  8668.     {
  8669.       get
  8670.       {
  8671.         if (this.userLoginUserRoles == null)
  8672.         {
  8673.           this.userLoginUserRoles = new UserRoleList();
  8674.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8675.             this.userLoginUserRoles.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8676.           this.userLoginUserRoles.parentObject = (object) this;
  8677.         }
  8678.         return this.userLoginUserRoles;
  8679.       }
  8680.       set
  8681.       {
  8682.         this.userLoginUserRoles = value;
  8683.         this.SetDataState("UserLoginUserRoles");
  8684.         if (value == null || value.parentObject != null)
  8685.           return;
  8686.         this.userLoginUserRoles.parentObject = (object) this;
  8687.       }
  8688.     }
  8689.  
  8690.     [CustomQuery(QueryStyle.Nonqueryable)]
  8691.     [CustomReporting(Visibility.Nonreportable)]
  8692.     public UserSecurityLevelList UserSecurityLevels
  8693.     {
  8694.       get
  8695.       {
  8696.         if (this.userSecurityLevels == null)
  8697.         {
  8698.           this.userSecurityLevels = new UserSecurityLevelList();
  8699.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8700.             this.userSecurityLevels.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8701.           this.userSecurityLevels.parentObject = (object) this;
  8702.         }
  8703.         return this.userSecurityLevels;
  8704.       }
  8705.       set
  8706.       {
  8707.         this.userSecurityLevels = value;
  8708.         this.SetDataState("UserSecurityLevels");
  8709.         if (value == null || value.parentObject != null)
  8710.           return;
  8711.         this.userSecurityLevels.parentObject = (object) this;
  8712.       }
  8713.     }
  8714.  
  8715.     [CustomReporting(Visibility.Nonreportable)]
  8716.     [CustomQuery(QueryStyle.Nonqueryable)]
  8717.     public UserSecurityLevelList UserLoginUserSecurityLevels
  8718.     {
  8719.       get
  8720.       {
  8721.         if (this.userLoginUserSecurityLevels == null)
  8722.         {
  8723.           this.userLoginUserSecurityLevels = new UserSecurityLevelList();
  8724.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8725.             this.userLoginUserSecurityLevels.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8726.           this.userLoginUserSecurityLevels.parentObject = (object) this;
  8727.         }
  8728.         return this.userLoginUserSecurityLevels;
  8729.       }
  8730.       set
  8731.       {
  8732.         this.userLoginUserSecurityLevels = value;
  8733.         this.SetDataState("UserLoginUserSecurityLevels");
  8734.         if (value == null || value.parentObject != null)
  8735.           return;
  8736.         this.userLoginUserSecurityLevels.parentObject = (object) this;
  8737.       }
  8738.     }
  8739.  
  8740.     [CustomQuery(QueryStyle.Nonqueryable)]
  8741.     [CustomReporting(Visibility.Nonreportable)]
  8742.     public VendorList Vendors
  8743.     {
  8744.       get
  8745.       {
  8746.         if (this.vendors == null)
  8747.         {
  8748.           this.vendors = new VendorList();
  8749.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8750.             this.vendors.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8751.           this.vendors.parentObject = (object) this;
  8752.         }
  8753.         return this.vendors;
  8754.       }
  8755.       set
  8756.       {
  8757.         this.vendors = value;
  8758.         this.SetDataState("Vendors");
  8759.         if (value == null || value.parentObject != null)
  8760.           return;
  8761.         this.vendors.parentObject = (object) this;
  8762.       }
  8763.     }
  8764.  
  8765.     [CustomQuery(QueryStyle.Nonqueryable)]
  8766.     [CustomReporting(Visibility.Nonreportable)]
  8767.     public VendorTypeList VendorTypes
  8768.     {
  8769.       get
  8770.       {
  8771.         if (this.vendorTypes == null)
  8772.         {
  8773.           this.vendorTypes = new VendorTypeList();
  8774.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8775.             this.vendorTypes.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8776.           this.vendorTypes.parentObject = (object) this;
  8777.         }
  8778.         return this.vendorTypes;
  8779.       }
  8780.       set
  8781.       {
  8782.         this.vendorTypes = value;
  8783.         this.SetDataState("VendorTypes");
  8784.         if (value == null || value.parentObject != null)
  8785.           return;
  8786.         this.vendorTypes.parentObject = (object) this;
  8787.       }
  8788.     }
  8789.  
  8790.     [CustomQuery(QueryStyle.Nonqueryable)]
  8791.     [CustomReporting(Visibility.Nonreportable)]
  8792.     public WildlandLocationList WildlandLocations
  8793.     {
  8794.       get
  8795.       {
  8796.         if (this.wildlandLocations == null)
  8797.         {
  8798.           this.wildlandLocations = new WildlandLocationList();
  8799.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8800.             this.wildlandLocations.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8801.           this.wildlandLocations.parentObject = (object) this;
  8802.         }
  8803.         return this.wildlandLocations;
  8804.       }
  8805.       set
  8806.       {
  8807.         this.wildlandLocations = value;
  8808.         this.SetDataState("WildlandLocations");
  8809.         if (value == null || value.parentObject != null)
  8810.           return;
  8811.         this.wildlandLocations.parentObject = (object) this;
  8812.       }
  8813.     }
  8814.  
  8815.     [CustomQuery(QueryStyle.Nonqueryable)]
  8816.     [CustomReporting(Visibility.Nonreportable)]
  8817.     public WitnessStatementList WitnessStatements
  8818.     {
  8819.       get
  8820.       {
  8821.         if (this.witnessStatements == null)
  8822.         {
  8823.           this.witnessStatements = new WitnessStatementList();
  8824.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8825.             this.witnessStatements.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8826.           this.witnessStatements.parentObject = (object) this;
  8827.         }
  8828.         return this.witnessStatements;
  8829.       }
  8830.       set
  8831.       {
  8832.         this.witnessStatements = value;
  8833.         this.SetDataState("WitnessStatements");
  8834.         if (value == null || value.parentObject != null)
  8835.           return;
  8836.         this.witnessStatements.parentObject = (object) this;
  8837.       }
  8838.     }
  8839.  
  8840.     [CustomQuery(QueryStyle.Nonqueryable)]
  8841.     [CustomReporting(Visibility.Nonreportable)]
  8842.     public WorkOrderItemList WorkOrderItems
  8843.     {
  8844.       get
  8845.       {
  8846.         if (this.workOrderItems == null)
  8847.         {
  8848.           this.workOrderItems = new WorkOrderItemList();
  8849.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8850.             this.workOrderItems.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8851.           this.workOrderItems.parentObject = (object) this;
  8852.         }
  8853.         return this.workOrderItems;
  8854.       }
  8855.       set
  8856.       {
  8857.         this.workOrderItems = value;
  8858.         this.SetDataState("WorkOrderItems");
  8859.         if (value == null || value.parentObject != null)
  8860.           return;
  8861.         this.workOrderItems.parentObject = (object) this;
  8862.       }
  8863.     }
  8864.  
  8865.     [CustomReporting(Visibility.Nonreportable)]
  8866.     [CustomQuery(QueryStyle.Nonqueryable)]
  8867.     public WorkOrderPerformerList WorkOrderPerformers
  8868.     {
  8869.       get
  8870.       {
  8871.         if (this.workOrderPerformers == null)
  8872.         {
  8873.           this.workOrderPerformers = new WorkOrderPerformerList();
  8874.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8875.             this.workOrderPerformers.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8876.           this.workOrderPerformers.parentObject = (object) this;
  8877.         }
  8878.         return this.workOrderPerformers;
  8879.       }
  8880.       set
  8881.       {
  8882.         this.workOrderPerformers = value;
  8883.         this.SetDataState("WorkOrderPerformers");
  8884.         if (value == null || value.parentObject != null)
  8885.           return;
  8886.         this.workOrderPerformers.parentObject = (object) this;
  8887.       }
  8888.     }
  8889.  
  8890.     [CustomQuery(QueryStyle.Nonqueryable)]
  8891.     [CustomReporting(Visibility.Nonreportable)]
  8892.     public WorkOrderReplacedFluidList WorkOrderReplacedFluids
  8893.     {
  8894.       get
  8895.       {
  8896.         if (this.workOrderReplacedFluids == null)
  8897.         {
  8898.           this.workOrderReplacedFluids = new WorkOrderReplacedFluidList();
  8899.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8900.             this.workOrderReplacedFluids.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8901.           this.workOrderReplacedFluids.parentObject = (object) this;
  8902.         }
  8903.         return this.workOrderReplacedFluids;
  8904.       }
  8905.       set
  8906.       {
  8907.         this.workOrderReplacedFluids = value;
  8908.         this.SetDataState("WorkOrderReplacedFluids");
  8909.         if (value == null || value.parentObject != null)
  8910.           return;
  8911.         this.workOrderReplacedFluids.parentObject = (object) this;
  8912.       }
  8913.     }
  8914.  
  8915.     [CustomQuery(QueryStyle.Nonqueryable)]
  8916.     [CustomReporting(Visibility.Nonreportable)]
  8917.     public WorkOrderReplacedPartList WorkOrderReplacedParts
  8918.     {
  8919.       get
  8920.       {
  8921.         if (this.workOrderReplacedParts == null)
  8922.         {
  8923.           this.workOrderReplacedParts = new WorkOrderReplacedPartList();
  8924.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8925.             this.workOrderReplacedParts.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8926.           this.workOrderReplacedParts.parentObject = (object) this;
  8927.         }
  8928.         return this.workOrderReplacedParts;
  8929.       }
  8930.       set
  8931.       {
  8932.         this.workOrderReplacedParts = value;
  8933.         this.SetDataState("WorkOrderReplacedParts");
  8934.         if (value == null || value.parentObject != null)
  8935.           return;
  8936.         this.workOrderReplacedParts.parentObject = (object) this;
  8937.       }
  8938.     }
  8939.  
  8940.     [CustomReporting(Visibility.Nonreportable)]
  8941.     [CustomQuery(QueryStyle.Nonqueryable)]
  8942.     public WorkOrderList WorkOrders
  8943.     {
  8944.       get
  8945.       {
  8946.         if (this.workOrders == null)
  8947.         {
  8948.           this.workOrders = new WorkOrderList();
  8949.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8950.             this.workOrders.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8951.           this.workOrders.parentObject = (object) this;
  8952.         }
  8953.         return this.workOrders;
  8954.       }
  8955.       set
  8956.       {
  8957.         this.workOrders = value;
  8958.         this.SetDataState("WorkOrders");
  8959.         if (value == null || value.parentObject != null)
  8960.           return;
  8961.         this.workOrders.parentObject = (object) this;
  8962.       }
  8963.     }
  8964.  
  8965.     [CustomReporting(Visibility.Nonreportable)]
  8966.     [CustomQuery(QueryStyle.Nonqueryable)]
  8967.     public ZipcodeDictionaryEntryList ZipcodeDictionaryEntries
  8968.     {
  8969.       get
  8970.       {
  8971.         if (this.zipcodeDictionaryEntries == null)
  8972.         {
  8973.           this.zipcodeDictionaryEntries = new ZipcodeDictionaryEntryList();
  8974.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  8975.             this.zipcodeDictionaryEntries.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  8976.           this.zipcodeDictionaryEntries.parentObject = (object) this;
  8977.         }
  8978.         return this.zipcodeDictionaryEntries;
  8979.       }
  8980.       set
  8981.       {
  8982.         this.zipcodeDictionaryEntries = value;
  8983.         this.SetDataState("ZipcodeDictionaryEntries");
  8984.         if (value == null || value.parentObject != null)
  8985.           return;
  8986.         this.zipcodeDictionaryEntries.parentObject = (object) this;
  8987.       }
  8988.     }
  8989.  
  8990.     [CustomQuery(QueryStyle.Nonqueryable)]
  8991.     [CustomReporting(Visibility.Nonreportable)]
  8992.     public ZoneList Zones
  8993.     {
  8994.       get
  8995.       {
  8996.         if (this.zones == null)
  8997.         {
  8998.           this.zones = new ZoneList();
  8999.           if (this.recordState != BusinessObject.FireProgramsRecordState.Added && this.recordID.HasValue)
  9000.             this.zones.Reload("UserLoginID = '" + this.recordID.ToString() + "'");
  9001.           this.zones.parentObject = (object) this;
  9002.         }
  9003.         return this.zones;
  9004.       }
  9005.       set
  9006.       {
  9007.         this.zones = value;
  9008.         this.SetDataState("Zones");
  9009.         if (value == null || value.parentObject != null)
  9010.           return;
  9011.         this.zones.parentObject = (object) this;
  9012.       }
  9013.     }
  9014.  
  9015.     [CustomQuery(QueryStyle.Nonqueryable)]
  9016.     [CustomReporting(Visibility.Nonreportable)]
  9017.     public UserLogin CreatedByUserLogin
  9018.     {
  9019.       get
  9020.       {
  9021.         if ((BusinessObject) this.createdByUserLogin == (BusinessObject) null)
  9022.         {
  9023.           if (this.createdByUserLoginID.HasValue && !string.IsNullOrEmpty(this.createdByUserLoginID.ToString()) && !this.createdByUserLoginID.ToString().Equals(Guid.Empty.ToString()))
  9024.           {
  9025.             if ((BusinessObject) GlobalValues.CurrentLogin == (BusinessObject) null)
  9026.             {
  9027.               this.createdByUserLogin = new UserLogin();
  9028.               this.createdByUserLogin.Refresh("RecordID = '" + this.createdByUserLoginID.ToString() + "'");
  9029.             }
  9030.             else
  9031.             {
  9032.               this.createdByUserLogin = (GlobalValues.CurrentLogin.GetLookup("UserLoginList") as UserLoginList).FindByRecordID(this.createdByUserLoginID);
  9033.               if ((BusinessObject) this.createdByUserLogin == (BusinessObject) null)
  9034.                 this.createdByUserLogin = new UserLogin(new Guid?(Guid.NewGuid()), false);
  9035.             }
  9036.           }
  9037.           else
  9038.             this.createdByUserLogin = new UserLogin(new Guid?(Guid.NewGuid()), false);
  9039.           this.createdByUserLogin.parentObject = (object) this;
  9040.         }
  9041.         return this.createdByUserLogin;
  9042.       }
  9043.       set
  9044.       {
  9045.         this.createdByUserLogin = value;
  9046.         if (!((BusinessObject) value != (BusinessObject) null) || value.parentObject != null)
  9047.           return;
  9048.         this.createdByUserLogin.parentObject = (object) this;
  9049.       }
  9050.     }
  9051.  
  9052.     [CustomReporting(Visibility.Reportable)]
  9053.     [CustomQuery(QueryStyle.Nonindexed)]
  9054.     public string ConfirmPassword
  9055.     {
  9056.       get
  9057.       {
  9058.         if (this.passwordConfirmed && string.IsNullOrEmpty(this._confirmPassword))
  9059.           return this.password;
  9060.         return this._confirmPassword;
  9061.       }
  9062.       set
  9063.       {
  9064.         if (!(this._confirmPassword != value))
  9065.           return;
  9066.         this._confirmPassword = value;
  9067.         this.SetDataState("ConfirmPassword");
  9068.       }
  9069.     }
  9070.  
  9071.     public string DisplayConfirmPassword
  9072.     {
  9073.       get
  9074.       {
  9075.         string str = string.Empty;
  9076.         if (!string.IsNullOrEmpty(this.ConfirmPassword))
  9077.         {
  9078.           str = this.ConfirmPassword;
  9079.           if (str.Length < 8)
  9080.             str.PadRight(8, '*');
  9081.         }
  9082.         return str;
  9083.       }
  9084.       set
  9085.       {
  9086.         if (string.IsNullOrEmpty(value))
  9087.           this.ConfirmPassword = string.Empty;
  9088.         else
  9089.           this.ConfirmPassword = value;
  9090.       }
  9091.     }
  9092.  
  9093.     public bool IsComputerAdministrator
  9094.     {
  9095.       get
  9096.       {
  9097.         return new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);
  9098.       }
  9099.     }
  9100.  
  9101.     public IDbConnection PersistentConnection
  9102.     {
  9103.       get
  9104.       {
  9105.         return this._persistentConnection;
  9106.       }
  9107.       set
  9108.       {
  9109.         this._persistentConnection = value;
  9110.       }
  9111.     }
  9112.  
  9113.     public UserPreferenceList EffectiveUserPreferences
  9114.     {
  9115.       get
  9116.       {
  9117.         if (this._effectiveUserPreferences == null)
  9118.         {
  9119.           this._effectiveUserPreferences = UserPreferenceList.ReadAll(this.recordID, this.deptID, this.customerID);
  9120.           this._effectiveUserPreferences.ParentObject = (object) this;
  9121.         }
  9122.         return this._effectiveUserPreferences;
  9123.       }
  9124.       set
  9125.       {
  9126.         this._effectiveUserPreferences = value;
  9127.       }
  9128.     }
  9129.  
  9130.     public UserPreferenceList Preferences
  9131.     {
  9132.       get
  9133.       {
  9134.         if (this.preferences == null)
  9135.           this.preferences = UserPreferenceList.ReadAll(this.recordID, this.deptID, this.customerID);
  9136.         return this.preferences;
  9137.       }
  9138.       set
  9139.       {
  9140.         this.preferences = value;
  9141.       }
  9142.     }
  9143.  
  9144.     public PersonnelRecord PersonnelRecord
  9145.     {
  9146.       get
  9147.       {
  9148.         if (this.PersonnelRecords.Count == 0)
  9149.           return (PersonnelRecord) null;
  9150.         return this.PersonnelRecords[0];
  9151.       }
  9152.     }
  9153.  
  9154.     public string DisplayName
  9155.     {
  9156.       get
  9157.       {
  9158.         if (this.PersonnelRecords.Count != 0)
  9159.           return this.PersonnelRecords[0].displayName;
  9160.         if (string.IsNullOrEmpty(this.userDisplayName))
  9161.           return this.userName;
  9162.         return this.userDisplayName;
  9163.       }
  9164.     }
  9165.  
  9166.     public string DisplayUserName
  9167.     {
  9168.       get
  9169.       {
  9170.         string str = this.userName;
  9171.         int length = this.userName.LastIndexOf(".");
  9172.         if (length != -1)
  9173.           str = str.Substring(0, length);
  9174.         return str;
  9175.       }
  9176.       set
  9177.       {
  9178.         int num = this.userName.LastIndexOf(".");
  9179.         string str;
  9180.         if (num != -1)
  9181.         {
  9182.           str = value + "." + this.userName.Substring(num + 1);
  9183.         }
  9184.         else
  9185.         {
  9186.           Customer customer = new Customer(GlobalValues.CustomerID);
  9187.           str = value + "." + customer.CustomerNumber;
  9188.         }
  9189.         this.UserName = str;
  9190.       }
  9191.     }
  9192.  
  9193.     public string DisplayPassword
  9194.     {
  9195.       get
  9196.       {
  9197.         string str = string.Empty;
  9198.         if (!string.IsNullOrEmpty(this.password))
  9199.         {
  9200.           str = this.password;
  9201.           if (str.Length < 8)
  9202.             str.PadRight(8, '*');
  9203.         }
  9204.         return str;
  9205.       }
  9206.       set
  9207.       {
  9208.         if (string.IsNullOrEmpty(value))
  9209.           this.Password = string.Empty;
  9210.         else
  9211.           this.Password = value;
  9212.       }
  9213.     }
  9214.  
  9215.     public bool UseCustomerLogin
  9216.     {
  9217.       get
  9218.       {
  9219.         return this._useCustomerLogin;
  9220.       }
  9221.       set
  9222.       {
  9223.         if (object.Equals((object) (bool) (this._useCustomerLogin ? 1 : 0), (object) (bool) (value ? 1 : 0)))
  9224.           return;
  9225.         this._useCustomerLogin = value;
  9226.         this.UserLoginRoles = (UserLoginRoleList) null;
  9227.       }
  9228.     }
  9229.  
  9230.     public UserLoginRoleList UserLoginRoles
  9231.     {
  9232.       get
  9233.       {
  9234.         if (this.roleResult == null)
  9235.         {
  9236.           this.roleResult = new UserLoginRoleList();
  9237.           this.roleResult.ListChanged += new ListChangedEventHandler(this.roleResult_ListChanged);
  9238.           if (this.UseCustomerLogin)
  9239.           {
  9240.             if (this.CustomerLogins.Count > 0)
  9241.             {
  9242.               if ((BusinessObject) this.CustomerLogins.Current == (BusinessObject) null)
  9243.                 this.CustomerLogins.Current = this.CustomerLogins[0];
  9244.               foreach (CustomerLoginRole customerLoginRole in (BusinessObjectList<CustomerLoginRole>) this.CustomerLogins.Current.CustomerLoginRoles)
  9245.               {
  9246.                 UserLoginRole recordToAdd = new UserLoginRole();
  9247.                 recordToAdd.SubLoginRoleId = customerLoginRole.RecordID;
  9248.                 recordToAdd.ApplicationRoleID = customerLoginRole.ApplicationRoleID.Value;
  9249.                 Guid? recordId = customerLoginRole.RecordID;
  9250.                 Guid guid = Guid.Empty;
  9251.                 if ((!recordId.HasValue ? 1 : (recordId.GetValueOrDefault() != guid ? 1 : 0)) != 0)
  9252.                   recordToAdd.IsBlank = false;
  9253.                 this.roleResult.AddRecord(recordToAdd);
  9254.               }
  9255.             }
  9256.           }
  9257.           else if (this.DepartmentLogins.Count > 0)
  9258.           {
  9259.             if ((BusinessObject) this.DepartmentLogins.Current == (BusinessObject) null)
  9260.               this.DepartmentLogins.Current = this.DepartmentLogins[0];
  9261.             foreach (DepartmentLoginRole departmentLoginRole in (BusinessObjectList<DepartmentLoginRole>) this.DepartmentLogins.Current.DepartmentLoginRoles)
  9262.             {
  9263.               UserLoginRole recordToAdd = new UserLoginRole();
  9264.               recordToAdd.SubLoginRoleId = departmentLoginRole.RecordID;
  9265.               recordToAdd.ApplicationRoleID = departmentLoginRole.ApplicationRoleID.Value;
  9266.               Guid? recordId = departmentLoginRole.RecordID;
  9267.               Guid guid = Guid.Empty;
  9268.               if ((!recordId.HasValue ? 1 : (recordId.GetValueOrDefault() != guid ? 1 : 0)) != 0)
  9269.                 recordToAdd.IsBlank = false;
  9270.               this.roleResult.AddRecord(recordToAdd);
  9271.             }
  9272.           }
  9273.         }
  9274.         return this.roleResult;
  9275.       }
  9276.       set
  9277.       {
  9278.         this.roleResult = value;
  9279.         this.SetDataState("UserLoginRoles");
  9280.       }
  9281.     }
  9282.  
  9283.     public EffectivePermissionList EffectivePermissions
  9284.     {
  9285.       get
  9286.       {
  9287.         EffectivePermissionList effectivePermissionList = new EffectivePermissionList();
  9288.         if (this.result == null)
  9289.         {
  9290.           this.result = new EffectivePermissionList();
  9291.           this.result.ParentObject = (object) this;
  9292.         }
  9293.         if (effectivePermissionList.Count > 0)
  9294.           effectivePermissionList.Clear();
  9295.         foreach (ApplicationPermission applicationPermission in (BusinessObjectList<ApplicationPermission>) FirePrograms.Business.Security.GlobalValues.ApplicationPermissions)
  9296.         {
  9297.           ApplicationComponent applicationComponent = GlobalValues.ApplicationComponents.FindByRecordID(applicationPermission.applicationComponentID);
  9298.           if ((BusinessObject) applicationComponent == (BusinessObject) null)
  9299.           {
  9300.             ApplicationSubcomponent byRecordId = GlobalValues.ApplicationSubcomponents.FindByRecordID(applicationPermission.applicationSubcomponentID);
  9301.             if ((BusinessObject) byRecordId != (BusinessObject) null)
  9302.               applicationComponent = byRecordId.ApplicationComponent;
  9303.           }
  9304.           if (!((BusinessObject) applicationComponent == (BusinessObject) null))
  9305.           {
  9306.             if (this.UserName.ToLower().Contains("armstrong") && applicationComponent.ComponentName.ToLower().Contains("maint"))
  9307.               Console.WriteLine("Here");
  9308.             if (Permissions.HasAccessToComponent(this, applicationComponent.ComponentName))
  9309.             {
  9310.               ApplicationSubcomponent byRecordId = GlobalValues.ApplicationSubcomponents.FindByRecordID(applicationPermission.applicationSubcomponentID);
  9311.               bool granted = !((BusinessObject) byRecordId == (BusinessObject) null) ? Permissions.HasPermission(this, applicationComponent.componentName, byRecordId.subcomponentName, applicationPermission.permissionName) : Permissions.HasPermission(this, applicationComponent.componentName, string.Empty, applicationPermission.permissionName);
  9312.               EffectivePermission effectivePermission = !((BusinessObject) byRecordId != (BusinessObject) null) ? new EffectivePermission(applicationComponent.RecordID.Value, new Guid?(), applicationPermission.RecordID.Value, new Guid?(), granted) : new EffectivePermission(applicationComponent.RecordID.Value, new Guid?(byRecordId.RecordID.Value), applicationPermission.RecordID.Value, new Guid?(), granted);
  9313.               effectivePermission.ParentObject = (object) this.result;
  9314.               effectivePermissionList.Add((BusinessObject) effectivePermission);
  9315.             }
  9316.           }
  9317.         }
  9318.         this.result.Clear();
  9319.         this.result.AddRange((ICollection<EffectivePermission>) effectivePermissionList);
  9320.         this.OnPropertyChanged((object) this, new PropertyChangedEventArgs("EffectivePermissionsLoaded"));
  9321.         return this.result;
  9322.       }
  9323.       set
  9324.       {
  9325.         this.result = value;
  9326.         this.OnPropertyChanged((object) this, new PropertyChangedEventArgs("EffectivePermissions"));
  9327.       }
  9328.     }
  9329.  
  9330.     public RegisteredDepartmentList VisibleDepartments
  9331.     {
  9332.       get
  9333.       {
  9334.         if (this.DepartmentLogins.Count == 0)
  9335.         {
  9336.           if (GlobalValues.CustomerID.HasValue)
  9337.             return GlobalValues.MasterDepartmentList;
  9338.           RegisteredDepartmentList registeredDepartmentList = (RegisteredDepartmentList) null;
  9339.           CustomerLoginList customerLoginList = new CustomerLoginList(true, "UserLoginID = '" + this.recordID.ToString() + "'");
  9340.           if (customerLoginList.Count != 0)
  9341.             registeredDepartmentList = new RegisteredDepartmentList(true, "CustomerID = '" + customerLoginList[0].CustomerID.ToString() + "'");
  9342.           return registeredDepartmentList;
  9343.         }
  9344.         RegisteredDepartmentList registeredDepartmentList1 = new RegisteredDepartmentList();
  9345.         foreach (BusinessObject businessObject in (BusinessObjectList<DepartmentLogin>) this.DepartmentLogins)
  9346.         {
  9347.           RegisteredDepartment byRecordId = GlobalValues.AllDepartments.FindByRecordID(businessObject.DeptID);
  9348.           if ((BusinessObject) byRecordId != (BusinessObject) null)
  9349.             registeredDepartmentList1.Add((BusinessObject) byRecordId);
  9350.         }
  9351.         return registeredDepartmentList1;
  9352.       }
  9353.     }
  9354.  
  9355.     public RotationList VisibleRotations
  9356.     {
  9357.       get
  9358.       {
  9359.         if (this._visibleRotations != null)
  9360.           return this._visibleRotations;
  9361.         RotationList rotationList = new RotationList();
  9362.         if (this.DepartmentLogins.Count == 0)
  9363.           return FirePrograms.Business.Scheduling.GlobalValues.MasterRotations;
  9364.         RegisteredDepartmentList visibleDepartments = this.VisibleDepartments;
  9365.         foreach (Rotation rotation in (BusinessObjectList<Rotation>) (this.GetLookup("RotationList") as RotationList))
  9366.         {
  9367.           if (object.Equals((object) GlobalValues.DeptID, (object) rotation.DeptID))
  9368.             rotationList.Add((BusinessObject) rotation);
  9369.         }
  9370.         this._visibleRotations = rotationList;
  9371.         this._visibleRotations.Sort();
  9372.         return this._visibleRotations;
  9373.       }
  9374.     }
  9375.  
  9376.     public StationList VisibleStations
  9377.     {
  9378.       get
  9379.       {
  9380.         return this.GetLookup("StationList") as StationList;
  9381.       }
  9382.     }
  9383.  
  9384.     public PersonnelRecordList VisiblePersonnel
  9385.     {
  9386.       get
  9387.       {
  9388.         if (this.StationLogins.Count == 0)
  9389.           return this.GetLookup("PersonnelRecordList") as PersonnelRecordList;
  9390.         PersonnelRecordList personnelRecordList = this.GetLookup("PersonnelRecordList") as PersonnelRecordList;
  9391.         personnelRecordList.Ranks = this.GetLookup("PersonnelRankList") as PersonnelRankList;
  9392.         return personnelRecordList;
  9393.       }
  9394.     }
  9395.  
  9396.     public CustomerLoginRoleList CustomerLoginRoleList
  9397.     {
  9398.       get
  9399.       {
  9400.         if ((BusinessObject) this.CustomerLogins.Current != (BusinessObject) null)
  9401.           return this.CustomerLogins.Current.CustomerLoginRoles;
  9402.         return (CustomerLoginRoleList) null;
  9403.       }
  9404.     }
  9405.  
  9406.     public DepartmentLoginRoleList DepartmentLoginRoleList
  9407.     {
  9408.       get
  9409.       {
  9410.         if ((BusinessObject) this.DepartmentLogins.Current != (BusinessObject) null)
  9411.           return this.DepartmentLogins.Current.DepartmentLoginRoles;
  9412.         return (DepartmentLoginRoleList) null;
  9413.       }
  9414.     }
  9415.  
  9416.     internal override string SaveLogText
  9417.     {
  9418.       get
  9419.       {
  9420.         return this.DisplayUserName;
  9421.       }
  9422.     }
  9423.  
  9424.     public Guid? CurrentPersonnelRecordID
  9425.     {
  9426.       get
  9427.       {
  9428.         if (!this.currentPersonnelRecordID.HasValue)
  9429.         {
  9430.           PersonnelRecord personnelRecord = this.GetPersonnelRecord(GlobalValues.DeptID);
  9431.           this.currentPersonnelRecordID = (BusinessObject) personnelRecord != (BusinessObject) null ? personnelRecord.recordID : new Guid?();
  9432.         }
  9433.         return this.currentPersonnelRecordID;
  9434.       }
  9435.       set
  9436.       {
  9437.         if (object.Equals((object) value, (object) this.currentPersonnelRecordID))
  9438.           return;
  9439.         if (value.HasValue)
  9440.         {
  9441.           PersonnelRecord byRecordId = (GlobalValues.GetLookup(typeof (PersonnelRecordList)) as PersonnelRecordList).FindByRecordID(value);
  9442.           if ((BusinessObject) byRecordId != (BusinessObject) null && !this.PersonnelRecords.Contains(byRecordId))
  9443.             this.PersonnelRecords.Add((BusinessObject) byRecordId);
  9444.         }
  9445.         else
  9446.         {
  9447.           PersonnelRecord byRecordId = (GlobalValues.GetLookup(typeof (PersonnelRecordList)) as PersonnelRecordList).FindByRecordID(this.currentPersonnelRecordID);
  9448.           if ((BusinessObject) byRecordId != (BusinessObject) null)
  9449.           {
  9450.             byRecordId.UserLoginID = new Guid?();
  9451.             this.PersonnelRecords.Remove((BusinessObject) byRecordId);
  9452.           }
  9453.         }
  9454.         this.SetDataState("CurrentPersonnelRecordID");
  9455.       }
  9456.     }
  9457.  
  9458.     public UserLogin()
  9459.     {
  9460.       this.baseTableName = "UserLogins";
  9461.       this.applicationComponentName = "Security";
  9462.     }
  9463.  
  9464.     public UserLogin(Guid? recordID)
  9465.       : this()
  9466.     {
  9467.       this.recordID = recordID;
  9468.       this.Refresh();
  9469.     }
  9470.  
  9471.     public UserLogin(Guid? recordID, bool refresh)
  9472.       : this()
  9473.     {
  9474.       this.recordID = recordID;
  9475.       if (!refresh)
  9476.         return;
  9477.       this.Refresh();
  9478.     }
  9479.  
  9480.     public UserLogin(SerializationInfo info, StreamingContext context)
  9481.       : base(info, context)
  9482.     {
  9483.       foreach (SerializationEntry serializationEntry in info)
  9484.       {
  9485.         switch (serializationEntry.Name)
  9486.         {
  9487.           case "userName":
  9488.             this.userName = (string) info.GetValue("userName", typeof (string));
  9489.             continue;
  9490.           case "password":
  9491.             this.password = (string) info.GetValue("password", typeof (string));
  9492.             continue;
  9493.           case "userDisplayName":
  9494.             this.userDisplayName = (string) info.GetValue("userDisplayName", typeof (string));
  9495.             continue;
  9496.           case "ageDetails":
  9497.             this.ageDetails = (AgeDetailList) info.GetValue("ageDetails", typeof (AgeDetailList));
  9498.             continue;
  9499.           case "agencies":
  9500.             this.agencies = (AgencyList) info.GetValue("agencies", typeof (AgencyList));
  9501.             continue;
  9502.           case "agencyReferrals":
  9503.             this.agencyReferrals = (AgencyReferralList) info.GetValue("agencyReferrals", typeof (AgencyReferralList));
  9504.             continue;
  9505.           case "apparatusComponentInspections":
  9506.             this.apparatusComponentInspections = (ApparatusComponentInspectionList) info.GetValue("apparatusComponentInspections", typeof (ApparatusComponentInspectionList));
  9507.             continue;
  9508.           case "apparatusComponents":
  9509.             this.apparatusComponents = (ApparatusComponentList) info.GetValue("apparatusComponents", typeof (ApparatusComponentList));
  9510.             continue;
  9511.           case "apparatusComponentTests":
  9512.             this.apparatusComponentTests = (ApparatusComponentTestList) info.GetValue("apparatusComponentTests", typeof (ApparatusComponentTestList));
  9513.             continue;
  9514.           case "apparatusFluids":
  9515.             this.apparatusFluids = (ApparatusFluidList) info.GetValue("apparatusFluids", typeof (ApparatusFluidList));
  9516.             continue;
  9517.           case "apparatusParts":
  9518.             this.apparatusParts = (ApparatusPartList) info.GetValue("apparatusParts", typeof (ApparatusPartList));
  9519.             continue;
  9520.           case "apparatusSlots":
  9521.             this.apparatusSlots = (ApparatusSlotList) info.GetValue("apparatusSlots", typeof (ApparatusSlotList));
  9522.             continue;
  9523.           case "apparentGroupInvolvmentFactors":
  9524.             this.apparentGroupInvolvmentFactors = (ApparentGroupInvolvmentFactorList) info.GetValue("apparentGroupInvolvmentFactors", typeof (ApparentGroupInvolvmentFactorList));
  9525.             continue;
  9526.           case "applicationActivityLogs":
  9527.             this.applicationActivityLogs = (ApplicationActivityLogList) info.GetValue("applicationActivityLogs", typeof (ApplicationActivityLogList));
  9528.             continue;
  9529.           case "applicationComponentParts":
  9530.             this.applicationComponentParts = (ApplicationComponentPartList) info.GetValue("applicationComponentParts", typeof (ApplicationComponentPartList));
  9531.             continue;
  9532.           case "applicationComponentRoles":
  9533.             this.applicationComponentRoles = (ApplicationComponentRoleList) info.GetValue("applicationComponentRoles", typeof (ApplicationComponentRoleList));
  9534.             continue;
  9535.           case "applicationComponents":
  9536.             this.applicationComponents = (ApplicationComponentList) info.GetValue("applicationComponents", typeof (ApplicationComponentList));
  9537.             continue;
  9538.           case "applicationMessageDestinations":
  9539.             this.applicationMessageDestinations = (ApplicationMessageDestinationList) info.GetValue("applicationMessageDestinations", typeof (ApplicationMessageDestinationList));
  9540.             continue;
  9541.           case "sendToUserApplicationMessageDestinations":
  9542.             this.sendToUserApplicationMessageDestinations = (ApplicationMessageDestinationList) info.GetValue("sendToUserApplicationMessageDestinations", typeof (ApplicationMessageDestinationList));
  9543.             continue;
  9544.           case "sendToUserNameApplicationMessageDestinations":
  9545.             this.sendToUserNameApplicationMessageDestinations = (ApplicationMessageDestinationList) info.GetValue("sendToUserNameApplicationMessageDestinations", typeof (ApplicationMessageDestinationList));
  9546.             continue;
  9547.           case "applicationMessageRecipients":
  9548.             this.applicationMessageRecipients = (ApplicationMessageRecipientList) info.GetValue("applicationMessageRecipients", typeof (ApplicationMessageRecipientList));
  9549.             continue;
  9550.           case "userLoginApplicationMessageRecipients":
  9551.             this.userLoginApplicationMessageRecipients = (ApplicationMessageRecipientList) info.GetValue("userLoginApplicationMessageRecipients", typeof (ApplicationMessageRecipientList));
  9552.             continue;
  9553.           case "applicationMessages":
  9554.             this.applicationMessages = (ApplicationMessageList) info.GetValue("applicationMessages", typeof (ApplicationMessageList));
  9555.             continue;
  9556.           case "userLoginApplicationMessages":
  9557.             this.userLoginApplicationMessages = (ApplicationMessageList) info.GetValue("userLoginApplicationMessages", typeof (ApplicationMessageList));
  9558.             continue;
  9559.           case "applicationPermissions":
  9560.             this.applicationPermissions = (ApplicationPermissionList) info.GetValue("applicationPermissions", typeof (ApplicationPermissionList));
  9561.             continue;
  9562.           case "applicationPreferences":
  9563.             this.applicationPreferences = (ApplicationPreferenceList) info.GetValue("applicationPreferences", typeof (ApplicationPreferenceList));
  9564.             continue;
  9565.           case "applicationRoleComponents":
  9566.             this.applicationRoleComponents = (ApplicationRoleComponentList) info.GetValue("applicationRoleComponents", typeof (ApplicationRoleComponentList));
  9567.             continue;
  9568.           case "applicationRolePermissions":
  9569.             this.applicationRolePermissions = (ApplicationRolePermissionList) info.GetValue("applicationRolePermissions", typeof (ApplicationRolePermissionList));
  9570.             continue;
  9571.           case "applicationRoles":
  9572.             this.applicationRoles = (ApplicationRoleList) info.GetValue("applicationRoles", typeof (ApplicationRoleList));
  9573.             continue;
  9574.           case "applicationRoleSubComponents":
  9575.             this.applicationRoleSubComponents = (ApplicationRoleSubComponentList) info.GetValue("applicationRoleSubComponents", typeof (ApplicationRoleSubComponentList));
  9576.             continue;
  9577.           case "applicationSubcomponents":
  9578.             this.applicationSubcomponents = (ApplicationSubcomponentList) info.GetValue("applicationSubcomponents", typeof (ApplicationSubcomponentList));
  9579.             continue;
  9580.           case "archivedReports":
  9581.             this.archivedReports = (ArchivedReportList) info.GetValue("archivedReports", typeof (ArchivedReportList));
  9582.             continue;
  9583.           case "areaHospitals":
  9584.             this.areaHospitals = (AreaHospitalList) info.GetValue("areaHospitals", typeof (AreaHospitalList));
  9585.             continue;
  9586.           case "arrests":
  9587.             this.arrests = (ArrestList) info.GetValue("arrests", typeof (ArrestList));
  9588.             continue;
  9589.           case "arsonMotivationOrRiskFactors":
  9590.             this.arsonMotivationOrRiskFactors = (ArsonMotivationOrRiskFactorList) info.GetValue("arsonMotivationOrRiskFactors", typeof (ArsonMotivationOrRiskFactorList));
  9591.             continue;
  9592.           case "arsonRecords":
  9593.             this.arsonRecords = (ArsonRecordList) info.GetValue("arsonRecords", typeof (ArsonRecordList));
  9594.             continue;
  9595.           case "arsonSubjects":
  9596.             this.arsonSubjects = (ArsonSubjectList) info.GetValue("arsonSubjects", typeof (ArsonSubjectList));
  9597.             continue;
  9598.           case "assetAcquisitions":
  9599.             this.assetAcquisitions = (AssetAcquisitionList) info.GetValue("assetAcquisitions", typeof (AssetAcquisitionList));
  9600.             continue;
  9601.           case "assetDispositions":
  9602.             this.assetDispositions = (AssetDispositionList) info.GetValue("assetDispositions", typeof (AssetDispositionList));
  9603.             continue;
  9604.           case "assignedInspectors":
  9605.             this.assignedInspectors = (AssignedInspectorList) info.GetValue("assignedInspectors", typeof (AssignedInspectorList));
  9606.             continue;
  9607.           case "autopsies":
  9608.             this.autopsies = (AutopsyList) info.GetValue("autopsies", typeof (AutopsyList));
  9609.             continue;
  9610.           case "autopsyRemovedObjects":
  9611.             this.autopsyRemovedObjects = (AutopsyRemovedObjectList) info.GetValue("autopsyRemovedObjects", typeof (AutopsyRemovedObjectList));
  9612.             continue;
  9613.           case "autopsySpecimens":
  9614.             this.autopsySpecimens = (AutopsySpecimenList) info.GetValue("autopsySpecimens", typeof (AutopsySpecimenList));
  9615.             continue;
  9616.           case "autopsyWitnesses":
  9617.             this.autopsyWitnesses = (AutopsyWitnessList) info.GetValue("autopsyWitnesses", typeof (AutopsyWitnessList));
  9618.             continue;
  9619.           case "battalions":
  9620.             this.battalions = (BattalionList) info.GetValue("battalions", typeof (BattalionList));
  9621.             continue;
  9622.           case "bodyInjurySites":
  9623.             this.bodyInjurySites = (BodyInjurySiteList) info.GetValue("bodyInjurySites", typeof (BodyInjurySiteList));
  9624.             continue;
  9625.           case "bombActionsTaken":
  9626.             this.bombActionsTaken = (BombActionsTakenList) info.GetValue("bombActionsTaken", typeof (BombActionsTakenList));
  9627.             continue;
  9628.           case "bombs":
  9629.             this.bombs = (BombList) info.GetValue("bombs", typeof (BombList));
  9630.             continue;
  9631.           case "bombThreats":
  9632.             this.bombThreats = (BombThreatList) info.GetValue("bombThreats", typeof (BombThreatList));
  9633.             continue;
  9634.           case "burnedCrops":
  9635.             this.burnedCrops = (BurnedCropList) info.GetValue("burnedCrops", typeof (BurnedCropList));
  9636.             continue;
  9637.           case "businessEntities":
  9638.             this.businessEntities = (BusinessEntityList) info.GetValue("businessEntities", typeof (BusinessEntityList));
  9639.             continue;
  9640.           case "cardiacArrestPreArrivalDetails":
  9641.             this.cardiacArrestPreArrivalDetails = (CardiacArrestPreArrivalDetailList) info.GetValue("cardiacArrestPreArrivalDetails", typeof (CardiacArrestPreArrivalDetailList));
  9642.             continue;
  9643.           case "caseEvidenceItems":
  9644.             this.caseEvidenceItems = (CaseEvidenceItemList) info.GetValue("caseEvidenceItems", typeof (CaseEvidenceItemList));
  9645.             continue;
  9646.           case "caseInvestigators":
  9647.             this.caseInvestigators = (CaseInvestigatorList) info.GetValue("caseInvestigators", typeof (CaseInvestigatorList));
  9648.             continue;
  9649.           case "certificates":
  9650.             this.certificates = (CertificateList) info.GetValue("certificates", typeof (CertificateList));
  9651.             continue;
  9652.           case "certificateTypeRequirements":
  9653.             this.certificateTypeRequirements = (CertificateTypeRequirementList) info.GetValue("certificateTypeRequirements", typeof (CertificateTypeRequirementList));
  9654.             continue;
  9655.           case "certificateTypes":
  9656.             this.certificateTypes = (CertificateTypeList) info.GetValue("certificateTypes", typeof (CertificateTypeList));
  9657.             continue;
  9658.           case "certificationGrades":
  9659.             this.certificationGrades = (CertificationGradeList) info.GetValue("certificationGrades", typeof (CertificationGradeList));
  9660.             continue;
  9661.           case "certifications":
  9662.             this.certifications = (CertificationList) info.GetValue("certifications", typeof (CertificationList));
  9663.             continue;
  9664.           case "civilianCasualties":
  9665.             this.civilianCasualties = (CivilianCasualtyList) info.GetValue("civilianCasualties", typeof (CivilianCasualtyList));
  9666.             continue;
  9667.           case "componentLoggingLevels":
  9668.             this.componentLoggingLevels = (ComponentLoggingLevelList) info.GetValue("componentLoggingLevels", typeof (ComponentLoggingLevelList));
  9669.             continue;
  9670.           case "componentSecurityLevels":
  9671.             this.componentSecurityLevels = (ComponentSecurityLevelList) info.GetValue("componentSecurityLevels", typeof (ComponentSecurityLevelList));
  9672.             continue;
  9673.           case "userLoginComponentSecurityLevels":
  9674.             this.userLoginComponentSecurityLevels = (ComponentSecurityLevelList) info.GetValue("userLoginComponentSecurityLevels", typeof (ComponentSecurityLevelList));
  9675.             continue;
  9676.           case "contactMethods":
  9677.             this.contactMethods = (ContactMethodList) info.GetValue("contactMethods", typeof (ContactMethodList));
  9678.             continue;
  9679.           case "contributedToIgnitionFactors":
  9680.             this.contributedToIgnitionFactors = (ContributedToIgnitionFactorList) info.GetValue("contributedToIgnitionFactors", typeof (ContributedToIgnitionFactorList));
  9681.             continue;
  9682.           case "contributingInjuryFactors":
  9683.             this.contributingInjuryFactors = (ContributingInjuryFactorList) info.GetValue("contributingInjuryFactors", typeof (ContributingInjuryFactorList));
  9684.             continue;
  9685.           case "coverageAreas":
  9686.             this.coverageAreas = (CoverageAreaList) info.GetValue("coverageAreas", typeof (CoverageAreaList));
  9687.             continue;
  9688.           case "customDictionaryEntries":
  9689.             this.customDictionaryEntries = (CustomDictionaryEntryList) info.GetValue("customDictionaryEntries", typeof (CustomDictionaryEntryList));
  9690.             continue;
  9691.           case "customerContacts":
  9692.             this.customerContacts = (CustomerContactList) info.GetValue("customerContacts", typeof (CustomerContactList));
  9693.             continue;
  9694.           case "customerLoginComponents":
  9695.             this.customerLoginComponents = (CustomerLoginComponentList) info.GetValue("customerLoginComponents", typeof (CustomerLoginComponentList));
  9696.             continue;
  9697.           case "customerLoginPermissions":
  9698.             this.customerLoginPermissions = (CustomerLoginPermissionList) info.GetValue("customerLoginPermissions", typeof (CustomerLoginPermissionList));
  9699.             continue;
  9700.           case "customerLoginRoles":
  9701.             this.customerLoginRoles = (CustomerLoginRoleList) info.GetValue("customerLoginRoles", typeof (CustomerLoginRoleList));
  9702.             continue;
  9703.           case "customerLogins":
  9704.             this.customerLogins = (CustomerLoginList) info.GetValue("customerLogins", typeof (CustomerLoginList));
  9705.             continue;
  9706.           case "userLoginCustomerLogins":
  9707.             this.userLoginCustomerLogins = (CustomerLoginList) info.GetValue("userLoginCustomerLogins", typeof (CustomerLoginList));
  9708.             continue;
  9709.           case "customerLoginSubcomponents":
  9710.             this.customerLoginSubcomponents = (CustomerLoginSubcomponentList) info.GetValue("customerLoginSubcomponents", typeof (CustomerLoginSubcomponentList));
  9711.             continue;
  9712.           case "customers":
  9713.             this.customers = (CustomerList) info.GetValue("customers", typeof (CustomerList));
  9714.             continue;
  9715.           case "customFields":
  9716.             this.customFields = (CustomFieldList) info.GetValue("customFields", typeof (CustomFieldList));
  9717.             continue;
  9718.           case "customFieldValues":
  9719.             this.customFieldValues = (CustomFieldValueList) info.GetValue("customFieldValues", typeof (CustomFieldValueList));
  9720.             continue;
  9721.           case "customNFIRSTextEntries":
  9722.             this.customNFIRSTextEntries = (CustomNFIRSTextEntryList) info.GetValue("customNFIRSTextEntries", typeof (CustomNFIRSTextEntryList));
  9723.             continue;
  9724.           case "customSchedulingCalculations":
  9725.             this.customSchedulingCalculations = (CustomSchedulingCalculationList) info.GetValue("customSchedulingCalculations", typeof (CustomSchedulingCalculationList));
  9726.             continue;
  9727.           case "customSchedulingEnteredValues":
  9728.             this.customSchedulingEnteredValues = (CustomSchedulingEnteredValueList) info.GetValue("customSchedulingEnteredValues", typeof (CustomSchedulingEnteredValueList));
  9729.             continue;
  9730.           case "dailyLogApparatusEntries":
  9731.             this.dailyLogApparatusEntries = (DailyLogApparatusEntryList) info.GetValue("dailyLogApparatusEntries", typeof (DailyLogApparatusEntryList));
  9732.             continue;
  9733.           case "dailyLogEntries":
  9734.             this.dailyLogEntries = (DailyLogEntryList) info.GetValue("dailyLogEntries", typeof (DailyLogEntryList));
  9735.             continue;
  9736.           case "dailyLogEntryTypes":
  9737.             this.dailyLogEntryTypes = (DailyLogEntryTypeList) info.GetValue("dailyLogEntryTypes", typeof (DailyLogEntryTypeList));
  9738.             continue;
  9739.           case "dailyLogPersonnelEntries":
  9740.             this.dailyLogPersonnelEntries = (DailyLogPersonnelEntryList) info.GetValue("dailyLogPersonnelEntries", typeof (DailyLogPersonnelEntryList));
  9741.             continue;
  9742.           case "dailyLogShiftEntries":
  9743.             this.dailyLogShiftEntries = (DailyLogShiftEntryList) info.GetValue("dailyLogShiftEntries", typeof (DailyLogShiftEntryList));
  9744.             continue;
  9745.           case "dailyLogStationEntries":
  9746.             this.dailyLogStationEntries = (DailyLogStationEntryList) info.GetValue("dailyLogStationEntries", typeof (DailyLogStationEntryList));
  9747.             continue;
  9748.           case "dailyLogUsedEquipmentItems":
  9749.             this.dailyLogUsedEquipmentItems = (DailyLogUsedEquipmentItemList) info.GetValue("dailyLogUsedEquipmentItems", typeof (DailyLogUsedEquipmentItemList));
  9750.             continue;
  9751.           case "dailyLogUsedSupplyItems":
  9752.             this.dailyLogUsedSupplyItems = (DailyLogUsedSupplyItemList) info.GetValue("dailyLogUsedSupplyItems", typeof (DailyLogUsedSupplyItemList));
  9753.             continue;
  9754.           case "departmentFDIDs":
  9755.             this.departmentFDIDs = (DepartmentFDIDList) info.GetValue("departmentFDIDs", typeof (DepartmentFDIDList));
  9756.             continue;
  9757.           case "departmentLoginComponents":
  9758.             this.departmentLoginComponents = (DepartmentLoginComponentList) info.GetValue("departmentLoginComponents", typeof (DepartmentLoginComponentList));
  9759.             continue;
  9760.           case "departmentLoginPermissions":
  9761.             this.departmentLoginPermissions = (DepartmentLoginPermissionList) info.GetValue("departmentLoginPermissions", typeof (DepartmentLoginPermissionList));
  9762.             continue;
  9763.           case "departmentLoginRoles":
  9764.             this.departmentLoginRoles = (DepartmentLoginRoleList) info.GetValue("departmentLoginRoles", typeof (DepartmentLoginRoleList));
  9765.             continue;
  9766.           case "departmentLogins":
  9767.             this.departmentLogins = (DepartmentLoginList) info.GetValue("departmentLogins", typeof (DepartmentLoginList));
  9768.             continue;
  9769.           case "userLoginDepartmentLogins":
  9770.             this.userLoginDepartmentLogins = (DepartmentLoginList) info.GetValue("userLoginDepartmentLogins", typeof (DepartmentLoginList));
  9771.             continue;
  9772.           case "departmentLoginSubcomponents":
  9773.             this.departmentLoginSubcomponents = (DepartmentLoginSubcomponentList) info.GetValue("departmentLoginSubcomponents", typeof (DepartmentLoginSubcomponentList));
  9774.             continue;
  9775.           case "disciplinaryReports":
  9776.             this.disciplinaryReports = (DisciplinaryReportList) info.GetValue("disciplinaryReports", typeof (DisciplinaryReportList));
  9777.             continue;
  9778.           case "districts":
  9779.             this.districts = (DistrictList) info.GetValue("districts", typeof (DistrictList));
  9780.             continue;
  9781.           case "employmentCategorySchedulingConstraints":
  9782.             this.employmentCategorySchedulingConstraints = (EmploymentCategorySchedulingConstraintList) info.GetValue("employmentCategorySchedulingConstraints", typeof (EmploymentCategorySchedulingConstraintList));
  9783.             continue;
  9784.           case "eMSPatients":
  9785.             this.eMSPatients = (EMSPatientList) info.GetValue("eMSPatients", typeof (EMSPatientList));
  9786.             continue;
  9787.           case "ePADictionaryEntries":
  9788.             this.ePADictionaryEntries = (EPADictionaryEntryList) info.GetValue("ePADictionaryEntries", typeof (EPADictionaryEntryList));
  9789.             continue;
  9790.           case "equipmentConditionRecords":
  9791.             this.equipmentConditionRecords = (EquipmentConditionRecordList) info.GetValue("equipmentConditionRecords", typeof (EquipmentConditionRecordList));
  9792.             continue;
  9793.           case "equipmentConditions":
  9794.             this.equipmentConditions = (EquipmentConditionList) info.GetValue("equipmentConditions", typeof (EquipmentConditionList));
  9795.             continue;
  9796.           case "equipmentItemInspections":
  9797.             this.equipmentItemInspections = (EquipmentItemInspectionList) info.GetValue("equipmentItemInspections", typeof (EquipmentItemInspectionList));
  9798.             continue;
  9799.           case "equipmentItems":
  9800.             this.equipmentItems = (EquipmentItemList) info.GetValue("equipmentItems", typeof (EquipmentItemList));
  9801.             continue;
  9802.           case "equipmentItemSizes":
  9803.             this.equipmentItemSizes = (EquipmentItemSizeList) info.GetValue("equipmentItemSizes", typeof (EquipmentItemSizeList));
  9804.             continue;
  9805.           case "equipmentItemTestDetails":
  9806.             this.equipmentItemTestDetails = (EquipmentItemTestDetailList) info.GetValue("equipmentItemTestDetails", typeof (EquipmentItemTestDetailList));
  9807.             continue;
  9808.           case "equipmentItemTests":
  9809.             this.equipmentItemTests = (EquipmentItemTestList) info.GetValue("equipmentItemTests", typeof (EquipmentItemTestList));
  9810.             continue;
  9811.           case "equipmentSizeFields":
  9812.             this.equipmentSizeFields = (EquipmentSizeFieldList) info.GetValue("equipmentSizeFields", typeof (EquipmentSizeFieldList));
  9813.             continue;
  9814.           case "equipmentStatuses":
  9815.             this.equipmentStatuses = (EquipmentStatusList) info.GetValue("equipmentStatuses", typeof (EquipmentStatusList));
  9816.             continue;
  9817.           case "equipmentStatusRecords":
  9818.             this.equipmentStatusRecords = (EquipmentStatusRecordList) info.GetValue("equipmentStatusRecords", typeof (EquipmentStatusRecordList));
  9819.             continue;
  9820.           case "equipmentTypes":
  9821.             this.equipmentTypes = (EquipmentTypeList) info.GetValue("equipmentTypes", typeof (EquipmentTypeList));
  9822.             continue;
  9823.           case "fieldInvestigations":
  9824.             this.fieldInvestigations = (FieldInvestigationList) info.GetValue("fieldInvestigations", typeof (FieldInvestigationList));
  9825.             continue;
  9826.           case "filedCharges":
  9827.             this.filedCharges = (FiledChargeList) info.GetValue("filedCharges", typeof (FiledChargeList));
  9828.             continue;
  9829.           case "fireExtinguishers":
  9830.             this.fireExtinguishers = (FireExtinguisherList) info.GetValue("fireExtinguishers", typeof (FireExtinguisherList));
  9831.             continue;
  9832.           case "fireInvestigations":
  9833.             this.fireInvestigations = (FireInvestigationList) info.GetValue("fireInvestigations", typeof (FireInvestigationList));
  9834.             continue;
  9835.           case "lockedByUserFireInvestigations":
  9836.             this.lockedByUserFireInvestigations = (FireInvestigationList) info.GetValue("lockedByUserFireInvestigations", typeof (FireInvestigationList));
  9837.             continue;
  9838.           case "fireServiceCasualties":
  9839.             this.fireServiceCasualties = (FireServiceCasualtyList) info.GetValue("fireServiceCasualties", typeof (FireServiceCasualtyList));
  9840.             continue;
  9841.           case "fixedAssetInventoryItems":
  9842.             this.fixedAssetInventoryItems = (FixedAssetInventoryItemList) info.GetValue("fixedAssetInventoryItems", typeof (FixedAssetInventoryItemList));
  9843.             continue;
  9844.           case "fixedAssetItemTests":
  9845.             this.fixedAssetItemTests = (FixedAssetItemTestList) info.GetValue("fixedAssetItemTests", typeof (FixedAssetItemTestList));
  9846.             continue;
  9847.           case "fleetApparatusRecords":
  9848.             this.fleetApparatusRecords = (FleetApparatusRecordList) info.GetValue("fleetApparatusRecords", typeof (FleetApparatusRecordList));
  9849.             continue;
  9850.           case "fleetApparatusTypes":
  9851.             this.fleetApparatusTypes = (FleetApparatusTypeList) info.GetValue("fleetApparatusTypes", typeof (FleetApparatusTypeList));
  9852.             continue;
  9853.           case "fLSAPeriods":
  9854.             this.fLSAPeriods = (FLSAPeriodList) info.GetValue("fLSAPeriods", typeof (FLSAPeriodList));
  9855.             continue;
  9856.           case "fluidTypes":
  9857.             this.fluidTypes = (FluidTypeList) info.GetValue("fluidTypes", typeof (FluidTypeList));
  9858.             continue;
  9859.           case "hazMatActions":
  9860.             this.hazMatActions = (HazMatActionList) info.GetValue("hazMatActions", typeof (HazMatActionList));
  9861.             continue;
  9862.           case "hazMatChemicalReleases":
  9863.             this.hazMatChemicalReleases = (HazMatChemicalReleaseList) info.GetValue("hazMatChemicalReleases", typeof (HazMatChemicalReleaseList));
  9864.             continue;
  9865.           case "hazMatExposures":
  9866.             this.hazMatExposures = (HazMatExposureList) info.GetValue("hazMatExposures", typeof (HazMatExposureList));
  9867.             continue;
  9868.           case "hazMatMitigationFactors":
  9869.             this.hazMatMitigationFactors = (HazMatMitigationFactorList) info.GetValue("hazMatMitigationFactors", typeof (HazMatMitigationFactorList));
  9870.             continue;
  9871.           case "hazMatRecords":
  9872.             this.hazMatRecords = (HazMatRecordList) info.GetValue("hazMatRecords", typeof (HazMatRecordList));
  9873.             continue;
  9874.           case "hazMatReleaseFactors":
  9875.             this.hazMatReleaseFactors = (HazMatReleaseFactorList) info.GetValue("hazMatReleaseFactors", typeof (HazMatReleaseFactorList));
  9876.             continue;
  9877.           case "hazTrakHealthHazards":
  9878.             this.hazTrakHealthHazards = (HazTrakHealthHazardList) info.GetValue("hazTrakHealthHazards", typeof (HazTrakHealthHazardList));
  9879.             continue;
  9880.           case "hazTrakRecords":
  9881.             this.hazTrakRecords = (HazTrakRecordList) info.GetValue("hazTrakRecords", typeof (HazTrakRecordList));
  9882.             continue;
  9883.           case "hazTrakStorageLocations":
  9884.             this.hazTrakStorageLocations = (HazTrakStorageLocationList) info.GetValue("hazTrakStorageLocations", typeof (HazTrakStorageLocationList));
  9885.             continue;
  9886.           case "helpFileEntries":
  9887.             this.helpFileEntries = (HelpFileEntryList) info.GetValue("helpFileEntries", typeof (HelpFileEntryList));
  9888.             continue;
  9889.           case "hoses":
  9890.             this.hoses = (HoseList) info.GetValue("hoses", typeof (HoseList));
  9891.             continue;
  9892.           case "hoseTestDetails":
  9893.             this.hoseTestDetails = (HoseTestDetailList) info.GetValue("hoseTestDetails", typeof (HoseTestDetailList));
  9894.             continue;
  9895.           case "hoseTests":
  9896.             this.hoseTests = (HoseTestList) info.GetValue("hoseTests", typeof (HoseTestList));
  9897.             continue;
  9898.           case "hoseTypes":
  9899.             this.hoseTypes = (HoseTypeList) info.GetValue("hoseTypes", typeof (HoseTypeList));
  9900.             continue;
  9901.           case "humanFactors":
  9902.             this.humanFactors = (HumanFactorList) info.GetValue("humanFactors", typeof (HumanFactorList));
  9903.             continue;
  9904.           case "humanInjuryFactors":
  9905.             this.humanInjuryFactors = (HumanInjuryFactorList) info.GetValue("humanInjuryFactors", typeof (HumanInjuryFactorList));
  9906.             continue;
  9907.           case "hydrantInspections":
  9908.             this.hydrantInspections = (HydrantInspectionList) info.GetValue("hydrantInspections", typeof (HydrantInspectionList));
  9909.             continue;
  9910.           case "hydrants":
  9911.             this.hydrants = (HydrantList) info.GetValue("hydrants", typeof (HydrantList));
  9912.             continue;
  9913.           case "hydrantTests":
  9914.             this.hydrantTests = (HydrantTestList) info.GetValue("hydrantTests", typeof (HydrantTestList));
  9915.             continue;
  9916.           case "incidentActions":
  9917.             this.incidentActions = (IncidentActionList) info.GetValue("incidentActions", typeof (IncidentActionList));
  9918.             continue;
  9919.           case "incidentExposures":
  9920.             this.incidentExposures = (IncidentExposureList) info.GetValue("incidentExposures", typeof (IncidentExposureList));
  9921.             continue;
  9922.           case "incidentMappingSettings":
  9923.             this.incidentMappingSettings = (IncidentMappingSettingList) info.GetValue("incidentMappingSettings", typeof (IncidentMappingSettingList));
  9924.             continue;
  9925.           case "userLoginIncidentMappingSettings":
  9926.             this.userLoginIncidentMappingSettings = (IncidentMappingSettingList) info.GetValue("userLoginIncidentMappingSettings", typeof (IncidentMappingSettingList));
  9927.             continue;
  9928.           case "incidentRecords":
  9929.             this.incidentRecords = (IncidentRecordList) info.GetValue("incidentRecords", typeof (IncidentRecordList));
  9930.             continue;
  9931.           case "incidentRoles":
  9932.             this.incidentRoles = (IncidentRoleList) info.GetValue("incidentRoles", typeof (IncidentRoleList));
  9933.             continue;
  9934.           case "incidentSpecialStudies":
  9935.             this.incidentSpecialStudies = (IncidentSpecialStudyList) info.GetValue("incidentSpecialStudies", typeof (IncidentSpecialStudyList));
  9936.             continue;
  9937.           case "incidentUsedEquipmentItems":
  9938.             this.incidentUsedEquipmentItems = (IncidentUsedEquipmentItemList) info.GetValue("incidentUsedEquipmentItems", typeof (IncidentUsedEquipmentItemList));
  9939.             continue;
  9940.           case "incidentUsedSupplyItems":
  9941.             this.incidentUsedSupplyItems = (IncidentUsedSupplyItemList) info.GetValue("incidentUsedSupplyItems", typeof (IncidentUsedSupplyItemList));
  9942.             continue;
  9943.           case "initialObservations":
  9944.             this.initialObservations = (InitialObservationList) info.GetValue("initialObservations", typeof (InitialObservationList));
  9945.             continue;
  9946.           case "inspectionDistricts":
  9947.             this.inspectionDistricts = (InspectionDistrictList) info.GetValue("inspectionDistricts", typeof (InspectionDistrictList));
  9948.             continue;
  9949.           case "inspectionGroups":
  9950.             this.inspectionGroups = (InspectionGroupList) info.GetValue("inspectionGroups", typeof (InspectionGroupList));
  9951.             continue;
  9952.           case "insuranceClaims":
  9953.             this.insuranceClaims = (InsuranceClaimList) info.GetValue("insuranceClaims", typeof (InsuranceClaimList));
  9954.             continue;
  9955.           case "insuranceCompanies":
  9956.             this.insuranceCompanies = (InsuranceCompanyList) info.GetValue("insuranceCompanies", typeof (InsuranceCompanyList));
  9957.             continue;
  9958.           case "insurancePolicies":
  9959.             this.insurancePolicies = (InsurancePolicyList) info.GetValue("insurancePolicies", typeof (InsurancePolicyList));
  9960.             continue;
  9961.           case "interviewQuestions":
  9962.             this.interviewQuestions = (InterviewQuestionList) info.GetValue("interviewQuestions", typeof (InterviewQuestionList));
  9963.             continue;
  9964.           case "interviews":
  9965.             this.interviews = (InterviewList) info.GetValue("interviews", typeof (InterviewList));
  9966.             continue;
  9967.           case "interviewStandardQuestions":
  9968.             this.interviewStandardQuestions = (InterviewStandardQuestionList) info.GetValue("interviewStandardQuestions", typeof (InterviewStandardQuestionList));
  9969.             continue;
  9970.           case "inventoryItemCategories":
  9971.             this.inventoryItemCategories = (InventoryItemCategoryList) info.GetValue("inventoryItemCategories", typeof (InventoryItemCategoryList));
  9972.             continue;
  9973.           case "involvedAttorneys":
  9974.             this.involvedAttorneys = (InvolvedAttorneyList) info.GetValue("involvedAttorneys", typeof (InvolvedAttorneyList));
  9975.             continue;
  9976.           case "involvedEntities":
  9977.             this.involvedEntities = (InvolvedEntityList) info.GetValue("involvedEntities", typeof (InvolvedEntityList));
  9978.             continue;
  9979.           case "involvedPersons":
  9980.             this.involvedPersons = (InvolvedPersonList) info.GetValue("involvedPersons", typeof (InvolvedPersonList));
  9981.             continue;
  9982.           case "irregularAssignments":
  9983.             this.irregularAssignments = (IrregularAssignmentList) info.GetValue("irregularAssignments", typeof (IrregularAssignmentList));
  9984.             continue;
  9985.           case "issuedPermits":
  9986.             this.issuedPermits = (IssuedPermitList) info.GetValue("issuedPermits", typeof (IssuedPermitList));
  9987.             continue;
  9988.           case "itemCheckOuts":
  9989.             this.itemCheckOuts = (ItemCheckOutList) info.GetValue("itemCheckOuts", typeof (ItemCheckOutList));
  9990.             continue;
  9991.           case "juveniles":
  9992.             this.juveniles = (JuvenileList) info.GetValue("juveniles", typeof (JuvenileList));
  9993.             continue;
  9994.           case "labRequests":
  9995.             this.labRequests = (LabRequestList) info.GetValue("labRequests", typeof (LabRequestList));
  9996.             continue;
  9997.           case "labTechnicians":
  9998.             this.labTechnicians = (LabTechnicianList) info.GetValue("labTechnicians", typeof (LabTechnicianList));
  9999.             continue;
  10000.           case "legalOfficers":
  10001.             this.legalOfficers = (LegalOfficerList) info.GetValue("legalOfficers", typeof (LegalOfficerList));
  10002.             continue;
  10003.           case "licenseModules":
  10004.             this.licenseModules = (LicenseModuleList) info.GetValue("licenseModules", typeof (LicenseModuleList));
  10005.             continue;
  10006.           case "licenses":
  10007.             this.licenses = (LicenseList) info.GetValue("licenses", typeof (LicenseList));
  10008.             continue;
  10009.           case "licenseUserSessions":
  10010.             this.licenseUserSessions = (LicenseUserSessionList) info.GetValue("licenseUserSessions", typeof (LicenseUserSessionList));
  10011.             continue;
  10012.           case "userLoginLicenseUserSessions":
  10013.             this.userLoginLicenseUserSessions = (LicenseUserSessionList) info.GetValue("userLoginLicenseUserSessions", typeof (LicenseUserSessionList));
  10014.             continue;
  10015.           case "locationCrossStreets":
  10016.             this.locationCrossStreets = (LocationCrossStreetList) info.GetValue("locationCrossStreets", typeof (LocationCrossStreetList));
  10017.             continue;
  10018.           case "locations":
  10019.             this.locations = (LocationList) info.GetValue("locations", typeof (LocationList));
  10020.             continue;
  10021.           case "maintenanceRequestItems":
  10022.             this.maintenanceRequestItems = (MaintenanceRequestItemList) info.GetValue("maintenanceRequestItems", typeof (MaintenanceRequestItemList));
  10023.             continue;
  10024.           case "maintenanceRequests":
  10025.             this.maintenanceRequests = (MaintenanceRequestList) info.GetValue("maintenanceRequests", typeof (MaintenanceRequestList));
  10026.             continue;
  10027.           case "maintenanceTaskSchedules":
  10028.             this.maintenanceTaskSchedules = (MaintenanceTaskScheduleList) info.GetValue("maintenanceTaskSchedules", typeof (MaintenanceTaskScheduleList));
  10029.             continue;
  10030.           case "manufacturers":
  10031.             this.manufacturers = (ManufacturerList) info.GetValue("manufacturers", typeof (ManufacturerList));
  10032.             continue;
  10033.           case "manufacturerTypes":
  10034.             this.manufacturerTypes = (ManufacturerTypeList) info.GetValue("manufacturerTypes", typeof (ManufacturerTypeList));
  10035.             continue;
  10036.           case "mapLayoutFilterFields":
  10037.             this.mapLayoutFilterFields = (MapLayoutFilterFieldList) info.GetValue("mapLayoutFilterFields", typeof (MapLayoutFilterFieldList));
  10038.             continue;
  10039.           case "mapLayouts":
  10040.             this.mapLayouts = (MapLayoutList) info.GetValue("mapLayouts", typeof (MapLayoutList));
  10041.             continue;
  10042.           case "mappingComponents":
  10043.             this.mappingComponents = (MappingComponentList) info.GetValue("mappingComponents", typeof (MappingComponentList));
  10044.             continue;
  10045.           case "medicalExaminations":
  10046.             this.medicalExaminations = (MedicalExaminationList) info.GetValue("medicalExaminations", typeof (MedicalExaminationList));
  10047.             continue;
  10048.           case "medicalOfficers":
  10049.             this.medicalOfficers = (MedicalOfficerList) info.GetValue("medicalOfficers", typeof (MedicalOfficerList));
  10050.             continue;
  10051.           case "mobileProperties":
  10052.             this.mobileProperties = (MobilePropertyList) info.GetValue("mobileProperties", typeof (MobilePropertyList));
  10053.             continue;
  10054.           case "mortgageCompanies":
  10055.             this.mortgageCompanies = (MortgageCompanyList) info.GetValue("mortgageCompanies", typeof (MortgageCompanyList));
  10056.             continue;
  10057.           case "mortgages":
  10058.             this.mortgages = (MortgageList) info.GetValue("mortgages", typeof (MortgageList));
  10059.             continue;
  10060.           case "mutualAidRecords":
  10061.             this.mutualAidRecords = (MutualAidRecordList) info.GetValue("mutualAidRecords", typeof (MutualAidRecordList));
  10062.             continue;
  10063.           case "narrativeLinks":
  10064.             this.narrativeLinks = (NarrativeLinkList) info.GetValue("narrativeLinks", typeof (NarrativeLinkList));
  10065.             continue;
  10066.           case "narratives":
  10067.             this.narratives = (NarrativeList) info.GetValue("narratives", typeof (NarrativeList));
  10068.             continue;
  10069.           case "narrativeTemplates":
  10070.             this.narrativeTemplates = (NarrativeTemplateList) info.GetValue("narrativeTemplates", typeof (NarrativeTemplateList));
  10071.             continue;
  10072.           case "nearbyProperties":
  10073.             this.nearbyProperties = (NearbyPropertyList) info.GetValue("nearbyProperties", typeof (NearbyPropertyList));
  10074.             continue;
  10075.           case "neededResources":
  10076.             this.neededResources = (NeededResourceList) info.GetValue("neededResources", typeof (NeededResourceList));
  10077.             continue;
  10078.           case "nFIRSDictionaryEntries":
  10079.             this.nFIRSDictionaryEntries = (NFIRSDictionaryEntryList) info.GetValue("nFIRSDictionaryEntries", typeof (NFIRSDictionaryEntryList));
  10080.             continue;
  10081.           case "nFPADictionaryEntries":
  10082.             this.nFPADictionaryEntries = (NFPADictionaryEntryList) info.GetValue("nFPADictionaryEntries", typeof (NFPADictionaryEntryList));
  10083.             continue;
  10084.           case "officers":
  10085.             this.officers = (OfficerList) info.GetValue("officers", typeof (OfficerList));
  10086.             continue;
  10087.           case "onScenePersons":
  10088.             this.onScenePersons = (OnScenePersonList) info.GetValue("onScenePersons", typeof (OnScenePersonList));
  10089.             continue;
  10090.           case "onSiteMaterials":
  10091.             this.onSiteMaterials = (OnSiteMaterialList) info.GetValue("onSiteMaterials", typeof (OnSiteMaterialList));
  10092.             continue;
  10093.           case "otherObservations":
  10094.             this.otherObservations = (OtherObservationList) info.GetValue("otherObservations", typeof (OtherObservationList));
  10095.             continue;
  10096.           case "pageComponents":
  10097.             this.pageComponents = (PageComponentList) info.GetValue("pageComponents", typeof (PageComponentList));
  10098.             continue;
  10099.           case "pageLayouts":
  10100.             this.pageLayouts = (PageLayoutList) info.GetValue("pageLayouts", typeof (PageLayoutList));
  10101.             continue;
  10102.           case "userLoginPageLayouts":
  10103.             this.userLoginPageLayouts = (PageLayoutList) info.GetValue("userLoginPageLayouts", typeof (PageLayoutList));
  10104.             continue;
  10105.           case "payPeriods":
  10106.             this.payPeriods = (PayPeriodList) info.GetValue("payPeriods", typeof (PayPeriodList));
  10107.             continue;
  10108.           case "performedProcedures":
  10109.             this.performedProcedures = (PerformedProcedureList) info.GetValue("performedProcedures", typeof (PerformedProcedureList));
  10110.             continue;
  10111.           case "personAliasNames":
  10112.             this.personAliasNames = (PersonAliasNameList) info.GetValue("personAliasNames", typeof (PersonAliasNameList));
  10113.             continue;
  10114.           case "personLanguages":
  10115.             this.personLanguages = (PersonLanguageList) info.GetValue("personLanguages", typeof (PersonLanguageList));
  10116.             continue;
  10117.           case "personnelAllergies":
  10118.             this.personnelAllergies = (PersonnelAllergyList) info.GetValue("personnelAllergies", typeof (PersonnelAllergyList));
  10119.             continue;
  10120.           case "personnelCertifications":
  10121.             this.personnelCertifications = (PersonnelCertificationList) info.GetValue("personnelCertifications", typeof (PersonnelCertificationList));
  10122.             continue;
  10123.           case "personnelEmploymentCategories":
  10124.             this.personnelEmploymentCategories = (PersonnelEmploymentCategoryList) info.GetValue("personnelEmploymentCategories", typeof (PersonnelEmploymentCategoryList));
  10125.             continue;
  10126.           case "personnelEmploymentDetails":
  10127.             this.personnelEmploymentDetails = (PersonnelEmploymentDetailList) info.GetValue("personnelEmploymentDetails", typeof (PersonnelEmploymentDetailList));
  10128.             continue;
  10129.           case "personnelEquipmentSizes":
  10130.             this.personnelEquipmentSizes = (PersonnelEquipmentSizeList) info.GetValue("personnelEquipmentSizes", typeof (PersonnelEquipmentSizeList));
  10131.             continue;
  10132.           case "personnelEquipmentTestRecords":
  10133.             this.personnelEquipmentTestRecords = (PersonnelEquipmentTestRecordList) info.GetValue("personnelEquipmentTestRecords", typeof (PersonnelEquipmentTestRecordList));
  10134.             continue;
  10135.           case "personnelIrregularWorkPlaces":
  10136.             this.personnelIrregularWorkPlaces = (PersonnelIrregularWorkPlaceList) info.GetValue("personnelIrregularWorkPlaces", typeof (PersonnelIrregularWorkPlaceList));
  10137.             continue;
  10138.           case "personnelIrregularWorkTimes":
  10139.             this.personnelIrregularWorkTimes = (PersonnelIrregularWorkTimeList) info.GetValue("personnelIrregularWorkTimes", typeof (PersonnelIrregularWorkTimeList));
  10140.             continue;
  10141.           case "personnelMedicalDetails":
  10142.             this.personnelMedicalDetails = (PersonnelMedicalDetailList) info.GetValue("personnelMedicalDetails", typeof (PersonnelMedicalDetailList));
  10143.             continue;
  10144.           case "personnelMedications":
  10145.             this.personnelMedications = (PersonnelMedicationList) info.GetValue("personnelMedications", typeof (PersonnelMedicationList));
  10146.             continue;
  10147.           case "personnelRankHistory":
  10148.             this.personnelRankHistory = (PersonnelRankHistoryList) info.GetValue("personnelRankHistory", typeof (PersonnelRankHistoryList));
  10149.             continue;
  10150.           case "personnelRanks":
  10151.             this.personnelRanks = (PersonnelRankList) info.GetValue("personnelRanks", typeof (PersonnelRankList));
  10152.             continue;
  10153.           case "personnelRecords":
  10154.             this.personnelRecords = (PersonnelRecordList) info.GetValue("personnelRecords", typeof (PersonnelRecordList));
  10155.             continue;
  10156.           case "userLoginPersonnelRecords":
  10157.             this.userLoginPersonnelRecords = (PersonnelRecordList) info.GetValue("userLoginPersonnelRecords", typeof (PersonnelRecordList));
  10158.             continue;
  10159.           case "personnelRegularWorkPlaces":
  10160.             this.personnelRegularWorkPlaces = (PersonnelRegularWorkPlaceList) info.GetValue("personnelRegularWorkPlaces", typeof (PersonnelRegularWorkPlaceList));
  10161.             continue;
  10162.           case "personnelRegularWorkTimes":
  10163.             this.personnelRegularWorkTimes = (PersonnelRegularWorkTimeList) info.GetValue("personnelRegularWorkTimes", typeof (PersonnelRegularWorkTimeList));
  10164.             continue;
  10165.           case "personnelScheduledOffTimes":
  10166.             this.personnelScheduledOffTimes = (PersonnelScheduledOffTimeList) info.GetValue("personnelScheduledOffTimes", typeof (PersonnelScheduledOffTimeList));
  10167.             continue;
  10168.           case "personnelSchedulingConstraints":
  10169.             this.personnelSchedulingConstraints = (PersonnelSchedulingConstraintList) info.GetValue("personnelSchedulingConstraints", typeof (PersonnelSchedulingConstraintList));
  10170.             continue;
  10171.           case "personnelSkills":
  10172.             this.personnelSkills = (PersonnelSkillList) info.GetValue("personnelSkills", typeof (PersonnelSkillList));
  10173.             continue;
  10174.           case "personnelStatusRequests":
  10175.             this.personnelStatusRequests = (PersonnelStatusRequestList) info.GetValue("personnelStatusRequests", typeof (PersonnelStatusRequestList));
  10176.             continue;
  10177.           case "personnelStatusTimes":
  10178.             this.personnelStatusTimes = (PersonnelStatusTimeList) info.GetValue("personnelStatusTimes", typeof (PersonnelStatusTimeList));
  10179.             continue;
  10180.           case "personnelStatusTypes":
  10181.             this.personnelStatusTypes = (PersonnelStatusTypeList) info.GetValue("personnelStatusTypes", typeof (PersonnelStatusTypeList));
  10182.             continue;
  10183.           case "personnelTimesheetRecords":
  10184.             this.personnelTimesheetRecords = (PersonnelTimesheetRecordList) info.GetValue("personnelTimesheetRecords", typeof (PersonnelTimesheetRecordList));
  10185.             continue;
  10186.           case "personRecords":
  10187.             this.personRecords = (PersonRecordList) info.GetValue("personRecords", typeof (PersonRecordList));
  10188.             continue;
  10189.           case "personRoles":
  10190.             this.personRoles = (PersonRoleList) info.GetValue("personRoles", typeof (PersonRoleList));
  10191.             continue;
  10192.           case "prePlans":
  10193.             this.prePlans = (PrePlanList) info.GetValue("prePlans", typeof (PrePlanList));
  10194.             continue;
  10195.           case "propertyCodeViolations":
  10196.             this.propertyCodeViolations = (PropertyCodeViolationList) info.GetValue("propertyCodeViolations", typeof (PropertyCodeViolationList));
  10197.             continue;
  10198.           case "propertyHydrants":
  10199.             this.propertyHydrants = (PropertyHydrantList) info.GetValue("propertyHydrants", typeof (PropertyHydrantList));
  10200.             continue;
  10201.           case "propertyInspectionCodes":
  10202.             this.propertyInspectionCodes = (PropertyInspectionCodeList) info.GetValue("propertyInspectionCodes", typeof (PropertyInspectionCodeList));
  10203.             continue;
  10204.           case "propertyInspections":
  10205.             this.propertyInspections = (PropertyInspectionList) info.GetValue("propertyInspections", typeof (PropertyInspectionList));
  10206.             continue;
  10207.           case "propertyInspectionTypes":
  10208.             this.propertyInspectionTypes = (PropertyInspectionTypeList) info.GetValue("propertyInspectionTypes", typeof (PropertyInspectionTypeList));
  10209.             continue;
  10210.           case "propertyNames":
  10211.             this.propertyNames = (PropertyNameList) info.GetValue("propertyNames", typeof (PropertyNameList));
  10212.             continue;
  10213.           case "propertyOccupancyRecords":
  10214.             this.propertyOccupancyRecords = (PropertyOccupancyRecordList) info.GetValue("propertyOccupancyRecords", typeof (PropertyOccupancyRecordList));
  10215.             continue;
  10216.           case "propertyOwnershipRecords":
  10217.             this.propertyOwnershipRecords = (PropertyOwnershipRecordList) info.GetValue("propertyOwnershipRecords", typeof (PropertyOwnershipRecordList));
  10218.             continue;
  10219.           case "protectedProperties":
  10220.             this.protectedProperties = (ProtectedPropertyList) info.GetValue("protectedProperties", typeof (ProtectedPropertyList));
  10221.             continue;
  10222.           case "protectedPropertyContacts":
  10223.             this.protectedPropertyContacts = (ProtectedPropertyContactList) info.GetValue("protectedPropertyContacts", typeof (ProtectedPropertyContactList));
  10224.             continue;
  10225.           case "protectedPropertyDirections":
  10226.             this.protectedPropertyDirections = (ProtectedPropertyDirectionList) info.GetValue("protectedPropertyDirections", typeof (ProtectedPropertyDirectionList));
  10227.             continue;
  10228.           case "protectedPropertyInspectionGroups":
  10229.             this.protectedPropertyInspectionGroups = (ProtectedPropertyInspectionGroupList) info.GetValue("protectedPropertyInspectionGroups", typeof (ProtectedPropertyInspectionGroupList));
  10230.             continue;
  10231.           case "protectiveEquipmentFailures":
  10232.             this.protectiveEquipmentFailures = (ProtectiveEquipmentFailureList) info.GetValue("protectiveEquipmentFailures", typeof (ProtectiveEquipmentFailureList));
  10233.             continue;
  10234.           case "providedResources":
  10235.             this.providedResources = (ProvidedResourceList) info.GetValue("providedResources", typeof (ProvidedResourceList));
  10236.             continue;
  10237.           case "purchaseOrderItems":
  10238.             this.purchaseOrderItems = (PurchaseOrderItemList) info.GetValue("purchaseOrderItems", typeof (PurchaseOrderItemList));
  10239.             continue;
  10240.           case "purchaseOrderReceivedItems":
  10241.             this.purchaseOrderReceivedItems = (PurchaseOrderReceivedItemList) info.GetValue("purchaseOrderReceivedItems", typeof (PurchaseOrderReceivedItemList));
  10242.             continue;
  10243.           case "purchaseOrders":
  10244.             this.purchaseOrders = (PurchaseOrderList) info.GetValue("purchaseOrders", typeof (PurchaseOrderList));
  10245.             continue;
  10246.           case "receivedSynchronizations":
  10247.             this.receivedSynchronizations = (ReceivedSynchronizationList) info.GetValue("receivedSynchronizations", typeof (ReceivedSynchronizationList));
  10248.             continue;
  10249.           case "recordAttachments":
  10250.             this.recordAttachments = (RecordAttachmentList) info.GetValue("recordAttachments", typeof (RecordAttachmentList));
  10251.             continue;
  10252.           case "recordNotes":
  10253.             this.recordNotes = (RecordNoteList) info.GetValue("recordNotes", typeof (RecordNoteList));
  10254.             continue;
  10255.           case "createdByUserLoginRecordNotes":
  10256.             this.createdByUserLoginRecordNotes = (RecordNoteList) info.GetValue("createdByUserLoginRecordNotes", typeof (RecordNoteList));
  10257.             continue;
  10258.           case "registeredDepartments":
  10259.             this.registeredDepartments = (RegisteredDepartmentList) info.GetValue("registeredDepartments", typeof (RegisteredDepartmentList));
  10260.             continue;
  10261.           case "regularApparatusAssignments":
  10262.             this.regularApparatusAssignments = (RegularApparatusAssignmentList) info.GetValue("regularApparatusAssignments", typeof (RegularApparatusAssignmentList));
  10263.             continue;
  10264.           case "regularAssignments":
  10265.             this.regularAssignments = (RegularAssignmentList) info.GetValue("regularAssignments", typeof (RegularAssignmentList));
  10266.             continue;
  10267.           case "relatedInvestigations":
  10268.             this.relatedInvestigations = (RelatedInvestigationList) info.GetValue("relatedInvestigations", typeof (RelatedInvestigationList));
  10269.             continue;
  10270.           case "reportComponentFields":
  10271.             this.reportComponentFields = (ReportComponentFieldList) info.GetValue("reportComponentFields", typeof (ReportComponentFieldList));
  10272.             continue;
  10273.           case "reportComponentFilters":
  10274.             this.reportComponentFilters = (ReportComponentFilterList) info.GetValue("reportComponentFilters", typeof (ReportComponentFilterList));
  10275.             continue;
  10276.           case "reportComponents":
  10277.             this.reportComponents = (ReportComponentList) info.GetValue("reportComponents", typeof (ReportComponentList));
  10278.             continue;
  10279.           case "reportFilters":
  10280.             this.reportFilters = (ReportFilterList) info.GetValue("reportFilters", typeof (ReportFilterList));
  10281.             continue;
  10282.           case "reportLayouts":
  10283.             this.reportLayouts = (ReportLayoutList) info.GetValue("reportLayouts", typeof (ReportLayoutList));
  10284.             continue;
  10285.           case "reportRecipients":
  10286.             this.reportRecipients = (ReportRecipientList) info.GetValue("reportRecipients", typeof (ReportRecipientList));
  10287.             continue;
  10288.           case "reports":
  10289.             this.reports = (ReportList) info.GetValue("reports", typeof (ReportList));
  10290.             continue;
  10291.           case "reportSchedules":
  10292.             this.reportSchedules = (ReportScheduleList) info.GetValue("reportSchedules", typeof (ReportScheduleList));
  10293.             continue;
  10294.           case "resourceProviders":
  10295.             this.resourceProviders = (ResourceProviderList) info.GetValue("resourceProviders", typeof (ResourceProviderList));
  10296.             continue;
  10297.           case "respondingApparatusActions":
  10298.             this.respondingApparatusActions = (RespondingApparatusActionList) info.GetValue("respondingApparatusActions", typeof (RespondingApparatusActionList));
  10299.             continue;
  10300.           case "respondingApparatusRecords":
  10301.             this.respondingApparatusRecords = (RespondingApparatusRecordList) info.GetValue("respondingApparatusRecords", typeof (RespondingApparatusRecordList));
  10302.             continue;
  10303.           case "respondingPersonnelActions":
  10304.             this.respondingPersonnelActions = (RespondingPersonnelActionList) info.GetValue("respondingPersonnelActions", typeof (RespondingPersonnelActionList));
  10305.             continue;
  10306.           case "respondingPersonnelRecords":
  10307.             this.respondingPersonnelRecords = (RespondingPersonnelRecordList) info.GetValue("respondingPersonnelRecords", typeof (RespondingPersonnelRecordList));
  10308.             continue;
  10309.           case "rotations":
  10310.             this.rotations = (RotationList) info.GetValue("rotations", typeof (RotationList));
  10311.             continue;
  10312.           case "safetyEquipmentRecords":
  10313.             this.safetyEquipmentRecords = (SafetyEquipmentRecordList) info.GetValue("safetyEquipmentRecords", typeof (SafetyEquipmentRecordList));
  10314.             continue;
  10315.           case "sceneLegalAccessDetails":
  10316.             this.sceneLegalAccessDetails = (SceneLegalAccessDetailList) info.GetValue("sceneLegalAccessDetails", typeof (SceneLegalAccessDetailList));
  10317.             continue;
  10318.           case "scheduleRequirements":
  10319.             this.scheduleRequirements = (ScheduleRequirementList) info.GetValue("scheduleRequirements", typeof (ScheduleRequirementList));
  10320.             continue;
  10321.           case "schedules":
  10322.             this.schedules = (ScheduleList) info.GetValue("schedules", typeof (ScheduleList));
  10323.             continue;
  10324.           case "schedulingPageLayouts":
  10325.             this.schedulingPageLayouts = (SchedulingPageLayoutList) info.GetValue("schedulingPageLayouts", typeof (SchedulingPageLayoutList));
  10326.             continue;
  10327.           case "userLoginSchedulingPageLayouts":
  10328.             this.userLoginSchedulingPageLayouts = (SchedulingPageLayoutList) info.GetValue("userLoginSchedulingPageLayouts", typeof (SchedulingPageLayoutList));
  10329.             continue;
  10330.           case "shiftRotations":
  10331.             this.shiftRotations = (ShiftRotationList) info.GetValue("shiftRotations", typeof (ShiftRotationList));
  10332.             continue;
  10333.           case "shifts":
  10334.             this.shifts = (ShiftList) info.GetValue("shifts", typeof (ShiftList));
  10335.             continue;
  10336.           case "signatures":
  10337.             this.signatures = (SignatureList) info.GetValue("signatures", typeof (SignatureList));
  10338.             continue;
  10339.           case "skillComponents":
  10340.             this.skillComponents = (SkillComponentList) info.GetValue("skillComponents", typeof (SkillComponentList));
  10341.             continue;
  10342.           case "skills":
  10343.             this.skills = (SkillList) info.GetValue("skills", typeof (SkillList));
  10344.             continue;
  10345.           case "specificPropertyUsages":
  10346.             this.specificPropertyUsages = (SpecificPropertyUsageList) info.GetValue("specificPropertyUsages", typeof (SpecificPropertyUsageList));
  10347.             continue;
  10348.           case "stateDictionaryEntries":
  10349.             this.stateDictionaryEntries = (StateDictionaryEntryList) info.GetValue("stateDictionaryEntries", typeof (StateDictionaryEntryList));
  10350.             continue;
  10351.           case "stationContacts":
  10352.             this.stationContacts = (StationContactList) info.GetValue("stationContacts", typeof (StationContactList));
  10353.             continue;
  10354.           case "stationLogins":
  10355.             this.stationLogins = (StationLoginList) info.GetValue("stationLogins", typeof (StationLoginList));
  10356.             continue;
  10357.           case "userLoginStationLogins":
  10358.             this.userLoginStationLogins = (StationLoginList) info.GetValue("userLoginStationLogins", typeof (StationLoginList));
  10359.             continue;
  10360.           case "stations":
  10361.             this.stations = (StationList) info.GetValue("stations", typeof (StationList));
  10362.             continue;
  10363.           case "storageAreas":
  10364.             this.storageAreas = (StorageAreaList) info.GetValue("storageAreas", typeof (StorageAreaList));
  10365.             continue;
  10366.           case "streetDictionaryEntries":
  10367.             this.streetDictionaryEntries = (StreetDictionaryEntryList) info.GetValue("streetDictionaryEntries", typeof (StreetDictionaryEntryList));
  10368.             continue;
  10369.           case "supplyItemLevels":
  10370.             this.supplyItemLevels = (SupplyItemLevelList) info.GetValue("supplyItemLevels", typeof (SupplyItemLevelList));
  10371.             continue;
  10372.           case "supplyItemPurchaseDistributions":
  10373.             this.supplyItemPurchaseDistributions = (SupplyItemPurchaseDistributionList) info.GetValue("supplyItemPurchaseDistributions", typeof (SupplyItemPurchaseDistributionList));
  10374.             continue;
  10375.           case "supplyItemPurchases":
  10376.             this.supplyItemPurchases = (SupplyItemPurchaseList) info.GetValue("supplyItemPurchases", typeof (SupplyItemPurchaseList));
  10377.             continue;
  10378.           case "supplyItems":
  10379.             this.supplyItems = (SupplyItemList) info.GetValue("supplyItems", typeof (SupplyItemList));
  10380.             continue;
  10381.           case "supplyItemTypes":
  10382.             this.supplyItemTypes = (SupplyItemTypeList) info.GetValue("supplyItemTypes", typeof (SupplyItemTypeList));
  10383.             continue;
  10384.           case "supplyItemUsages":
  10385.             this.supplyItemUsages = (SupplyItemUsageList) info.GetValue("supplyItemUsages", typeof (SupplyItemUsageList));
  10386.             continue;
  10387.           case "suppressionFactors":
  10388.             this.suppressionFactors = (SuppressionFactorList) info.GetValue("suppressionFactors", typeof (SuppressionFactorList));
  10389.             continue;
  10390.           case "suspectedMotivationFactors":
  10391.             this.suspectedMotivationFactors = (SuspectedMotivationFactorList) info.GetValue("suspectedMotivationFactors", typeof (SuspectedMotivationFactorList));
  10392.             continue;
  10393.           case "suspects":
  10394.             this.suspects = (SuspectList) info.GetValue("suspects", typeof (SuspectList));
  10395.             continue;
  10396.           case "synchronizationRecords":
  10397.             this.synchronizationRecords = (SynchronizationRecordList) info.GetValue("synchronizationRecords", typeof (SynchronizationRecordList));
  10398.             continue;
  10399.           case "synchronizerStatuses":
  10400.             this.synchronizerStatuses = (SynchronizerStatusList) info.GetValue("synchronizerStatuses", typeof (SynchronizerStatusList));
  10401.             continue;
  10402.           case "tableLookups":
  10403.             this.tableLookups = (TableLookupList) info.GetValue("tableLookups", typeof (TableLookupList));
  10404.             continue;
  10405.           case "trainingApparatusRecords":
  10406.             this.trainingApparatusRecords = (TrainingApparatusRecordList) info.GetValue("trainingApparatusRecords", typeof (TrainingApparatusRecordList));
  10407.             continue;
  10408.           case "trainingCategories":
  10409.             this.trainingCategories = (TrainingCategoryList) info.GetValue("trainingCategories", typeof (TrainingCategoryList));
  10410.             continue;
  10411.           case "trainingCertificateDistributions":
  10412.             this.trainingCertificateDistributions = (TrainingCertificateDistributionList) info.GetValue("trainingCertificateDistributions", typeof (TrainingCertificateDistributionList));
  10413.             continue;
  10414.           case "trainingClassAttendanceRecords":
  10415.             this.trainingClassAttendanceRecords = (TrainingClassAttendanceRecordList) info.GetValue("trainingClassAttendanceRecords", typeof (TrainingClassAttendanceRecordList));
  10416.             continue;
  10417.           case "trainingClassAutoAssignments":
  10418.             this.trainingClassAutoAssignments = (TrainingClassAutoAssignmentList) info.GetValue("trainingClassAutoAssignments", typeof (TrainingClassAutoAssignmentList));
  10419.             continue;
  10420.           case "trainingClasses":
  10421.             this.trainingClasses = (TrainingClassList) info.GetValue("trainingClasses", typeof (TrainingClassList));
  10422.             continue;
  10423.           case "trainingClassInstructors":
  10424.             this.trainingClassInstructors = (TrainingClassInstructorList) info.GetValue("trainingClassInstructors", typeof (TrainingClassInstructorList));
  10425.             continue;
  10426.           case "trainingClassPrerequisites":
  10427.             this.trainingClassPrerequisites = (TrainingClassPrerequisiteList) info.GetValue("trainingClassPrerequisites", typeof (TrainingClassPrerequisiteList));
  10428.             continue;
  10429.           case "trainingClassSessionInstructors":
  10430.             this.trainingClassSessionInstructors = (TrainingClassSessionInstructorList) info.GetValue("trainingClassSessionInstructors", typeof (TrainingClassSessionInstructorList));
  10431.             continue;
  10432.           case "trainingClassSessions":
  10433.             this.trainingClassSessions = (TrainingClassSessionList) info.GetValue("trainingClassSessions", typeof (TrainingClassSessionList));
  10434.             continue;
  10435.           case "trainingClassSessionTopics":
  10436.             this.trainingClassSessionTopics = (TrainingClassSessionTopicList) info.GetValue("trainingClassSessionTopics", typeof (TrainingClassSessionTopicList));
  10437.             continue;
  10438.           case "trainingClassTopicInstructors":
  10439.             this.trainingClassTopicInstructors = (TrainingClassTopicInstructorList) info.GetValue("trainingClassTopicInstructors", typeof (TrainingClassTopicInstructorList));
  10440.             continue;
  10441.           case "trainingClassTopics":
  10442.             this.trainingClassTopics = (TrainingClassTopicList) info.GetValue("trainingClassTopics", typeof (TrainingClassTopicList));
  10443.             continue;
  10444.           case "trainingClassTopicSessionInstructors":
  10445.             this.trainingClassTopicSessionInstructors = (TrainingClassTopicSessionInstructorList) info.GetValue("trainingClassTopicSessionInstructors", typeof (TrainingClassTopicSessionInstructorList));
  10446.             continue;
  10447.           case "trainingCourseClasses":
  10448.             this.trainingCourseClasses = (TrainingCourseClassList) info.GetValue("trainingCourseClasses", typeof (TrainingCourseClassList));
  10449.             continue;
  10450.           case "trainingCourseInstructors":
  10451.             this.trainingCourseInstructors = (TrainingCourseInstructorList) info.GetValue("trainingCourseInstructors", typeof (TrainingCourseInstructorList));
  10452.             continue;
  10453.           case "trainingCoursePrerequisites":
  10454.             this.trainingCoursePrerequisites = (TrainingCoursePrerequisiteList) info.GetValue("trainingCoursePrerequisites", typeof (TrainingCoursePrerequisiteList));
  10455.             continue;
  10456.           case "trainingCourses":
  10457.             this.trainingCourses = (TrainingCourseList) info.GetValue("trainingCourses", typeof (TrainingCourseList));
  10458.             continue;
  10459.           case "trainingHourRequirements":
  10460.             this.trainingHourRequirements = (TrainingHourRequirementList) info.GetValue("trainingHourRequirements", typeof (TrainingHourRequirementList));
  10461.             continue;
  10462.           case "trainingInstructors":
  10463.             this.trainingInstructors = (TrainingInstructorList) info.GetValue("trainingInstructors", typeof (TrainingInstructorList));
  10464.             continue;
  10465.           case "trainingTopics":
  10466.             this.trainingTopics = (TrainingTopicList) info.GetValue("trainingTopics", typeof (TrainingTopicList));
  10467.             continue;
  10468.           case "usedLaboratories":
  10469.             this.usedLaboratories = (UsedLaboratoryList) info.GetValue("usedLaboratories", typeof (UsedLaboratoryList));
  10470.             continue;
  10471.           case "userLogins":
  10472.             this.userLogins = (UserLoginList) info.GetValue("userLogins", typeof (UserLoginList));
  10473.             continue;
  10474.           case "userPreferences":
  10475.             this.userPreferences = (UserPreferenceList) info.GetValue("userPreferences", typeof (UserPreferenceList));
  10476.             continue;
  10477.           case "userLoginUserPreferences":
  10478.             this.userLoginUserPreferences = (UserPreferenceList) info.GetValue("userLoginUserPreferences", typeof (UserPreferenceList));
  10479.             continue;
  10480.           case "userRoles":
  10481.             this.userRoles = (UserRoleList) info.GetValue("userRoles", typeof (UserRoleList));
  10482.             continue;
  10483.           case "userLoginUserRoles":
  10484.             this.userLoginUserRoles = (UserRoleList) info.GetValue("userLoginUserRoles", typeof (UserRoleList));
  10485.             continue;
  10486.           case "userSecurityLevels":
  10487.             this.userSecurityLevels = (UserSecurityLevelList) info.GetValue("userSecurityLevels", typeof (UserSecurityLevelList));
  10488.             continue;
  10489.           case "userLoginUserSecurityLevels":
  10490.             this.userLoginUserSecurityLevels = (UserSecurityLevelList) info.GetValue("userLoginUserSecurityLevels", typeof (UserSecurityLevelList));
  10491.             continue;
  10492.           case "vendors":
  10493.             this.vendors = (VendorList) info.GetValue("vendors", typeof (VendorList));
  10494.             continue;
  10495.           case "vendorTypes":
  10496.             this.vendorTypes = (VendorTypeList) info.GetValue("vendorTypes", typeof (VendorTypeList));
  10497.             continue;
  10498.           case "wildlandLocations":
  10499.             this.wildlandLocations = (WildlandLocationList) info.GetValue("wildlandLocations", typeof (WildlandLocationList));
  10500.             continue;
  10501.           case "witnessStatements":
  10502.             this.witnessStatements = (WitnessStatementList) info.GetValue("witnessStatements", typeof (WitnessStatementList));
  10503.             continue;
  10504.           case "workOrderItems":
  10505.             this.workOrderItems = (WorkOrderItemList) info.GetValue("workOrderItems", typeof (WorkOrderItemList));
  10506.             continue;
  10507.           case "workOrderPerformers":
  10508.             this.workOrderPerformers = (WorkOrderPerformerList) info.GetValue("workOrderPerformers", typeof (WorkOrderPerformerList));
  10509.             continue;
  10510.           case "workOrderReplacedFluids":
  10511.             this.workOrderReplacedFluids = (WorkOrderReplacedFluidList) info.GetValue("workOrderReplacedFluids", typeof (WorkOrderReplacedFluidList));
  10512.             continue;
  10513.           case "workOrderReplacedParts":
  10514.             this.workOrderReplacedParts = (WorkOrderReplacedPartList) info.GetValue("workOrderReplacedParts", typeof (WorkOrderReplacedPartList));
  10515.             continue;
  10516.           case "workOrders":
  10517.             this.workOrders = (WorkOrderList) info.GetValue("workOrders", typeof (WorkOrderList));
  10518.             continue;
  10519.           case "zipcodeDictionaryEntries":
  10520.             this.zipcodeDictionaryEntries = (ZipcodeDictionaryEntryList) info.GetValue("zipcodeDictionaryEntries", typeof (ZipcodeDictionaryEntryList));
  10521.             continue;
  10522.           case "zones":
  10523.             this.zones = (ZoneList) info.GetValue("zones", typeof (ZoneList));
  10524.             continue;
  10525.           case "createdByUserLogin":
  10526.             this.createdByUserLogin = (UserLogin) info.GetValue("createdByUserLogin", typeof (UserLogin));
  10527.             continue;
  10528.           default:
  10529.             continue;
  10530.         }
  10531.       }
  10532.     }
  10533.  
  10534.     public UserLogin(string userName)
  10535.       : this()
  10536.     {
  10537.       this.userName = userName;
  10538.     }
  10539.  
  10540.     public override void GetObjectData(SerializationInfo info, StreamingContext context)
  10541.     {
  10542.       base.GetObjectData(info, context);
  10543.       info.AddValue("userName", (object) this.userName);
  10544.       info.AddValue("password", (object) this.password);
  10545.       info.AddValue("userDisplayName", (object) this.userDisplayName);
  10546.       if (!this.isSynchronizing)
  10547.       {
  10548.         info.AddValue("ageDetails", (object) this.ageDetails);
  10549.         info.AddValue("agencies", (object) this.agencies);
  10550.         info.AddValue("agencyReferrals", (object) this.agencyReferrals);
  10551.         info.AddValue("apparatusComponentInspections", (object) this.apparatusComponentInspections);
  10552.         info.AddValue("apparatusComponents", (object) this.apparatusComponents);
  10553.         info.AddValue("apparatusComponentTests", (object) this.apparatusComponentTests);
  10554.         info.AddValue("apparatusFluids", (object) this.apparatusFluids);
  10555.         info.AddValue("apparatusParts", (object) this.apparatusParts);
  10556.         info.AddValue("apparatusSlots", (object) this.apparatusSlots);
  10557.         info.AddValue("apparentGroupInvolvmentFactors", (object) this.apparentGroupInvolvmentFactors);
  10558.         info.AddValue("applicationActivityLogs", (object) this.applicationActivityLogs);
  10559.         info.AddValue("applicationComponentParts", (object) this.applicationComponentParts);
  10560.         info.AddValue("applicationComponentRoles", (object) this.applicationComponentRoles);
  10561.         info.AddValue("applicationComponents", (object) this.applicationComponents);
  10562.         info.AddValue("applicationMessageDestinations", (object) this.applicationMessageDestinations);
  10563.         info.AddValue("sendToUserApplicationMessageDestinations", (object) this.sendToUserApplicationMessageDestinations);
  10564.         info.AddValue("sendToUserNameApplicationMessageDestinations", (object) this.sendToUserNameApplicationMessageDestinations);
  10565.         info.AddValue("applicationMessageRecipients", (object) this.applicationMessageRecipients);
  10566.         info.AddValue("userLoginApplicationMessageRecipients", (object) this.userLoginApplicationMessageRecipients);
  10567.         info.AddValue("applicationMessages", (object) this.applicationMessages);
  10568.         info.AddValue("userLoginApplicationMessages", (object) this.userLoginApplicationMessages);
  10569.         info.AddValue("applicationPermissions", (object) this.applicationPermissions);
  10570.         info.AddValue("applicationPreferences", (object) this.applicationPreferences);
  10571.         info.AddValue("applicationRoleComponents", (object) this.applicationRoleComponents);
  10572.         info.AddValue("applicationRolePermissions", (object) this.applicationRolePermissions);
  10573.         info.AddValue("applicationRoles", (object) this.applicationRoles);
  10574.         info.AddValue("applicationRoleSubComponents", (object) this.applicationRoleSubComponents);
  10575.         info.AddValue("applicationSubcomponents", (object) this.applicationSubcomponents);
  10576.         info.AddValue("archivedReports", (object) this.archivedReports);
  10577.         info.AddValue("areaHospitals", (object) this.areaHospitals);
  10578.         info.AddValue("arrests", (object) this.arrests);
  10579.         info.AddValue("arsonMotivationOrRiskFactors", (object) this.arsonMotivationOrRiskFactors);
  10580.         info.AddValue("arsonRecords", (object) this.arsonRecords);
  10581.         info.AddValue("arsonSubjects", (object) this.arsonSubjects);
  10582.         info.AddValue("assetAcquisitions", (object) this.assetAcquisitions);
  10583.         info.AddValue("assetDispositions", (object) this.assetDispositions);
  10584.         info.AddValue("assignedInspectors", (object) this.assignedInspectors);
  10585.         info.AddValue("autopsies", (object) this.autopsies);
  10586.         info.AddValue("autopsyRemovedObjects", (object) this.autopsyRemovedObjects);
  10587.         info.AddValue("autopsySpecimens", (object) this.autopsySpecimens);
  10588.         info.AddValue("autopsyWitnesses", (object) this.autopsyWitnesses);
  10589.         info.AddValue("battalions", (object) this.battalions);
  10590.         info.AddValue("bodyInjurySites", (object) this.bodyInjurySites);
  10591.         info.AddValue("bombActionsTaken", (object) this.bombActionsTaken);
  10592.         info.AddValue("bombs", (object) this.bombs);
  10593.         info.AddValue("bombThreats", (object) this.bombThreats);
  10594.         info.AddValue("burnedCrops", (object) this.burnedCrops);
  10595.         info.AddValue("businessEntities", (object) this.businessEntities);
  10596.         info.AddValue("cardiacArrestPreArrivalDetails", (object) this.cardiacArrestPreArrivalDetails);
  10597.         info.AddValue("caseEvidenceItems", (object) this.caseEvidenceItems);
  10598.         info.AddValue("caseInvestigators", (object) this.caseInvestigators);
  10599.         info.AddValue("certificates", (object) this.certificates);
  10600.         info.AddValue("certificateTypeRequirements", (object) this.certificateTypeRequirements);
  10601.         info.AddValue("certificateTypes", (object) this.certificateTypes);
  10602.         info.AddValue("certificationGrades", (object) this.certificationGrades);
  10603.         info.AddValue("certifications", (object) this.certifications);
  10604.         info.AddValue("civilianCasualties", (object) this.civilianCasualties);
  10605.         info.AddValue("componentLoggingLevels", (object) this.componentLoggingLevels);
  10606.         info.AddValue("componentSecurityLevels", (object) this.componentSecurityLevels);
  10607.         info.AddValue("userLoginComponentSecurityLevels", (object) this.userLoginComponentSecurityLevels);
  10608.         info.AddValue("contactMethods", (object) this.contactMethods);
  10609.         info.AddValue("contributedToIgnitionFactors", (object) this.contributedToIgnitionFactors);
  10610.         info.AddValue("contributingInjuryFactors", (object) this.contributingInjuryFactors);
  10611.         info.AddValue("coverageAreas", (object) this.coverageAreas);
  10612.         info.AddValue("customDictionaryEntries", (object) this.customDictionaryEntries);
  10613.         info.AddValue("customerContacts", (object) this.customerContacts);
  10614.         info.AddValue("customerLoginComponents", (object) this.customerLoginComponents);
  10615.         info.AddValue("customerLoginPermissions", (object) this.customerLoginPermissions);
  10616.         info.AddValue("customerLoginRoles", (object) this.customerLoginRoles);
  10617.         info.AddValue("customerLogins", (object) this.customerLogins);
  10618.         info.AddValue("userLoginCustomerLogins", (object) this.userLoginCustomerLogins);
  10619.         info.AddValue("customerLoginSubcomponents", (object) this.customerLoginSubcomponents);
  10620.         info.AddValue("customers", (object) this.customers);
  10621.         info.AddValue("customFields", (object) this.customFields);
  10622.         info.AddValue("customFieldValues", (object) this.customFieldValues);
  10623.         info.AddValue("customNFIRSTextEntries", (object) this.customNFIRSTextEntries);
  10624.         info.AddValue("customSchedulingCalculations", (object) this.customSchedulingCalculations);
  10625.         info.AddValue("customSchedulingEnteredValues", (object) this.customSchedulingEnteredValues);
  10626.         info.AddValue("dailyLogApparatusEntries", (object) this.dailyLogApparatusEntries);
  10627.         info.AddValue("dailyLogEntries", (object) this.dailyLogEntries);
  10628.         info.AddValue("dailyLogEntryTypes", (object) this.dailyLogEntryTypes);
  10629.         info.AddValue("dailyLogPersonnelEntries", (object) this.dailyLogPersonnelEntries);
  10630.         info.AddValue("dailyLogShiftEntries", (object) this.dailyLogShiftEntries);
  10631.         info.AddValue("dailyLogStationEntries", (object) this.dailyLogStationEntries);
  10632.         info.AddValue("dailyLogUsedEquipmentItems", (object) this.dailyLogUsedEquipmentItems);
  10633.         info.AddValue("dailyLogUsedSupplyItems", (object) this.dailyLogUsedSupplyItems);
  10634.         info.AddValue("departmentFDIDs", (object) this.departmentFDIDs);
  10635.         info.AddValue("departmentLoginComponents", (object) this.departmentLoginComponents);
  10636.         info.AddValue("departmentLoginPermissions", (object) this.departmentLoginPermissions);
  10637.         info.AddValue("departmentLoginRoles", (object) this.departmentLoginRoles);
  10638.         info.AddValue("departmentLogins", (object) this.departmentLogins);
  10639.         info.AddValue("userLoginDepartmentLogins", (object) this.userLoginDepartmentLogins);
  10640.         info.AddValue("departmentLoginSubcomponents", (object) this.departmentLoginSubcomponents);
  10641.         info.AddValue("disciplinaryReports", (object) this.disciplinaryReports);
  10642.         info.AddValue("districts", (object) this.districts);
  10643.         info.AddValue("employmentCategorySchedulingConstraints", (object) this.employmentCategorySchedulingConstraints);
  10644.         info.AddValue("eMSPatients", (object) this.eMSPatients);
  10645.         info.AddValue("ePADictionaryEntries", (object) this.ePADictionaryEntries);
  10646.         info.AddValue("equipmentConditionRecords", (object) this.equipmentConditionRecords);
  10647.         info.AddValue("equipmentConditions", (object) this.equipmentConditions);
  10648.         info.AddValue("equipmentItemInspections", (object) this.equipmentItemInspections);
  10649.         info.AddValue("equipmentItems", (object) this.equipmentItems);
  10650.         info.AddValue("equipmentItemSizes", (object) this.equipmentItemSizes);
  10651.         info.AddValue("equipmentItemTestDetails", (object) this.equipmentItemTestDetails);
  10652.         info.AddValue("equipmentItemTests", (object) this.equipmentItemTests);
  10653.         info.AddValue("equipmentSizeFields", (object) this.equipmentSizeFields);
  10654.         info.AddValue("equipmentStatuses", (object) this.equipmentStatuses);
  10655.         info.AddValue("equipmentStatusRecords", (object) this.equipmentStatusRecords);
  10656.         info.AddValue("equipmentTypes", (object) this.equipmentTypes);
  10657.         info.AddValue("fieldInvestigations", (object) this.fieldInvestigations);
  10658.         info.AddValue("filedCharges", (object) this.filedCharges);
  10659.         info.AddValue("fireExtinguishers", (object) this.fireExtinguishers);
  10660.         info.AddValue("fireInvestigations", (object) this.fireInvestigations);
  10661.         info.AddValue("lockedByUserFireInvestigations", (object) this.lockedByUserFireInvestigations);
  10662.         info.AddValue("fireServiceCasualties", (object) this.fireServiceCasualties);
  10663.         info.AddValue("fixedAssetInventoryItems", (object) this.fixedAssetInventoryItems);
  10664.         info.AddValue("fixedAssetItemTests", (object) this.fixedAssetItemTests);
  10665.         info.AddValue("fleetApparatusRecords", (object) this.fleetApparatusRecords);
  10666.         info.AddValue("fleetApparatusTypes", (object) this.fleetApparatusTypes);
  10667.         info.AddValue("fLSAPeriods", (object) this.fLSAPeriods);
  10668.         info.AddValue("fluidTypes", (object) this.fluidTypes);
  10669.         info.AddValue("hazMatActions", (object) this.hazMatActions);
  10670.         info.AddValue("hazMatChemicalReleases", (object) this.hazMatChemicalReleases);
  10671.         info.AddValue("hazMatExposures", (object) this.hazMatExposures);
  10672.         info.AddValue("hazMatMitigationFactors", (object) this.hazMatMitigationFactors);
  10673.         info.AddValue("hazMatRecords", (object) this.hazMatRecords);
  10674.         info.AddValue("hazMatReleaseFactors", (object) this.hazMatReleaseFactors);
  10675.         info.AddValue("hazTrakHealthHazards", (object) this.hazTrakHealthHazards);
  10676.         info.AddValue("hazTrakRecords", (object) this.hazTrakRecords);
  10677.         info.AddValue("hazTrakStorageLocations", (object) this.hazTrakStorageLocations);
  10678.         info.AddValue("helpFileEntries", (object) this.helpFileEntries);
  10679.         info.AddValue("hoses", (object) this.hoses);
  10680.         info.AddValue("hoseTestDetails", (object) this.hoseTestDetails);
  10681.         info.AddValue("hoseTests", (object) this.hoseTests);
  10682.         info.AddValue("hoseTypes", (object) this.hoseTypes);
  10683.         info.AddValue("humanFactors", (object) this.humanFactors);
  10684.         info.AddValue("humanInjuryFactors", (object) this.humanInjuryFactors);
  10685.         info.AddValue("hydrantInspections", (object) this.hydrantInspections);
  10686.         info.AddValue("hydrants", (object) this.hydrants);
  10687.         info.AddValue("hydrantTests", (object) this.hydrantTests);
  10688.         info.AddValue("incidentActions", (object) this.incidentActions);
  10689.         info.AddValue("incidentExposures", (object) this.incidentExposures);
  10690.         info.AddValue("incidentMappingSettings", (object) this.incidentMappingSettings);
  10691.         info.AddValue("userLoginIncidentMappingSettings", (object) this.userLoginIncidentMappingSettings);
  10692.         info.AddValue("incidentRecords", (object) this.incidentRecords);
  10693.         info.AddValue("incidentRoles", (object) this.incidentRoles);
  10694.         info.AddValue("incidentSpecialStudies", (object) this.incidentSpecialStudies);
  10695.         info.AddValue("incidentUsedEquipmentItems", (object) this.incidentUsedEquipmentItems);
  10696.         info.AddValue("incidentUsedSupplyItems", (object) this.incidentUsedSupplyItems);
  10697.         info.AddValue("initialObservations", (object) this.initialObservations);
  10698.         info.AddValue("inspectionDistricts", (object) this.inspectionDistricts);
  10699.         info.AddValue("inspectionGroups", (object) this.inspectionGroups);
  10700.         info.AddValue("insuranceClaims", (object) this.insuranceClaims);
  10701.         info.AddValue("insuranceCompanies", (object) this.insuranceCompanies);
  10702.         info.AddValue("insurancePolicies", (object) this.insurancePolicies);
  10703.         info.AddValue("interviewQuestions", (object) this.interviewQuestions);
  10704.         info.AddValue("interviews", (object) this.interviews);
  10705.         info.AddValue("interviewStandardQuestions", (object) this.interviewStandardQuestions);
  10706.         info.AddValue("inventoryItemCategories", (object) this.inventoryItemCategories);
  10707.         info.AddValue("involvedAttorneys", (object) this.involvedAttorneys);
  10708.         info.AddValue("involvedEntities", (object) this.involvedEntities);
  10709.         info.AddValue("involvedPersons", (object) this.involvedPersons);
  10710.         info.AddValue("irregularAssignments", (object) this.irregularAssignments);
  10711.         info.AddValue("issuedPermits", (object) this.issuedPermits);
  10712.         info.AddValue("itemCheckOuts", (object) this.itemCheckOuts);
  10713.         info.AddValue("juveniles", (object) this.juveniles);
  10714.         info.AddValue("labRequests", (object) this.labRequests);
  10715.         info.AddValue("labTechnicians", (object) this.labTechnicians);
  10716.         info.AddValue("legalOfficers", (object) this.legalOfficers);
  10717.         info.AddValue("licenseModules", (object) this.licenseModules);
  10718.         info.AddValue("licenses", (object) this.licenses);
  10719.         info.AddValue("licenseUserSessions", (object) this.licenseUserSessions);
  10720.         info.AddValue("userLoginLicenseUserSessions", (object) this.userLoginLicenseUserSessions);
  10721.         info.AddValue("locationCrossStreets", (object) this.locationCrossStreets);
  10722.         info.AddValue("locations", (object) this.locations);
  10723.         info.AddValue("maintenanceRequestItems", (object) this.maintenanceRequestItems);
  10724.         info.AddValue("maintenanceRequests", (object) this.maintenanceRequests);
  10725.         info.AddValue("maintenanceTaskSchedules", (object) this.maintenanceTaskSchedules);
  10726.         info.AddValue("manufacturers", (object) this.manufacturers);
  10727.         info.AddValue("manufacturerTypes", (object) this.manufacturerTypes);
  10728.         info.AddValue("mapLayoutFilterFields", (object) this.mapLayoutFilterFields);
  10729.         info.AddValue("mapLayouts", (object) this.mapLayouts);
  10730.         info.AddValue("mappingComponents", (object) this.mappingComponents);
  10731.         info.AddValue("medicalExaminations", (object) this.medicalExaminations);
  10732.         info.AddValue("medicalOfficers", (object) this.medicalOfficers);
  10733.         info.AddValue("mobileProperties", (object) this.mobileProperties);
  10734.         info.AddValue("mortgageCompanies", (object) this.mortgageCompanies);
  10735.         info.AddValue("mortgages", (object) this.mortgages);
  10736.         info.AddValue("mutualAidRecords", (object) this.mutualAidRecords);
  10737.         info.AddValue("narrativeLinks", (object) this.narrativeLinks);
  10738.         info.AddValue("narratives", (object) this.narratives);
  10739.         info.AddValue("narrativeTemplates", (object) this.narrativeTemplates);
  10740.         info.AddValue("nearbyProperties", (object) this.nearbyProperties);
  10741.         info.AddValue("neededResources", (object) this.neededResources);
  10742.         info.AddValue("nFIRSDictionaryEntries", (object) this.nFIRSDictionaryEntries);
  10743.         info.AddValue("nFPADictionaryEntries", (object) this.nFPADictionaryEntries);
  10744.         info.AddValue("officers", (object) this.officers);
  10745.         info.AddValue("onScenePersons", (object) this.onScenePersons);
  10746.         info.AddValue("onSiteMaterials", (object) this.onSiteMaterials);
  10747.         info.AddValue("otherObservations", (object) this.otherObservations);
  10748.         info.AddValue("pageComponents", (object) this.pageComponents);
  10749.         info.AddValue("pageLayouts", (object) this.pageLayouts);
  10750.         info.AddValue("userLoginPageLayouts", (object) this.userLoginPageLayouts);
  10751.         info.AddValue("payPeriods", (object) this.payPeriods);
  10752.         info.AddValue("performedProcedures", (object) this.performedProcedures);
  10753.         info.AddValue("personAliasNames", (object) this.personAliasNames);
  10754.         info.AddValue("personLanguages", (object) this.personLanguages);
  10755.         info.AddValue("personnelAllergies", (object) this.personnelAllergies);
  10756.         info.AddValue("personnelCertifications", (object) this.personnelCertifications);
  10757.         info.AddValue("personnelEmploymentCategories", (object) this.personnelEmploymentCategories);
  10758.         info.AddValue("personnelEmploymentDetails", (object) this.personnelEmploymentDetails);
  10759.         info.AddValue("personnelEquipmentSizes", (object) this.personnelEquipmentSizes);
  10760.         info.AddValue("personnelEquipmentTestRecords", (object) this.personnelEquipmentTestRecords);
  10761.         info.AddValue("personnelIrregularWorkPlaces", (object) this.personnelIrregularWorkPlaces);
  10762.         info.AddValue("personnelIrregularWorkTimes", (object) this.personnelIrregularWorkTimes);
  10763.         info.AddValue("personnelMedicalDetails", (object) this.personnelMedicalDetails);
  10764.         info.AddValue("personnelMedications", (object) this.personnelMedications);
  10765.         info.AddValue("personnelRankHistory", (object) this.personnelRankHistory);
  10766.         info.AddValue("personnelRanks", (object) this.personnelRanks);
  10767.         info.AddValue("personnelRecords", (object) this.personnelRecords);
  10768.         info.AddValue("userLoginPersonnelRecords", (object) this.userLoginPersonnelRecords);
  10769.         info.AddValue("personnelRegularWorkPlaces", (object) this.personnelRegularWorkPlaces);
  10770.         info.AddValue("personnelRegularWorkTimes", (object) this.personnelRegularWorkTimes);
  10771.         info.AddValue("personnelScheduledOffTimes", (object) this.personnelScheduledOffTimes);
  10772.         info.AddValue("personnelSchedulingConstraints", (object) this.personnelSchedulingConstraints);
  10773.         info.AddValue("personnelSkills", (object) this.personnelSkills);
  10774.         info.AddValue("personnelStatusRequests", (object) this.personnelStatusRequests);
  10775.         info.AddValue("personnelStatusTimes", (object) this.personnelStatusTimes);
  10776.         info.AddValue("personnelStatusTypes", (object) this.personnelStatusTypes);
  10777.         info.AddValue("personnelTimesheetRecords", (object) this.personnelTimesheetRecords);
  10778.         info.AddValue("personRecords", (object) this.personRecords);
  10779.         info.AddValue("personRoles", (object) this.personRoles);
  10780.         info.AddValue("prePlans", (object) this.prePlans);
  10781.         info.AddValue("propertyCodeViolations", (object) this.propertyCodeViolations);
  10782.         info.AddValue("propertyHydrants", (object) this.propertyHydrants);
  10783.         info.AddValue("propertyInspectionCodes", (object) this.propertyInspectionCodes);
  10784.         info.AddValue("propertyInspections", (object) this.propertyInspections);
  10785.         info.AddValue("propertyInspectionTypes", (object) this.propertyInspectionTypes);
  10786.         info.AddValue("propertyNames", (object) this.propertyNames);
  10787.         info.AddValue("propertyOccupancyRecords", (object) this.propertyOccupancyRecords);
  10788.         info.AddValue("propertyOwnershipRecords", (object) this.propertyOwnershipRecords);
  10789.         info.AddValue("protectedProperties", (object) this.protectedProperties);
  10790.         info.AddValue("protectedPropertyContacts", (object) this.protectedPropertyContacts);
  10791.         info.AddValue("protectedPropertyDirections", (object) this.protectedPropertyDirections);
  10792.         info.AddValue("protectedPropertyInspectionGroups", (object) this.protectedPropertyInspectionGroups);
  10793.         info.AddValue("protectiveEquipmentFailures", (object) this.protectiveEquipmentFailures);
  10794.         info.AddValue("providedResources", (object) this.providedResources);
  10795.         info.AddValue("purchaseOrderItems", (object) this.purchaseOrderItems);
  10796.         info.AddValue("purchaseOrderReceivedItems", (object) this.purchaseOrderReceivedItems);
  10797.         info.AddValue("purchaseOrders", (object) this.purchaseOrders);
  10798.         info.AddValue("receivedSynchronizations", (object) this.receivedSynchronizations);
  10799.         info.AddValue("recordAttachments", (object) this.recordAttachments);
  10800.         info.AddValue("recordNotes", (object) this.recordNotes);
  10801.         info.AddValue("createdByUserLoginRecordNotes", (object) this.createdByUserLoginRecordNotes);
  10802.         info.AddValue("registeredDepartments", (object) this.registeredDepartments);
  10803.         info.AddValue("regularApparatusAssignments", (object) this.regularApparatusAssignments);
  10804.         info.AddValue("regularAssignments", (object) this.regularAssignments);
  10805.         info.AddValue("relatedInvestigations", (object) this.relatedInvestigations);
  10806.         info.AddValue("reportComponentFields", (object) this.reportComponentFields);
  10807.         info.AddValue("reportComponentFilters", (object) this.reportComponentFilters);
  10808.         info.AddValue("reportComponents", (object) this.reportComponents);
  10809.         info.AddValue("reportFilters", (object) this.reportFilters);
  10810.         info.AddValue("reportLayouts", (object) this.reportLayouts);
  10811.         info.AddValue("reportRecipients", (object) this.reportRecipients);
  10812.         info.AddValue("reports", (object) this.reports);
  10813.         info.AddValue("reportSchedules", (object) this.reportSchedules);
  10814.         info.AddValue("resourceProviders", (object) this.resourceProviders);
  10815.         info.AddValue("respondingApparatusActions", (object) this.respondingApparatusActions);
  10816.         info.AddValue("respondingApparatusRecords", (object) this.respondingApparatusRecords);
  10817.         info.AddValue("respondingPersonnelActions", (object) this.respondingPersonnelActions);
  10818.         info.AddValue("respondingPersonnelRecords", (object) this.respondingPersonnelRecords);
  10819.         info.AddValue("rotations", (object) this.rotations);
  10820.         info.AddValue("safetyEquipmentRecords", (object) this.safetyEquipmentRecords);
  10821.         info.AddValue("sceneLegalAccessDetails", (object) this.sceneLegalAccessDetails);
  10822.         info.AddValue("scheduleRequirements", (object) this.scheduleRequirements);
  10823.         info.AddValue("schedules", (object) this.schedules);
  10824.         info.AddValue("schedulingPageLayouts", (object) this.schedulingPageLayouts);
  10825.         info.AddValue("userLoginSchedulingPageLayouts", (object) this.userLoginSchedulingPageLayouts);
  10826.         info.AddValue("shiftRotations", (object) this.shiftRotations);
  10827.         info.AddValue("shifts", (object) this.shifts);
  10828.         info.AddValue("signatures", (object) this.signatures);
  10829.         info.AddValue("skillComponents", (object) this.skillComponents);
  10830.         info.AddValue("skills", (object) this.skills);
  10831.         info.AddValue("specificPropertyUsages", (object) this.specificPropertyUsages);
  10832.         info.AddValue("stateDictionaryEntries", (object) this.stateDictionaryEntries);
  10833.         info.AddValue("stationContacts", (object) this.stationContacts);
  10834.         info.AddValue("stationLogins", (object) this.stationLogins);
  10835.         info.AddValue("userLoginStationLogins", (object) this.userLoginStationLogins);
  10836.         info.AddValue("stations", (object) this.stations);
  10837.         info.AddValue("storageAreas", (object) this.storageAreas);
  10838.         info.AddValue("streetDictionaryEntries", (object) this.streetDictionaryEntries);
  10839.         info.AddValue("supplyItemLevels", (object) this.supplyItemLevels);
  10840.         info.AddValue("supplyItemPurchaseDistributions", (object) this.supplyItemPurchaseDistributions);
  10841.         info.AddValue("supplyItemPurchases", (object) this.supplyItemPurchases);
  10842.         info.AddValue("supplyItems", (object) this.supplyItems);
  10843.         info.AddValue("supplyItemTypes", (object) this.supplyItemTypes);
  10844.         info.AddValue("supplyItemUsages", (object) this.supplyItemUsages);
  10845.         info.AddValue("suppressionFactors", (object) this.suppressionFactors);
  10846.         info.AddValue("suspectedMotivationFactors", (object) this.suspectedMotivationFactors);
  10847.         info.AddValue("suspects", (object) this.suspects);
  10848.         info.AddValue("synchronizationRecords", (object) this.synchronizationRecords);
  10849.         info.AddValue("synchronizerStatuses", (object) this.synchronizerStatuses);
  10850.         info.AddValue("tableLookups", (object) this.tableLookups);
  10851.         info.AddValue("trainingApparatusRecords", (object) this.trainingApparatusRecords);
  10852.         info.AddValue("trainingCategories", (object) this.trainingCategories);
  10853.         info.AddValue("trainingCertificateDistributions", (object) this.trainingCertificateDistributions);
  10854.         info.AddValue("trainingClassAttendanceRecords", (object) this.trainingClassAttendanceRecords);
  10855.         info.AddValue("trainingClassAutoAssignments", (object) this.trainingClassAutoAssignments);
  10856.         info.AddValue("trainingClasses", (object) this.trainingClasses);
  10857.         info.AddValue("trainingClassInstructors", (object) this.trainingClassInstructors);
  10858.         info.AddValue("trainingClassPrerequisites", (object) this.trainingClassPrerequisites);
  10859.         info.AddValue("trainingClassSessionInstructors", (object) this.trainingClassSessionInstructors);
  10860.         info.AddValue("trainingClassSessions", (object) this.trainingClassSessions);
  10861.         info.AddValue("trainingClassSessionTopics", (object) this.trainingClassSessionTopics);
  10862.         info.AddValue("trainingClassTopicInstructors", (object) this.trainingClassTopicInstructors);
  10863.         info.AddValue("trainingClassTopics", (object) this.trainingClassTopics);
  10864.         info.AddValue("trainingClassTopicSessionInstructors", (object) this.trainingClassTopicSessionInstructors);
  10865.         info.AddValue("trainingCourseClasses", (object) this.trainingCourseClasses);
  10866.         info.AddValue("trainingCourseInstructors", (object) this.trainingCourseInstructors);
  10867.         info.AddValue("trainingCoursePrerequisites", (object) this.trainingCoursePrerequisites);
  10868.         info.AddValue("trainingCourses", (object) this.trainingCourses);
  10869.         info.AddValue("trainingHourRequirements", (object) this.trainingHourRequirements);
  10870.         info.AddValue("trainingInstructors", (object) this.trainingInstructors);
  10871.         info.AddValue("trainingTopics", (object) this.trainingTopics);
  10872.         info.AddValue("usedLaboratories", (object) this.usedLaboratories);
  10873.         info.AddValue("userLogins", (object) this.userLogins);
  10874.         info.AddValue("userPreferences", (object) this.userPreferences);
  10875.         info.AddValue("userLoginUserPreferences", (object) this.userLoginUserPreferences);
  10876.         info.AddValue("userRoles", (object) this.userRoles);
  10877.         info.AddValue("userLoginUserRoles", (object) this.userLoginUserRoles);
  10878.         info.AddValue("userSecurityLevels", (object) this.userSecurityLevels);
  10879.         info.AddValue("userLoginUserSecurityLevels", (object) this.userLoginUserSecurityLevels);
  10880.         info.AddValue("vendors", (object) this.vendors);
  10881.         info.AddValue("vendorTypes", (object) this.vendorTypes);
  10882.         info.AddValue("wildlandLocations", (object) this.wildlandLocations);
  10883.         info.AddValue("witnessStatements", (object) this.witnessStatements);
  10884.         info.AddValue("workOrderItems", (object) this.workOrderItems);
  10885.         info.AddValue("workOrderPerformers", (object) this.workOrderPerformers);
  10886.         info.AddValue("workOrderReplacedFluids", (object) this.workOrderReplacedFluids);
  10887.         info.AddValue("workOrderReplacedParts", (object) this.workOrderReplacedParts);
  10888.         info.AddValue("workOrders", (object) this.workOrders);
  10889.         info.AddValue("zipcodeDictionaryEntries", (object) this.zipcodeDictionaryEntries);
  10890.         info.AddValue("zones", (object) this.zones);
  10891.       }
  10892.       if (this.isSynchronizing)
  10893.         return;
  10894.       info.AddValue("createdByUserLogin", (object) this.createdByUserLogin);
  10895.     }
  10896.  
  10897.     internal override List<IDbDataParameter> RecordParms()
  10898.     {
  10899.       return new List<IDbDataParameter>()
  10900.       {
  10901.         DataHelper.GetParameter("@RecordID", (object) this.recordID, DbType.Guid, ParameterDirection.InputOutput),
  10902.         DataHelper.GetParameter("@UserName", (object) this.userName),
  10903.         DataHelper.GetParameter("@Password", (object) this.password),
  10904.         DataHelper.GetParameter("@SyncDateModified", (object) this.syncDateModified, DbType.DateTime, ParameterDirection.InputOutput),
  10905.         DataHelper.GetParameter("@SyncLastModifiedBy", (object) this.syncLastModifiedBy),
  10906.         DataHelper.GetParameter("@HasWarnings", (object) (bool) (this.hasWarnings ? 1 : 0)),
  10907.         DataHelper.GetParameter("@UserDisplayName", (object) this.userDisplayName),
  10908.         DataHelper.GetParameter("@CreatedByUserLoginID", (object) this.createdByUserLoginID),
  10909.         DataHelper.GetParameter("@SyncDateCreated", (object) this.syncDateCreated)
  10910.       };
  10911.     }
  10912.  
  10913.     protected internal override void Populate(IDataReader Reader)
  10914.     {
  10915.       this.recordID = (Guid?) DataHelper.GetValue(ref Reader, "RecordID", (object) null);
  10916.       this.userName = (string) DataHelper.GetValue(ref Reader, "UserName", (object) null);
  10917.       this.password = (string) DataHelper.GetValue(ref Reader, "Password", (object) null);
  10918.       this.syncDateModified = new DateTime?((DateTime) DataHelper.GetValue(ref Reader, "SyncDateModified", (object) null));
  10919.       this.syncLastModifiedBy = (string) DataHelper.GetValue(ref Reader, "SyncLastModifiedBy", (object) null);
  10920.       this.hasWarnings = (bool) DataHelper.GetValue(ref Reader, "HasWarnings", (object) null);
  10921.       this.userDisplayName = (string) DataHelper.GetValue(ref Reader, "UserDisplayName", (object) null);
  10922.       this.createdByUserLoginID = (Guid?) DataHelper.GetValue(ref Reader, "CreatedByUserLoginID", (object) null);
  10923.       this.syncDateCreated = (DateTime?) DataHelper.GetValue(ref Reader, "SyncDateCreated", (object) null);
  10924.       base.Populate(Reader);
  10925.     }
  10926.  
  10927.     protected internal override void Populate(IDataReader Reader, List<string> fields)
  10928.     {
  10929.       this.recordID = (Guid?) DataHelper.GetValue(ref Reader, "RecordID", (object) null);
  10930.       if (fields.Count != 0 && fields.Contains("UserName"))
  10931.         this.userName = (string) DataHelper.GetValue(ref Reader, "UserName", (object) null);
  10932.       if (fields.Count != 0 && fields.Contains("Password"))
  10933.         this.password = (string) DataHelper.GetValue(ref Reader, "Password", (object) null);
  10934.       this.syncDateModified = new DateTime?((DateTime) DataHelper.GetValue(ref Reader, "SyncDateModified", (object) null));
  10935.       this.syncLastModifiedBy = (string) DataHelper.GetValue(ref Reader, "SyncLastModifiedBy", (object) null);
  10936.       if (fields.Count != 0 && fields.Contains("HasWarnings"))
  10937.         this.hasWarnings = (bool) DataHelper.GetValue(ref Reader, "HasWarnings", (object) null);
  10938.       if (fields.Count != 0 && fields.Contains("UserDisplayName"))
  10939.         this.userDisplayName = (string) DataHelper.GetValue(ref Reader, "UserDisplayName", (object) null);
  10940.       this.createdByUserLoginID = (Guid?) DataHelper.GetValue(ref Reader, "CreatedByUserLoginID", (object) null);
  10941.       this.syncDateCreated = (DateTime?) DataHelper.GetValue(ref Reader, "SyncDateCreated", (object) null);
  10942.       base.Populate(Reader, fields);
  10943.     }
  10944.  
  10945.     internal override void ResetOriginalValues()
  10946.     {
  10947.       this.recordID_originalValue = this.recordID;
  10948.       this.userName_originalValue = this.userName;
  10949.       this.password_originalValue = this.password;
  10950.       this.syncDateModified_originalValue = this.syncDateModified;
  10951.       this.syncLastModifiedBy_originalValue = this.syncLastModifiedBy;
  10952.       this.hasWarnings_originalValue = this.hasWarnings;
  10953.       this.userDisplayName_originalValue = this.userDisplayName;
  10954.       this.createdByUserLoginID_originalValue = this.createdByUserLoginID;
  10955.       this.syncDateCreated_originalValue = this.syncDateCreated;
  10956.     }
  10957.  
  10958.     public void ReloadUserPreferences()
  10959.     {
  10960.       this._effectiveUserPreferences = (UserPreferenceList) null;
  10961.       this._effectiveUserPreferences = UserPreferenceList.ReadAll(this.recordID, this.deptID, this.customerID);
  10962.       this._effectiveUserPreferences.ParentObject = (object) this;
  10963.     }
  10964.  
  10965.     public UserPreferenceList RecordPreferences(BusinessObject record)
  10966.     {
  10967.       return Enumerable.Where<UserPreference>((IEnumerable<UserPreference>) this.Preferences, (Func<UserPreference, bool>) (x =>
  10968.       {
  10969.         if (!x.PreferenceForID.HasValue)
  10970.           return true;
  10971.         Guid? preferenceForId = x.PreferenceForID;
  10972.         Guid? nullable = this.recordID;
  10973.         if (preferenceForId.HasValue != nullable.HasValue)
  10974.           return false;
  10975.         if (preferenceForId.HasValue)
  10976.           return preferenceForId.GetValueOrDefault() == nullable.GetValueOrDefault();
  10977.         return true;
  10978.       })) as UserPreferenceList;
  10979.     }
  10980.  
  10981.     private void roleResult_ListChanged(object sender, ListChangedEventArgs e)
  10982.     {
  10983.     }
  10984.  
  10985.     public void SetApplicationRolePermission(EffectivePermission effectivePermssion)
  10986.     {
  10987.       if (this.CustomerLogins.Count > 0)
  10988.       {
  10989.         CustomerLoginPermission recordToAdd1 = Enumerable.FirstOrDefault<CustomerLoginPermission>(Enumerable.Where<CustomerLoginPermission>((IEnumerable<CustomerLoginPermission>) this.CustomerLogins[0].CustomerLoginPermissions, (Func<CustomerLoginPermission, bool>) (x =>
  10990.         {
  10991.           Guid? applicationPermissionId1 = x.ApplicationPermissionID;
  10992.           Guid applicationPermissionId2 = effectivePermssion.ApplicationPermissionID;
  10993.           if (applicationPermissionId1.HasValue)
  10994.             return applicationPermissionId1.GetValueOrDefault() == applicationPermissionId2;
  10995.           return false;
  10996.         })));
  10997.         if ((BusinessObject) recordToAdd1 == (BusinessObject) null)
  10998.         {
  10999.           recordToAdd1 = new CustomerLoginPermission();
  11000.           this.CustomerLogins[0].CustomerLoginPermissions.AddRecord(recordToAdd1);
  11001.         }
  11002.         recordToAdd1.ApplicationPermissionID = new Guid?(effectivePermssion.ApplicationPermissionID);
  11003.         recordToAdd1.CustomerLoginID = new Guid?(this.CustomerLogins[0].RecordID.Value);
  11004.         recordToAdd1.Granted = effectivePermssion.Granted;
  11005.         recordToAdd1.Denied = effectivePermssion.Denied;
  11006.         if (!(recordToAdd1.ApplicationPermission.PermissionName == "Admin") || !recordToAdd1.Granted)
  11007.           return;
  11008.         foreach (ApplicationPermission applicationPermission in (BusinessObject) recordToAdd1.ApplicationPermission.ApplicationSubcomponent == (BusinessObject) null ? (BusinessObjectList<ApplicationPermission>) recordToAdd1.ApplicationPermission.ApplicationComponent.ApplicationPermissions : (BusinessObjectList<ApplicationPermission>) recordToAdd1.ApplicationPermission.ApplicationSubcomponent.ApplicationPermissions)
  11009.         {
  11010.           ApplicationPermission appPerm = applicationPermission;
  11011.           CustomerLoginPermission customerLoginPermission = Enumerable.FirstOrDefault<CustomerLoginPermission>(Enumerable.Where<CustomerLoginPermission>((IEnumerable<CustomerLoginPermission>) this.CustomerLogins[0].CustomerLoginPermissions, (Func<CustomerLoginPermission, bool>) (x =>
  11012.           {
  11013.             Guid? applicationPermissionId = x.ApplicationPermissionID;
  11014.             Guid? recordId = appPerm.RecordID;
  11015.             if (applicationPermissionId.HasValue != recordId.HasValue)
  11016.               return false;
  11017.             if (applicationPermissionId.HasValue)
  11018.               return applicationPermissionId.GetValueOrDefault() == recordId.GetValueOrDefault();
  11019.             return true;
  11020.           })));
  11021.           if ((BusinessObject) customerLoginPermission != (BusinessObject) null)
  11022.           {
  11023.             customerLoginPermission.Granted = true;
  11024.             customerLoginPermission.Denied = false;
  11025.           }
  11026.           else
  11027.           {
  11028.             CustomerLoginPermission recordToAdd2 = new CustomerLoginPermission();
  11029.             this.CustomerLogins[0].CustomerLoginPermissions.AddRecord(recordToAdd2);
  11030.             recordToAdd2.ApplicationPermissionID = new Guid?(appPerm.RecordID.Value);
  11031.             recordToAdd2.Granted = true;
  11032.             recordToAdd2.Denied = false;
  11033.           }
  11034.         }
  11035.       }
  11036.       else
  11037.       {
  11038.         if (this.DepartmentLogins.Count <= 0)
  11039.           return;
  11040.         DepartmentLoginPermission recordToAdd1 = Enumerable.FirstOrDefault<DepartmentLoginPermission>(Enumerable.Where<DepartmentLoginPermission>((IEnumerable<DepartmentLoginPermission>) this.DepartmentLogins[0].DepartmentLoginPermissions, (Func<DepartmentLoginPermission, bool>) (x =>
  11041.         {
  11042.           Guid? applicationPermissionId1 = x.ApplicationPermissionID;
  11043.           Guid applicationPermissionId2 = effectivePermssion.ApplicationPermissionID;
  11044.           if (applicationPermissionId1.HasValue)
  11045.             return applicationPermissionId1.GetValueOrDefault() == applicationPermissionId2;
  11046.           return false;
  11047.         })));
  11048.         if ((BusinessObject) recordToAdd1 == (BusinessObject) null)
  11049.         {
  11050.           recordToAdd1 = new DepartmentLoginPermission();
  11051.           this.DepartmentLogins[0].DepartmentLoginPermissions.AddRecord(recordToAdd1);
  11052.         }
  11053.         recordToAdd1.ApplicationPermissionID = new Guid?(effectivePermssion.ApplicationPermissionID);
  11054.         if (this.DepartmentLogins[0].RecordID.HasValue)
  11055.           recordToAdd1.DepartmentLoginID = new Guid?(this.DepartmentLogins[0].RecordID.Value);
  11056.         recordToAdd1.Granted = effectivePermssion.Granted;
  11057.         recordToAdd1.Denied = effectivePermssion.Denied;
  11058.         if (recordToAdd1.ApplicationPermission.PermissionName == "Admin" && recordToAdd1.Granted)
  11059.         {
  11060.           foreach (ApplicationPermission applicationPermission in (BusinessObject) recordToAdd1.ApplicationPermission.applicationComponent == (BusinessObject) null ? (BusinessObjectList<ApplicationPermission>) recordToAdd1.ApplicationPermission.ApplicationComponent.ApplicationPermissions : (BusinessObjectList<ApplicationPermission>) recordToAdd1.ApplicationPermission.ApplicationSubcomponent.ApplicationPermissions)
  11061.           {
  11062.             ApplicationPermission appPerm = applicationPermission;
  11063.             DepartmentLoginPermission departmentLoginPermission = Enumerable.FirstOrDefault<DepartmentLoginPermission>(Enumerable.Where<DepartmentLoginPermission>((IEnumerable<DepartmentLoginPermission>) this.DepartmentLogins[0].DepartmentLoginPermissions, (Func<DepartmentLoginPermission, bool>) (x =>
  11064.             {
  11065.               Guid? applicationPermissionId = x.ApplicationPermissionID;
  11066.               Guid? recordId = appPerm.RecordID;
  11067.               if (applicationPermissionId.HasValue != recordId.HasValue)
  11068.                 return false;
  11069.               if (applicationPermissionId.HasValue)
  11070.                 return applicationPermissionId.GetValueOrDefault() == recordId.GetValueOrDefault();
  11071.               return true;
  11072.             })));
  11073.             if ((BusinessObject) departmentLoginPermission != (BusinessObject) null)
  11074.             {
  11075.               departmentLoginPermission.Granted = true;
  11076.               departmentLoginPermission.Denied = false;
  11077.             }
  11078.             else
  11079.             {
  11080.               DepartmentLoginPermission recordToAdd2 = new DepartmentLoginPermission();
  11081.               this.DepartmentLogins[0].DepartmentLoginPermissions.AddRecord(recordToAdd2);
  11082.               recordToAdd2.ApplicationPermissionID = new Guid?(appPerm.RecordID.Value);
  11083.               recordToAdd2.Granted = true;
  11084.               recordToAdd2.Denied = false;
  11085.             }
  11086.           }
  11087.           this.OnPropertyChanged((object) this, new PropertyChangedEventArgs("EffectivePermissions"));
  11088.         }
  11089.         else
  11090.         {
  11091.           if (!(recordToAdd1.ApplicationPermission.PermissionName != "Admin") || !recordToAdd1.Denied)
  11092.             return;
  11093.           if (this.CustomerLogins.Count > 0)
  11094.           {
  11095.             CustomerLoginPermission customerLoginPermission = Enumerable.FirstOrDefault<CustomerLoginPermission>(Enumerable.Where<CustomerLoginPermission>((IEnumerable<CustomerLoginPermission>) this.CustomerLogins[0].CustomerLoginPermissions, (Func<CustomerLoginPermission, bool>) (x => x.ApplicationPermission.PermissionName == "Admin")));
  11096.             if ((BusinessObject) customerLoginPermission != (BusinessObject) null)
  11097.             {
  11098.               customerLoginPermission.Granted = false;
  11099.               customerLoginPermission.Denied = true;
  11100.             }
  11101.           }
  11102.           else if (this.DepartmentLogins.Count > 0)
  11103.           {
  11104.             DepartmentLoginPermission departmentLoginPermission = Enumerable.FirstOrDefault<DepartmentLoginPermission>(Enumerable.Where<DepartmentLoginPermission>((IEnumerable<DepartmentLoginPermission>) this.DepartmentLogins[0].DepartmentLoginPermissions, (Func<DepartmentLoginPermission, bool>) (x => x.ApplicationPermission.PermissionName == "Admin")));
  11105.             if ((BusinessObject) departmentLoginPermission != (BusinessObject) null)
  11106.             {
  11107.               departmentLoginPermission.Granted = false;
  11108.               departmentLoginPermission.Denied = true;
  11109.             }
  11110.           }
  11111.           this.OnPropertyChanged((object) this, new PropertyChangedEventArgs("EffectivePermissions"));
  11112.         }
  11113.       }
  11114.     }
  11115.  
  11116.     protected internal override void OnPropertyChanged(object sender, PropertyChangedEventArgs e)
  11117.     {
  11118.       switch (e.PropertyName)
  11119.       {
  11120.         case "CurrentPersonnelRecordID":
  11121.           if (!this.PersonnelRecord.UserLoginID.HasValue)
  11122.           {
  11123.             this.UserName = this.PersonnelRecord.Person.FirstName[0].ToString().ToLower() + this.PersonnelRecord.Person.LastName.ToLower() + "." + new Customer(GlobalValues.CustomerID).CustomerNumber;
  11124.             this.UserDisplayName = this.PersonnelRecord.LastName + ", " + this.PersonnelRecord.FirstName;
  11125.             break;
  11126.           }
  11127.           break;
  11128.         case "Password":
  11129.           this.passwordConfirmed = false;
  11130.           this.ConfirmPassword = string.Empty;
  11131.           break;
  11132.       }
  11133.       base.OnPropertyChanged(sender, e);
  11134.     }
  11135.  
  11136.     public override string ToString()
  11137.     {
  11138.       return this.DisplayName;
  11139.     }
  11140.  
  11141.     public override void BeforeRecordInsert(Guid? customerID, Guid? deptID)
  11142.     {
  11143.       this.allowNullCustomerID = true;
  11144.       this.allowNullDeptID = true;
  11145.       this.HashPassword();
  11146.       base.BeforeRecordInsert(customerID, deptID);
  11147.     }
  11148.  
  11149.     public override void AfterRecordSave(Guid? customerID, Guid? deptID)
  11150.     {
  11151.       if (this.personnelRecords != null)
  11152.         this.personnelRecords.SetPropertyValue("UserLoginID", (object) this.recordID, true, customerID, deptID);
  11153.       if (this.customerLogins != null)
  11154.         this.customerLogins.SetPropertyValue("UserLoginID", (object) this.recordID, true, customerID, deptID);
  11155.       if (this.departmentLogins != null)
  11156.         this.departmentLogins.SetPropertyValue("UserLoginID", (object) this.recordID, true, customerID, deptID);
  11157.       base.AfterRecordSave(customerID, deptID);
  11158.     }
  11159.  
  11160.     public override void Prune()
  11161.     {
  11162.       if (this.personnelRecords != null)
  11163.         this.personnelRecords.Prune();
  11164.       if (this.customerLogins != null)
  11165.         this.customerLogins.Prune();
  11166.       if (this.departmentLogins != null)
  11167.         this.departmentLogins.Prune();
  11168.       base.Prune();
  11169.     }
  11170.  
  11171.     internal override void ProcessChildrenForDelete(Guid? customerID, Guid? deptID)
  11172.     {
  11173.       this.PersonnelRecords.SetPropertyValue("UserLoginID", (object) null);
  11174.       this.CustomerLogins.DeleteAll(customerID, deptID);
  11175.       this.DepartmentLogins.DeleteAll(customerID, deptID);
  11176.       base.ProcessChildrenForDelete(customerID, deptID);
  11177.     }
  11178.  
  11179.     public override void BeforeRecordUpdate(Guid? customerID, Guid? deptID)
  11180.     {
  11181.       this.HashPassword();
  11182.       base.BeforeRecordUpdate(customerID, deptID);
  11183.     }
  11184.  
  11185.     private void HashPassword()
  11186.     {
  11187.       if (!(this.Password != this.password_originalValue))
  11188.         return;
  11189.       this.passwordConfirmed = this.password == this._confirmPassword;
  11190.       this._confirmPassword = Cryptography.GetHash(this.ConfirmPassword, Cryptography.HashType.MD5);
  11191.       this.password = Cryptography.GetHash(this.Password, Cryptography.HashType.MD5);
  11192.     }
  11193.  
  11194.     public void DeleteRole(ApplicationRole role)
  11195.     {
  11196.       if (this.UseCustomerLogin)
  11197.       {
  11198.         if (this.CustomerLogins.Count <= 0)
  11199.           return;
  11200.         CustomerLoginRole recordToDelete = Enumerable.FirstOrDefault<CustomerLoginRole>(Enumerable.Where<CustomerLoginRole>((IEnumerable<CustomerLoginRole>) this.CustomerLogins[0].CustomerLoginRoles, (Func<CustomerLoginRole, bool>) (x =>
  11201.         {
  11202.           Guid? applicationRoleId = x.ApplicationRoleID;
  11203.           Guid guid = role.RecordID.Value;
  11204.           if (applicationRoleId.HasValue)
  11205.             return applicationRoleId.GetValueOrDefault() == guid;
  11206.           return false;
  11207.         })));
  11208.         if (!((BusinessObject) recordToDelete != (BusinessObject) null))
  11209.           return;
  11210.         this.CustomerLogins[0].CustomerLoginRoles.Delete(recordToDelete, recordToDelete.customerID, recordToDelete.deptID);
  11211.       }
  11212.       else
  11213.       {
  11214.         if (this.DepartmentLogins.Count <= 0)
  11215.           return;
  11216.         DepartmentLoginRole recordToDelete = Enumerable.FirstOrDefault<DepartmentLoginRole>(Enumerable.Where<DepartmentLoginRole>((IEnumerable<DepartmentLoginRole>) this.DepartmentLogins[0].DepartmentLoginRoles, (Func<DepartmentLoginRole, bool>) (x =>
  11217.         {
  11218.           Guid? applicationRoleId = x.ApplicationRoleID;
  11219.           Guid guid = role.RecordID.Value;
  11220.           if (applicationRoleId.HasValue)
  11221.             return applicationRoleId.GetValueOrDefault() == guid;
  11222.           return false;
  11223.         })));
  11224.         if (!((BusinessObject) recordToDelete != (BusinessObject) null))
  11225.           return;
  11226.         this.DepartmentLogins[0].DepartmentLoginRoles.Delete(recordToDelete, recordToDelete.customerID, recordToDelete.deptID);
  11227.       }
  11228.     }
  11229.  
  11230.     public void AddRole(ApplicationRole role)
  11231.     {
  11232.       if (this.UseCustomerLogin)
  11233.       {
  11234.         if (this.CustomerLogins.Count > 0 && (BusinessObject) Enumerable.FirstOrDefault<CustomerLoginRole>(Enumerable.Where<CustomerLoginRole>((IEnumerable<CustomerLoginRole>) this.CustomerLogins[0].CustomerLoginRoles, (Func<CustomerLoginRole, bool>) (x =>
  11235.         {
  11236.           Guid? applicationRoleId = x.ApplicationRoleID;
  11237.           Guid guid = role.RecordID.Value;
  11238.           if (applicationRoleId.HasValue)
  11239.             return applicationRoleId.GetValueOrDefault() == guid;
  11240.           return false;
  11241.         }))) == (BusinessObject) null)
  11242.         {
  11243.           CustomerLoginRole recordToAdd = new CustomerLoginRole();
  11244.           recordToAdd.ApplicationRoleID = new Guid?(role.RecordID.Value);
  11245.           this.CustomerLogins[0].CustomerLoginRoles.AddRecord(recordToAdd);
  11246.           UserLoginRole userLoginRole = new UserLoginRole();
  11247.           userLoginRole.SubLoginRoleId = recordToAdd.RecordID;
  11248.           userLoginRole.ApplicationRoleID = recordToAdd.ApplicationRoleID.Value;
  11249.           Guid? recordId = recordToAdd.RecordID;
  11250.           Guid guid = Guid.Empty;
  11251.           if ((!recordId.HasValue ? 1 : (recordId.GetValueOrDefault() != guid ? 1 : 0)) != 0)
  11252.             userLoginRole.IsBlank = false;
  11253.           this.UserLoginRoles.Add((BusinessObject) userLoginRole);
  11254.         }
  11255.       }
  11256.       else if (this.DepartmentLogins.Count > 0 && (BusinessObject) Enumerable.FirstOrDefault<DepartmentLoginRole>(Enumerable.Where<DepartmentLoginRole>((IEnumerable<DepartmentLoginRole>) this.DepartmentLogins[0].DepartmentLoginRoles, (Func<DepartmentLoginRole, bool>) (x =>
  11257.       {
  11258.         Guid? applicationRoleId = x.ApplicationRoleID;
  11259.         Guid guid = role.RecordID.Value;
  11260.         if (applicationRoleId.HasValue)
  11261.           return applicationRoleId.GetValueOrDefault() == guid;
  11262.         return false;
  11263.       }))) == (BusinessObject) null)
  11264.       {
  11265.         DepartmentLoginRole recordToAdd = new DepartmentLoginRole();
  11266.         recordToAdd.ApplicationRoleID = new Guid?(role.RecordID.Value);
  11267.         this.DepartmentLogins[0].DepartmentLoginRoles.AddRecord(recordToAdd);
  11268.         UserLoginRole userLoginRole = new UserLoginRole();
  11269.         userLoginRole.SubLoginRoleId = recordToAdd.RecordID;
  11270.         userLoginRole.ApplicationRoleID = recordToAdd.ApplicationRoleID.Value;
  11271.         Guid? recordId = recordToAdd.RecordID;
  11272.         Guid guid = Guid.Empty;
  11273.         if ((!recordId.HasValue ? 1 : (recordId.GetValueOrDefault() != guid ? 1 : 0)) != 0)
  11274.           userLoginRole.IsBlank = false;
  11275.         this.UserLoginRoles.Add((BusinessObject) userLoginRole);
  11276.       }
  11277.       this.OnPropertyChanged((object) this, new PropertyChangedEventArgs("EffectivePermissions"));
  11278.     }
  11279.  
  11280.     public PersonnelRecord GetPersonnelRecord(Guid? deptID)
  11281.     {
  11282.       foreach (PersonnelRecord personnelRecord in (BusinessObjectList<PersonnelRecord>) this.PersonnelRecords)
  11283.       {
  11284.         if (object.Equals((object) personnelRecord.DeptID, (object) deptID))
  11285.           return personnelRecord;
  11286.       }
  11287.       return (PersonnelRecord) null;
  11288.     }
  11289.  
  11290.     public bool Login(string enteredPassword)
  11291.     {
  11292.       this.Refresh("UserName = '" + this.userName + "'");
  11293.       if (!this.recordID.HasValue)
  11294.         return false;
  11295.       return this.ValidatePassword(enteredPassword);
  11296.     }
  11297.  
  11298.     public bool ValidatePassword(string enteredPassword)
  11299.     {
  11300.       return Cryptography.CheckHash(enteredPassword, this.password, Cryptography.HashType.MD5);
  11301.     }
  11302.  
  11303.     public static UserLogin ReadByUserName(string userName)
  11304.     {
  11305.       UserLogin userLogin = new UserLogin();
  11306.       userLogin.Refresh("UserName = '" + userName + "'");
  11307.       return userLogin;
  11308.     }
  11309.  
  11310.     public void SetLookup(string listObjectName, IBusinessObjectList lookup)
  11311.     {
  11312.       if (GlobalValues.loadedLookups.ContainsKey((object) listObjectName))
  11313.         GlobalValues.loadedLookups[(object) listObjectName] = (object) lookup;
  11314.       else
  11315.         GlobalValues.loadedLookups.Add((object) listObjectName, (object) lookup);
  11316.     }
  11317.  
  11318.     public void ClearLookup(string typeName)
  11319.     {
  11320.       if (!this.loadedLookups.ContainsKey((object) typeName))
  11321.         return;
  11322.       this.loadedLookups.Remove((object) typeName);
  11323.     }
  11324.  
  11325.     public IBusinessObjectList GetLookup(Type type)
  11326.     {
  11327.       return GlobalValues.GetLookup(type.Name);
  11328.     }
  11329.  
  11330.     public IBusinessObjectList GetLookup(string listObjectName)
  11331.     {
  11332.       return GlobalValues.GetLookup(listObjectName);
  11333.     }
  11334.  
  11335.     public void SaveLookups(List<object> dataSource = null)
  11336.     {
  11337.       Hashtable hashtable = new Hashtable();
  11338.       foreach (DictionaryEntry dictionaryEntry in GlobalValues.loadedLookups)
  11339.         hashtable.Add(dictionaryEntry.Key, dictionaryEntry.Value);
  11340.       foreach (DictionaryEntry dictionaryEntry in hashtable)
  11341.       {
  11342.         IBusinessObjectList businessObjectList = (IBusinessObjectList) dictionaryEntry.Value;
  11343.         bool flag = true;
  11344.         if (dataSource != null)
  11345.         {
  11346.           foreach (object dataObject in dataSource)
  11347.           {
  11348.             if (dataObject != null)
  11349.             {
  11350.               if (businessObjectList.ContainsObject(dataObject))
  11351.               {
  11352.                 flag = false;
  11353.                 break;
  11354.               }
  11355.               if (businessObjectList.GetType().Name == dataObject.GetType().Name)
  11356.               {
  11357.                 flag = false;
  11358.                 break;
  11359.               }
  11360.             }
  11361.           }
  11362.         }
  11363.         if (flag)
  11364.           businessObjectList.Save(this.customerID, this.deptID);
  11365.       }
  11366.       GlobalValues.MasterCustomDictionaryEntries.Save(this.customerID, this.deptID);
  11367.     }
  11368.  
  11369.     public UserLoginList ReadLoginsForUserLoginID()
  11370.     {
  11371.       UserLoginList userLoginList = new UserLoginList();
  11372.       if (this.DepartmentLogins.Count == 0)
  11373.         userLoginList.AddRange((ICollection<UserLogin>) new UserLoginList(true, "RecordID IN (SELECT UserLoginID FROM CustomerLogins WHERE CustomerID IN (SELECT CustomerID FROM CustomerLogins WHERE UserLoginID = '{" + this.recordID.ToString() + "}'))"));
  11374.       else
  11375.         userLoginList.AddRange((ICollection<UserLogin>) new UserLoginList(true, "RecordID IN (SELECT UserLoginID FROM DepartmentLogins WHERE DeptID IN (SELECT DeptID FROM DepartmentLogins WHERE UserLoginID = '{" + this.recordID.ToString() + "}'))"));
  11376.       return userLoginList;
  11377.     }
  11378.  
  11379.     public DepartmentLoginList ReadDepartmentLoginsForUserLoginId()
  11380.     {
  11381.       DepartmentLoginList departmentLoginList = new DepartmentLoginList();
  11382.       departmentLoginList.Reload(GlobalValues.DeptID);
  11383.       return departmentLoginList;
  11384.     }
  11385.  
  11386.     internal override void InitValidationRules()
  11387.     {
  11388.       this.ChildValidationObjects.Clear();
  11389.       this.BusinessRules.Clear();
  11390.       this.ChildValidationObjects.Add((object) this.ContactMethods);
  11391.       BusinessRule businessRule1 = new BusinessRule((BusinessObject) this, "Password", BusinessRule.ErrorSeverity.Vital, true, "Passwords must match.");
  11392.       businessRule1.CustomComparisons.Add((BusinessObject) new BusinessRuleCustomComparison("ConfirmPassword;Password", (CustomRuleComparison) (p =>
  11393.       {
  11394.         if (p == null)
  11395.           return false;
  11396.         Dictionary<string, object> dictionary = p as Dictionary<string, object>;
  11397.         return dictionary["ConfirmPassword"].ToString() != dictionary["Password"].ToString();
  11398.       })));
  11399.       this.BusinessRules.Add((BusinessObject) businessRule1);
  11400.       BusinessRule businessRule2 = new BusinessRule((BusinessObject) this, "UserName", BusinessRule.ErrorSeverity.Vital, "UserName must be unique.");
  11401.       businessRule2.CustomComparisons.Add((BusinessObject) new BusinessRuleCustomComparison("ParentObject", (CustomRuleComparison) (p =>
  11402.       {
  11403.         if (p is UserLoginList && !string.IsNullOrEmpty(this.userName))
  11404.           return (BusinessObject) Enumerable.FirstOrDefault<UserLogin>(Enumerable.Where<UserLogin>((IEnumerable<UserLogin>) (p as UserLoginList), (Func<UserLogin, bool>) (x =>
  11405.           {
  11406.             if (!(x.UserName.ToLower() == this.userName.ToLower()))
  11407.               return false;
  11408.             Guid? recordId = x.RecordID;
  11409.             Guid? nullable = this.recordID;
  11410.             if (recordId.HasValue != nullable.HasValue)
  11411.               return true;
  11412.             if (recordId.HasValue)
  11413.               return recordId.GetValueOrDefault() != nullable.GetValueOrDefault();
  11414.             return false;
  11415.           }))) != (BusinessObject) null;
  11416.         return false;
  11417.       })));
  11418.       this.BusinessRules.Add((BusinessObject) businessRule2);
  11419.       BusinessRule businessRule3 = new BusinessRule((BusinessObject) this, "PersonnelRecord", BusinessRule.ErrorSeverity.Vital, false, "Personnel Record is required.");
  11420.       businessRule3.RuleConditions.Add((BusinessObject) new BusinessRuleCondition("CustomerID", (DynamicRuleCondition) (p =>
  11421.       {
  11422.         if (p != null && p is Guid?)
  11423.           return (p as Guid?).HasValue;
  11424.         return true;
  11425.       })));
  11426.       businessRule3.RuleConditions.Add((BusinessObject) new BusinessRuleCondition("UserName", (DynamicRuleCondition) (p =>
  11427.       {
  11428.         if (p != null)
  11429.           return !p.ToString().StartsWith("admin");
  11430.         return true;
  11431.       })));
  11432.       businessRule3.CustomComparisons.Add((BusinessObject) new BusinessRuleCustomComparison("PersonnelRecord", (CustomRuleComparison) (p => p == null), true));
  11433.       this.BusinessRules.Add((BusinessObject) businessRule3);
  11434.       base.InitValidationRules();
  11435.     }
  11436.   }
  11437. }
Add Comment
Please, Sign In to add comment