2026-04-14 12:01:49 +10:00
|
|
|
|
using PARR.Domain.Common.Rabbit.Messages;
|
2025-05-19 10:16:09 +10:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.AIHITMainLoader.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
internal class PtkData : IMainData
|
|
|
|
|
|
{
|
|
|
|
|
|
[Column("IP_АДРЕС")]
|
|
|
|
|
|
public string? IP { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("АКТИВЕН")]
|
|
|
|
|
|
public string? IsActive { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("ВАЖНЫЙ_ЭК")]
|
|
|
|
|
|
public string? IsImportant { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("ЗОНА_ОТВЕТСТВЕННОСТИ")]
|
|
|
|
|
|
public string? ResponseArea { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("КАТЕГОРИЯ_ЭК")]
|
|
|
|
|
|
public string? EKCategory { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("КОД_ПОИСКА_ЭК")]
|
|
|
|
|
|
public string? EKFindCode { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("КРАТКОЕ_НАИМЕНОВАНИЕ")]
|
|
|
|
|
|
public string? ShortName { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("ОТВЕТСТВЕННЫЙ_ЗА_ЭК")]
|
|
|
|
|
|
public string? ResponsibleByEK { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("ПОДКАТЕГОРИЯ_ЭК")]
|
|
|
|
|
|
public string? EKSubCategory { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("ПОЛНОЕ_НАИМЕНОВАНИЕ")]
|
|
|
|
|
|
public string? FullName { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("РАБОЧАЯ_ГР_ОТВ_ЗА_ЭК")]
|
|
|
|
|
|
public string? WorkGroup { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("РАСПОЛОЖЕНИЕ")]
|
|
|
|
|
|
public string? Location { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("СЕТЕВОЕ_ИМЯ")]
|
|
|
|
|
|
public string? NetworkName { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("СТАТУС")]
|
|
|
|
|
|
public string? Status { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("ТИП_ЭК")]
|
|
|
|
|
|
public string? EKType { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("НАПРАВЛЕНИЕ_ЦТС_ЦК")]
|
|
|
|
|
|
public string? CTSDirection { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Key]
|
|
|
|
|
|
[Column("ID")]
|
|
|
|
|
|
public int? AIHID { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("РГ_смены")]
|
|
|
|
|
|
public string? ShiftWorkGroup { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("Клиентское_ПО")]
|
|
|
|
|
|
public string? ClientSoftware { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("Клиентская_ОС")]
|
|
|
|
|
|
public string? ClientOS { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("Тип СУБД")]
|
|
|
|
|
|
public string? DBType { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("Тип сервера приложений")]
|
|
|
|
|
|
public string? APPType { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("Тип сервера ЦК БС")]
|
|
|
|
|
|
public string? CKBSServerType { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("Тип сервера ИБ")]
|
|
|
|
|
|
public string? IBServerType { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("Тип сервера инфраструктуры")]
|
|
|
|
|
|
public string? InfrastructureServerType { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("Тип сервера мониторинга")]
|
|
|
|
|
|
public string? MonitoringServerType { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("ОС")]
|
|
|
|
|
|
public string? OSType { get; set; }
|
2025-05-30 09:50:47 +10:00
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
[Column("ЗО_РГ")]
|
|
|
|
|
|
public string? WorkGroupResponseArea { get; set; }
|
|
|
|
|
|
|
2025-08-15 11:32:13 +10:00
|
|
|
|
[Column("НЕУНИКАЛЬНЫЙ_ЭК")]
|
|
|
|
|
|
public string? IsNotUnique { get; set; }
|
|
|
|
|
|
|
2025-12-25 21:16:20 +10:00
|
|
|
|
[Column("Холодный резерв")]
|
2025-12-26 12:37:01 +10:00
|
|
|
|
public int? ColdReserve { get; set; }
|
2025-12-25 21:16:20 +10:00
|
|
|
|
|
|
|
|
|
|
[Column("ДОПОЛНИТЕЛЬНАЯ_ИНФОРМАЦИЯ")]
|
|
|
|
|
|
public string? AdditionalInformation { get; set; }
|
|
|
|
|
|
|
2026-03-24 11:15:15 +10:00
|
|
|
|
[Column("ПАРР тег")]
|
|
|
|
|
|
public string? Tag { get; set; }
|
|
|
|
|
|
|
2025-05-19 10:16:09 +10:00
|
|
|
|
|
|
|
|
|
|
public AihitMainDataMq ToMainData()
|
|
|
|
|
|
{
|
|
|
|
|
|
return new AihitMainDataMq
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = EKFindCode!,//TODO Ты прям уверен???
|
|
|
|
|
|
Properties = new Dictionary<string, string?>
|
|
|
|
|
|
{
|
|
|
|
|
|
{"IP_АДРЕС", IP },
|
2025-08-12 11:50:29 +10:00
|
|
|
|
{"АКТИВЕН", IsActive },
|
2025-08-15 11:32:13 +10:00
|
|
|
|
{"НЕУНИКАЛЬНЫЙ_ЭК", IsNotUnique },
|
2025-05-30 09:50:47 +10:00
|
|
|
|
//{"ВАЖНЫЙ_ЭК", IsImportant },
|
2025-05-19 10:16:09 +10:00
|
|
|
|
{"КАТЕГОРИЯ_ЭК", EKCategory },
|
|
|
|
|
|
{"КРАТКОЕ_НАИМЕНОВАНИЕ", ShortName },
|
|
|
|
|
|
{"ОТВЕТСТВЕННЫЙ_ЗА_ЭК", ResponsibleByEK },
|
|
|
|
|
|
{"ПОДКАТЕГОРИЯ_ЭК", EKSubCategory },
|
|
|
|
|
|
{"ПОЛНОЕ_НАИМЕНОВАНИЕ", FullName },
|
|
|
|
|
|
{"РАБОЧАЯ_ГР_ОТВ_ЗА_ЭК", WorkGroup },
|
2025-05-30 09:50:47 +10:00
|
|
|
|
//{"РАСПОЛОЖЕНИЕ", Location },
|
|
|
|
|
|
//{"СЕТЕВОЕ_ИМЯ", NetworkName },
|
2025-05-19 10:16:09 +10:00
|
|
|
|
{"СТАТУС", Status },
|
|
|
|
|
|
{"ТИП_ЭК", EKType },
|
2025-05-30 09:50:47 +10:00
|
|
|
|
//{"НАПРАВЛЕНИЕ_ЦТС_ЦК", CTSDirection },
|
|
|
|
|
|
//{"ID", AIHID.ToString() },
|
|
|
|
|
|
//{"РГ_смены", ShiftWorkGroup },
|
2025-05-19 10:16:09 +10:00
|
|
|
|
{"Клиентское_ПО", ClientSoftware },
|
|
|
|
|
|
{"Клиентская_ОС", ClientOS },
|
|
|
|
|
|
{"Тип СУБД", DBType },
|
|
|
|
|
|
{"Тип сервера приложений", APPType },
|
|
|
|
|
|
{"Тип сервера ЦК БС", CKBSServerType },
|
|
|
|
|
|
{"Тип сервера ИБ", IBServerType },
|
|
|
|
|
|
{"Тип сервера инфраструктуры", InfrastructureServerType },
|
|
|
|
|
|
{"Тип сервера мониторинга", MonitoringServerType },
|
|
|
|
|
|
{"ОС", OSType },
|
2025-12-25 21:16:20 +10:00
|
|
|
|
{"ЗО_РГ", WorkGroupResponseArea },
|
2025-12-26 12:37:01 +10:00
|
|
|
|
{"Холодный резерв", ColdReserve.ToString() },
|
2025-12-25 21:16:20 +10:00
|
|
|
|
{"ДОПОЛНИТЕЛЬНАЯ_ИНФОРМАЦИЯ", AdditionalInformation },
|
2026-03-24 11:15:15 +10:00
|
|
|
|
{"ПАРР тег", Tag }
|
2025-05-19 10:16:09 +10:00
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|