Package com.gwcworld.core.bean

Examples of com.gwcworld.core.bean.Stand


        layerJson.setShapeList(shapeJsonList);
       
        List<Stand> standList = standService.getStandListByLayer(layer);
        List<StandJson> standJsonList = new ArrayList<StandJson>();
        for (Iterator<Stand> iterator3 = standList.iterator(); iterator3.hasNext();) {
          Stand stand = iterator3.next();
          StandJson standJson = new StandJson();
          standJson.setId(stand.getId());
          standJson.setCode(stand.getCode());
          standJson.setDescription(stand.getDescription());
          if(stand.getExhibitor()!=null)
            standJson.setExhibitorId(stand.getExhibitor().getId());
          standJson.setLogo(stand.getLogo());
          standJson.setName(stand.getName());
          standJson.setOpenSides(stand.getOpenSides());
          Shape standShape = stand.getShape();
          ShapeJson standShapeJson = new ShapeJson();
          standShapeJson.setColorRGBA(standShape.getColorRGBA());
          standShapeJson.setRotate(standShape.getRotate());
          standShapeJson.setScaleX(standShape.getScaleX());
          standShapeJson.setScaleY(standShape.getScaleY());
          standShapeJson.setShapeTypeId(standShape.getType().getId());
          standShapeJson.setTranslateX(standShape.getTranslateX());
          standShapeJson.setTranslateY(standShape.getTranslateY());
          standShapeJson.setValues(standShape.getValues());
          standJson.setShape(standShapeJson);
          standJson.setStandStatusId(stand.getStatus().getId());
          standJson.setSurfaceEffective(stand.getSurfaceEffective());
          standJson.setSurfaceTot(stand.getSurfaceTot());
          standJson.setOrientation(stand.getOrientation());
          standJson.setMoved(stand.getMoved());
          standJsonList.add(standJson);
        }
        layerJson.setStandList(standJsonList);
       
        layerJsonList.add(layerJson);
View Full Code Here


        List<Stand> stands = standService.getStandListByExhibitor(maps, exhibitor);
        StringBuffer sbOffers = new StringBuffer();
        boolean addLink = true;
        int count = 1;
        for (Iterator<Stand> iterator = stands.iterator(); iterator.hasNext() && count <=MAX_OFFERS;) {
          Stand stand = iterator.next();
          if(addLink)
            sbOffers.append(stand.getLayer().getArea().getMap().getId()+"/"+stand.getId());
          else
            sbOffers.append(" ");
          sbOffers.append(TOKEN);
         
          if(stand.getStatus().getCode().equals(Constants.STAND_STATUS_CONFIRMED)){
            addLink = false;
            mq = stand.getSurfaceTot();
            mapName = stand.getLayer().getArea().getMap().getName();
            standName = stand.getCode();
            variazioneMq = exhibitor.getMqRequested()!=mq?"s":"n";
          }
          count++;
        }
       
View Full Code Here

      Map map = mapService.getById(idMap);
      mav.addObject("map", map);
    }
   
    if(idstand!=0){
      Stand stand = standService.getById(idstand);
      mav.addObject("stand", stand);
    }
   
    return mav;
  }
View Full Code Here

            List<StandJson> standJsonList = layerJson.getStandList();
            List<Stand> standList = new ArrayList<Stand>();
            for (Iterator<StandJson> iterator3 = standJsonList.iterator(); iterator3.hasNext();) {
              StandJson standJson = iterator3.next();
             
              Stand stand = new Stand();
              stand.setCode(standJson.getCode());
              stand.setDescription(standJson.getDescription());
              if(standJson.getExhibitorId()!=0){
                Exhibitor exhibitor = exhibitorService.getById(standJson.getExhibitorId());
                stand.setExhibitor(exhibitor);
              }
              stand.setLogo(standJson.getLogo());
              stand.setName(standJson.getName());
              stand.setOpenSides(standJson.getOpenSides());
             
              ShapeJson standShapeJson = standJson.getShape();
              Shape standShape = new Shape();
              standShape.setColorRGBA(standShapeJson.getColorRGBA());
              standShape.setRotate(standShapeJson.getRotate());
              standShape.setScaleX(standShapeJson.getScaleX());
              standShape.setScaleY(standShapeJson.getScaleY());
              ShapeType standShapeType = shapeTypeService.getById(standShapeJson.getShapeTypeId());
              standShape.setType(standShapeType);
              standShape.setTranslateX(standShapeJson.getTranslateX());
              standShape.setTranslateY(standShapeJson.getTranslateY());
              standShape.setValues(standShapeJson.getValues());
              stand.setShape(standShape);
              com.gwcworld.core.bean.StandStatus standStatus = standStatusService.getById(standJson.getStandStatusId());
              stand.setStatus(standStatus);
              stand.setSurfaceEffective(standJson.getSurfaceEffective());
              stand.setSurfaceTot(standJson.getSurfaceTot());
              stand.setOrientation(standJson.getOrientation());
              stand.setMoved(standJson.getMoved());
              stand.setLayer(layer);
              standList.add(stand);
            }
            layer.setStands(standList);
            layer.setArea(area);
           
View Full Code Here

TOP

Related Classes of com.gwcworld.core.bean.Stand

Copyright © 2018 www.massapicom. 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.