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

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.Code.TrimOrNullify() == that.Code.TrimOrNullify());
            result = result && (this.Desc.TrimOrNullify() == that.Desc.TrimOrNullify());
            result = result && (this.SelcoSpId.TrimOrNullify() == that.SelcoSpId.TrimOrNullify());
            return(result);
        }
        /// <summary>
        ///     Creates a new <see cref="CostCodeRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="CostCodeRecord" /> object instance.
        /// </returns>
        public CostCodeRecord Clone()
        {
            CostCodeRecord record = new CostCodeRecord();

            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.Code      = this.Code;
            record.Desc      = this.Desc;
            record.SelcoSpId = this.SelcoSpId;
            return(record);
        }