45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using _0_Framework.Application;
|
|
using _0_Framework.Domain;
|
|
using CompanyManagment.App.Contracts.EmployeeDocuments;
|
|
|
|
namespace Company.Domain.EmployeeDocumentItemAgg
|
|
{
|
|
public class EmployeeDocumentItemLog : EntityBase
|
|
{
|
|
public long EmployeeDocumentItemId { get;private set; }
|
|
public EmployeeDocumentItem EmployeeDocumentItem { get; private set; }
|
|
|
|
public EmployeeDocumentItemOperation OperationType {get; private set; }
|
|
|
|
public long OperatorId { get;private set; }
|
|
public UserType OperatorType { get; private set; }
|
|
|
|
public string AdminMessage { get; private set; }
|
|
|
|
internal EmployeeDocumentItemLog(EmployeeDocumentItemOperation operationType, long operatorId, UserType operatorType, string adminMessage="")
|
|
{
|
|
OperationType = operationType;
|
|
OperatorId = operatorId;
|
|
OperatorType = operatorType;
|
|
AdminMessage = adminMessage;
|
|
}
|
|
|
|
|
|
private EmployeeDocumentItemLog(string adminMessage)
|
|
{
|
|
AdminMessage = adminMessage;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
public enum EmployeeDocumentItemOperation
|
|
{
|
|
CreatedNewItem,
|
|
SubmittedItems,
|
|
DeletedItem,
|
|
ConfirmedItem,
|
|
RejectedItem
|
|
}
|
|
}
|