コード例 #1
0
 public void onChanging$cmbEmpleadosPreparaciones(ForwardEvent event) {
   logger.log(Level.INFO, "[GestionIngresosDescuentosCtrl][onChanging$cmbEmpleadosPreparaciones]");
   try {
     listaPlanillaDetalles = null;
     InputEvent input = (InputEvent) event.getOrigin();
     if (planillaSelected != null && StringUtils.isNotBlank(input.getValue())) {
       listaPlanillaDetalles =
           personalBean.obtenerPlanillasDetallesPorCriterio(
               planillaSelected.getCodigoPlanilla(), input.getValue(), Boolean.TRUE);
     }
     renderizarDatosPlanillaDetalle();
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
コード例 #2
0
 public void onCreate$preparacionesEmpleadoMttoWindow(Event event) throws Exception {
   logger.log(
       Level.INFO, "[PreparacionesEmpleadoMttoCtrl][onCreate$preparacionesEmpleadoMttoWindow]");
   try {
     doOnCreateCommon(this.preparacionesEmpleadoMttoWindow, event);
     MensajeMultilinea.doSetTemplate();
     planillaSelected = null;
     if (this.args.containsKey("planillaSelected")) {
       planillaSelected = (Planilla) this.args.get("planillaSelected");
       lblNombrePlanillaSelected.setValue(planillaSelected.getDescripcionPlanilla());
     }
     llenarDatosCampos();
     revisarEstadoComponentes();
     preparacionesEmpleadoMttoWindow.doModal();
   } catch (Exception e) {
     logger.log(Level.SEVERE, e.getLocalizedMessage());
     e.printStackTrace();
   }
 }