Examples of VisualInspection


Examples of com.vst.model.VisualInspection

                       pipeLineElementManager.update(pipeLineElement);
                     return new ModelAndView("redirect:/lookPipeLineElement.html?detailType="+detailType+"&objectId="+objectId);
                   }

                else{
                    VisualInspection visualInspection=new VisualInspection();
                    visualInspection.setInspectionDescription("");
                    visualInspection.setInspectionValidity(false);
                    visualInspectionManager.insert(visualInspection);
                    pipeLineElement.setVisualInspection(visualInspection);
                    pipeLineElementManager.insert(pipeLineElement);
                    ObjectInspection objectInspection=objectInspectionManager.getObjectInspectionBy(objectId);
                    objectInspection.getPipeLineList().add(pipeLineElement);
View Full Code Here

Examples of com.vst.model.VisualInspection

            request.getSession().setAttribute("pipeElementId", request.getParameter("pipeElementId"));

            Integer pipeId = Integer.valueOf(request.getParameter("pipeElementId"));
            PipeLineElement pipeLineElement = pipeLineElementManager.getPipeLineElementById(pipeId);
            Integer visualInspectionId = pipeLineElement.getVisualInspection().getInspectionId();
            VisualInspection visualInspection = visualInspectionManager.getById(visualInspectionId);
            return visualInspection;
        }

        return super.formBackingObject(request);
    }
View Full Code Here

Examples of com.vst.model.VisualInspection

                                 HttpServletResponse response,
                                 Object command,
                                 BindException errors) throws IOException, SQLException {


        VisualInspection visualInspection = (VisualInspection) command;

        visualInspectionManager.update(visualInspection);

        return new ModelAndView("redirect:lookPipeLineElement.html?objectId=" + request.getSession().getAttribute("objectId") + "&detailType=" + request.getSession().getAttribute("detailType"));
    }
View Full Code Here

Examples of com.vst.model.VisualInspection

    public boolean supports(Class aClass) {
        return VisualInspection.class.isAssignableFrom(aClass);
    }

    public void validate(Object o, Errors errors) {
        VisualInspection visualInspection=(VisualInspection)o;
        if (visualInspection.getInspectionDescription().trim().equals("")){
            errors.rejectValue("inspectionDescription","inspectionDescription.error");
        }
    }
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.