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

            result = result && (this.Id.TrimOrNullify() == that.Id.TrimOrNullify());
            result = result && (this.Lock.TrimOrNullify() == that.Lock.TrimOrNullify());
            result = result && (this.BomId.TrimOrNullify() == that.BomId.TrimOrNullify());
            result = result && (this.ProdId.TrimOrNullify() == that.ProdId.TrimOrNullify());
            result = result && (this.Usage == that.Usage);
            result = result && (this.Qty == that.Qty);
            result = result && (this.DelQty == that.DelQty);
            result = result && (this.PerDay == that.PerDay);
            result = result && (this.ArgId.TrimOrNullify() == that.ArgId.TrimOrNullify());
            result = result && (this.Type == that.Type);
            result = result && (this.ProfKey.TrimOrNullify() == that.ProfKey.TrimOrNullify());
            result = result && (this.ProfValue.TrimOrNullify() == that.ProfValue.TrimOrNullify());
            result = result && (this.ProfValue2.TrimOrNullify() == that.ProfValue2.TrimOrNullify());
            result = result && (this.Ratio == that.Ratio);
            result = result && (this.UntType.TrimOrNullify() == that.UntType.TrimOrNullify());
            result = result && (this.Trainer == that.Trainer);
            result = result && (this.Cost == that.Cost);
            result = result && (this.RoomType.TrimOrNullify() == that.RoomType.TrimOrNullify());
            result = result && (this.IncInBudget == that.IncInBudget);
            result = result && (this.TrainProleId.TrimOrNullify() == that.TrainProleId.TrimOrNullify());
            return(result);
        }
        /// <summary>
        ///     Creates a new <see cref="TemplateXrefRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="TemplateXrefRecord" /> object instance.
        /// </returns>
        public TemplateXrefRecord Clone()
        {
            TemplateXrefRecord record = new TemplateXrefRecord();

            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.BomId        = this.BomId;
            record.ProdId       = this.ProdId;
            record.Usage        = this.Usage;
            record.Qty          = this.Qty;
            record.DelQty       = this.DelQty;
            record.PerDay       = this.PerDay;
            record.ArgId        = this.ArgId;
            record.Type         = this.Type;
            record.ProfKey      = this.ProfKey;
            record.ProfValue    = this.ProfValue;
            record.ProfValue2   = this.ProfValue2;
            record.Ratio        = this.Ratio;
            record.UntType      = this.UntType;
            record.Trainer      = this.Trainer;
            record.Cost         = this.Cost;
            record.RoomType     = this.RoomType;
            record.IncInBudget  = this.IncInBudget;
            record.TrainProleId = this.TrainProleId;
            return(record);
        }
Esempio n. 3
0
 /// <summary>
 ///     Initialises a new <see cref="LocalTemplateTrainerModel" /> instance.
 /// </summary>
 /// <param name="provider">
 ///     The business provider to which the business model is bound.
 /// </param>
 /// <param name="record">
 ///     The data record which is encapsulated by the business model.
 /// </param>
 internal LocalTemplateTrainerModel(LocalProvider provider, TemplateXrefRecord record) : base(provider, record)
 {
 }
 /// <summary>
 ///     Initialises a new <see cref="LocalTemplateResourceModel" /> instance.
 /// </summary>
 /// <param name="provider">
 ///     The business provider to which the business model is bound.
 /// </param>
 /// <param name="record">
 ///     The data record which is encapsulated by the business model.
 /// </param>
 internal LocalTemplateResourceModel(LocalProvider provider, TemplateXrefRecord record) : base(provider, record)
 {
 }