Beispiel #1
0
        public webobj.Status createAuditLog(webobj.User webUser)
        {
            AFIS360Common.User user = new AFIS360Common.User();
            user.setPersonId(webUser.PersonId);
            user.setUsername(webUser.Username);
            user.setUserRole(webUser.UserRole);

            DataAccess dataaccess = new DataAccess();

            AFIS360Common.Status status = dataaccess.createUserAuditLog(user, DateTime.Now);

            webobj.Status webStatus = new webobj.Status();
            webStatus.StatusCode = status.getStatusCode();
            webStatus.StatusDesc = status.getStatusDesc();
            webStatus.AuditLogId = status.getAuditLogId();
            return(webStatus);
        }
Beispiel #2
0
        public webobj.Status updateAuditLog(webobj.User webUser, webobj.ActivityLog webActivityLog)
        {
            AFIS360Common.User user = new AFIS360Common.User();
            user.setPersonId(webUser.PersonId);
            user.setId(webUser.Id);

            AFIS360Common.ActivityLog activityLog  = new AFIS360Common.ActivityLog();
            List <string>             webActivites = webActivityLog.Activity;

            foreach (string webActivity in webActivites)
            {
                activityLog.setActivity(webActivity);
            }

            DataAccess dataaccess = new DataAccess();

            AFIS360Common.Status status = dataaccess.updateUserAuditLog(user, DateTime.Now, 0, activityLog);

            webobj.Status webStatus = new webobj.Status();
            webStatus.StatusCode = status.getStatusCode();
            webStatus.StatusDesc = status.getStatusDesc();
            webStatus.AuditLogId = status.getAuditLogId();
            return(webStatus);
        }