feat(templateMatcher): Рефакторинг, основной метод синхронизации GroupedTemplateSynchronizer разбит на отдельные классы; Неиспользуемые шаблоны теперь привязываются к ЭК КОСМПЛЕКСЫ-[ЗО].
This commit is contained in:
10
PARR.TemplateMatcher/Models/GroupedTemplateGroup.cs
Normal file
10
PARR.TemplateMatcher/Models/GroupedTemplateGroup.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace PARR.TemplateMatcher.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Группа шаблонов для одного PotentialUnitId (связанного юнита).
|
||||
/// </summary>
|
||||
public record GroupedTemplateGroup(
|
||||
Guid PotentialUnitId,
|
||||
List<GroupedTemplateSubGroup> SubGroups
|
||||
);
|
||||
}
|
||||
11
PARR.TemplateMatcher/Models/GroupedTemplateSubGroup.cs
Normal file
11
PARR.TemplateMatcher/Models/GroupedTemplateSubGroup.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace PARR.TemplateMatcher.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Итоговая подгруппа юнитов, готовая к созданию/обновлению одного шаблона.
|
||||
/// </summary>
|
||||
public record GroupedTemplateSubGroup(
|
||||
List<(Guid UnitId, Guid UnitFieldValueId)> Entries,
|
||||
string InnerGroupName,
|
||||
int GlobalIndex
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user