예제 #1
0
        public NASDMS.Systems.ErrorCode GetAuditTrails(ref List <AuditTrail> auditTrails, Guid Oid)
        {
            ErrorCode err = ErrorCode.ERROR_SUCCESS;

            if (IsReadyForLogging == false)
            {
                return(err);
            }
            try
            {
                auditTrails = RDSAuditTrail.GetAuditTrails(Oid);
                return(err);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
예제 #2
0
        public ErrorCode AddAuditTrail(Guid Oid, string ChangedBy, string Data, CategoryAudit category, ActionAudit action)
        {
            ErrorCode err = ErrorCode.ERROR_SUCCESS;

            if (IsReadyForLogging == false)
            {
                return(err);
            }
            try
            {
                RDSAuditTrail.AddAuditTrail(Oid, ChangedBy, Data, category, action);
                return(err);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
예제 #3
0
        public NASDMS.Systems.ErrorCode GetAuditTrailsPaged(ref List <AuditTrail> auditTrails, Int32 startRecord, Int32 maxRecords, String sortColumns)
        {
            ErrorCode err = ErrorCode.ERROR_SUCCESS;

            if (IsReadyForLogging == false)
            {
                return(err);
            }
            try
            {
                auditTrails = RDSAuditTrail.GetAuditTrailsPaged(startRecord, maxRecords, sortColumns);
                return(err);
            }
            catch (Exception e)
            {
                throw e;
            }
        }