|
|
@ -187,6 +187,10 @@ public class dbWarehouseHandler extends dbHandlerBase { |
|
|
|
|
|
|
|
|
|
|
|
public void LOAD_WORKORDERS() { |
|
|
|
public void LOAD_WORKORDERS() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Method loads NPC workOrders from disk at bootstrap.
|
|
|
|
|
|
|
|
// A workOrder will persist until completed or junked
|
|
|
|
|
|
|
|
// via the client interface.
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList<WorkOrder> submitList = new ArrayList<>(); |
|
|
|
ArrayList<WorkOrder> submitList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
try (Connection connection = DbManager.getConnection(); |
|
|
|
try (Connection connection = DbManager.getConnection(); |
|
|
@ -202,7 +206,7 @@ public class dbWarehouseHandler extends dbHandlerBase { |
|
|
|
Logger.error(e); |
|
|
|
Logger.error(e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Submit the new workOrders to the ForgeManager
|
|
|
|
// Submit new workOrders to the ForgeManager
|
|
|
|
|
|
|
|
|
|
|
|
for (WorkOrder workOrder : submitList) { |
|
|
|
for (WorkOrder workOrder : submitList) { |
|
|
|
DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder); |
|
|
|
DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder); |
|
|
|