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);