Пример #1
0
        public virtual void CopyValues(AgentDocumentRecord source)
        {
            if (source == null)
            {
                return;
            }

            Oid            = source.Oid;
            _oid_agente    = source.OidAgente;
            _oid_documento = source.OidDocumento;
        }
Пример #2
0
        internal void Update(Agente parent)
        {
            // if we're not dirty then don't update the database
            if (!this.IsDirty)
            {
                return;
            }

            OidAgente = parent.Oid;

            try
            {
                SessionCode = parent.SessionCode;
                AgentDocumentRecord obj = Session().Get <AgentDocumentRecord>(Oid);
                obj.CopyValues(Base.Record);
                Session().Update(obj);
            }
            catch (Exception ex)
            {
                throw new iQPersistentException(iQExceptionHandler.GetAllMessages(ex));
            }

            MarkOld();
        }