using System;
using System.Collections.Generic;
using Ease.Core.Model;
namespace HRM.BO
{
#region SystemAuditHistory
/// Which change history the System Audit Log page asks for (one tab each).
public enum EnumSystemAuditHistory
{
Role = 1,
RolePermission = 2,
User = 3,
UserRole = 4,
UserAccessType = 5
}
///
/// One row of a change history, read from the Z_ table of that page
/// (Z_ROLE, Z_ROLEPERMISSION, Z_USERS, Z_USERROLE, Z_USERACCESSTYPE - see
/// SystemAuditHistory_DB_Changes.sql). Fields a history does not have stay null.
///
public class SystemAuditHistory : ObjectTemplate
{
#region Constructor
public SystemAuditHistory()
{
}
#endregion
#region Properties
/// What happened, e.g. "User created", "Role modified", "Access type removed".
public string AuditType { get; set; }
public DateTime? AuditDate { get; set; }
public string LoginID { get; set; }
public string Name { get; set; }
public string Code { get; set; }
public string UserType { get; set; }
public string RoleName { get; set; }
public string RoleType { get; set; }
public string MenuKey { get; set; }
public string MenuName { get; set; }
public string AccessType { get; set; }
public string Activities { get; set; }
public int? ActionBy { get; set; }
public string ActionByLoginID { get; set; }
public string ActionByName { get; set; }
#endregion
}
#endregion
#region ISystemAuditHistory Service
public interface ISystemAuditHistoryService
{
/// The change history of one page in a date range (both days inclusive), newest first.
List Get(EnumSystemAuditHistory type, DateTime dtFrom, DateTime dtTo);
}
#endregion
}