if (request.getParameter("cansel") != null) {
return new ModelAndView("redirect:/lookPipelineSubtype.html");
}
PipelineSubtype pipelineSubtype = (PipelineSubtype) command;
if (pipelineSubtype.getPipelineId() != null) {
pipelineSubtypeManager.update(pipelineSubtype);
if (pipelineSubtype.isEdited()) {
return new ModelAndView("redirect:updating.html?id=" + pipelineSubtype.getPipelineId() + "&fieldId=" + request.getParameter("fieldId"));
}
return new ModelAndView("redirect:/lookPipelineSubtype.html");
} else {
pipelineSubtypeManager.insert(pipelineSubtype);
mav.addObject("pipeline", new PipelineSubtype());
mav.addObject("result", new Integer(1));
if (pipelineSubtype.isEdited()) {
return new ModelAndView("redirect:updating.html?id=" + pipelineSubtype.getPipelineId() + "&fieldId=" + request.getParameter("fieldId"));
}
return mav;
}