Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Owner" /> class.
 /// </summary>
 /// <param name="id">A system-generated unique identifier for a Owner (required).</param>
 /// <param name="ownerEquipmentCodePrefix">A unique prefix in the system that is used to generate the human-friendly IDs of the equipment. E.g. An owner Edwards might have a prefix &amp;quot;EDW&amp;quot; and their equipment numbered sequentially with that prefix - e.g. EDW-0082. (required).</param>
 /// <param name="organizationName">The name of the organization of the Owner. May simply be the First Name, Last Name of the Owner if the Owner is a sole proprietorship, or the name of a company. (required).</param>
 /// <param name="meetsResidency">True to indicate that the owner of the business has confirmed to the HETS Clerk that they meet the residency requirements of the HETS programme. See the published information about the MOTI HETS programme for information on the owner residency requirements. (required).</param>
 /// <param name="localArea">LocalArea (required).</param>
 /// <param name="status">The status of the owner record in the system. Current set of values are &amp;quot;Pending&amp;quot;, &amp;quot;Approved&amp;quot; and &amp;quot;Archived&amp;quot;. Pending is used when an owner self-registers and a HETS Clerk has not reviewed and Approved the record. Archived is when the owner is no longer part of the HETS programme. &amp;quot;Approved&amp;quot; is used in all other cases. (required).</param>
 /// <param name="doingBusinessAs">An official (per BC Registries) alternate name for an Owner organization under which it does business. The application does not verify the name against any registry&amp;#x2F;lookup..</param>
 /// <param name="registeredCompanyNumber">The BC Registries number under which the business is registered.  The application does not verify the number against any registry&amp;#x2F;lookup..</param>
 /// <param name="primaryContact">Link to the designated Primary Contact..</param>
 /// <param name="isMaintenanceContractor">True if the owner is contracted by MOTI to handle Maintenance activities in the area - e.g. provided services in address unscheduled issues on the roads in the area..</param>
 /// <param name="workSafeBcPolicyNumber">The Owner&amp;#39;s WorkSafeBC (aka WCB) Insurance Policy Number..</param>
 /// <param name="workSafeBcExpiryDate">The expiration of the owner&amp;#39;s current WorkSafeBC (aka WCB) permit..</param>
 /// <param name="cglEndDate">The end date of the owner&amp;#39;s Commercial General Liability insurance coverage. Coverage is only needed prior to an owner&amp;#39;s piece of equipment starting a rental period (not when in the HETS program but not hired). The details of the coverage can be entered into a Note, or more often - attached as a scanned&amp;#x2F;faxed document..</param>
 /// <param name="archiveCode">TO BE REVIEWED WITH THE BUSINESS - IS THIS NEEDED -A coded reason for why an owner record has been moved to Archived..</param>
 /// <param name="archiveReason">A text note about why the owner record has been changed to Archived..</param>
 /// <param name="archiveDate">The date the Owner record was changed to Archived and removed from active use in the system..</param>
 /// <param name="contacts">Contacts.</param>
 /// <param name="notes">Notes.</param>
 /// <param name="attachments">Attachments.</param>
 /// <param name="history">History.</param>
 /// <param name="equipmentList">EquipmentList.</param>
 public Owner(int id, string ownerEquipmentCodePrefix, string organizationName, bool meetsResidency, LocalArea localArea,
              string status, string doingBusinessAs = null, string registeredCompanyNumber = null, Contact primaryContact        = null,
              bool?isMaintenanceContractor          = null, string workSafeBcPolicyNumber  = null, DateTime?workSafeBcExpiryDate = null,
              DateTime?cglEndDate            = null, string archiveCode = null, string archiveReason          = null, DateTime?archiveDate = null,
              List <Contact> contacts        = null, List <Note> notes  = null, List <Attachment> attachments = null, List <History> history = null,
              List <Equipment> equipmentList = null)
 {
     Id = id;
     OwnerEquipmentCodePrefix = ownerEquipmentCodePrefix;
     OrganizationName         = organizationName;
     MeetsResidency           = meetsResidency;
     LocalArea               = localArea;
     Status                  = status;
     DoingBusinessAs         = doingBusinessAs;
     RegisteredCompanyNumber = registeredCompanyNumber;
     PrimaryContact          = primaryContact;
     IsMaintenanceContractor = isMaintenanceContractor;
     WorkSafeBCPolicyNumber  = workSafeBcPolicyNumber;
     WorkSafeBCExpiryDate    = workSafeBcExpiryDate;
     CGLEndDate              = cglEndDate;
     ArchiveCode             = archiveCode;
     ArchiveReason           = archiveReason;
     ArchiveDate             = archiveDate;
     Contacts                = contacts;
     Notes         = notes;
     Attachments   = attachments;
     History       = history;
     EquipmentList = equipmentList;
 }
        /// <summary>
        /// Returns true if LocalAreaRotationList instances are equal
        /// </summary>
        /// <param name="other">Instance of LocalAreaRotationList to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(LocalAreaRotationList other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     DistrictEquipmentType == other.DistrictEquipmentType ||
                     DistrictEquipmentType != null &&
                     DistrictEquipmentType.Equals(other.DistrictEquipmentType)
                 ) &&
                 (
                     LocalArea == other.LocalArea ||
                     LocalArea != null &&
                     LocalArea.Equals(other.LocalArea)
                 ) &&
                 (
                     AskNextBlock1 == other.AskNextBlock1 ||
                     AskNextBlock1 != null &&
                     AskNextBlock1.Equals(other.AskNextBlock1)
                 ) &&
                 (
                     AskNextBlock1Seniority == other.AskNextBlock1Seniority ||
                     AskNextBlock1Seniority != null &&
                     AskNextBlock1Seniority.Equals(other.AskNextBlock1Seniority)
                 ) &&
                 (
                     AskNextBlock2 == other.AskNextBlock2 ||
                     AskNextBlock2 != null &&
                     AskNextBlock2.Equals(other.AskNextBlock2)
                 ) &&
                 (
                     AskNextBlock2Seniority == other.AskNextBlock2Seniority ||
                     AskNextBlock2Seniority != null &&
                     AskNextBlock2Seniority.Equals(other.AskNextBlock2Seniority)
                 ) &&
                 (
                     AskNextBlockOpen == other.AskNextBlockOpen ||
                     AskNextBlockOpen != null &&
                     AskNextBlockOpen.Equals(other.AskNextBlockOpen)
                 ));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="LocalAreaRotationList" /> class.
 /// </summary>
 /// <param name="id">Id (required).</param>
 /// <param name="districtEquipmentType">A foreign key reference to the system-generated unique identifier for an Equipment Type (required).</param>
 /// <param name="localArea">LocalArea (required).</param>
 /// <param name="askNextBlock1">The id of the next piece of Block 1 Equipment to be asked for a Rental Request. If null, start from the first piece of equipment in Block 1..</param>
 /// <param name="askNextBlock1Seniority">The seniority score of the piece of equipment that is the next to be asked in Block 1..</param>
 /// <param name="askNextBlock2">The id of the next piece of Block 2 Equipment to be asked for a Rental Request. If null, start from the first piece of equipment in Block 2..</param>
 /// <param name="askNextBlock2Seniority">The seniority score of the piece of equipment that is the next to be asked in Block 1..</param>
 /// <param name="askNextBlockOpen">The id of the next piece of Block Open Equipment to be asked for a Rental Request. If null, start from the first piece of equipment in Block Open..</param>
 public LocalAreaRotationList(int id, DistrictEquipmentType districtEquipmentType, LocalArea localArea,
                              Equipment askNextBlock1      = null, float?askNextBlock1Seniority = null, Equipment askNextBlock2 = null,
                              float?askNextBlock2Seniority = null, Equipment askNextBlockOpen   = null)
 {
     Id = id;
     DistrictEquipmentType  = districtEquipmentType;
     LocalArea              = localArea;
     AskNextBlock1          = askNextBlock1;
     AskNextBlock1Seniority = askNextBlock1Seniority;
     AskNextBlock2          = askNextBlock2;
     AskNextBlock2Seniority = askNextBlock2Seniority;
     AskNextBlockOpen       = askNextBlockOpen;
 }
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();

                if (DistrictEquipmentType != null)
                {
                    hash = hash * 59 + DistrictEquipmentType.GetHashCode();
                }

                if (LocalArea != null)
                {
                    hash = hash * 59 + LocalArea.GetHashCode();
                }

                if (AskNextBlock1 != null)
                {
                    hash = hash * 59 + AskNextBlock1.GetHashCode();
                }

                if (AskNextBlock1Seniority != null)
                {
                    hash = hash * 59 + AskNextBlock1Seniority.GetHashCode();
                }

                if (AskNextBlock2 != null)
                {
                    hash = hash * 59 + AskNextBlock2.GetHashCode();
                }

                if (AskNextBlock2Seniority != null)
                {
                    hash = hash * 59 + AskNextBlock2Seniority.GetHashCode();
                }

                if (AskNextBlockOpen != null)
                {
                    hash = hash * 59 + AskNextBlockOpen.GetHashCode();
                }

                return(hash);
            }
        }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SeniorityAudit" /> class.
 /// </summary>
 /// <param name="id">A system-generated unique identifier for a SeniorityAudit (required).</param>
 /// <param name="startDate">The effective date that the Seniority data in this record went into effect. (required).</param>
 /// <param name="endDate">The effective date at which the Seniority data in this record ceased to be in effect. (required).</param>
 /// <param name="localArea">A foreign key reference to the system-generated unique identifier for a Local Area (required).</param>
 /// <param name="equipment">A foreign key reference to the system-generated unique identifier for an Equipment (required).</param>
 /// <param name="blockNumber">The block number for the piece of equipment as calculated by the Seniority Algorthm for this equipment type in the local area. As currently defined by the business - 1, 2 or Open.</param>
 /// <param name="owner">A foreign key reference to the system-generated unique identifier for an Owner.</param>
 /// <param name="ownerOrganizationName">The name of the organization of the owner from the Owner Record, captured at the time this record was created..</param>
 /// <param name="seniority">The seniority calculation result for this piece of equipment. The calculation is based on the &amp;quot;numYears&amp;quot; of service + average hours of service over the last three fiscal years - as stored in the related fields (serviceHoursLastYear, serviceHoursTwoYearsAgo serviceHoursThreeYearsAgo)..</param>
 /// <param name="serviceHoursLastYear">Number of hours of service by this piece of equipment in the previous fiscal year.</param>
 /// <param name="serviceHoursTwoYearsAgo">Number of hours of service by this piece of equipment in the fiscal year before the last one - e.g. if current year is FY2018 then hours in FY2016.</param>
 /// <param name="serviceHoursThreeYearsAgo">Number of hours of service by this piece of equipment in the fiscal year three years ago - e.g. if current year is FY2018 then hours in FY2015.</param>
 /// <param name="isSeniorityOverridden">True if the Seniority for the piece of equipment was manually overridden. Set if a user has gone in and explicitly updated the seniority base information. Indicates that underlying numbers were manually overridden..</param>
 /// <param name="seniorityOverrideReason">A text reason for why the piece of equipments underlying data was overridden to change their seniority number..</param>
 public SeniorityAudit(int id, DateTime startDate, DateTime endDate, LocalArea localArea, Equipment equipment,
                       int?blockNumber            = null, Owner owner = null, string ownerOrganizationName = null, float?seniority = null,
                       float?serviceHoursLastYear = null, float?serviceHoursTwoYearsAgo  = null, float?serviceHoursThreeYearsAgo = null,
                       bool?isSeniorityOverridden = null, string seniorityOverrideReason = null)
 {
     Id                        = id;
     StartDate                 = startDate;
     EndDate                   = endDate;
     LocalArea                 = localArea;
     Equipment                 = equipment;
     BlockNumber               = blockNumber;
     Owner                     = owner;
     OwnerOrganizationName     = ownerOrganizationName;
     Seniority                 = seniority;
     ServiceHoursLastYear      = serviceHoursLastYear;
     ServiceHoursTwoYearsAgo   = serviceHoursTwoYearsAgo;
     ServiceHoursThreeYearsAgo = serviceHoursThreeYearsAgo;
     IsSeniorityOverridden     = isSeniorityOverridden;
     SeniorityOverrideReason   = seniorityOverrideReason;
 }
Beispiel #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SeniorityAudit" /> class.
        /// </summary>
        /// <param name="Id">A system-generated unique identifier for a SeniorityAudit (required).</param>
        /// <param name="StartDate">The effective date that the Seniority data in this record went into effect. (required).</param>
        /// <param name="EndDate">The effective date at which the Seniority data in this record ceased to be in effect. (required).</param>
        /// <param name="LocalArea">A foreign key reference to the system-generated unique identifier for a Local Area (required).</param>
        /// <param name="Equipment">A foreign key reference to the system-generated unique identifier for an Equipment (required).</param>
        /// <param name="BlockNumber">The block number for the piece of equipment as calculated by the Seniority Algorthm for this equipment type in the local area. As currently defined by the business - 1, 2 or Open.</param>
        /// <param name="Owner">A foreign key reference to the system-generated unique identifier for an Owner.</param>
        /// <param name="OwnerOrganizationName">The name of the organization of the owner from the Owner Record, captured at the time this record was created..</param>
        /// <param name="Seniority">The seniority calculation result for this piece of equipment. The calculation is based on the &amp;quot;numYears&amp;quot; of service + average hours of service over the last three fiscal years - as stored in the related fields (serviceHoursLastYear, serviceHoursTwoYearsAgo serviceHoursThreeYearsAgo)..</param>
        /// <param name="ServiceHoursLastYear">Number of hours of service by this piece of equipment in the previous fiscal year.</param>
        /// <param name="ServiceHoursTwoYearsAgo">Number of hours of service by this piece of equipment in the fiscal year before the last one - e.g. if current year is FY2018 then hours in FY2016.</param>
        /// <param name="ServiceHoursThreeYearsAgo">Number of hours of service by this piece of equipment in the fiscal year three years ago - e.g. if current year is FY2018 then hours in FY2015.</param>
        /// <param name="IsSeniorityOverridden">True if the Seniority for the piece of equipment was manually overridden. Set if a user has gone in and explicitly updated the seniority base information. Indicates that underlying numbers were manually overridden..</param>
        /// <param name="SeniorityOverrideReason">A text reason for why the piece of equipments underlying data was overridden to change their seniority number..</param>
        public SeniorityAudit(int Id, DateTime StartDate, DateTime EndDate, LocalArea LocalArea, Equipment Equipment, int?BlockNumber = null, Owner Owner = null, string OwnerOrganizationName = null, float?Seniority = null, float?ServiceHoursLastYear = null, float?ServiceHoursTwoYearsAgo = null, float?ServiceHoursThreeYearsAgo = null, bool?IsSeniorityOverridden = null, string SeniorityOverrideReason = null)
        {
            this.Id        = Id;
            this.StartDate = StartDate;
            this.EndDate   = EndDate;
            this.LocalArea = LocalArea;
            this.Equipment = Equipment;



            this.BlockNumber               = BlockNumber;
            this.Owner                     = Owner;
            this.OwnerOrganizationName     = OwnerOrganizationName;
            this.Seniority                 = Seniority;
            this.ServiceHoursLastYear      = ServiceHoursLastYear;
            this.ServiceHoursTwoYearsAgo   = ServiceHoursTwoYearsAgo;
            this.ServiceHoursThreeYearsAgo = ServiceHoursThreeYearsAgo;
            this.IsSeniorityOverridden     = IsSeniorityOverridden;
            this.SeniorityOverrideReason   = SeniorityOverrideReason;
        }
Beispiel #7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RentalRequest" /> class.
        /// </summary>
        /// <param name="Id">A system-generated unique identifier for a Request (required).</param>
        /// <param name="Project">Project (required).</param>
        /// <param name="LocalArea">A foreign key reference to the system-generated unique identifier for a Local Area (required).</param>
        /// <param name="Status">The status of the Rental Request - whether it in progress, completed or was cancelled. (required).</param>
        /// <param name="DistrictEquipmentType">A foreign key reference to the system-generated unique identifier for an Equipment Type (required).</param>
        /// <param name="EquipmentCount">The number of pieces of the equipment type wanted for hire as part of this request. (required).</param>
        /// <param name="ExpectedHours">The expected number of rental hours for each piece equipment hired against this request, as provided by the Project Manager making the request..</param>
        /// <param name="ExpectedStartDate">The expected start date of each piece of equipment hired against this request, as provided by the Project Manager making the request..</param>
        /// <param name="ExpectedEndDate">The expected end date of each piece of equipment hired against this request, as provided by the Project Manager making the request..</param>
        /// <param name="FirstOnRotationList">The first piece of equipment on the rotation list at the time of the creation of the request..</param>
        /// <param name="Notes">Notes.</param>
        /// <param name="Attachments">Attachments.</param>
        /// <param name="History">History.</param>
        /// <param name="RentalRequestAttachments">RentalRequestAttachments.</param>
        /// <param name="RentalRequestRotationList">RentalRequestRotationList.</param>
        public RentalRequest(int Id, Project Project, LocalArea LocalArea, string Status, DistrictEquipmentType DistrictEquipmentType, int EquipmentCount, int?ExpectedHours = null, DateTime?ExpectedStartDate = null, DateTime?ExpectedEndDate = null, Equipment FirstOnRotationList = null, List <Note> Notes = null, List <Attachment> Attachments = null, List <History> History = null, List <RentalRequestAttachment> RentalRequestAttachments = null, List <RentalRequestRotationList> RentalRequestRotationList = null)
        {
            this.Id                    = Id;
            this.Project               = Project;
            this.LocalArea             = LocalArea;
            this.Status                = Status;
            this.DistrictEquipmentType = DistrictEquipmentType;
            this.EquipmentCount        = EquipmentCount;



            this.ExpectedHours       = ExpectedHours;
            this.ExpectedStartDate   = ExpectedStartDate;
            this.ExpectedEndDate     = ExpectedEndDate;
            this.FirstOnRotationList = FirstOnRotationList;
            this.Notes       = Notes;
            this.Attachments = Attachments;
            this.History     = History;
            this.RentalRequestAttachments  = RentalRequestAttachments;
            this.RentalRequestRotationList = RentalRequestRotationList;
        }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Owner" /> class.
 /// </summary>
 /// <param name="id">A system-generated unique identifier for a Owner (required).</param>
 /// <param name="ownerCode">A unique prefix in the system that is used to generate the human-friendly IDs of the equipment. E.g. An owner Edwards might have a prefix &amp;quot;EDW&amp;quot; and their equipment numbered sequentially with that prefix - e.g. EDW-0082. (required).</param>
 /// <param name="organizationName">The name of the organization of the Owner. May simply be the First Name, Last Name of the Owner if the Owner is a sole proprietorship, or the name of a company. (required).</param>
 /// <param name="meetsResidency">True to indicate that the owner of the business has confirmed to the HETS Clerk that they meet the residency requirements of the HETS programme. See the published information about the MOTI HETS programme for information on the owner residency requirements. (required).</param>
 /// <param name="localArea">LocalArea (required).</param>
 /// <param name="status">The status of the owner record in the system. Current set of values are &amp;quot;Pending&amp;quot;, &amp;quot;Approved&amp;quot; and &amp;quot;Archived&amp;quot;. Pending is used when an owner self-registers and a HETS Clerk has not reviewed and Approved the record. Archived is when the owner is no longer part of the HETS programme. &amp;quot;Approved&amp;quot; is used in all other cases. (required).</param>
 /// <param name="statusComment">A comment field to capture information specific to the change of status.</param>
 /// <param name="doingBusinessAs">An official (per BC Registries) alternate name for an Owner organization under which it does business. The application does not verify the name against any registry&amp;#x2F;lookup.</param>
 /// <param name="registeredCompanyNumber">The BC Registries number under which the business is registered.  The application does not verify the number against any registry&amp;#x2F;lookup.</param>
 /// <param name="primaryContact">Link to the designated Primary Contact.</param>
 /// <param name="isMaintenanceContractor">True if the owner is contracted by MOTI to handle Maintenance activities in the area - e.g. provided services in address unscheduled issues on the roads in the area.</param>
 /// <param name="workSafeBcPolicyNumber">The Owner&amp;#39;s WorkSafeBC (aka WCB) Insurance Policy Number.</param>
 /// <param name="workSafeBcExpiryDate">The expiration of the owner&amp;#39;s current WorkSafeBC (aka WCB) permit.</param>
 /// <param name="givenName">The given name of the contact.</param>
 /// <param name="surname">The surname of the contact.</param>
 /// <param name="address1">Address 1 line of the address.</param>
 /// <param name="address2">Address 2 line of the address.</param>
 /// <param name="city">The City of the address.</param>
 /// <param name="province">The Province of the address.</param>
 /// <param name="postalCode">The postal code of the address.</param>
 /// <param name="cglEndDate">The end date of the owner&amp;#39;s Commercial General Liability insurance coverage. Coverage is only needed prior to an owner&amp;#39;s piece of equipment starting a rental period (not when in the HETS program but not hired). The details of the coverage can be entered into a Note, or more often - attached as a scanned&amp;#x2F;faxed document.</param>
 /// <param name="cglPolicyNumber">The owner&amp;#39;s Commercial General Liability Policy Number</param>
 /// <param name="archiveCode">TO BE REVIEWED WITH THE BUSINESS - IS THIS NEEDED -A coded reason for why an owner record has been moved to Archived.</param>
 /// <param name="archiveReason">A text note about why the owner record has been changed to Archived.</param>
 /// <param name="archiveDate">The date the Owner record was changed to Archived and removed from active use in the system.</param>
 /// <param name="contacts">Contacts.</param>
 /// <param name="notes">Notes.</param>
 /// <param name="attachments">Attachments.</param>
 /// <param name="history">History.</param>
 /// <param name="equipmentList">EquipmentList.</param>
 public Owner(int id, string ownerCode, string organizationName, bool meetsResidency, LocalArea localArea,
              string status, string statusComment = null, string doingBusinessAs = null, string registeredCompanyNumber = null,
              Contact primaryContact        = null, bool?isMaintenanceContractor = null, string workSafeBcPolicyNumber  = null,
              DateTime?workSafeBcExpiryDate = null, string givenName             = null, string surname = null,
              string address1                = null, string address2        = null, string city = null, string province = null, string postalCode = null,
              DateTime?cglEndDate            = null, string cglPolicyNumber = null, string archiveCode            = null, string archiveReason   = null, DateTime?archiveDate = null,
              List <Contact> contacts        = null, List <Note> notes      = null, List <Attachment> attachments = null, List <History> history = null,
              List <Equipment> equipmentList = null)
 {
     Id                      = id;
     OwnerCode               = ownerCode;
     OrganizationName        = organizationName;
     MeetsResidency          = meetsResidency;
     LocalArea               = localArea;
     Status                  = status;
     StatusComment           = statusComment;
     DoingBusinessAs         = doingBusinessAs;
     RegisteredCompanyNumber = registeredCompanyNumber;
     PrimaryContact          = primaryContact;
     IsMaintenanceContractor = isMaintenanceContractor;
     WorkSafeBCPolicyNumber  = workSafeBcPolicyNumber;
     WorkSafeBCExpiryDate    = workSafeBcExpiryDate;
     GivenName               = givenName;
     Surname                 = surname;
     Address1                = address1;
     Address2                = address2;
     City                    = city;
     Province                = province;
     PostalCode              = postalCode;
     CGLEndDate              = cglEndDate;
     CglPolicyNumber         = cglPolicyNumber;
     ArchiveCode             = archiveCode;
     ArchiveReason           = archiveReason;
     ArchiveDate             = archiveDate;
     Contacts                = contacts;
     Notes                   = notes;
     Attachments             = attachments;
     History                 = history;
     EquipmentList           = equipmentList;
 }
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RentalRequest" /> class.
 /// </summary>
 /// <param name="id">A system-generated unique identifier for a Request (required).</param>
 /// <param name="project">Project (required).</param>
 /// <param name="localArea">A foreign key reference to the system-generated unique identifier for a Local Area (required).</param>
 /// <param name="status">The status of the Rental Request - whether it in progress, completed or was cancelled. (required).</param>
 /// <param name="districtEquipmentType">A foreign key reference to the system-generated unique identifier for an Equipment Type (required).</param>
 /// <param name="equipmentCount">The number of pieces of the equipment type wanted for hire as part of this request. (required).</param>
 /// <param name="expectedHours">The expected number of rental hours for each piece equipment hired against this request, as provided by the Project Manager making the request..</param>
 /// <param name="expectedStartDate">The expected start date of each piece of equipment hired against this request, as provided by the Project Manager making the request..</param>
 /// <param name="expectedEndDate">The expected end date of each piece of equipment hired against this request, as provided by the Project Manager making the request..</param>
 /// <param name="firstOnRotationList">The first piece of equipment on the rotation list at the time of the creation of the request..</param>
 /// <param name="notes">Notes.</param>
 /// <param name="attachments">Attachments.</param>
 /// <param name="history">History.</param>
 /// <param name="rentalRequestAttachments">RentalRequestAttachments.</param>
 /// <param name="rentalRequestRotationList">RentalRequestRotationList.</param>
 public RentalRequest(int id, Project project, LocalArea localArea, string status, DistrictEquipmentType districtEquipmentType,
                      int equipmentCount, int?expectedHours = null, DateTime?expectedStartDate = null, DateTime?expectedEndDate = null,
                      Equipment firstOnRotationList         = null, List <Note> notes = null, List <Attachment> attachments     = null,
                      List <History> history = null, List <RentalRequestAttachment> rentalRequestAttachments = null,
                      List <RentalRequestRotationList> rentalRequestRotationList = null)
 {
     Id                        = id;
     Project                   = project;
     LocalArea                 = localArea;
     Status                    = status;
     DistrictEquipmentType     = districtEquipmentType;
     EquipmentCount            = equipmentCount;
     ExpectedHours             = expectedHours;
     ExpectedStartDate         = expectedStartDate;
     ExpectedEndDate           = expectedEndDate;
     FirstOnRotationList       = firstOnRotationList;
     Notes                     = notes;
     Attachments               = attachments;
     History                   = history;
     RentalRequestAttachments  = rentalRequestAttachments;
     RentalRequestRotationList = rentalRequestRotationList;
 }
Beispiel #10
0
        /// <summary>
        /// Returns true if Owner instances are equal
        /// </summary>
        /// <param name="other">Instance of Owner to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Owner other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     OwnerEquipmentCodePrefix == other.OwnerEquipmentCodePrefix ||
                     OwnerEquipmentCodePrefix != null &&
                     OwnerEquipmentCodePrefix.Equals(other.OwnerEquipmentCodePrefix)
                 ) &&
                 (
                     OrganizationName == other.OrganizationName ||
                     OrganizationName != null &&
                     OrganizationName.Equals(other.OrganizationName)
                 ) &&
                 (
                     MeetsResidency == other.MeetsResidency ||
                     MeetsResidency.Equals(other.MeetsResidency)
                 ) &&
                 (
                     LocalArea == other.LocalArea ||
                     LocalArea != null &&
                     LocalArea.Equals(other.LocalArea)
                 ) &&
                 (
                     Status == other.Status ||
                     Status != null &&
                     Status.Equals(other.Status)
                 ) &&
                 (
                     DoingBusinessAs == other.DoingBusinessAs ||
                     DoingBusinessAs != null &&
                     DoingBusinessAs.Equals(other.DoingBusinessAs)
                 ) &&
                 (
                     RegisteredCompanyNumber == other.RegisteredCompanyNumber ||
                     RegisteredCompanyNumber != null &&
                     RegisteredCompanyNumber.Equals(other.RegisteredCompanyNumber)
                 ) &&
                 (
                     PrimaryContact == other.PrimaryContact ||
                     PrimaryContact != null &&
                     PrimaryContact.Equals(other.PrimaryContact)
                 ) &&
                 (
                     IsMaintenanceContractor == other.IsMaintenanceContractor ||
                     IsMaintenanceContractor != null &&
                     IsMaintenanceContractor.Equals(other.IsMaintenanceContractor)
                 ) &&
                 (
                     WorkSafeBCPolicyNumber == other.WorkSafeBCPolicyNumber ||
                     WorkSafeBCPolicyNumber != null &&
                     WorkSafeBCPolicyNumber.Equals(other.WorkSafeBCPolicyNumber)
                 ) &&
                 (
                     WorkSafeBCExpiryDate == other.WorkSafeBCExpiryDate ||
                     WorkSafeBCExpiryDate != null &&
                     WorkSafeBCExpiryDate.Equals(other.WorkSafeBCExpiryDate)
                 ) &&
                 (
                     CGLEndDate == other.CGLEndDate ||
                     CGLEndDate != null &&
                     CGLEndDate.Equals(other.CGLEndDate)
                 ) &&
                 (
                     ArchiveCode == other.ArchiveCode ||
                     ArchiveCode != null &&
                     ArchiveCode.Equals(other.ArchiveCode)
                 ) &&
                 (
                     ArchiveReason == other.ArchiveReason ||
                     ArchiveReason != null &&
                     ArchiveReason.Equals(other.ArchiveReason)
                 ) &&
                 (
                     ArchiveDate == other.ArchiveDate ||
                     ArchiveDate != null &&
                     ArchiveDate.Equals(other.ArchiveDate)
                 ) &&
                 (
                     Contacts == other.Contacts ||
                     Contacts != null &&
                     Contacts.SequenceEqual(other.Contacts)
                 ) &&
                 (
                     Notes == other.Notes ||
                     Notes != null &&
                     Notes.SequenceEqual(other.Notes)
                 ) &&
                 (
                     Attachments == other.Attachments ||
                     Attachments != null &&
                     Attachments.SequenceEqual(other.Attachments)
                 ) &&
                 (
                     History == other.History ||
                     History != null &&
                     History.SequenceEqual(other.History)
                 ) &&
                 (
                     EquipmentList == other.EquipmentList ||
                     EquipmentList != null &&
                     EquipmentList.SequenceEqual(other.EquipmentList)
                 ));
        }
Beispiel #11
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();
                hash = hash * 59 + StartDate.GetHashCode();
                hash = hash * 59 + EndDate.GetHashCode();

                if (LocalArea != null)
                {
                    hash = hash * 59 + LocalArea.GetHashCode();
                }

                if (Equipment != null)
                {
                    hash = hash * 59 + Equipment.GetHashCode();
                }

                if (BlockNumber != null)
                {
                    hash = hash * 59 + BlockNumber.GetHashCode();
                }

                if (Owner != null)
                {
                    hash = hash * 59 + Owner.GetHashCode();
                }

                if (OwnerOrganizationName != null)
                {
                    hash = hash * 59 + OwnerOrganizationName.GetHashCode();
                }

                if (Seniority != null)
                {
                    hash = hash * 59 + Seniority.GetHashCode();
                }

                if (ServiceHoursLastYear != null)
                {
                    hash = hash * 59 + ServiceHoursLastYear.GetHashCode();
                }

                if (ServiceHoursTwoYearsAgo != null)
                {
                    hash = hash * 59 + ServiceHoursTwoYearsAgo.GetHashCode();
                }

                if (ServiceHoursThreeYearsAgo != null)
                {
                    hash = hash * 59 + ServiceHoursThreeYearsAgo.GetHashCode();
                }

                if (IsSeniorityOverridden != null)
                {
                    hash = hash * 59 + IsSeniorityOverridden.GetHashCode();
                }

                if (SeniorityOverrideReason != null)
                {
                    hash = hash * 59 + SeniorityOverrideReason.GetHashCode();
                }

                return(hash);
            }
        }
Beispiel #12
0
        /// <summary>
        /// Returns true if SeniorityAudit instances are equal
        /// </summary>
        /// <param name="other">Instance of SeniorityAudit to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SeniorityAudit other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     StartDate == other.StartDate ||
                     StartDate.Equals(other.StartDate)
                 ) &&
                 (
                     EndDate == other.EndDate ||
                     EndDate.Equals(other.EndDate)
                 ) &&
                 (
                     LocalArea == other.LocalArea ||
                     LocalArea != null &&
                     LocalArea.Equals(other.LocalArea)
                 ) &&
                 (
                     Equipment == other.Equipment ||
                     Equipment != null &&
                     Equipment.Equals(other.Equipment)
                 ) &&
                 (
                     BlockNumber == other.BlockNumber ||
                     BlockNumber != null &&
                     BlockNumber.Equals(other.BlockNumber)
                 ) &&
                 (
                     Owner == other.Owner ||
                     Owner != null &&
                     Owner.Equals(other.Owner)
                 ) &&
                 (
                     OwnerOrganizationName == other.OwnerOrganizationName ||
                     OwnerOrganizationName != null &&
                     OwnerOrganizationName.Equals(other.OwnerOrganizationName)
                 ) &&
                 (
                     Seniority == other.Seniority ||
                     Seniority != null &&
                     Seniority.Equals(other.Seniority)
                 ) &&
                 (
                     ServiceHoursLastYear == other.ServiceHoursLastYear ||
                     ServiceHoursLastYear != null &&
                     ServiceHoursLastYear.Equals(other.ServiceHoursLastYear)
                 ) &&
                 (
                     ServiceHoursTwoYearsAgo == other.ServiceHoursTwoYearsAgo ||
                     ServiceHoursTwoYearsAgo != null &&
                     ServiceHoursTwoYearsAgo.Equals(other.ServiceHoursTwoYearsAgo)
                 ) &&
                 (
                     ServiceHoursThreeYearsAgo == other.ServiceHoursThreeYearsAgo ||
                     ServiceHoursThreeYearsAgo != null &&
                     ServiceHoursThreeYearsAgo.Equals(other.ServiceHoursThreeYearsAgo)
                 ) &&
                 (
                     IsSeniorityOverridden == other.IsSeniorityOverridden ||
                     IsSeniorityOverridden != null &&
                     IsSeniorityOverridden.Equals(other.IsSeniorityOverridden)
                 ) &&
                 (
                     SeniorityOverrideReason == other.SeniorityOverrideReason ||
                     SeniorityOverrideReason != null &&
                     SeniorityOverrideReason.Equals(other.SeniorityOverrideReason)
                 ));
        }
Beispiel #13
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();

                if (Project != null)
                {
                    hash = hash * 59 + Project.GetHashCode();
                }

                if (LocalArea != null)
                {
                    hash = hash * 59 + LocalArea.GetHashCode();
                }

                if (Status != null)
                {
                    hash = hash * 59 + Status.GetHashCode();
                }

                if (DistrictEquipmentType != null)
                {
                    hash = hash * 59 + DistrictEquipmentType.GetHashCode();
                }

                hash = hash * 59 + EquipmentCount.GetHashCode();

                if (ExpectedHours != null)
                {
                    hash = hash * 59 + ExpectedHours.GetHashCode();
                }

                if (ExpectedStartDate != null)
                {
                    hash = hash * 59 + ExpectedStartDate.GetHashCode();
                }

                if (ExpectedEndDate != null)
                {
                    hash = hash * 59 + ExpectedEndDate.GetHashCode();
                }

                if (FirstOnRotationList != null)
                {
                    hash = hash * 59 + FirstOnRotationList.GetHashCode();
                }

                if (Notes != null)
                {
                    hash = hash * 59 + Notes.GetHashCode();
                }

                if (Attachments != null)
                {
                    hash = hash * 59 + Attachments.GetHashCode();
                }

                if (History != null)
                {
                    hash = hash * 59 + History.GetHashCode();
                }

                if (RentalRequestAttachments != null)
                {
                    hash = hash * 59 + RentalRequestAttachments.GetHashCode();
                }

                if (RentalRequestRotationList != null)
                {
                    hash = hash * 59 + RentalRequestRotationList.GetHashCode();
                }

                return(hash);
            }
        }
Beispiel #14
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LocalAreaRotationList" /> class.
        /// </summary>
        /// <param name="Id">Id (required).</param>
        /// <param name="DistrictEquipmentType">A foreign key reference to the system-generated unique identifier for an Equipment Type (required).</param>
        /// <param name="LocalArea">LocalArea (required).</param>
        /// <param name="AskNextBlock1">The id of the next piece of Block 1 Equipment to be asked for a Rental Request. If null, start from the first piece of equipment in Block 1..</param>
        /// <param name="AskNextBlock1Seniority">The seniority score of the piece of equipment that is the next to be asked in Block 1..</param>
        /// <param name="AskNextBlock2">The id of the next piece of Block 2 Equipment to be asked for a Rental Request. If null, start from the first piece of equipment in Block 2..</param>
        /// <param name="AskNextBlock2Seniority">The seniority score of the piece of equipment that is the next to be asked in Block 1..</param>
        /// <param name="AskNextBlockOpen">The id of the next piece of Block Open Equipment to be asked for a Rental Request. If null, start from the first piece of equipment in Block Open..</param>
        public LocalAreaRotationList(int Id, DistrictEquipmentType DistrictEquipmentType, LocalArea LocalArea, Equipment AskNextBlock1 = null, float?AskNextBlock1Seniority = null, Equipment AskNextBlock2 = null, float?AskNextBlock2Seniority = null, Equipment AskNextBlockOpen = null)
        {
            this.Id = Id;
            this.DistrictEquipmentType = DistrictEquipmentType;
            this.LocalArea             = LocalArea;


            this.AskNextBlock1          = AskNextBlock1;
            this.AskNextBlock1Seniority = AskNextBlock1Seniority;
            this.AskNextBlock2          = AskNextBlock2;
            this.AskNextBlock2Seniority = AskNextBlock2Seniority;
            this.AskNextBlockOpen       = AskNextBlockOpen;
        }
Beispiel #15
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();

                if (OwnerEquipmentCodePrefix != null)
                {
                    hash = hash * 59 + OwnerEquipmentCodePrefix.GetHashCode();
                }

                if (OrganizationName != null)
                {
                    hash = hash * 59 + OrganizationName.GetHashCode();
                }

                hash = hash * 59 + MeetsResidency.GetHashCode();

                if (LocalArea != null)
                {
                    hash = hash * 59 + LocalArea.GetHashCode();
                }

                if (Status != null)
                {
                    hash = hash * 59 + Status.GetHashCode();
                }

                if (DoingBusinessAs != null)
                {
                    hash = hash * 59 + DoingBusinessAs.GetHashCode();
                }

                if (RegisteredCompanyNumber != null)
                {
                    hash = hash * 59 + RegisteredCompanyNumber.GetHashCode();
                }

                if (PrimaryContact != null)
                {
                    hash = hash * 59 + PrimaryContact.GetHashCode();
                }

                if (IsMaintenanceContractor != null)
                {
                    hash = hash * 59 + IsMaintenanceContractor.GetHashCode();
                }

                if (WorkSafeBCPolicyNumber != null)
                {
                    hash = hash * 59 + WorkSafeBCPolicyNumber.GetHashCode();
                }

                if (WorkSafeBCExpiryDate != null)
                {
                    hash = hash * 59 + WorkSafeBCExpiryDate.GetHashCode();
                }

                if (CGLEndDate != null)
                {
                    hash = hash * 59 + CGLEndDate.GetHashCode();
                }

                if (ArchiveCode != null)
                {
                    hash = hash * 59 + ArchiveCode.GetHashCode();
                }

                if (ArchiveReason != null)
                {
                    hash = hash * 59 + ArchiveReason.GetHashCode();
                }

                if (ArchiveDate != null)
                {
                    hash = hash * 59 + ArchiveDate.GetHashCode();
                }

                if (Contacts != null)
                {
                    hash = hash * 59 + Contacts.GetHashCode();
                }

                if (Notes != null)
                {
                    hash = hash * 59 + Notes.GetHashCode();
                }

                if (Attachments != null)
                {
                    hash = hash * 59 + Attachments.GetHashCode();
                }

                if (History != null)
                {
                    hash = hash * 59 + History.GetHashCode();
                }

                if (EquipmentList != null)
                {
                    hash = hash * 59 + EquipmentList.GetHashCode();
                }

                return(hash);
            }
        }
Beispiel #16
0
        /// <summary>
        /// Returns true if RentalRequest instances are equal
        /// </summary>
        /// <param name="other">Instance of RentalRequest to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(RentalRequest other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Project == other.Project ||
                     Project != null &&
                     Project.Equals(other.Project)
                 ) &&
                 (
                     LocalArea == other.LocalArea ||
                     LocalArea != null &&
                     LocalArea.Equals(other.LocalArea)
                 ) &&
                 (
                     Status == other.Status ||
                     Status != null &&
                     Status.Equals(other.Status)
                 ) &&
                 (
                     DistrictEquipmentType == other.DistrictEquipmentType ||
                     DistrictEquipmentType != null &&
                     DistrictEquipmentType.Equals(other.DistrictEquipmentType)
                 ) &&
                 (
                     EquipmentCount == other.EquipmentCount ||
                     EquipmentCount.Equals(other.EquipmentCount)
                 ) &&
                 (
                     ExpectedHours == other.ExpectedHours ||
                     ExpectedHours != null &&
                     ExpectedHours.Equals(other.ExpectedHours)
                 ) &&
                 (
                     ExpectedStartDate == other.ExpectedStartDate ||
                     ExpectedStartDate != null &&
                     ExpectedStartDate.Equals(other.ExpectedStartDate)
                 ) &&
                 (
                     ExpectedEndDate == other.ExpectedEndDate ||
                     ExpectedEndDate != null &&
                     ExpectedEndDate.Equals(other.ExpectedEndDate)
                 ) &&
                 (
                     FirstOnRotationList == other.FirstOnRotationList ||
                     FirstOnRotationList != null &&
                     FirstOnRotationList.Equals(other.FirstOnRotationList)
                 ) &&
                 (
                     Notes == other.Notes ||
                     Notes != null &&
                     Notes.SequenceEqual(other.Notes)
                 ) &&
                 (
                     Attachments == other.Attachments ||
                     Attachments != null &&
                     Attachments.SequenceEqual(other.Attachments)
                 ) &&
                 (
                     History == other.History ||
                     History != null &&
                     History.SequenceEqual(other.History)
                 ) &&
                 (
                     RentalRequestAttachments == other.RentalRequestAttachments ||
                     RentalRequestAttachments != null &&
                     RentalRequestAttachments.SequenceEqual(other.RentalRequestAttachments)
                 ) &&
                 (
                     RentalRequestRotationList == other.RentalRequestRotationList ||
                     RentalRequestRotationList != null &&
                     RentalRequestRotationList.SequenceEqual(other.RentalRequestRotationList)
                 ));
        }
Beispiel #17
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Owner" /> class.
        /// </summary>
        /// <param name="Id">A system-generated unique identifier for a Owner (required).</param>
        /// <param name="OwnerEquipmentCodePrefix">A unique prefix in the system that is used to generate the human-friendly IDs of the equipment. E.g. An owner Edwards might have a prefix &amp;quot;EDW&amp;quot; and their equipment numbered sequentially with that prefix - e.g. EDW-0082. (required).</param>
        /// <param name="OrganizationName">The name of the organization of the Owner. May simply be the First Name, Last Name of the Owner if the Owner is a sole proprietorship, or the name of a company. (required).</param>
        /// <param name="MeetsResidency">True to indicate that the owner of the business has confirmed to the HETS Clerk that they meet the residency requirements of the HETS programme. See the published information about the MOTI HETS programme for information on the owner residency requirements. (required).</param>
        /// <param name="LocalArea">LocalArea (required).</param>
        /// <param name="Status">The status of the owner record in the system. Current set of values are &amp;quot;Pending&amp;quot;, &amp;quot;Approved&amp;quot; and &amp;quot;Archived&amp;quot;. Pending is used when an owner self-registers and a HETS Clerk has not reviewed and Approved the record. Archived is when the owner is no longer part of the HETS programme. &amp;quot;Approved&amp;quot; is used in all other cases. (required).</param>
        /// <param name="DoingBusinessAs">An official (per BC Registries) alternate name for an Owner organization under which it does business. The application does not verify the name against any registry&amp;#x2F;lookup..</param>
        /// <param name="RegisteredCompanyNumber">The BC Registries number under which the business is registered.  The application does not verify the number against any registry&amp;#x2F;lookup..</param>
        /// <param name="PrimaryContact">Link to the designated Primary Contact..</param>
        /// <param name="IsMaintenanceContractor">True if the owner is contracted by MOTI to handle Maintenance activities in the area - e.g. provided services in address unscheduled issues on the roads in the area..</param>
        /// <param name="WorkSafeBCPolicyNumber">The Owner&amp;#39;s WorkSafeBC (aka WCB) Insurance Policy Number..</param>
        /// <param name="WorkSafeBCExpiryDate">The expiration of the owner&amp;#39;s current WorkSafeBC (aka WCB) permit..</param>
        /// <param name="CGLEndDate">The end date of the owner&amp;#39;s Commercial General Liability insurance coverage. Coverage is only needed prior to an owner&amp;#39;s piece of equipment starting a rental period (not when in the HETS program but not hired). The details of the coverage can be entered into a Note, or more often - attached as a scanned&amp;#x2F;faxed document..</param>
        /// <param name="ArchiveCode">TO BE REVIEWED WITH THE BUSINESS - IS THIS NEEDED -A coded reason for why an owner record has been moved to Archived..</param>
        /// <param name="ArchiveReason">A text note about why the owner record has been changed to Archived..</param>
        /// <param name="ArchiveDate">The date the Owner record was changed to Archived and removed from active use in the system..</param>
        /// <param name="Contacts">Contacts.</param>
        /// <param name="Notes">Notes.</param>
        /// <param name="Attachments">Attachments.</param>
        /// <param name="History">History.</param>
        /// <param name="EquipmentList">EquipmentList.</param>
        public Owner(int Id, string OwnerEquipmentCodePrefix, string OrganizationName, bool MeetsResidency, LocalArea LocalArea, string Status, string DoingBusinessAs = null, string RegisteredCompanyNumber = null, Contact PrimaryContact = null, bool?IsMaintenanceContractor = null, string WorkSafeBCPolicyNumber = null, DateTime?WorkSafeBCExpiryDate = null, DateTime?CGLEndDate = null, string ArchiveCode = null, string ArchiveReason = null, DateTime?ArchiveDate = null, List <Contact> Contacts = null, List <Note> Notes = null, List <Attachment> Attachments = null, List <History> History = null, List <Equipment> EquipmentList = null)
        {
            this.Id = Id;
            this.OwnerEquipmentCodePrefix = OwnerEquipmentCodePrefix;
            this.OrganizationName         = OrganizationName;
            this.MeetsResidency           = MeetsResidency;
            this.LocalArea = LocalArea;
            this.Status    = Status;



            this.DoingBusinessAs         = DoingBusinessAs;
            this.RegisteredCompanyNumber = RegisteredCompanyNumber;
            this.PrimaryContact          = PrimaryContact;
            this.IsMaintenanceContractor = IsMaintenanceContractor;
            this.WorkSafeBCPolicyNumber  = WorkSafeBCPolicyNumber;
            this.WorkSafeBCExpiryDate    = WorkSafeBCExpiryDate;
            this.CGLEndDate    = CGLEndDate;
            this.ArchiveCode   = ArchiveCode;
            this.ArchiveReason = ArchiveReason;
            this.ArchiveDate   = ArchiveDate;
            this.Contacts      = Contacts;
            this.Notes         = Notes;
            this.Attachments   = Attachments;
            this.History       = History;
            this.EquipmentList = EquipmentList;
        }