@RequestMapping(value = "Excavacion/{IdEscavacion}", method = RequestMethod.GET) public String getFormulario(@PathVariable String IdEscavacion, Model model) { model.addAttribute( "Excavacion", empssapalService.FindIdExcavacion(Integer.parseInt(IdEscavacion))); // resolucionService.IdItemResolItem(Integer.parseInt(id))); return "Excavacion/form"; }
@RequestMapping(value = "Excavacion/dashboard", method = RequestMethod.GET) public String dashboard(Model model, HttpServletRequest request) { logger.info("::::::::::::Excavacion/dashboard:::::::::::::::" + empssapalService); model.addAttribute("listexcavacion", empssapalService.listarexcavacion()); // model.addAttribute("listItem", resolucionService.ListarItem()); request.getSession().setAttribute("menuHeader", "Excavacion"); return "Excavacion/dashboard"; }
@RequestMapping(value = "Excavacion/actualizar", method = RequestMethod.POST) public String guardar(@ModelAttribute("Excavacion") Excavacion excava, Model model) { empssapalService.UpdateExcavacion(excava); ; return "redirect:/Excavacion/dashboard"; }