diff --git a/PARR.AIHIT/AIHIT/MappingProfiles/RequestToDomain.cs b/PARR.AIHIT/AIHIT/MappingProfiles/RequestToDomain.cs index 08243a29..d12c7f24 100644 --- a/PARR.AIHIT/AIHIT/MappingProfiles/RequestToDomain.cs +++ b/PARR.AIHIT/AIHIT/MappingProfiles/RequestToDomain.cs @@ -21,10 +21,11 @@ namespace PARR.AIHIT.MappingProfiles .ForMember(d => d.Responsible, o => o.MapFrom(s => s.Attributes!["ОТВЕТСТВЕННЫЙ_ЗА_ЭК"]!.Value.Trim())); CreateMap() - .ForMember(d => d.HostName, o => o.MapFrom(s => s.EKFindCode))//TODO Определить имя хоста по + .ForMember(d => d.Ek, o => o.MapFrom(s => s.EKFindCode))//TODO Определить имя хоста по .ForMember(d => d.IP, o => o.MapFrom(s => s.IP)) .ForMember(d => d.Status, o => o.MapFrom(s => s.Status)) - .ForMember(d => d.WorkGroup, o => o.MapFrom(s => s.WorkGroup)); + .ForMember(d => d.WorkGroup, o => o.MapFrom(s => s.WorkGroup)) + .ForMember(d => d.ResponseArea, o => o.MapFrom(s => s.ResponseArea)); //CreateMap() // .ForMember(d => d.HostName, o => o.MapFrom(s => s.HostName)) // .ForMember(d => d.IP, o => o.MapFrom(s => s.IP)) diff --git a/PARR.DAL/Models/Host.cs b/PARR.DAL/Models/Host.cs index 322bd43b..7c1ddca8 100644 --- a/PARR.DAL/Models/Host.cs +++ b/PARR.DAL/Models/Host.cs @@ -11,14 +11,13 @@ namespace PARR.DAL.Models public Guid Id { get; set; } public DateTimeOffset DateCreated { get; set; } public DateTimeOffset? DateModified { get; set; } - public string? HostName { get; set; } + public string? Ek { get; set; } public required string IP { get; set; } //public string? RegionalEK { get; set; } //public string? LinkEK { get; set; } public string? Status { get; set; } public string? WorkGroup { get; set; } - //public string? Responsible { get; set; } - + public string? ResponseArea { get; set; } public ICollection ApplicationsInHosts { get; set; } = new HashSet(); diff --git a/PARR.DAL/Models/Template.cs b/PARR.DAL/Models/Template.cs index 654f67bd..452bd24c 100644 --- a/PARR.DAL/Models/Template.cs +++ b/PARR.DAL/Models/Template.cs @@ -20,31 +20,34 @@ namespace PARR.DAL.Models public bool IsActive { get; set; } - //??? Рабочая группа + //Рабочая группа из Host public required string WorkGroup { get; set; } + // settings из Work public required string ShortDescription { get; set; } - //settings ? регламентная работа + //settings регламентная работа. не меняется public required string Category { get; set; } - // ДВС, ?? + // из Host public required string ResponseArea { get; set; } - //works ?? - public required string Duration { get; set; } + //works + public required string EsppDuration { get; set; } + //works + public required string EsppStartAt { get; set; } //public required string EK { get; set; } - // settings + // settings. Возможно руководитель повыше public required string Initiator { get; set; } - + // settings из Work public required string FullDescription { get; set; } - // settings + // settings public required string ClosingCode { get; set; } - // settings + // settings из Work public required string Solution { get; set; } //public required string Process { get; set; }