/// <summary>
        ///     Creates a new <see cref="ComplaintRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="ComplaintRecord" /> object instance.
        /// </returns>
        public ComplaintRecord Clone()
        {
            ComplaintRecord record = new ComplaintRecord();

            record.Id           = this.Id;
            record.AddBy        = this.AddBy;
            record.AddDate      = this.AddDate;
            record.ModBy        = this.ModBy;
            record.ModDate      = this.ModDate;
            record.RcvFrom      = this.RcvFrom;
            record.RcvDate      = this.RcvDate;
            record.Title        = this.Title;
            record.FromProleId  = this.FromProleId;
            record.ReProleId    = this.ReProleId;
            record.MgrProleId   = this.MgrProleId;
            record.MedtrProleId = this.MedtrProleId;
            record.Status1      = this.Status1;
            record.Status2      = this.Status2;
            record.Status3      = this.Status3;
            record.Type1        = this.Type1;
            record.Type2        = this.Type2;
            record.Type3        = this.Type3;
            record.Scheme       = this.Scheme;
            record.DateOfCompl  = this.DateOfCompl;
            record.DateRcvd     = this.DateRcvd;
            record.DateEnd      = this.DateEnd;
            record.DateNextAct  = this.DateNextAct;
            record.Notes        = this.Notes;
            record.Value01      = this.Value01;
            record.Value02      = this.Value02;
            record.Value03      = this.Value03;
            record.Value04      = this.Value04;
            record.Value05      = this.Value05;
            record.Value06      = this.Value06;
            record.Value07      = this.Value07;
            record.Value08      = this.Value08;
            record.Value09      = this.Value09;
            record.Value10      = this.Value10;
            record.PmId         = this.PmId;
            record.OurPerson    = this.OurPerson;
            record.DetailsId    = this.DetailsId;
            record.ResolId      = this.ResolId;
            return(record);
        }
        /// <summary>
        ///     Indicates whether the current <see cref="ComplaintRecord" /> instance is equal to another <see cref="ComplaintRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="ComplaintRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(ComplaintRecord that)
        {
            Boolean result = true;

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Title.TrimOrNullify() == that.Title.TrimOrNullify());
            result = result && (this.FromProleId.TrimOrNullify() == that.FromProleId.TrimOrNullify());
            result = result && (this.ReProleId.TrimOrNullify() == that.ReProleId.TrimOrNullify());
            result = result && (this.MgrProleId.TrimOrNullify() == that.MgrProleId.TrimOrNullify());
            result = result && (this.MedtrProleId.TrimOrNullify() == that.MedtrProleId.TrimOrNullify());
            result = result && (this.Status1.TrimOrNullify() == that.Status1.TrimOrNullify());
            result = result && (this.Status2.TrimOrNullify() == that.Status2.TrimOrNullify());
            result = result && (this.Status3.TrimOrNullify() == that.Status3.TrimOrNullify());
            result = result && (this.Type1.TrimOrNullify() == that.Type1.TrimOrNullify());
            result = result && (this.Type2.TrimOrNullify() == that.Type2.TrimOrNullify());
            result = result && (this.Type3.TrimOrNullify() == that.Type3.TrimOrNullify());
            result = result && (this.Scheme.TrimOrNullify() == that.Scheme.TrimOrNullify());
            result = result && (this.DateOfCompl == that.DateOfCompl);
            result = result && (this.DateRcvd == that.DateRcvd);
            result = result && (this.DateEnd == that.DateEnd);
            result = result && (this.DateNextAct == that.DateNextAct);
            result = result && (this.Notes.TrimOrNullify() == that.Notes.TrimOrNullify());
            result = result && (this.Value01.TrimOrNullify() == that.Value01.TrimOrNullify());
            result = result && (this.Value02.TrimOrNullify() == that.Value02.TrimOrNullify());
            result = result && (this.Value03.TrimOrNullify() == that.Value03.TrimOrNullify());
            result = result && (this.Value04.TrimOrNullify() == that.Value04.TrimOrNullify());
            result = result && (this.Value05.TrimOrNullify() == that.Value05.TrimOrNullify());
            result = result && (this.Value06.TrimOrNullify() == that.Value06.TrimOrNullify());
            result = result && (this.Value07.TrimOrNullify() == that.Value07.TrimOrNullify());
            result = result && (this.Value08.TrimOrNullify() == that.Value08.TrimOrNullify());
            result = result && (this.Value09.TrimOrNullify() == that.Value09.TrimOrNullify());
            result = result && (this.Value10.TrimOrNullify() == that.Value10.TrimOrNullify());
            result = result && (this.PmId.TrimOrNullify() == that.PmId.TrimOrNullify());
            result = result && (this.OurPerson == that.OurPerson);
            result = result && (this.DetailsId.TrimOrNullify() == that.DetailsId.TrimOrNullify());
            result = result && (this.ResolId.TrimOrNullify() == that.ResolId.TrimOrNullify());
            return(result);
        }