Esempio n. 1
0
        /// <summary>
        /// Restores all of the properties to their last saved state.
        /// After restoring the variables it resets the state of the object.
        /// </summary>
        protected virtual void RestoreBackups()
        {
            FeeTypeId  = _intFeeTypeId_orig;
            _dblAmount = _dblAmount_orig;

            _Payments = (_Payments_orig == null) ? null : _Payments_orig.Clone();
        }
Esempio n. 2
0
        public PlanFee Clone()
        {
            PlanFee planfee = new PlanFee(this.ID, this.DefendantId, this.FeeTypeId, this.UpdatedBy, this.UpdatedDate);

            planfee.RaiseChangedEvents = false;

            planfee.Amount = this.Amount;

            // cloning object collections
            planfee.Payments = (_Payments == null) ? null : _Payments.Clone();

            planfee.Save();

            planfee.RaiseChangedEvents = true;

            return(planfee);
        }