R1-T3 processor

This commit is contained in:
Michał Zieliński
2024-05-06 20:07:21 +02:00
parent 710d03baf7
commit 25e0298823
3 changed files with 312 additions and 0 deletions

View File

@@ -273,6 +273,7 @@ namespace WebAPI.Controllers
"T3-MultiSourceYearSummary",
"T3-MultiSourceCopySelectedCodes",
"T3-MultiSourceCopySelectedCodesYearSummary"
"T3-R1"
};
foreach (string type in processTypes)
@@ -404,6 +405,21 @@ namespace WebAPI.Controllers
});
return;
}
if (processType == "T3-R1")
{
T3R1Processor processor = new T3R1Processor(db, googleSheetValues, this, logsController);
processor.process(processWorker!);
logsController.AddEntry(new LogEntry
{
Title = $"{processWorker!.Name}, {processWorker.Id}",
Type = LogEntryType.info,
LogType = LogType.process,
Message = "Success",
CreatedAt = DateTime.UtcNow
});
return;
}
string? month = processWorker?.Records?.SingleOrDefault(x => x.Code == "Month")?.Desc1;
if (month == null)
{