43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using EnVisage.Code;
|
|
using Prevu.Core.Audit.Model;
|
|
|
|
namespace EnVisage.Models
|
|
{
|
|
public class HistoryDisplayModelTotal
|
|
{
|
|
public IEnumerable<HistoryDisplayModel> Data { get; set; }
|
|
public int Total { get; set; }
|
|
}
|
|
|
|
public class HistoryDisplayModel
|
|
{
|
|
public HistoryDisplayModel()
|
|
{
|
|
|
|
}
|
|
|
|
public HistoryDisplayModel(EventGetResponse model, string userName = null, string area = null)
|
|
{
|
|
|
|
NewValue = Utils.HistoryValueHtml(model.NewValue, model.ClassificationId);
|
|
OldValue = Utils.HistoryValueHtml(model.OldValue, model.ClassificationId);
|
|
|
|
Area = area ?? model.ClassificationArea;
|
|
DateCreated = model.DateCreated;
|
|
EventDetails = model.ClassificationTitle;
|
|
|
|
UserName = userName;
|
|
Comment = model.Comment;
|
|
}
|
|
|
|
public DateTime DateCreated { get; set; }
|
|
public string Area { get; set; }
|
|
public string UserName { get; set; }
|
|
public string EventDetails { get; set; }
|
|
public string OldValue { get; set; }
|
|
public string NewValue { get; set; }
|
|
public string Comment { get; set; }
|
|
}
|
|
} |