Esempio n. 1
0
 public void aceptarAnulacionHorasPermisos() {
   if (are_tex_razon_anula.getValue() != null
       && !are_tex_razon_anula.getValue().toString().isEmpty()) {
     if (tex_documento_anula.getValue() != null
         && !tex_documento_anula.getValue().toString().isEmpty()) {
       if (cal_fecha_anula.getValue() != null
           && !cal_fecha_anula.getValue().toString().isEmpty()) {
         tab_permisos.setValor("razon_anula_aspvh", are_tex_razon_anula.getValue().toString());
         tab_permisos.setValor("documento_anula_aspvh", tex_documento_anula.getValue().toString());
         tab_permisos.setValor("fecha_anula_aspvh", cal_fecha_anula.getFecha());
         tab_permisos.modificar(tab_permisos.getFilaActual());
         tab_permisos.guardar();
         utilitario
             .getConexion()
             .agregarSqlPantalla(
                 "update ASI_PERMISOS_VACACION_HEXT set anulado_aspvh=1 where ide_aspvh="
                     + tab_permisos.getValorSeleccionado());
         guardarPantalla();
         dia_anulado.cerrar();
         String ide_anterior = tab_permisos.getValorSeleccionado();
         tab_permisos.ejecutarSql();
         tab_permisos.setFilaActual(ide_anterior);
       } else {
         utilitario.agregarMensajeInfo(
             "No se puede anular la solicitud",
             "Debe seleccionar una Fecha para para anular los Permisos");
       }
     } else {
       utilitario.agregarMensajeInfo(
           "No se puede anular la solicitud",
           "Debe Ingresar El Documento de Anulación para anular  los Permisos");
     }
   } else {
     utilitario.agregarMensajeInfo(
         "No se puede anular la solicitud", "Debe ingresar una Razon para anular  los Permisos");
   }
 }
Esempio n. 2
0
  @Override
  public void aceptarReporte() {
    if (rep_reporte.getReporteSelecionado().equals("Detalle Permisos")) {
      if (tab_permisos.getTotalFilas() > 0) {
        if (rep_reporte.isVisible()) {
          p_parametros = new HashMap();
          rep_reporte.cerrar();
          System.out.println("p_parametro " + ide_geedp_activo);
          p_parametros.put("IDE_GEEDP", Integer.parseInt(ide_geedp_activo));
          p_parametros.put(
              "titulo",
              " BIESS GERENCIA ADMINISTRATIVA - FINANCIERA DEPARTAMENTO DE TALENTO HUMANO PERMISOS");
          sef_reporte.setSeleccionFormatoReporte(p_parametros, rep_reporte.getPath());

          sef_reporte.dibujar();
        }
      } else {
        utilitario.agregarMensajeInfo("No se puede continuar", "No contiene registro de permisos");
      }

    } else if (rep_reporte.getReporteSelecionado().equals("Detalle Permisos Fecha")) {

      if (rep_reporte.isVisible()) {
        p_parametros = new HashMap();
        rep_reporte.cerrar();
        dia_filtro_activo.dibujar();
      } else if (dia_filtro_activo.isVisible()) {
        if (lis_activo.getSeleccionados() != null && !lis_activo.getSeleccionados().isEmpty()) {
          p_parametros.put("ACTIVO_GTEMP", lis_activo.getSeleccionados());
          dia_filtro_activo.cerrar();
          sel_cal.dibujar();
        } else {
          utilitario.agregarMensajeInfo(
              "No se puede continuar", "No ha seleccionado ningun Estado");
        }

      } else if (sel_cal.isVisible()) {
        if (sel_cal.isFechasValidas()) {

          p_parametros.put("APROBACION", sel_cal.getFecha1String());
          p_parametros.put("VENCIMIENTO", sel_cal.getFecha2String());

          //				sel_cal.getBot_aceptar().setMetodo("aceptarReporte");
          set_empleado_asis
              .getTab_seleccion()
              .setSql(
                  "SELECT IDE_GTEMP,DOCUMENTO_IDENTIDAD_GTEMP,  "
                      + "APELLIDO_PATERNO_GTEMP || ' ' || "
                      + "APELLIDO_MATERNO_GTEMP || ' ' ||  "
                      + "PRIMER_NOMBRE_GTEMP || ' ' ||  "
                      + "SEGUNDO_NOMBRE_GTEMP AS NOMBRES  "
                      + "from GTH_EMPLEADO "
                      + "WHERE ACTIVO_GTEMP IN("
                      + lis_activo.getSeleccionados()
                      + ") "
                      + "ORDER BY IDE_GTEMP ASC, "
                      + "NOMBRES ASC ");
          set_empleado_asis
              .getTab_seleccion()
              .getColumna("DOCUMENTO_IDENTIDAD_GTEMP")
              .setFiltro(true);
          set_empleado_asis.getTab_seleccion().getColumna("NOMBRES").setFiltro(true);
          set_empleado_asis.getTab_seleccion().ejecutarSql();

          set_empleado_asis.getBot_aceptar().setMetodo("aceptarReporte");
          sel_cal.cerrar();
          set_empleado_asis.dibujar();
        } else {
          utilitario.agregarMensajeInfo("ERROR AL GENERAR REPORTE", "Las fechas no son validas");
        }
      } else if (set_empleado_asis.isVisible()) {
        if (set_empleado_asis.getSeleccionados() != null
            && !set_empleado_asis.getSeleccionados().isEmpty()) {

          System.out.println("" + set_empleado_asis.getSeleccionados());

          p_parametros.put("IDE_GTEMP", set_empleado_asis.getSeleccionados());
          p_parametros.put(
              "titulo",
              " BIESS GERENCIA ADMINISTRATIVA - FINANCIERA  DEPARTAMENTO DE TALENTO HUMANO PERMISOS POR FECHA");
          System.out.println("path " + rep_reporte.getPath());
          sef_reporte.setSeleccionFormatoReporte(p_parametros, rep_reporte.getPath());
          set_empleado_asis.cerrar();
          sef_reporte.dibujar();

        } else {
          utilitario.agregarMensajeInfo(
              "No se puede continuar", "No ha seleccionado ningun Empleado");
        }
      }
    }
  }
Esempio n. 3
0
 public void guardarCerrar() {
   guardarPantalla();
   dia_movimientos.cerrar();
 }