от src избавился
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace Tnsu.ApprovalRoute.Domain.Entities;
|
||||
|
||||
public class RequestType
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string PageUrl { get; set; } = string.Empty;
|
||||
public string? ListId { get; set; }
|
||||
public string? SiteUrl { get; set; }
|
||||
public string Section { get; set; } = string.Empty;
|
||||
|
||||
public ICollection<TemplateRoute> Routes { get; set; } = new List<TemplateRoute>();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace Tnsu.ApprovalRoute.Domain.Entities;
|
||||
|
||||
public class TemplateRoute
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int RequestTypeId { get; set; }
|
||||
|
||||
public Guid? DepartmentId { get; set; }
|
||||
public Guid? CompanyId { get; set; }
|
||||
public bool ByProject { get; set; }
|
||||
|
||||
public bool RequiresControl { get; set; }
|
||||
|
||||
public RequestType? RequestType { get; set; }
|
||||
public ICollection<TemplateRouteStep> Steps { get; set; } = new List<TemplateRouteStep>();
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using Tnsu.ApprovalRoute.Domain.Enums;
|
||||
|
||||
namespace Tnsu.ApprovalRoute.Domain.Entities;
|
||||
|
||||
public class TemplateRouteStep
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int OrderNo { get; set; }
|
||||
|
||||
public string? ExecutorEmail { get; set; }
|
||||
public string? Position { get; set; }
|
||||
public ProjectRole? ProjectRole { get; set; }
|
||||
public HeadType? HeadType { get; set; }
|
||||
|
||||
public RouteStepStatus Status { get; set; } = RouteStepStatus.Approval;
|
||||
public int RouteId { get; set; }
|
||||
public bool AllowReassignToOtherApprovers { get; set; }
|
||||
|
||||
public string? FieldName { get; set; }
|
||||
public ComparisonOperator? Operation { get; set; }
|
||||
public string? Value { get; set; }
|
||||
|
||||
public TemplateRoute? Route { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Tnsu.ApprovalRoute.Domain.Enums;
|
||||
|
||||
public enum ComparisonOperator
|
||||
{
|
||||
None,
|
||||
GreaterThan,
|
||||
LessThan,
|
||||
Equal
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace Tnsu.ApprovalRoute.Domain.Enums;
|
||||
|
||||
public enum HeadType
|
||||
{
|
||||
None,
|
||||
Chief,
|
||||
DirectionHead,
|
||||
DirectorTansu,
|
||||
|
||||
/// <summary>
|
||||
/// Руководитель отдела, указанного явно в запросе на resolve (см.
|
||||
/// ResolveTemplateRouteRequest.DepartmentId), а не отдела инициатора —
|
||||
/// этим отличается от Chief/DirectionHead, которые всегда идут по цепочке
|
||||
/// подчинённости самого инициатора. В маршруте не может быть больше одного
|
||||
/// шага с этим типом (см. TemplateRouteStepService).
|
||||
/// </summary>
|
||||
DepartmentHead
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Tnsu.ApprovalRoute.Domain.Enums;
|
||||
|
||||
public enum ProjectRole
|
||||
{
|
||||
None,
|
||||
ProjectManager,
|
||||
Planner,
|
||||
ManagerHSE,
|
||||
Security
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Tnsu.ApprovalRoute.Domain.Enums;
|
||||
|
||||
public enum RouteStepStatus
|
||||
{
|
||||
None,
|
||||
Approval,
|
||||
Execution
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
</Project>
|
||||
Reference in New Issue
Block a user