Examples of DefectCategoryDTO


Examples of com.vst.dto.DefectCategoryDTO

//setting defect categories for construction type
                    List defectCategories = defectCategoryManager.getCategoriesByVarityIdConstructionTypeId(defectVarity.getVarityId().toString(), constructionType.getConstructionTypeId().toString());
                    List defectCategoryDTOList = new ArrayList();
                    for (int z = 0; z < defectCategories.size(); z++) {
                        //System.out.println("defectCategory"+z);
                        DefectCategoryDTO defectCategory = new DefectCategoryDTO((DefectCategory) defectCategories.get(z));
                        defectCategoryDTOList.add(defectCategory);
                        defectCategory.setDefectRecomendations(defectRecomendationManager.getDefectRecomendationsByCategoryIdConstructionTypeId(defectCategory.getDefectCategoryId().toString(), constructionType.getConstructionTypeId().toString()));

                    }
                    constructionType.setDefectCategories(defectCategoryDTOList);

                }
View Full Code Here

Examples of com.vst.dto.DefectCategoryDTO

                defectZoneDTOList.add(defectZoneDTO);
                List defectCategoryDTOList = new ArrayList();
                List defectCategoryList = defectCategoryManager.getDefectCategorysByConstructionTypeIdDefectZoneId(constructionTypeDTO.getConstructionTypeId().toString(), defectZoneDTO.getDefectZoneId().toString());
                for (int k = 0; k < defectCategoryList.size(); k++) {
                    DefectCategory defectCategory = (DefectCategory) defectCategoryList.get(k);
                    DefectCategoryDTO defectCategoryDTO = new DefectCategoryDTO(defectCategory);
                    DefectVarity defectVarity = defectCategory.getDefectVarity();
                    DefectType defectType = defectCategory.getDefectType();
                    List reasonList = reasonManager.getReasonsByDefectTypeVarityConstructionZone(defectType.getDefectTypeId().toString(), defectVarity.getVarityId().toString(), constructionTypeDTO.getConstructionTypeId().toString(), defectZoneDTO.getDefectZoneId().toString());
//                    List reasonListDTO=new ArrayList();
//                    for (int l = 0; l < reasonList.size(); l++) {
//                        Reason reason = (Reason) reasonListDTO.get(l);
//
//
//                    }
                    defectCategoryDTO.setReasons(reasonList);
                    defectCategoryDTOList.add(defectCategoryDTO);
                }
                defectZoneDTO.setDefectCategories(defectCategoryDTOList);
            }
            constructionTypeDTO.setDefectZones(defectZoneDTOList);
View Full Code Here

Examples of com.vst.dto.DefectCategoryDTO

// setting defect categories for construction type
                    List defectCategories = defectCategoryManager.getCategoriesByVarityIdConstructionTypeId(defectVarity.getVarityId().toString(), constructionType.getConstructionTypeId().toString());
                    List defectCategoryDTOList = new ArrayList();
                    for (int z = 0; z < defectCategories.size(); z++) {
                        DefectCategoryDTO defectCategory = new DefectCategoryDTO((DefectCategory) defectCategories.get(z));
                        defectCategoryDTOList.add(defectCategory);
                        defectCategory.setDefectRecomendations(defectRecomendationManager.getDefectRecomendationsByCategoryIdConstructionTypeId(defectCategory.getDefectCategoryId().toString(), constructionType.getConstructionTypeId().toString()));

                    }
                    constructionType.setDefectCategories(defectCategoryDTOList);

                }
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.