Examples of findProductById()


Examples of com.lgx8.gateway.service.IGatewayService.findProductById()

      lid = Long.parseLong(id);
    } catch (Exception e1) {
      lid = -1;
    }
   
    Product product = gatewayService.findProductById(lid);
    if(product!=null) {
      root.put("product", product);
      root.put("Product_List_Url", Constants.PRODUCT_LIST_URL);
     
      List<Brand> brands = gatewayService.findBrand();
View Full Code Here

Examples of com.lgx8.gateway.service.IGatewayService.findProductById()

        lid = -1;
      }
      ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
      IGatewayService gatewayService = (IGatewayService) ac.getBean("gatewayService");
     
      Product product = gatewayService.findProductById(lid);
      if(product==null) {
        out.print("({'result':'0','msg':'修改的商品信息不存在!'})");
        out.flush();
        return;
      }
View Full Code Here

Examples of com.lgx8.gateway.service.IGatewayService.findProductById()

    root.putAll(base);
   
    root.put("searchURL", Constants.SEARCH_URL);
   
    if(productId!=0) {
      product = gatewayService.findProductById(productId);
    }
    if(product!=null) {
      root.put("product", product);
      if(product.getColor()!=null&&!"".equals(product.getColor())) {
        List<ProductProperty> colors = gatewayService.findProductPropertyByIds(product.getColor().split(";"));
View Full Code Here

Examples of com.lgx8.gateway.service.IGatewayService.findProductById()

   
    Map<Object, Object> root = new HashMap<Object, Object>();
    root.putAll(base);
   
    if(productId!=0) {
      product = gatewayService.findProductById(productId);
    }
    if(product!=null) {
      root.put("product", product);
    }
   
View Full Code Here

Examples of com.openbravo.pos.pda.bo.RestaurantManager.findProductById()

                    }
                }
                manager.updateLineFromTicket(place, ticket);
                for (Object line : linesList) {
                    TicketLineInfo li = (TicketLineInfo) line;
                    products.add(manager.findProductById(li.getProductid()));
                }

                request.setAttribute("product", products.get(0));
                request.setAttribute("place", place);
                request.setAttribute("placeName", manager.findPlaceNameById(place));
View Full Code Here

Examples of com.openbravo.pos.pda.bo.RestaurantManager.findProductById()

                ticket = manager.findTicket(place);
                linesList = ticket.getM_aLines();
                array = floorForm.getParameters();
                int var = Integer.parseInt(array[0]);
                linesList.remove(var);
                if (linesList.size() > var && manager.findProductById(linesList.get(var).getProductid()).isCom()) {
                    linesList.remove(var);
                    while (linesList.size() > var && manager.findProductById(linesList.get(var).getProductid()).isCom()) {
                        linesList.remove(var);
                        if (linesList.size() == var) {
                            break;
View Full Code Here

Examples of com.openbravo.pos.pda.bo.RestaurantManager.findProductById()

                array = floorForm.getParameters();
                int var = Integer.parseInt(array[0]);
                linesList.remove(var);
                if (linesList.size() > var && manager.findProductById(linesList.get(var).getProductid()).isCom()) {
                    linesList.remove(var);
                    while (linesList.size() > var && manager.findProductById(linesList.get(var).getProductid()).isCom()) {
                        linesList.remove(var);
                        if (linesList.size() == var) {
                            break;
                        }
                    }
View Full Code Here

Examples of com.openbravo.pos.pda.bo.RestaurantManager.findProductById()

                    }
                }
                manager.updateLineFromTicket(place, ticket);
                for (Object line : linesList) {
                    TicketLineInfo li = (TicketLineInfo) line;
                    products.add(manager.findProductById(li.getProductid()));
                }

                request.setAttribute("floorName", manager.findFloorById(manager.findPlaceById(place).getFloor()).getName());
                request.setAttribute("place", place);
                request.setAttribute("placeName", manager.findPlaceNameById(place));
View Full Code Here

Examples of com.openbravo.pos.pda.bo.RestaurantManager.findProductById()

                linesList.get(Integer.valueOf(index[0])).setMultiply(Double.valueOf(index[1]));

                manager.updateLineFromTicket(floorForm.getId(), ticket);
                for (Object line : linesList) {
                    TicketLineInfo li = (TicketLineInfo) line;
                    products.add(manager.findProductById(li.getProductid()));
                }

                break;

            //increment product
View Full Code Here

Examples of com.openbravo.pos.pda.bo.RestaurantManager.findProductById()

                    }
                }
                manager.updateLineFromTicket(place, ticket);
                for (Object line : linesList) {
                    TicketLineInfo li = (TicketLineInfo) line;
                    products.add(manager.findProductById(li.getProductid()));
                }
                request.setAttribute("product", products.get(0));
                request.setAttribute("place", place);
                request.setAttribute("placeName", manager.findPlaceNameById(place));
                request.setAttribute("line", linesList.get(Integer.valueOf(array[0])));
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.