New processor.

This commit is contained in:
Michał Zieliński
2023-10-30 16:39:13 +01:00
parent a0d3ae8d72
commit bcbce3adcb
7 changed files with 690 additions and 13 deletions

View File

@@ -194,7 +194,8 @@ namespace WebAPI.Controllers
.Include(x => x.Records)
.Where(x =>
x.Records!.Any(x => x.Code == "Type" && x.Desc1 == "ProcessWorker") &&
x.Records!.Any(x => x.Code == "IsEnabled" && x.Desc1 == "True"))
x.Records!.Any(x => x.Code == "IsEnabled" && x.Desc1 == "True")
)
.ToList();
layersToProcess = new List<Layer>();
@@ -253,12 +254,16 @@ namespace WebAPI.Controllers
switch (processType)
{
case "Copy":
//CopyProcessor cp = new CopyProcessor(db, googleSheetValues, this);
//cp.process(sourceLayer, processWorker?.Id);
CopyProcessor cp = new CopyProcessor(db, googleSheetValues, this);
cp.process(sourceLayer, processWorker?.Id);
break;
case "Deaggregation":
//DeaggregationProcessor dp = new DeaggregationProcessor(db, googleSheetValues, this);
//dp.process(sourceLayer, processWorker?.Id);
DeaggregationProcessor dp = new DeaggregationProcessor(db, googleSheetValues, this);
dp.process(sourceLayer, processWorker?.Id);
break;
case "T3-SingleSource":
T3SingleSourceProcessor processor = new T3SingleSourceProcessor(db, googleSheetValues, this);
processor.process(sourceLayer, processWorker?.Id);
break;
}
logsController.AddEntry(new LogEntry