Добавлено поле OSType при парсинге из АИХ ИТ

This commit is contained in:
Mikhail Kuznetsov
2023-09-13 12:07:15 +10:00
parent 0281bcd674
commit e596e7f459
6 changed files with 1015 additions and 2 deletions

View File

@@ -252,6 +252,7 @@ namespace PARR.AIHIT
var statusList = settingService.Get().Where(s => s.Group == AIHTITSettings.StatusGroupName).Select(s => s.Value.Trim()).ToList();
if (statusList == null || statusList.Count == 0) return;
//Берём только активные шаблоны
var eks = rawDataEKService.Get().Where(e => e.IsActive == "t"
&& (e.Status != null && statusList.Contains(e.Status.Trim()))
).ToList();
@@ -473,9 +474,9 @@ namespace PARR.AIHIT
applications.Add(created);
}
}
if (vm.ClientOS != null)
if (vm.OSType != null)
{
var appList = vm.ClientOS.Split(new char[] { ',', ';' }).Distinct().ToList();
var appList = vm.OSType.Split(new char[] { ',', ';' }).Distinct().ToList();
foreach (var app in appList)
{
var created = await CreateAppIfNotExistAsync(app, ApplicationTypesEnum.OS);