Exemple #1
0
        private void setActivityLog()
        {
            AuditLogServiceRef.User loginUser = (AuditLogServiceRef.User)Session["LoginUser"];

            List <string> activites = (List <string>)Session["Activities"];

            string[] activityArray = activites.ToArray();
            Response.Write("Activity = " + activityArray[0]);
            ActivityLog activityLog = new ActivityLog();

            activityLog.Activity = activityArray;

            AuditLogServiceSoapClient auditLogServiceSoapClient = new AuditLogServiceSoapClient();
            Status status = auditLogServiceSoapClient.updateAuditLog(loginUser, activityLog);

            Response.Write("Status = " + status.StatusDesc);
        }
Exemple #2
0
        private void initActivityLog(ValidateUserServiceRef.User validUser)
        {
            AuditLogServiceRef.User auditLogUser = new AuditLogServiceRef.User();
            auditLogUser.PersonId         = validUser.PersonId;
            auditLogUser.Username         = validUser.Username;
            auditLogUser.UserRole         = validUser.UserRole;
            auditLogUser.StationId        = validUser.StationId;
            auditLogUser.StationedAddress = validUser.StationedAddress;
            auditLogUser.StationedCity    = validUser.StationedCity;
            auditLogUser.StationedCountry = validUser.StationedCountry;

            AuditLogServiceSoapClient auditLogServiceSoapClient = new AuditLogServiceSoapClient();
            Status status = auditLogServiceSoapClient.createAuditLog(auditLogUser);

            Session["Status"]    = status;
            auditLogUser.ID      = status.AuditLogId;
            Session["LoginUser"] = auditLogUser;
        }