68 lines
2.0 KiB
C#
68 lines
2.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Ease.Core.Model;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
#region SystemAuditHistory
|
|
|
|
/// <summary>Which change history the System Audit Log page asks for (one tab each).</summary>
|
|
public enum EnumSystemAuditHistory
|
|
{
|
|
Role = 1,
|
|
RolePermission = 2,
|
|
User = 3,
|
|
UserRole = 4,
|
|
UserAccessType = 5
|
|
}
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
public class SystemAuditHistory : ObjectTemplate
|
|
{
|
|
#region Constructor
|
|
|
|
public SystemAuditHistory()
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
/// <summary>What happened, e.g. "User created", "Role modified", "Access type removed".</summary>
|
|
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
|
|
{
|
|
/// <summary>The change history of one page in a date range (both days inclusive), newest first.</summary>
|
|
List<SystemAuditHistory> Get(EnumSystemAuditHistory type, DateTime dtFrom, DateTime dtTo);
|
|
}
|
|
|
|
#endregion
|
|
}
|