Exemplo n.º 1
0
  public pre_departamentos() {
    tab_tabla.setId("tab_tabla");
    tab_tabla.setTabla("GEN_DEPARTAMENTO", "IDE_GEDEP", 1);
    tab_tabla.getColumna("ACTIVO_GEDEP").setCheck();
    tab_tabla.getColumna("ACTIVO_GEDEP").setValorDefecto("true");
    tab_tabla.getColumna("IDE_GEARE").setVisible(false);
    tab_tabla.getColumna("TIPO_GEDEP").setVisible(false);
    tab_tabla.getColumna("NIVEL_GEDEP").setVisible(false);
    tab_tabla.getColumna("POSICION_HIJOS_GEDEP").setVisible(false);
    tab_tabla.getColumna("ORDEN_GEDEP").setVisible(false);
    tab_tabla.getColumna("NIVEL_ORGANICO_GEDEP").setVisible(false);
    tab_tabla.setCampoNombre("DETALLE_GEDEP");
    tab_tabla.setCampoPadre("GEN_IDE_GEDEP");
    tab_tabla.agregarArbol(arb_arbol);
    tab_tabla.dibujar();
    PanelTabla pat_panel = new PanelTabla();
    pat_panel.setPanelTabla(tab_tabla);

    arb_arbol.setId("arb_arbol");
    arb_arbol.onSelect("seleccionar_arbol");
    arb_arbol.dibujar();

    Division div_division = new Division();
    div_division.setId("div_division");
    div_division.dividir2(arb_arbol, pat_panel, "21%", "V");
    agregarComponente(div_division);
  }
Exemplo n.º 2
0
  public pre_forma_pago() {

    tab_tabla.setId("tab_tabla");
    tab_tabla.setTabla("reh_forma_pago", "ide_rhfpa", 1);
    tab_tabla.dibujar();
    PanelTabla pat_panel = new PanelTabla();
    pat_panel.setPanelTabla(tab_tabla);
    div_division.setId("div_division");
    div_division.dividir1(pat_panel);

    agregarComponente(div_division);
  }
Exemplo n.º 3
0
  public pre_tipo_aporte_presupuesto() {

    tab_tabla.setId("tab_tabla");
    tab_tabla.setTabla("pre_tipo_aporte_presu", "ide_prtap", 1);
    tab_tabla.dibujar();
    PanelTabla pat_panel = new PanelTabla();
    pat_panel.setPanelTabla(tab_tabla);
    div_division.setId("div_division");
    div_division.dividir1(pat_panel);

    agregarComponente(div_division);
  }
Exemplo n.º 4
0
  public pre_tipo_situacion_militar() {
    tab_tabla.setId("tab_tabla");
    tab_tabla.setTabla("GTH_TIPO_SITUACION_MILITAR", "IDE_GTTSM", 1);
    tab_tabla.setCampoOrden("DETALLE_GTTSM");
    tab_tabla.getColumna("ACTIVO_GTTSM").setCheck();
    tab_tabla.getColumna("ACTIVO_GTTSM").setValorDefecto("TRUE");
    tab_tabla.dibujar();
    PanelTabla pat_panel = new PanelTabla();
    pat_panel.setPanelTabla(tab_tabla);

    Division div_division = new Division();
    div_division.setId("div_division");
    div_division.dividir1(pat_panel);
    agregarComponente(div_division);
  }
Exemplo n.º 5
0
  public pre_tipo_compr_inventario() {

    tab_tabla.setId("tab_tabla");
    tab_tabla.setTabla("inv_tip_comp_inve", "ide_intci", 1);
    List lista = new ArrayList();
    Object fila1[] = {"1", "+"};
    Object fila2[] = {"0", "-"};
    lista.add(fila1);
    lista.add(fila2);
    tab_tabla.getColumna("signo_intci").setRadio(lista, "0");

    tab_tabla.dibujar();
    PanelTabla pat_panel = new PanelTabla();
    pat_panel.setPanelTabla(tab_tabla);
    div_division.setId("div_division");
    div_division.dividir1(pat_panel);

    agregarComponente(div_division);
  }
Exemplo n.º 6
0
  public pre_accion_motivo_empleado() {
    tab_tabla.setId("tab_tabla");
    tab_tabla.setTabla("GEN_ACCION_MOTIVO_EMPLEADO", "IDE_GEAME", 1);
    tab_tabla
        .getColumna("IDE_GEAED")
        .setCombo("GEN_ACCION_EMPLEADO_DEPA", "IDE_GEAED", "DETALLE_GEAED", "");
    tab_tabla
        .getColumna("IDE_GEMED")
        .setCombo("GEN_MOTIVO_EMPLEADO_DEPA", "IDE_GEMED", "DETALLE_GEMED", "");
    tab_tabla.getColumna("ACTIVO_GEAME").setCheck();
    tab_tabla.getColumna("ACTIVO_GEAME").setValorDefecto("true");
    tab_tabla.getColumna("ANTERIOR_GEAME").setCheck();
    tab_tabla.getColumna("ANTERIOR_GEAME").setValorDefecto("false");
    tab_tabla.dibujar();
    PanelTabla pat_panel = new PanelTabla();
    pat_panel.setPanelTabla(tab_tabla);

    Division div_division = new Division();
    div_division.setId("div_division");
    div_division.dividir1(pat_panel);
    agregarComponente(div_division);
  }
Exemplo n.º 7
0
  public void dibujarSolicitud() {
    limpiarPanel();
    tab_solicitud.setId("tab_solicitud");
    tab_solicitud.setConexion(con_postgres);
    tab_solicitud.setTabla("sca_solicitud_acceso", "id_solicitud_acceso", 1);
    /*Filtro estatico para los datos a mostrar*/
    if (aut_busca.getValue() == null) {
      tab_solicitud.setCondicion("id_solicitud_acceso=-1");
    } else {
      tab_solicitud.setCondicion("id_solicitud_acceso=" + aut_busca.getValor());
    }

    tab_solicitud.getColumna("fechaing_solicitante").setValorDefecto(utilitario.getFechaActual());

    tab_solicitud
        .getColumna("id_sistema")
        .setCombo("SELECT id_sistema,nombre_sistema FROM sca_sistemas order by nombre_sistema");
    tab_solicitud
        .getColumna("id_modulo")
        .setCombo("SELECT id_modulo,nombre_modulo FROM sca_modulos order by nombre_modulo");
    tab_solicitud
        .getColumna("id_perfil")
        .setCombo("SELECT id_perfil,nombre_perfil FROM sca_perfiles order by nombre_perfil");
    tab_solicitud
        .getColumna("codigo_usuario")
        .setCombo("select cod_empleado,nombres from srh_empleado order by nombres");
    tab_solicitud
        .getColumna("direccion_solicitante")
        .setCombo("select cod_direccion,nombre_dir from srh_direccion order by nombre_dir");
    tab_solicitud.getColumna("direccion_solicitante").setFiltroContenido();
    tab_solicitud
        .getColumna("cargo_solicitante")
        .setCombo("select cod_cargo,nombre_cargo from srh_cargos order by nombre_cargo");
    tab_solicitud.getColumna("cargo_solicitante").setFiltroContenido();
    tab_solicitud
        .getColumna("cargo_usuario")
        .setCombo("select cod_cargo,nombre_cargo from srh_cargos order by nombre_cargo");
    tab_solicitud.getColumna("cargo_usuario").setFiltroContenido();
    tab_solicitud
        .getColumna("codigo_solicitante")
        .setCombo("select cod_empleado,nombres from srh_empleado order by nombres");
    tab_solicitud.getColumna("codigo_solicitante").setFiltroContenido();

    tab_solicitud.getColumna("ingreso_perfil_usuario").setCheck();
    tab_solicitud.getColumna("actualizacion_perfil_usuario").setCheck();
    tab_solicitud.getColumna("lectura_perfil_usuario").setCheck();

    tab_solicitud.getColumna("codigo_solicitante").setMetodoChange("datosSolicitante");
    tab_solicitud.getColumna("codigo_usuario").setMetodoChange("datosUsuario");
    tab_solicitud.getColumna("id_sistema").setMetodoChange("datosModulo");
    tab_solicitud.getColumna("id_modulo").setMetodoChange("datosPerfil");
    tab_solicitud.getColumna("id_perfil").setMetodoChange("activaCasillas");

    tab_solicitud.getColumna("bandera_solicitante").setEtiqueta();
    tab_solicitud.getColumna("bandera_usuario").setEtiqueta();
    tab_solicitud.getColumna("bandera_perfil").setEtiqueta();

    tab_solicitud.getColumna("ingreso_perfil_usuario").setLectura(true);
    tab_solicitud.getColumna("actualizacion_perfil_usuario").setLectura(true);
    tab_solicitud.getColumna("lectura_perfil_usuario").setLectura(true);

    tab_solicitud.getColumna("estado_solicitud").setVisible(false);
    tab_solicitud.getColumna("cedula_solicitante").setVisible(false);
    tab_solicitud.getColumna("nombre_solicitante").setVisible(false);
    tab_solicitud.getColumna("cedula_usuario").setVisible(false);
    tab_solicitud.getColumna("nombre_usuario").setVisible(false);
    tab_solicitud.getColumna("direccion_usuario").setVisible(false);
    tab_solicitud.getColumna("fecha_acceso_usuario").setVisible(false);
    tab_solicitud.getColumna("login_acceso_usuario").setVisible(false);
    tab_solicitud.getColumna("password_acceso_usuario").setVisible(false);
    tab_solicitud.getColumna("cedula_asigna_acceso").setVisible(false);
    tab_solicitud.getColumna("codigo_asigna_acceso").setVisible(false);
    tab_solicitud.getColumna("nombre_asigna_acceso").setVisible(false);
    tab_solicitud.getColumna("logining_solicitante").setVisible(false);
    tab_solicitud.getColumna("fechact_solicitante").setVisible(false);
    tab_solicitud.getColumna("loginact_solcitante").setVisible(false);
    tab_solicitud.getColumna("logining_acceso_usuario").setVisible(false);
    tab_solicitud.getColumna("fechact_acceso_usuario").setVisible(false);
    tab_solicitud.getColumna("loginact_acceso_usuario").setVisible(false);

    tab_solicitud
        .getColumna("logining_solicitante")
        .setValorDefecto(utilitario.getVariable("NICK"));

    tab_solicitud.setTipoFormulario(true);
    tab_solicitud.dibujar();
    PanelTabla tps = new PanelTabla();
    tps.setPanelTabla(tab_solicitud);

    Division div_division = new Division();
    div_division.setId("div_division");
    div_division.dividir1(tps);

    Grupo gru = new Grupo();
    gru.getChildren().add(div_division);
    pan_opcion.getChildren().add(gru);
  }
Exemplo n.º 8
0
  public pre_permisos() {
    Tabulador tab_tabulador = new Tabulador();
    tab_tabulador.setId("tab_tabulador");

    tab_tabla1.setId("tab_tabla1");
    tab_tabla1.setTabla("SIS_PERFIL", "IDE_PERF", 1);
    tab_tabla1.getColumna("activo_perf").setCheck();
    tab_tabla1.getColumna("perm_util_perf").setCheck();
    tab_tabla1.agregarRelacion(tab_tabla2);
    tab_tabla1.agregarRelacion(tab_tabla3);
    tab_tabla1.agregarRelacion(tab_tabla4);
    tab_tabla1.agregarRelacion(tab_tabla5);
    tab_tabla1.setRows(20);
    tab_tabla1.dibujar();
    PanelTabla pat_panel1 = new PanelTabla();
    pat_panel1.setPanelTabla(tab_tabla1);

    tab_tabla2.setId("tab_tabla2");
    tab_tabla2.setIdCompleto("tab_tabulador:tab_tabla2");
    tab_tabla2.setTabla("SIS_PERFIL_REPORTE", "IDE_PERE", 2);
    tab_tabla2.getColumna("IDE_REPO").setUnico(true);
    tab_tabla2.getColumna("IDE_PERF").setUnico(true);
    tab_tabla2
        .getColumna("IDE_REPO")
        .setCombo(
            "select repo.ide_repo,nom_repo,nom_opci from sis_reporte repo inner join sis_opcion opcion on repo.ide_opci=opcion.ide_opci order by nom_repo,nom_opci");
    tab_tabla2.getColumna("IDE_REPO").setAutoCompletar();
    tab_tabla2.setRows(20);
    tab_tabla2.dibujar();
    PanelTabla pat_panel2 = new PanelTabla();
    pat_panel2.setPanelTabla(tab_tabla2);

    tab_tabla3.setId("tab_tabla3");
    tab_tabla3.setIdCompleto("tab_tabulador:tab_tabla3");
    tab_tabla3.setTabla("SIS_PERFIL_OPCION", "IDE_PEOP", 3);
    tab_tabla3
        .getColumna("IDE_OPCI")
        .setCombo(
            "select a.ide_opci,a.NOM_OPCI,"
                + "( case when b.sis_ide_opci is null then 'PANTALLA' else 'MENU' end ) as nuevo "
                + "from SIS_OPCION a left join ( "
                + "select DISTINCT sis_ide_opci   from SIS_OPCION  where sis_ide_opci  in (  "
                + "select ide_opci from SIS_OPCION ) ) b on a.IDE_OPCI=b.SIS_IDE_OPCI order by a.NOM_OPCI");
    tab_tabla3.getColumna("LECTURA_PEOP").setCheck();
    tab_tabla3.getColumna("IDE_OPCI").setAutoCompletar();
    tab_tabla3.getColumna("IDE_OPCI").setUnico(true);
    tab_tabla3.getColumna("IDE_PERF").setUnico(true);
    tab_tabla3.setRows(20);
    tab_tabla3.dibujar();
    PanelTabla pat_panel3 = new PanelTabla();
    pat_panel3.setPanelTabla(tab_tabla3);

    tab_tabla4.setId("tab_tabla4");
    tab_tabla4.setIdCompleto("tab_tabulador:tab_tabla4");
    tab_tabla4.setTabla("SIS_PERFIL_OBJETO", "IDE_PEOB", 4);
    tab_tabla4
        .getColumna("IDE_OBOP")
        .setCombo(
            "SELECT IDE_OBOP,NOM_OBOP || ' '|| ID_OBOP,NOM_OPCI FROM SIS_OBJETO_OPCION,SIS_OPCION WHERE SIS_OPCION.IDE_OPCI = SIS_OBJETO_OPCION.IDE_OPCI ORDER BY NOM_OPCI,NOM_OBOP");
    tab_tabla4.getColumna("IDE_OBOP").setAutoCompletar();
    tab_tabla4.getColumna("VISIBLE_PEOB").setCheck();
    tab_tabla4.getColumna("LECTURA_PEOB").setCheck();
    tab_tabla4.getColumna("VISIBLE_PEOB").setValorDefecto("true");
    //   tab_tabla4.getColumna("IDE_PEOB").setUnico(true);
    //   tab_tabla4.getColumna("IDE_PERF").setUnico(true);
    tab_tabla4.setRows(20);
    tab_tabla4.dibujar();
    PanelTabla pat_panel4 = new PanelTabla();
    pat_panel4.setPanelTabla(tab_tabla4);

    tab_tabla5.setId("tab_tabla5");
    tab_tabla5.setIdCompleto("tab_tabulador:tab_tabla5");
    tab_tabla5.setTabla("SIS_PERFIL_CAMPO", "IDE_PECA", 5);
    tab_tabla5
        .getColumna("IDE_CAMP")
        .setCombo(
            "SELECT IDE_CAMP,NOM_CAMP,TABLA_TABL FROM SIS_CAMPO,SIS_TABLA WHERE SIS_CAMPO.IDE_TABL = SIS_TABLA.IDE_TABL ORDER BY TABLA_TABL,NOM_CAMP");
    tab_tabla5.getColumna("IDE_CAMP").setAutoCompletar();
    tab_tabla5.getColumna("VISIBLE_PECA").setValorDefecto("true");
    tab_tabla5.getColumna("VISIBLE_PECA").setCheck();
    tab_tabla5.getColumna("LECTURA_PECA").setCheck();
    tab_tabla5.getColumna("IDE_PERF").setUnico(true);
    tab_tabla5.getColumna("IDE_CAMP").setUnico(true);
    tab_tabla5.setRows(20);
    tab_tabla5.dibujar();
    PanelTabla pat_panel5 = new PanelTabla();
    pat_panel5.setPanelTabla(tab_tabla5);

    tab_tabulador.agregarTab("OPCIONES", pat_panel3);
    tab_tabulador.agregarTab("REPORTES", pat_panel2);
    tab_tabulador.agregarTab("OBJETOS COMPONENTES", pat_panel4);
    tab_tabulador.agregarTab("CAMPOS", pat_panel5);

    Division div_division = new Division();
    div_division.setId("div_division");
    div_division.dividir2(pat_panel1, tab_tabulador, "30%", "H");
    agregarComponente(div_division);

    bar_botones.agregarReporte();
    rep_reporte.setId("rep_reporte");
    rep_reporte.getBot_aceptar().setMetodo("aceptarReporte");
    agregarComponente(rep_reporte);

    sel_rep.setId("sel_rep");
    agregarComponente(sel_rep);

    set_perfiles.setId("set_perfiles");
    set_perfiles.setSeleccionTabla(
        "select IDE_PERF,upper(NOM_PERF) as Perfil,DESCRIPCION_PERF from SIS_PERFIL", "ide_perf");
    set_perfiles.getBot_aceptar().setMetodo("aceptarReporte");
    set_perfiles.setTitle("SELECCION DE PERFILES");
    agregarComponente(set_perfiles);
  }