예제 #1
0
 @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";
 }
예제 #2
0
  @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";
  }
예제 #3
0
 @RequestMapping(value = "Excavacion/actualizar", method = RequestMethod.POST)
 public String guardar(@ModelAttribute("Excavacion") Excavacion excava, Model model) {
   empssapalService.UpdateExcavacion(excava);
   ;
   return "redirect:/Excavacion/dashboard";
 }