コード例 #1
0
        public virtual void CopyValues(TransactionRecord source)
        {
            if (source == null)
            {
                return;
            }

            Oid                 = source.Oid;
            _oid_entity         = source.OidEntity;
            _entity_type        = source.EntityType;
            _serial             = source.Serial;
            _code               = source.Code;
            _type               = source.Type;
            _status             = source.Status;
            _created            = source.Created;
            _resolved           = source.Resolved;
            _transaction_id     = source.TransactionID;
            _transaction_id_ext = source.TransactionIDExt;
            _auth_code          = source.AuthCode;
            _pan_mask           = source.PanMask;
            _amount             = source.Amount;
            _currency           = source.Currency;
            _gateway            = source.Gateway;
            _description        = source.Description;
            _response           = source.Response;
        }
コード例 #2
0
        protected override void DataPortal_Update()
        {
            if (!IsDirty)
            {
                return;
            }

            TransactionRecord obj = Session().Get <TransactionRecord>(Oid);

            obj.CopyValues(Base.Record);
            Session().Update(obj);
            MarkOld();
        }
コード例 #3
0
        /// <summary>
        /// Actualiza el registro en la base de datos
        /// </summary>
        /// <param name="parent">Lista padre</param>
        /// <remarks>La utiliza la BusinessListBaseEx correspondiente para actualizar elementos<remarks/>
        internal void Update(Transactiones parent)
        {
            // if we're not dirty then don't update the database
            if (!this.IsDirty)
            {
                return;
            }

            ValidationRules.CheckRules();

            if (!IsValid)
            {
                throw new iQValidationException(Library.Resources.Messages.GENERIC_VALIDATION_ERROR);
            }

            SessionCode = parent.SessionCode;
            TransactionRecord obj = Session().Get <TransactionRecord>(Oid);

            obj.CopyValues(Base.Record);
            Session().Update(obj);

            MarkOld();
        }