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

            result = result && (this.Id == that.Id);
            result = result && (this.QgId == that.QgId);
            result = result && (this.QoffId == that.QoffId);
            result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify());
            result = result && (this.Desc.TrimOrNullify() == that.Desc.TrimOrNullify());
            result = result && (this.Status.TrimOrNullify() == that.Status.TrimOrNullify());
            result = result && (this.PmId.TrimOrNullify() == that.PmId.TrimOrNullify());
            result = result && (this.CourseId.TrimOrNullify() == that.CourseId.TrimOrNullify());
            result = result && (this.Channel.TrimOrNullify() == that.Channel.TrimOrNullify());
            result = result && (this.MgrProleId.TrimOrNullify() == that.MgrProleId.TrimOrNullify());
            result = result && (this.AppByProleId.TrimOrNullify() == that.AppByProleId.TrimOrNullify());
            result = result && (this.TitleSlug.TrimOrNullify() == that.TitleSlug.TrimOrNullify());
            result = result && (this.OrgOnly == that.OrgOnly);
            result = result && (this.OrgDedupe == that.OrgDedupe);
            result = result && (this.PnDedupe == that.PnDedupe);
            result = result && (this.SaveMailSample == that.SaveMailSample);
            result = result && (this.Locked == that.Locked);
            result = result && (this.PeoplePerOrg == that.PeoplePerOrg);
            result = result && (this.PnDonotmail == that.PnDonotmail);
            result = result && (this.PnDonotmail2 == that.PnDonotmail2);
            result = result && (this.PnDonotmail3 == that.PnDonotmail3);
            result = result && (this.ProleDoNotFax == that.ProleDoNotFax);
            result = result && (this.ProleDoNotMail == that.ProleDoNotMail);
            result = result && (this.PnFlag3 == that.PnFlag3);
            result = result && (this.ProleDisFlag == that.ProleDisFlag);
            result = result && (this.ProleUsernum1 == that.ProleUsernum1);
            result = result && (this.PnFlag2 == that.PnFlag2);
            result = result && (this.ResultsSizeOpt == that.ResultsSizeOpt);
            result = result && (this.ResultsSize == that.ResultsSize);
            result = result && (this.SchedRunDate == that.SchedRunDate);
            result = result && (this.SchedRunTime == that.SchedRunTime);
            result = result && (this.CalculatedDate == that.CalculatedDate);
            result = result && (this.OutputDate == that.OutputDate);
            result = result && (this.TotalRecords == that.TotalRecords);
            result = result && (this.Sample == that.Sample);
            result = result && (this.Seeds == that.Seeds);
            result = result && (this.InUse == that.InUse);
            result = result && (this.LastResultFile.TrimOrNullify() == that.LastResultFile.TrimOrNullify());
            result = result && (this.AppStatus == that.AppStatus);
            result = result && (this.ProleDoNotSwap == that.ProleDoNotSwap);
            result = result && (this.PnFlag1 == that.PnFlag1);
            result = result && (this.ProleDoNotEmail == that.ProleDoNotEmail);
            result = result && (this.ProleDoNotSpare == that.ProleDoNotSpare);
            result = result && (this.OrgDonotmail == that.OrgDonotmail);
            result = result && (this.OrgUsernum1 == that.OrgUsernum1);
            result = result && (this.OrgFlag1 == that.OrgFlag1);
            result = result && (this.OrgDonotfax == that.OrgDonotfax);
            result = result && (this.DpSetting == that.DpSetting);
            result = result && (this.ProleDoNotSpare1 == that.ProleDoNotSpare1);
            result = result && (this.ProleDoNotSpare2 == that.ProleDoNotSpare2);
            result = result && (this.ProleDoNotSpare3 == that.ProleDoNotSpare3);
            result = result && (this.ProleDoNotSpare4 == that.ProleDoNotSpare4);
            result = result && (this.PnDoNotSpare1 == that.PnDoNotSpare1);
            result = result && (this.PnDoNotSpare2 == that.PnDoNotSpare2);
            result = result && (this.PnDoNotSpare3 == that.PnDoNotSpare3);
            result = result && (this.PnDoNotSpare4 == that.PnDoNotSpare4);
            result = result && (this.OrgDoNotSpare1 == that.OrgDoNotSpare1);
            result = result && (this.OrgDoNotSpare2 == that.OrgDoNotSpare2);
            result = result && (this.OrgDoNotSpare3 == that.OrgDoNotSpare3);
            result = result && (this.OrgDoNotSpare4 == that.OrgDoNotSpare4);
            return(result);
        }
Пример #2
0
        /// <summary>
        ///     Creates a new <see cref="SaqQueryRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="SaqQueryRecord" /> object instance.
        /// </returns>
        public SaqQueryRecord Clone()
        {
            SaqQueryRecord record = new SaqQueryRecord();

            record.Id               = this.Id;
            record.AddBy            = this.AddBy;
            record.AddDate          = this.AddDate;
            record.ModBy            = this.ModBy;
            record.ModDate          = this.ModDate;
            record.QgId             = this.QgId;
            record.QoffId           = this.QoffId;
            record.Name             = this.Name;
            record.Desc             = this.Desc;
            record.Status           = this.Status;
            record.PmId             = this.PmId;
            record.CourseId         = this.CourseId;
            record.Channel          = this.Channel;
            record.MgrProleId       = this.MgrProleId;
            record.AppByProleId     = this.AppByProleId;
            record.TitleSlug        = this.TitleSlug;
            record.OrgOnly          = this.OrgOnly;
            record.OrgDedupe        = this.OrgDedupe;
            record.PnDedupe         = this.PnDedupe;
            record.SaveMailSample   = this.SaveMailSample;
            record.Locked           = this.Locked;
            record.PeoplePerOrg     = this.PeoplePerOrg;
            record.PnDonotmail      = this.PnDonotmail;
            record.PnDonotmail2     = this.PnDonotmail2;
            record.PnDonotmail3     = this.PnDonotmail3;
            record.ProleDoNotFax    = this.ProleDoNotFax;
            record.ProleDoNotMail   = this.ProleDoNotMail;
            record.PnFlag3          = this.PnFlag3;
            record.ProleDisFlag     = this.ProleDisFlag;
            record.ProleUsernum1    = this.ProleUsernum1;
            record.PnFlag2          = this.PnFlag2;
            record.ResultsSizeOpt   = this.ResultsSizeOpt;
            record.ResultsSize      = this.ResultsSize;
            record.SchedRunDate     = this.SchedRunDate;
            record.SchedRunTime     = this.SchedRunTime;
            record.CalculatedDate   = this.CalculatedDate;
            record.OutputDate       = this.OutputDate;
            record.TotalRecords     = this.TotalRecords;
            record.Sample           = this.Sample;
            record.Seeds            = this.Seeds;
            record.InUse            = this.InUse;
            record.LastResultFile   = this.LastResultFile;
            record.AppStatus        = this.AppStatus;
            record.ProleDoNotSwap   = this.ProleDoNotSwap;
            record.PnFlag1          = this.PnFlag1;
            record.ProleDoNotEmail  = this.ProleDoNotEmail;
            record.ProleDoNotSpare  = this.ProleDoNotSpare;
            record.OrgDonotmail     = this.OrgDonotmail;
            record.OrgUsernum1      = this.OrgUsernum1;
            record.OrgFlag1         = this.OrgFlag1;
            record.OrgDonotfax      = this.OrgDonotfax;
            record.DpSetting        = this.DpSetting;
            record.ProleDoNotSpare1 = this.ProleDoNotSpare1;
            record.ProleDoNotSpare2 = this.ProleDoNotSpare2;
            record.ProleDoNotSpare3 = this.ProleDoNotSpare3;
            record.ProleDoNotSpare4 = this.ProleDoNotSpare4;
            record.PnDoNotSpare1    = this.PnDoNotSpare1;
            record.PnDoNotSpare2    = this.PnDoNotSpare2;
            record.PnDoNotSpare3    = this.PnDoNotSpare3;
            record.PnDoNotSpare4    = this.PnDoNotSpare4;
            record.OrgDoNotSpare1   = this.OrgDoNotSpare1;
            record.OrgDoNotSpare2   = this.OrgDoNotSpare2;
            record.OrgDoNotSpare3   = this.OrgDoNotSpare3;
            record.OrgDoNotSpare4   = this.OrgDoNotSpare4;
            return(record);
        }