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

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify());
            result = result && (this.PackType == that.PackType);
            result = result && (this.ToBooker == that.ToBooker);
            result = result && (this.ToDel == that.ToDel);
            result = result && (this.DocsMethod.TrimOrNullify() == that.DocsMethod.TrimOrNullify());
            result = result && (this.EmailSubject.TrimOrNullify() == that.EmailSubject.TrimOrNullify());
            result = result && (this.Invoice == that.Invoice);
            result = result && (this.ActPqKeep == that.ActPqKeep);
            result = result && (this.EmailBody.TrimOrNullify() == that.EmailBody.TrimOrNullify());
            result = result && (this.EmailOnly == that.EmailOnly);
            result = result && (this.PrintOnly == that.PrintOnly);
            result = result && (this.Status == that.Status);
            result = result && (this.SendProleId.TrimOrNullify() == that.SendProleId.TrimOrNullify());
            result = result && (this.Category.TrimOrNullify() == that.Category.TrimOrNullify());
            result = result && (this.PqId.TrimOrNullify() == that.PqId.TrimOrNullify());
            result = result && (this.BccEmail.TrimOrNullify() == that.BccEmail.TrimOrNullify());
            result = result && (this.MdnEmail.TrimOrNullify() == that.MdnEmail.TrimOrNullify());
            result = result && (this.DsnEmail.TrimOrNullify() == that.DsnEmail.TrimOrNullify());
            result = result && (this.DsnOptions.TrimOrNullify() == that.DsnOptions.TrimOrNullify());
            result = result && (this.SelcoSpId.TrimOrNullify() == that.SelcoSpId.TrimOrNullify());
            return(result);
        }
예제 #2
0
        /// <summary>
        ///     Creates a new <see cref="PackRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="PackRecord" /> object instance.
        /// </returns>
        public PackRecord Clone()
        {
            PackRecord record = new PackRecord();

            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.Name         = this.Name;
            record.PackType     = this.PackType;
            record.ToBooker     = this.ToBooker;
            record.ToDel        = this.ToDel;
            record.DocsMethod   = this.DocsMethod;
            record.EmailSubject = this.EmailSubject;
            record.Invoice      = this.Invoice;
            record.ActPqKeep    = this.ActPqKeep;
            record.EmailBody    = this.EmailBody;
            record.EmailOnly    = this.EmailOnly;
            record.PrintOnly    = this.PrintOnly;
            record.Status       = this.Status;
            record.SendProleId  = this.SendProleId;
            record.Category     = this.Category;
            record.PqId         = this.PqId;
            record.BccEmail     = this.BccEmail;
            record.MdnEmail     = this.MdnEmail;
            record.DsnEmail     = this.DsnEmail;
            record.DsnOptions   = this.DsnOptions;
            record.SelcoSpId    = this.SelcoSpId;
            return(record);
        }