Added value to custom job fields, added is job

Fixed queue
This commit is contained in:
Lucio Maranta
2018-09-19 16:46:44 +02:00
parent d2d532cd18
commit 9653abacda
12 changed files with 109 additions and 87 deletions
@@ -102,5 +102,14 @@ namespace Step.Database.Controllers
QueueRunningIndexes[entity.Process] = entity.Id - 1;
}
}
public void UpdateQueueIdsAndSave(int processId)
{
// Fix new ids
for (int i = 0; i < PartProgramQueue[processId].Count(); i++)
PartProgramQueue[processId][i].Id = i + 1;
UpdateQueue();
}
}
}