Esempio n. 1
0
        /// <summary>
        ///     Indicates whether the current <see cref="BookingTermsRecord" /> instance is equal to another <see cref="BookingTermsRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="BookingTermsRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(BookingTermsRecord that)
        {
            Boolean result = true;

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.FtCanChTh == that.FtCanChTh);
            result = result && (this.SdCanChTh == that.SdCanChTh);
            result = result && (this.CanChgPrcn == that.CanChgPrcn);
            result = result && (this.FtTrnChTh == that.FtTrnChTh);
            result = result && (this.TranChPrcn == that.TranChPrcn);
            result = result && (this.XtMvChPrcn == that.XtMvChPrcn);
            result = result && (this.Description.TrimOrNullify() == that.Description.TrimOrNullify());
            result = result && (this.CanChgPrcn2 == that.CanChgPrcn2);
            result = result && (this.CanChgPrcn3 == that.CanChgPrcn3);
            result = result && (this.B3dCanChTh == that.B3dCanChTh);
            result = result && (this.SdTrnChTh == that.SdTrnChTh);
            result = result && (this.BdTrnChTh == that.BdTrnChTh);
            result = result && (this.TranChPrcn2 == that.TranChPrcn2);
            result = result && (this.TranChPrcn3 == that.TranChPrcn3);
            result = result && (this.CanChgFx1 == that.CanChgFx1);
            result = result && (this.CanChgFx2 == that.CanChgFx2);
            result = result && (this.CanChgFx3 == that.CanChgFx3);
            result = result && (this.TranChFx1 == that.TranChFx1);
            result = result && (this.TranChFx2 == that.TranChFx2);
            result = result && (this.TranChFx3 == that.TranChFx3);
            result = result && (this.Currency.TrimOrNullify() == that.Currency.TrimOrNullify());
            result = result && (this.NoteHtml.TrimOrNullify() == that.NoteHtml.TrimOrNullify());
            result = result && (this.CanChgBc == that.CanChgBc);
            result = result && (this.CanChgBc2 == that.CanChgBc2);
            result = result && (this.CanChgBc3 == that.CanChgBc3);
            result = result && (this.TranChgBc == that.TranChgBc);
            result = result && (this.TranChgBc2 == that.TranChgBc2);
            result = result && (this.TranChgBc3 == that.TranChgBc3);
            result = result && (this.SubChgBc == that.SubChgBc);
            result = result && (this.SubChgBc2 == that.SubChgBc2);
            result = result && (this.SubChgBc3 == that.SubChgBc3);
            result = result && (this.SubChPrcn == that.SubChPrcn);
            result = result && (this.SubChPrcn2 == that.SubChPrcn2);
            result = result && (this.SubChPrcn3 == that.SubChPrcn3);
            result = result && (this.FtSubChTh == that.FtSubChTh);
            result = result && (this.SdSubChTh == that.SdSubChTh);
            result = result && (this.B3dSubChTh == that.B3dSubChTh);
            result = result && (this.TrnNoChg == that.TrnNoChg);
            result = result && (this.SubNoChg == that.SubNoChg);
            result = result && (this.TrnNoChgPrcn == that.TrnNoChgPrcn);
            result = result && (this.TrnNoChgBc == that.TrnNoChgBc);
            result = result && (this.SubNoChgPrcn == that.SubNoChgPrcn);
            result = result && (this.SubNoChgBc == that.SubNoChgBc);
            result = result && (this.QualCanChgPrcn == that.QualCanChgPrcn);
            result = result && (this.TrnAdminFee == that.TrnAdminFee);
            result = result && (this.SubAdminFee == that.SubAdminFee);
            result = result && (this.TrnAdminTh == that.TrnAdminTh);
            result = result && (this.SubAdminTh == that.SubAdminTh);
            result = result && (this.PenaltyCalc == that.PenaltyCalc);
            result = result && (this.B04CanChTh == that.B04CanChTh);
            result = result && (this.B05CanChTh == that.B05CanChTh);
            result = result && (this.CanChgPrcn4 == that.CanChgPrcn4);
            result = result && (this.CanChgPrcn5 == that.CanChgPrcn5);
            result = result && (this.CanChgBc4 == that.CanChgBc4);
            result = result && (this.CanChgBc5 == that.CanChgBc5);
            result = result && (this.B04TrnChTh == that.B04TrnChTh);
            result = result && (this.B05TrnChTh == that.B05TrnChTh);
            result = result && (this.TranChPrcn4 == that.TranChPrcn4);
            result = result && (this.TranChPrcn5 == that.TranChPrcn5);
            result = result && (this.TranChgBc4 == that.TranChgBc4);
            result = result && (this.TranChgBc5 == that.TranChgBc5);
            result = result && (this.B04SubChTh == that.B04SubChTh);
            result = result && (this.B05SubChTh == that.B05SubChTh);
            result = result && (this.SubChPrcn4 == that.SubChPrcn4);
            result = result && (this.SubChPrcn5 == that.SubChPrcn5);
            result = result && (this.SubChgBc4 == that.SubChgBc4);
            result = result && (this.SubChgBc5 == that.SubChgBc5);
            result = result && (this.CostCode.TrimOrNullify() == that.CostCode.TrimOrNullify());
            result = result && (this.RevCode.TrimOrNullify() == that.RevCode.TrimOrNullify());
            return(result);
        }
Esempio n. 2
0
        /// <summary>
        ///     Creates a new <see cref="BookingTermsRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="BookingTermsRecord" /> object instance.
        /// </returns>
        public BookingTermsRecord Clone()
        {
            BookingTermsRecord record = new BookingTermsRecord();

            record.Id             = this.Id;
            record.Lock           = this.Lock;
            record.AddDate        = this.AddDate;
            record.AddBy          = this.AddBy;
            record.ModDate        = this.ModDate;
            record.ModBy          = this.ModBy;
            record.RcvDate        = this.RcvDate;
            record.RcvFrom        = this.RcvFrom;
            record.FtCanChTh      = this.FtCanChTh;
            record.SdCanChTh      = this.SdCanChTh;
            record.CanChgPrcn     = this.CanChgPrcn;
            record.FtTrnChTh      = this.FtTrnChTh;
            record.TranChPrcn     = this.TranChPrcn;
            record.XtMvChPrcn     = this.XtMvChPrcn;
            record.Description    = this.Description;
            record.CanChgPrcn2    = this.CanChgPrcn2;
            record.CanChgPrcn3    = this.CanChgPrcn3;
            record.B3dCanChTh     = this.B3dCanChTh;
            record.SdTrnChTh      = this.SdTrnChTh;
            record.BdTrnChTh      = this.BdTrnChTh;
            record.TranChPrcn2    = this.TranChPrcn2;
            record.TranChPrcn3    = this.TranChPrcn3;
            record.CanChgFx1      = this.CanChgFx1;
            record.CanChgFx2      = this.CanChgFx2;
            record.CanChgFx3      = this.CanChgFx3;
            record.TranChFx1      = this.TranChFx1;
            record.TranChFx2      = this.TranChFx2;
            record.TranChFx3      = this.TranChFx3;
            record.Currency       = this.Currency;
            record.NoteHtml       = this.NoteHtml;
            record.CanChgBc       = this.CanChgBc;
            record.CanChgBc2      = this.CanChgBc2;
            record.CanChgBc3      = this.CanChgBc3;
            record.TranChgBc      = this.TranChgBc;
            record.TranChgBc2     = this.TranChgBc2;
            record.TranChgBc3     = this.TranChgBc3;
            record.SubChgBc       = this.SubChgBc;
            record.SubChgBc2      = this.SubChgBc2;
            record.SubChgBc3      = this.SubChgBc3;
            record.SubChPrcn      = this.SubChPrcn;
            record.SubChPrcn2     = this.SubChPrcn2;
            record.SubChPrcn3     = this.SubChPrcn3;
            record.FtSubChTh      = this.FtSubChTh;
            record.SdSubChTh      = this.SdSubChTh;
            record.B3dSubChTh     = this.B3dSubChTh;
            record.TrnNoChg       = this.TrnNoChg;
            record.SubNoChg       = this.SubNoChg;
            record.TrnNoChgPrcn   = this.TrnNoChgPrcn;
            record.TrnNoChgBc     = this.TrnNoChgBc;
            record.SubNoChgPrcn   = this.SubNoChgPrcn;
            record.SubNoChgBc     = this.SubNoChgBc;
            record.QualCanChgPrcn = this.QualCanChgPrcn;
            record.TrnAdminFee    = this.TrnAdminFee;
            record.SubAdminFee    = this.SubAdminFee;
            record.TrnAdminTh     = this.TrnAdminTh;
            record.SubAdminTh     = this.SubAdminTh;
            record.PenaltyCalc    = this.PenaltyCalc;
            record.B04CanChTh     = this.B04CanChTh;
            record.B05CanChTh     = this.B05CanChTh;
            record.CanChgPrcn4    = this.CanChgPrcn4;
            record.CanChgPrcn5    = this.CanChgPrcn5;
            record.CanChgBc4      = this.CanChgBc4;
            record.CanChgBc5      = this.CanChgBc5;
            record.B04TrnChTh     = this.B04TrnChTh;
            record.B05TrnChTh     = this.B05TrnChTh;
            record.TranChPrcn4    = this.TranChPrcn4;
            record.TranChPrcn5    = this.TranChPrcn5;
            record.TranChgBc4     = this.TranChgBc4;
            record.TranChgBc5     = this.TranChgBc5;
            record.B04SubChTh     = this.B04SubChTh;
            record.B05SubChTh     = this.B05SubChTh;
            record.SubChPrcn4     = this.SubChPrcn4;
            record.SubChPrcn5     = this.SubChPrcn5;
            record.SubChgBc4      = this.SubChgBc4;
            record.SubChgBc5      = this.SubChgBc5;
            record.CostCode       = this.CostCode;
            record.RevCode        = this.RevCode;
            return(record);
        }