feat(api,dal): в настройки добавлено поле ScheduleExcludeCalendar. Обновлен response для robot task

This commit is contained in:
Mikhail Trubnikov
2025-12-04 12:10:10 +10:00
parent 78f2ad37be
commit 0de2c4762e
12 changed files with 4147 additions and 9 deletions

View File

@@ -103,7 +103,7 @@ namespace PARR.EsppScheduleSync
//WorkGroup = template.Host!.WorkGroup!,
//WorkGroup = template.Host!.WorkGroup!.Name,//TODO Migration to job
//Мы решили, что для всех расписаний "Нет исключений", если что-то поменяется, тут нужно переделать
TypeV60calendar = settingsFromDb.ScheduleExclude == "Нет исключений" ? "NONE" : "",
TypeV60calendar = settingsFromDb.ScheduleExcludeType == "Нет исключений" ? "NONE" : "",
//Scheduled = EsppScheduleHelpers.GetNextRun(template.NextRun),
//Scheduled = EsppScheduleHelpers.GetNextRun(nextRunModifierService.GetNextRunByAccountRobotTimeZone(template.NextRun)),
//BasisTime = EsppScheduleHelpers.GetGenerationTime(nextRunModifierService.GetNextRunByAccountRobotTimeZone(template.NextRun)),
@@ -147,6 +147,8 @@ namespace PARR.EsppScheduleSync
//тип повторения
esppObject.TypeSchedule = typeSchedule.Value;
//TODO: !!!!!!! Добавить поле "Расписание регламентной работы - Календарь" ScheduleExcludeCalendar !!!!!!!
//в зависимости от типа, присваиваем значения
switch (esppObject.TypeSchedule)
{
@@ -242,6 +244,8 @@ namespace PARR.EsppScheduleSync
CompleteAfter = splittedContent[20],
V60calendar = splittedContent[22],
BasisTime = splittedContent[23]
//TODO: !!!!!!! Добавить поле "Расписание регламентной работы - Календарь" ScheduleExcludeCalendar !!!!!!!
};
return ClearOptionalFields(esppObject);