feat: implement new order methods, transport enums, and conveyor telegram overrides

This commit is contained in:
2026-05-16 15:57:04 +02:00
parent 0a36e2c5f9
commit eb82e4e0b2
9 changed files with 482 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
public void UpdateResources(TransportOrderStatus resourceListStatus, List<ResourceList> occupiedBySameLeButDifferentOrder)
{
//If a OrdersHost is Finished or Cancelled all ResourceList for this OH are affected, for other status only entries with same Destination
Resources
.Where(r => !TransportOrderStatusGroups.Complete.Contains(r.Status) && (r.Name == Destination || resourceListStatus == TransportOrderStatus.Finished || resourceListStatus == TransportOrderStatus.Cancelled))
.ToList()
.ForEach(r => r.Status = resourceListStatus);
occupiedBySameLeButDifferentOrder?.ForEach(r => r.Status = TransportOrderStatus.Cancelled);
}