コード例 #1
0
        /// <summary>
        ///     Creates a new <see cref="BatchRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="BatchRecord" /> object instance.
        /// </returns>
        public BatchRecord Clone()
        {
            BatchRecord record = new BatchRecord();

            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.Type         = this.Type;
            record.Proc         = this.Proc;
            record.Status       = this.Status;
            record.Path         = this.Path;
            record.Select       = this.Select;
            record.Count        = this.Count;
            record.StartDT      = this.StartDT;
            record.RunDT        = this.RunDT;
            record.RunBy        = this.RunBy;
            record.Note         = this.Note;
            record.CrtNextBatch = this.CrtNextBatch;
            record.DelayNxtBtch = this.DelayNxtBtch;
            record.RunDate      = this.RunDate;
            record.SelcoSpId    = this.SelcoSpId;
            record.Proc1        = this.Proc1;
            record.LastDate     = this.LastDate;
            record.ErrorNote    = this.ErrorNote;
            record.ExtFlag      = this.ExtFlag;
            record.DdStatus     = this.DdStatus;
            record.RecId        = this.RecId;
            record.Opt1         = this.Opt1;
            record.Opt2         = this.Opt2;
            record.Opt3         = this.Opt3;
            record.Opt4         = this.Opt4;
            record.ExtFile1     = this.ExtFile1;
            record.UserTint1    = this.UserTint1;
            record.FromDate     = this.FromDate;
            record.ToDate       = this.ToDate;
            record.ExtDate      = this.ExtDate;
            record.ExtRef       = this.ExtRef;
            record.Rerun        = this.Rerun;
            record.EcId         = this.EcId;
            record.ArgId        = this.ArgId;
            record.DiId         = this.DiId;
            return(record);
        }
コード例 #2
0
        /// <summary>
        ///     Indicates whether the current <see cref="BatchRecord" /> instance is equal to another <see cref="BatchRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="BatchRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(BatchRecord that)
        {
            Boolean result = true;

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.Type.TrimOrNullify() == that.Type.TrimOrNullify());
            result = result && (this.Proc.TrimOrNullify() == that.Proc.TrimOrNullify());
            result = result && (this.Status.TrimOrNullify() == that.Status.TrimOrNullify());
            result = result && (this.Path.TrimOrNullify() == that.Path.TrimOrNullify());
            result = result && (this.Select.TrimOrNullify() == that.Select.TrimOrNullify());
            result = result && (this.Count == that.Count);
            result = result && (this.StartDT == that.StartDT);
            result = result && (this.RunDT == that.RunDT);
            result = result && (this.RunBy.TrimOrNullify() == that.RunBy.TrimOrNullify());
            result = result && (this.Note.TrimOrNullify() == that.Note.TrimOrNullify());
            result = result && (this.CrtNextBatch == that.CrtNextBatch);
            result = result && (this.DelayNxtBtch == that.DelayNxtBtch);
            result = result && (this.RunDate == that.RunDate);
            result = result && (this.SelcoSpId.TrimOrNullify() == that.SelcoSpId.TrimOrNullify());
            result = result && (this.Proc1.TrimOrNullify() == that.Proc1.TrimOrNullify());
            result = result && (this.LastDate == that.LastDate);
            result = result && (this.ErrorNote.TrimOrNullify() == that.ErrorNote.TrimOrNullify());
            result = result && (this.ExtFlag == that.ExtFlag);
            result = result && (this.DdStatus == that.DdStatus);
            result = result && (this.RecId.TrimOrNullify() == that.RecId.TrimOrNullify());
            result = result && (this.Opt1 == that.Opt1);
            result = result && (this.Opt2 == that.Opt2);
            result = result && (this.Opt3 == that.Opt3);
            result = result && (this.Opt4 == that.Opt4);
            result = result && (this.ExtFile1.TrimOrNullify() == that.ExtFile1.TrimOrNullify());
            result = result && (this.UserTint1 == that.UserTint1);
            result = result && (this.FromDate == that.FromDate);
            result = result && (this.ToDate == that.ToDate);
            result = result && (this.ExtDate == that.ExtDate);
            result = result && (this.ExtRef.TrimOrNullify() == that.ExtRef.TrimOrNullify());
            result = result && (this.Rerun == that.Rerun);
            result = result && (this.EcId == that.EcId);
            result = result && (this.ArgId.TrimOrNullify() == that.ArgId.TrimOrNullify());
            result = result && (this.DiId == that.DiId);
            return(result);
        }