Beispiel #1
0
        public virtual void CopyValues(DocumentTypeRecord source)
        {
            if (source == null)
            {
                return;
            }

            Oid           = source.Oid;
            _valor        = source.Valor;
            _user_created = source.UserCreated;
        }
Beispiel #2
0
        internal void Update(Tipodocumentos parent)
        {
            // if we're not dirty then don't update the database
            if (!this.IsDirty)
            {
                return;
            }

            try
            {
                SessionCode = parent.SessionCode;
                DocumentTypeRecord obj = Session().Get <DocumentTypeRecord>(Oid);
                obj.CopyValues(Base.Record);
                Session().Update(obj);

                MarkOld();
            }
            catch (Exception ex)
            {
                iQExceptionHandler.TreatException(ex);
            }
        }