/// <summary> /// Creates a new <see cref="PrintReqRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="PrintReqRecord" /> object instance. /// </returns> public PrintReqRecord Clone() { PrintReqRecord record = new PrintReqRecord(); record.Id = this.Id; 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.Id1 = this.Id1; record.Id2 = this.Id2; record.Id3 = this.Id3; record.Type = this.Type; record.Status = this.Status; record.ReqDate = this.ReqDate; record.DoneDate = this.DoneDate; record.ReqBy = this.ReqBy; record.PqId = this.PqId; record.ActPqStatus = this.ActPqStatus; record.PqSendType = this.PqSendType; record.PackId = this.PackId; record.WfId = this.WfId; record.BatId = this.BatId; record.LtId = this.LtId; record.SendToBooker = this.SendToBooker; record.SendToDelegate = this.SendToDelegate; record.SendFromProleId = this.SendFromProleId; record.SendToProleId = this.SendToProleId; record.EmailSubject = this.EmailSubject; record.EmailCcAddress = this.EmailCcAddress; record.Reissue = this.Reissue; record.Id4 = this.Id4; record.WfaId = this.WfaId; record.UseHomeAddress = this.UseHomeAddress; record.EmailSendFromPerson = this.EmailSendFromPerson; record.SmsId = this.SmsId; record.PrId = this.PrId; record.Id5 = this.Id5; record.WfxrefRecId = this.WfxrefRecId; record.ArgId = this.ArgId; record.BccEmail = this.BccEmail; record.MdnEmail = this.MdnEmail; record.DsnEmail = this.DsnEmail; record.DsnOptions = this.DsnOptions; record.IcmId = this.IcmId; record.Name = this.Name; return(record); }
/// <summary> /// Indicates whether the current <see cref="PrintReqRecord" /> instance is equal to another <see cref="PrintReqRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="PrintReqRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(PrintReqRecord that) { Boolean result = true; result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify()); result = result && (this.Id1.TrimOrNullify() == that.Id1.TrimOrNullify()); result = result && (this.Id2.TrimOrNullify() == that.Id2.TrimOrNullify()); result = result && (this.Id3.TrimOrNullify() == that.Id3.TrimOrNullify()); result = result && (this.Type.TrimOrNullify() == that.Type.TrimOrNullify()); result = result && (this.Status == that.Status); result = result && (this.ReqDate == that.ReqDate); result = result && (this.DoneDate == that.DoneDate); result = result && (this.ReqBy.TrimOrNullify() == that.ReqBy.TrimOrNullify()); result = result && (this.PqId.TrimOrNullify() == that.PqId.TrimOrNullify()); result = result && (this.ActPqStatus.TrimOrNullify() == that.ActPqStatus.TrimOrNullify()); result = result && (this.PqSendType.TrimOrNullify() == that.PqSendType.TrimOrNullify()); result = result && (this.PackId.TrimOrNullify() == that.PackId.TrimOrNullify()); result = result && (this.WfId.TrimOrNullify() == that.WfId.TrimOrNullify()); result = result && (this.BatId.TrimOrNullify() == that.BatId.TrimOrNullify()); result = result && (this.LtId.TrimOrNullify() == that.LtId.TrimOrNullify()); result = result && (this.SendToBooker == that.SendToBooker); result = result && (this.SendToDelegate == that.SendToDelegate); result = result && (this.SendFromProleId.TrimOrNullify() == that.SendFromProleId.TrimOrNullify()); result = result && (this.SendToProleId.TrimOrNullify() == that.SendToProleId.TrimOrNullify()); result = result && (this.EmailSubject.TrimOrNullify() == that.EmailSubject.TrimOrNullify()); result = result && (this.EmailCcAddress.TrimOrNullify() == that.EmailCcAddress.TrimOrNullify()); result = result && (this.Reissue == that.Reissue); result = result && (this.Id4.TrimOrNullify() == that.Id4.TrimOrNullify()); result = result && (this.WfaId.TrimOrNullify() == that.WfaId.TrimOrNullify()); result = result && (this.UseHomeAddress == that.UseHomeAddress); result = result && (this.EmailSendFromPerson == that.EmailSendFromPerson); result = result && (this.SmsId == that.SmsId); result = result && (this.PrId.TrimOrNullify() == that.PrId.TrimOrNullify()); result = result && (this.Id5.TrimOrNullify() == that.Id5.TrimOrNullify()); result = result && (this.WfxrefRecId.TrimOrNullify() == that.WfxrefRecId.TrimOrNullify()); result = result && (this.ArgId.TrimOrNullify() == that.ArgId.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.IcmId == that.IcmId); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); return(result); }