/* Changes the orderstatus from an order to paid with the matching id *@param orderNo int *@return void */ public void setOrderPaid(int orderNo) { if (JOptionPane.showConfirmDialog( null, "Weet u zeker dat u de bestelling wil afronden?", "WARNING", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) { orderDAO.setOrderPaid(orderNo); } else { } }
/* Changes the orderstatus by id *@param orderId int, newStatus String, itemName String *@return void */ public void changeStatusById(int orderId, String newStatus, String itemName) { orderDAO.changeStatusById(orderId, newStatus, itemName); }
/* Gets all the orders from the database *@return ArrayList<Order> */ public ArrayList<Order> getAllOrders() { return orderDAO.getAllOrders(); }
/* Gets the order by tableNumber *@param tableNumber int *@return order */ public Order getOrderByTableNumber(int tableNumber) { return orderDAO.getOrderByTableNumber(tableNumber); }