Package com.gwcworld.webapp.bean

Examples of com.gwcworld.webapp.bean.StandJson


       
        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


            layer.setShapes(shapeList);
           
            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.webapp.bean.StandJson

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.