@RequestMapping(value = "/registraCargo.htm", method = RequestMethod.POST)
 public String registraCargo(ModelMap model, HttpServletRequest request) {
   logger.debug("registraCargo");
   Integer codman = Integer.parseInt(request.getParameter("codManda"));
   String codCargo = request.getParameter("cargo");
   logger.debug(codman + " = " + codCargo);
   mandatarioService.asignaCargoMandatario(codman, codCargo);
   T020tramite trm =
       (T020tramite) request.getSession().getAttribute(ConstitucionController.TRAMITE_SESSION);
   model.put("lmandatarios", mandatarioService.listarMandatarios(trm.getNumTramite()));
   return "Mandatarios";
 }
 @RequestMapping(value = "/verMandatario.htm", method = RequestMethod.GET)
 public String verMandatario(ModelMap model, HttpServletRequest request) {
   logger.debug("ver mandatario");
   Integer id = Integer.parseInt(request.getParameter("cod"));
   model.put("mandatario", mandatarioService.obtenerMandatario(id));
   return "ManNoEditable";
 }
 @RequestMapping(value = "/eliminarMandatario.htm", method = RequestMethod.GET)
 public String eliminarMandatario(ModelMap model, HttpServletRequest request) {
   try {
     logger.debug("eliminar mandatario");
     Integer id = Integer.parseInt(request.getParameter("codigo"));
     mandatarioService.eliminarMandatario(id);
     model.put("mensaje", "mandatario eliminado");
     T020tramite trm =
         (T020tramite) request.getSession().getAttribute(ConstitucionController.TRAMITE_SESSION);
     model.put("lmandatarios", mandatarioService.listarMandatarios(trm.getNumTramite()));
   } catch (Exception e) {
     model.put("msgError", "Error " + e.getMessage());
     e.printStackTrace();
   }
   return "Mandatarios";
 }
 @RequestMapping(value = "/asignacargo.htm", method = RequestMethod.GET)
 public String asignacargo(ModelMap model, HttpServletRequest request) {
   logger.debug("asignacargo");
   T020tramite trm =
       (T020tramite) request.getSession().getAttribute(ConstitucionController.TRAMITE_SESSION);
   request.setAttribute(
       "lCargos", parametroDAO.litarParametros(ParametrosUtil.TIPO_CARGOS, trm.getCodTipsoc()));
   T032mandatario man =
       mandatarioService.obtenerMandatario(Integer.parseInt(request.getParameter("cod")));
   logger.debug("mandatario = " + man);
   request.setAttribute("manda", man);
   return "Cargos";
 }