internal void CopyValues(IDataReader source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source);

            _empleado = Format.DataReader.GetString(source, "EMPLEADO");
        }
        internal void Update(Auditoria parent)
        {
            // if we're not dirty then don't update the database
            if (!this.IsDirty)
            {
                return;
            }

            OidAuditoria = parent.Oid;
            OidEmpleado  = OidEmpleado != 0 ? OidEmpleado : parent.OidAuditor;

            try
            {
                ValidationRules.CheckRules();

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

                HistoriaAuditoriaRecord obj = parent.Session().Get <HistoriaAuditoriaRecord>(Oid);
                obj.CopyValues(this.Base.Record);
                parent.Session().Update(obj);
            }
            catch (Exception ex)
            {
                iQExceptionHandler.TreatException(ex);
            }

            MarkOld();
        }