Пример #1
0
        /// <summary>
        /// Returns true if EquipmentAttachment instances are equal
        /// </summary>
        /// <param name="other">Instance of EquipmentAttachment to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(EquipmentAttachment other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Equipment == other.Equipment ||
                     Equipment != null &&
                     Equipment.Equals(other.Equipment)
                 ) &&
                 (
                     TypeName == other.TypeName ||
                     TypeName != null &&
                     TypeName.Equals(other.TypeName)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ));
        }
Пример #2
0
        /// <summary>
        /// Returns true if RentalAgreement instances are equal
        /// </summary>
        /// <param name="other">Instance of RentalAgreement to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(RentalAgreement other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Number == other.Number ||
                     Number != null &&
                     Number.Equals(other.Number)
                 ) &&
                 (
                     Status == other.Status ||
                     Status != null &&
                     Status.Equals(other.Status)
                 ) &&
                 (
                     Equipment == other.Equipment ||
                     Equipment != null &&
                     Equipment.Equals(other.Equipment)
                 ) &&
                 (
                     Project == other.Project ||
                     Project != null &&
                     Project.Equals(other.Project)
                 ) &&
                 (
                     RentalAgreementRates == other.RentalAgreementRates ||
                     RentalAgreementRates != null &&
                     RentalAgreementRates.SequenceEqual(other.RentalAgreementRates)
                 ) &&
                 (
                     RentalAgreementConditions == other.RentalAgreementConditions ||
                     RentalAgreementConditions != null &&
                     RentalAgreementConditions.SequenceEqual(other.RentalAgreementConditions)
                 ) &&
                 (
                     TimeRecords == other.TimeRecords ||
                     TimeRecords != null &&
                     TimeRecords.SequenceEqual(other.TimeRecords)
                 ) &&
                 (
                     Note == other.Note ||
                     Note != null &&
                     Note.Equals(other.Note)
                 ) &&
                 (
                     EstimateStartWork == other.EstimateStartWork ||
                     EstimateStartWork != null &&
                     EstimateStartWork.Equals(other.EstimateStartWork)
                 ) &&
                 (
                     DatedOn == other.DatedOn ||
                     DatedOn != null &&
                     DatedOn.Equals(other.DatedOn)
                 ) &&
                 (
                     EstimateHours == other.EstimateHours ||
                     EstimateHours != null &&
                     EstimateHours.Equals(other.EstimateHours)
                 ) &&
                 (
                     EquipmentRate == other.EquipmentRate ||
                     EquipmentRate != null &&
                     EquipmentRate.Equals(other.EquipmentRate)
                 ) &&
                 (
                     RatePeriod == other.RatePeriod ||
                     RatePeriod != null &&
                     RatePeriod.Equals(other.RatePeriod)
                 ) &&
                 (
                     RateComment == other.RateComment ||
                     RateComment != null &&
                     RateComment.Equals(other.RateComment)
                 ));
        }
Пример #3
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)
                 ));
        }
        /// <summary>
        /// Returns true if RentalRequestRotationList instances are equal
        /// </summary>
        /// <param name="other">Instance of RentalRequestRotationList to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(RentalRequestRotationList other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     RotationListSortOrder == other.RotationListSortOrder ||
                     RotationListSortOrder.Equals(other.RotationListSortOrder)
                 ) &&
                 (
                     Equipment == other.Equipment ||
                     Equipment != null &&
                     Equipment.Equals(other.Equipment)
                 ) &&
                 (
                     RentalAgreement == other.RentalAgreement ||
                     RentalAgreement != null &&
                     RentalAgreement.Equals(other.RentalAgreement)
                 ) &&
                 (
                     IsForceHire == other.IsForceHire ||
                     IsForceHire != null &&
                     IsForceHire.Equals(other.IsForceHire)
                 ) &&
                 (
                     WasAsked == other.WasAsked ||
                     WasAsked != null &&
                     WasAsked.Equals(other.WasAsked)
                 ) &&
                 (
                     AskedDateTime == other.AskedDateTime ||
                     AskedDateTime != null &&
                     AskedDateTime.Equals(other.AskedDateTime)
                 ) &&
                 (
                     OfferResponse == other.OfferResponse ||
                     OfferResponse != null &&
                     OfferResponse.Equals(other.OfferResponse)
                 ) &&
                 (
                     OfferRefusalReason == other.OfferRefusalReason ||
                     OfferRefusalReason != null &&
                     OfferRefusalReason.Equals(other.OfferRefusalReason)
                 ) &&
                 (
                     OfferResponseDatetime == other.OfferResponseDatetime ||
                     OfferResponseDatetime != null &&
                     OfferResponseDatetime.Equals(other.OfferResponseDatetime)
                 ) &&
                 (
                     OfferResponseNote == other.OfferResponseNote ||
                     OfferResponseNote != null &&
                     OfferResponseNote.Equals(other.OfferResponseNote)
                 ) &&
                 (
                     Note == other.Note ||
                     Note != null &&
                     Note.Equals(other.Note)
                 ));
        }