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

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.OrgId.TrimOrNullify() == that.OrgId.TrimOrNullify());
            result = result && (this.OrgName.TrimOrNullify() == that.OrgName.TrimOrNullify());
            result = result && (this.ProleId.TrimOrNullify() == that.ProleId.TrimOrNullify());
            result = result && (this.PnName.TrimOrNullify() == that.PnName.TrimOrNullify());
            result = result && (this.SerialNo.TrimOrNullify() == that.SerialNo.TrimOrNullify());
            result = result && (this.InId.TrimOrNullify() == that.InId.TrimOrNullify());
            result = result && (this.ProdCode.TrimOrNullify() == that.ProdCode.TrimOrNullify());
            result = result && (this.ProdId.TrimOrNullify() == that.ProdId.TrimOrNullify());
            result = result && (this.WarrDate == that.WarrDate);
            result = result && (this.ContrRef.TrimOrNullify() == that.ContrRef.TrimOrNullify());
            result = result && (this.ContType.TrimOrNullify() == that.ContType.TrimOrNullify());
            result = result && (this.ContDate == that.ContDate);
            result = result && (this.GivenTo.TrimOrNullify() == that.GivenTo.TrimOrNullify());
            result = result && (this.GivenToId.TrimOrNullify() == that.GivenToId.TrimOrNullify());
            result = result && (this.FixedDate == that.FixedDate);
            result = result && (this.FixedTime == that.FixedTime);
            result = result && (this.Status.TrimOrNullify() == that.Status.TrimOrNullify());
            result = result && (this.DetailsId.TrimOrNullify() == that.DetailsId.TrimOrNullify());
            result = result && (this.FixId.TrimOrNullify() == that.FixId.TrimOrNullify());
            result = result && (this.Category.TrimOrNullify() == that.Category.TrimOrNullify());
            result = result && (this.FixCat.TrimOrNullify() == that.FixCat.TrimOrNullify());
            result = result && (this.CallDate == that.CallDate);
            result = result && (this.CallTime == that.CallTime);
            result = result && (this.CallerPhone.TrimOrNullify() == that.CallerPhone.TrimOrNullify());
            result = result && (this.FaultType.TrimOrNullify() == that.FaultType.TrimOrNullify());
            result = result && (this.ProdName.TrimOrNullify() == that.ProdName.TrimOrNullify());
            result = result && (this.Severity.TrimOrNullify() == that.Severity.TrimOrNullify());
            result = result && (this.ProjRef.TrimOrNullify() == that.ProjRef.TrimOrNullify());
            result = result && (this.ProjId.TrimOrNullify() == that.ProjId.TrimOrNullify());
            result = result && (this.ActId.TrimOrNullify() == that.ActId.TrimOrNullify());
            result = result && (this.HistoryTxt.TrimOrNullify() == that.HistoryTxt.TrimOrNullify());
            result = result && (this.Title.TrimOrNullify() == that.Title.TrimOrNullify());
            result = result && (this.CustRef.TrimOrNullify() == that.CustRef.TrimOrNullify());
            result = result && (this.CustAcpt.TrimOrNullify() == that.CustAcpt.TrimOrNullify());
            result = result && (this.RptDate == that.RptDate);
            result = result && (this.TrgRspDate == that.TrgRspDate);
            result = result && (this.ActRspDate == that.ActRspDate);
            result = result && (this.TrgTpfixD == that.TrgTpfixD);
            result = result && (this.ActTpfixD == that.ActTpfixD);
            result = result && (this.TrgActfixD == that.TrgActfixD);
            result = result && (this.SucId.TrimOrNullify() == that.SucId.TrimOrNullify());
            result = result && (this.AccDate == that.AccDate);
            result = result && (this.ResolvedVer.TrimOrNullify() == that.ResolvedVer.TrimOrNullify());
            result = result && (this.EstTime == that.EstTime);
            result = result && (this.Type == that.Type);
            result = result && (this.WipId.TrimOrNullify() == that.WipId.TrimOrNullify());
            result = result && (this.ResDate == that.ResDate);
            result = result && (this.SelcoSpId.TrimOrNullify() == that.SelcoSpId.TrimOrNullify());
            result = result && (this.Group.TrimOrNullify() == that.Group.TrimOrNullify());
            result = result && (this.Assigned == that.Assigned);
            result = result && (this.Read == that.Read);
            result = result && (this.ResolutionId.TrimOrNullify() == that.ResolutionId.TrimOrNullify());
            result = result && (this.Version.TrimOrNullify() == that.Version.TrimOrNullify());
            result = result && (this.PmId.TrimOrNullify() == that.PmId.TrimOrNullify());
            result = result && (this.BuildVersion.TrimOrNullify() == that.BuildVersion.TrimOrNullify());
            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Creates a new <see cref="HelpdeskRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="HelpdeskRecord" /> object instance.
        /// </returns>
        public HelpdeskRecord Clone()
        {
            HelpdeskRecord record = new HelpdeskRecord();

            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.OrgId        = this.OrgId;
            record.OrgName      = this.OrgName;
            record.ProleId      = this.ProleId;
            record.PnName       = this.PnName;
            record.SerialNo     = this.SerialNo;
            record.InId         = this.InId;
            record.ProdCode     = this.ProdCode;
            record.ProdId       = this.ProdId;
            record.WarrDate     = this.WarrDate;
            record.ContrRef     = this.ContrRef;
            record.ContType     = this.ContType;
            record.ContDate     = this.ContDate;
            record.GivenTo      = this.GivenTo;
            record.GivenToId    = this.GivenToId;
            record.FixedDate    = this.FixedDate;
            record.FixedTime    = this.FixedTime;
            record.Status       = this.Status;
            record.DetailsId    = this.DetailsId;
            record.FixId        = this.FixId;
            record.Category     = this.Category;
            record.FixCat       = this.FixCat;
            record.CallDate     = this.CallDate;
            record.CallTime     = this.CallTime;
            record.CallerPhone  = this.CallerPhone;
            record.FaultType    = this.FaultType;
            record.ProdName     = this.ProdName;
            record.Severity     = this.Severity;
            record.ProjRef      = this.ProjRef;
            record.ProjId       = this.ProjId;
            record.ActId        = this.ActId;
            record.HistoryTxt   = this.HistoryTxt;
            record.Title        = this.Title;
            record.CustRef      = this.CustRef;
            record.CustAcpt     = this.CustAcpt;
            record.RptDate      = this.RptDate;
            record.TrgRspDate   = this.TrgRspDate;
            record.ActRspDate   = this.ActRspDate;
            record.TrgTpfixD    = this.TrgTpfixD;
            record.ActTpfixD    = this.ActTpfixD;
            record.TrgActfixD   = this.TrgActfixD;
            record.SucId        = this.SucId;
            record.AccDate      = this.AccDate;
            record.ResolvedVer  = this.ResolvedVer;
            record.EstTime      = this.EstTime;
            record.Type         = this.Type;
            record.WipId        = this.WipId;
            record.ResDate      = this.ResDate;
            record.SelcoSpId    = this.SelcoSpId;
            record.Group        = this.Group;
            record.Assigned     = this.Assigned;
            record.Read         = this.Read;
            record.ResolutionId = this.ResolutionId;
            record.Version      = this.Version;
            record.PmId         = this.PmId;
            record.BuildVersion = this.BuildVersion;
            return(record);
        }