|
|
@ -202,17 +202,13 @@ public class dbWarehouseHandler extends dbHandlerBase { |
|
|
|
Logger.error(e); |
|
|
|
Logger.error(e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Remove the old workOrder records
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (WorkOrder workOrder : submitList) |
|
|
|
|
|
|
|
DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Submit the new workOrders to the ForgeManager
|
|
|
|
// Submit the new workOrders to the ForgeManager
|
|
|
|
|
|
|
|
|
|
|
|
for (WorkOrder workOrder : submitList) { |
|
|
|
for (WorkOrder workOrder : submitList) { |
|
|
|
|
|
|
|
DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder); |
|
|
|
workOrder.workOrderID = ForgeManager.workOrderCounter.incrementAndGet(); |
|
|
|
workOrder.workOrderID = ForgeManager.workOrderCounter.incrementAndGet(); |
|
|
|
ForgeManager.vendorWorkOrderLookup.get(workOrder.vendor).add(workOrder); |
|
|
|
|
|
|
|
DbManager.WarehouseQueries.WRITE_WORKORDER(workOrder); |
|
|
|
DbManager.WarehouseQueries.WRITE_WORKORDER(workOrder); |
|
|
|
|
|
|
|
ForgeManager.vendorWorkOrderLookup.get(workOrder.vendor).add(workOrder); |
|
|
|
ForgeManager.forge.add(workOrder); |
|
|
|
ForgeManager.forge.add(workOrder); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|