コード例 #1
0
 public void onEditarClicked(ForwardEvent event) {
   logger.log(Level.INFO, "[ListConciliacionesCtrl][onEditarClicked]");
   try {
     if (event instanceof ForwardEvent) {
       ForwardEvent ev = (ForwardEvent) event;
       Button btn = (Button) ev.getOrigin().getTarget();
       if (btn != null) {
         conciliaSelected = (BcoConciliam) btn.getAttribute("data");
         if (conciliaSelected != null) {
           HashMap map = new HashMap();
           map.put("gestorPeriodoCtrl", this);
           map.put("conciliaSelected", conciliaSelected);
           map.put("accion", Constants.ACCION_MANTTO_MODIFY);
           map.put("token", UtilFormat.getToken());
           Executions.createComponents(
               "/WEB-INF/xhtml/mantenimientos/conciliasCRUD/conciliaMtto.zul", null, map);
         } else {
           MensajeMultilinea.show("Seleccione un registro!!", Constants.MENSAJE_TIPO_ALERTA);
         }
       }
     }
   } catch (Exception e) {
     MensajeMultilinea.show(
         "Ocurrió una excepción al crear componente!!", Constants.MENSAJE_TIPO_ERROR);
     e.printStackTrace();
   }
 }
コード例 #2
0
 public void onClick$btnAgregarPeriodo(Event event) {
   logger.log(Level.INFO, "[ListConciliacionesCtrl][onClick$btnAgregarPeriodo]");
   try {
     HashMap map = new HashMap();
     map.put("token", UtilFormat.getToken());
     map.put("gestorPeriodoCtrl", this);
     Executions.createComponents(
         "/WEB-INF/xhtml/mantenimientos/conciliasCRUD/conciliaMtto.zul", null, map);
   } catch (Exception e) {
     e.printStackTrace();
     MensajeMultilinea.show(
         "Se mostró una excepción al crear componente!!", Constants.MENSAJE_TIPO_ALERTA);
   }
 }