Examples of YFEvent


Examples of com.supinfo.youfood.entity.YFEvent

        if (user.getRestaurant() != null) {
            if (req.getParameter("notificationId") != null && !req.getParameter("notificationId").isEmpty()) {

                try {
                    YFEvent event = eventService.getEventById(Long.parseLong(req.getParameter("notificationId")));
                    event.setDone(true);
                    eventService.updateEvent(event);
                    resp.getWriter().print("{\"success\":true}");
                } catch (Exception e) {
                    resp.getWriter().print("{\"success\":false}");
                }
View Full Code Here

Examples of com.supinfo.youfood.entity.YFEvent

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        YFTable table = (YFTable) req.getSession().getAttribute("table");

        YFEvent event = new YFEvent();
        event.setDone(Boolean.FALSE);
        event.setMessage("Table " + table.getName() + " : APPEL");
        event.setTable(table);
        event.setOrder(null);

        this.eventService.createEvent(event);

        req.setAttribute("called", true);
        Boolean locked = (Boolean) req.getSession().getAttribute("locked");
View Full Code Here

Examples of com.supinfo.youfood.entity.YFEvent

                    }

                    orderService.updateOrder(order);

                    if (order.getStatus().equals(YFOrderState.READY)) {
                        YFEvent event = new YFEvent();
                        event.setDone(false);
                        event.setMessage("Plat " + order.getProduct().getName() + " pour la table " + order.getTable().getName() + " prêt à être servit");
                        event.setTable(order.getTable());
                        event.setOrder(order);
                        eventService.createEvent(event);
                    }

                    resp.getWriter().print("{\"success\":true}");
                } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.