예제 #1
0
 function cargar()
 {
     $sql = "SELECT * FROM unidades_negocio WHERE cve_unidad_negocio = {$this->cve_unidad_negocio}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cve_unidad_negocio = $row['cve_unidad_negocio'];
         $this->nombre = $row['nombre'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #2
0
 function cargar()
 {
     $sql = "SELECT * FROM municipios WHERE cve_estado = " . $this->cve_estado->getCve_estado() . " AND cve_municipio = {$this->cve_municipio}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cve_estado = new Estado($row['cve_estado']);
         $this->cve_municipio = $row['cve_municipio'];
         $this->nombre = $row['nombre'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #3
0
 function cargar()
 {
     $sql = "SELECT * FROM tipos_contenido WHERE cve_tipo_contenido = {$this->cve_tipo_contenido}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cve_tipo_contenido = $row['cve_tipo_contenido'];
         $this->nombre = $row['nombre'];
         $this->icono = $row['icono'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
 function cargar()
 {
     $sql = "SELECT * FROM calendario_actividades_contenido WHERE cve_actividad_contenido = {$this->cve_actividad_contenido}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cve_actividad_contenido = $row['cve_actividad_contenido'];
         $this->cve_calendario = new CalendarioActividad($row['cve_calendario']);
         $this->cve_tipo_contenido = new TipoContenido($row['cve_tipo_contenido']);
         $this->url = $row['url'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #5
0
 function cargar()
 {
     $sql = "SELECT * FROM actividades WHERE cve_actividad = {$this->cve_actividad}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cve_actividad = $row['cve_actividad'];
         $this->cve_tipo = new TipoActividad($row['cve_tipo']);
         $this->nombre = $row['nombre'];
         $this->descripcion = $row['descripcion'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #6
0
 function cargar()
 {
     $sql = "SELECT * FROM contactos WHERE cve_contacto = {$this->cve_contacto}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cve_contacto = $row['cve_contacto'];
         $this->nombre = $row['nombre'];
         $this->correo = $row['correo'];
         $this->telefono = $row['telefono'];
         $this->comentario = $row['comentario'];
         $this->fecha_alta = $row['fecha_alta'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
        }
        $rst2->closeCursor();
    } else {
        ?>
        <option value="-1">--------- No tiene ---------</option>
        <?php 
    }
    return;
}
if (isset($_POST['cveArticulo']) && isset($_POST['cveFraccion']) && isset($_POST['cveInciso']) && isset($_POST['cveApartado'])) {
    $cveArticulo = $_POST['cveArticulo'];
    $cveFraccion = $_POST['cveFraccion'];
    $cveInciso = $_POST['cveInciso'];
    $cveApartado = $_POST['cveApartado'];
    $sql2 = "SELECT * FROM cat_transparencia where cve_articulo={$cveArticulo} and cve_fraccion={$cveFraccion} and cve_inciso={$cveInciso} and cve_apartado={$cveApartado} ";
    $rst2 = UtilDB::ejecutaConsulta($sql2);
    if ($rst2->rowCount() > 0) {
        ?>

        <option value="0">--------- SELECCIONE UNA OPCIÓN ---------</option>
        <?php 
        foreach ($rst2 as $row) {
            echo "<option value='" . $row['cve_clasificacion_apartado'] . "' " . ">" . $row['descripcion_clasificacion_apartado'] . "</option>";
        }
        $rst2->closeCursor();
        ?>
 

        <?php 
    } else {
        ?>
예제 #8
0
        $sql = "SELECT * FROM tipos_tramites WHERE cve_clasificacion_tramite =  {$xCveClasificacionTramite}";
        $rst = UtilDB::ejecutaConsulta($sql);
        if ($rst->rowCount() > 0) {
            echo "<option value=\"0\">--------- SELECCIONE UNA OPCIÓN ---------</option>";
            foreach ($rst as $row) {
                echo "<option value='" . $row['cve_tipo_tramite'] . "' " . ($xCveTipoTramite != 0 ? $xCveTipoTramite == $row['cve_tipo_tramite'] ? "selected" : "" : "") . ">" . $row['nombre'] . "</option>";
            }
            $rst2->closeCursor();
        } else {
            echo "<option value=\"-1\">--------- NO TIENE ---------</option>";
        }
        return;
    } else {
        if ($_POST['xAccion'] == "getComboCategoriaTramite") {
            $xCveTipoTramite = (int) $_POST['xCveTipoTramite'];
            $xCveCategoriaTramite = isset($_POST['xCveCategoriaTramite']) ? (int) $_POST['xCveCategoriaTramite'] : 0;
            $sql = "SELECT * FROM categorias_tramites WHERE cve_tipo_tramite =  {$xCveTipoTramite}";
            $rst = UtilDB::ejecutaConsulta($sql);
            if ($rst->rowCount() > 0) {
                echo "<option value=\"0\">--------- SELECCIONE UNA OPCIÓN ---------</option>";
                foreach ($rst as $row) {
                    echo "<option value='" . $row['cve_categoria_tramite'] . "' " . ($xCveCategoriaTramite != 0 ? $xCveCategoriaTramite == $row['cve_categoria_tramite'] ? "selected" : "" : "") . ">" . $row['nombre'] . "</option>";
                }
                $rst2->closeCursor();
            } else {
                echo "<option value=\"-1\">--------- NO TIENE ---------</option>";
            }
            return;
        }
    }
}
예제 #9
0
 function cargar()
 {
     $sql = "SELECT * FROM volumenes WHERE cve_volumen = {$this->cveVolumen}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cveVolumen = $row['cve_volumen'];
         $this->cveTipo = $row['cve_tipo'];
         $this->titulo = $row['titulo'];
         $this->autor = $row['autor'];
         $this->imagen = $row['imagen'];
         $this->descripcion = $row['descripcion'];
         $this->grado = $row['grado'];
         $this->archivo = $row['archivo'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #10
0
 function cargar()
 {
     $sql = "SELECT * FROM tramites WHERE cve_tramite = {$this->cveTramite}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cveTramite = $row['cve_tramite'];
         $this->cveCategoriaTramite = new CategoriaTramite((int) $row['cve_categoria_tramite']);
         $this->cveDependencia = new Dependencia((int) $row['cve_dependencia']);
         $this->nombre = $row['nombre'];
         $this->pdf = $row['pdf'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #11
0
 function cargar()
 {
     $sql = "SELECT * FROM noticias WHERE cve_noticia = {$this->cveNoticia}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cveNoticia = $row['cve_noticia'];
         $this->cveReata = $row['cve_reata'];
         $this->tipoEvento = $row['tipo_evento'];
         $this->titulo = $row['titulo'];
         $this->noticiaCorta = $row['noticia_corta'];
         $this->noticia = $row['noticia'];
         $this->fotoPortada = $row['foto_portada'];
         $this->foto1 = $row['foto1'];
         $this->foto2 = $row['foto2'];
         $this->foto3 = $row['foto3'];
         $this->fechaGrabo = $row['fecha_grabo'];
         $this->fechaModifico = $row['fecha_modifico'];
         $this->cveModifico = $row['cve_modifico'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #12
0
 function cargar()
 {
     $sql = "SELECT * FROM eventos WHERE cve_evento = {$this->cveEvento}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cveEvento = $row['cve_evento'];
         $this->cveReata = $row['cve_reata'];
         $this->nombre = $row['nombre'];
         $this->foto1 = $row['foto1'];
         $this->foto2 = $row['foto2'];
         $this->foto3 = $row['foto3'];
         $this->foto4 = $row['foto4'];
         $this->dataLs1 = $row['data_ls1'];
         $this->dataLs2 = $row['data_ls2'];
         $this->dataLs3 = $row['data_ls3'];
         $this->link = $row['link'];
         $this->pdf = $row['pdf'];
         $this->fechaGrabo = $row['fecha_grabo'];
         $this->fechaModifico = $row['fecha_modifico'];
         $this->cveModifico = $row['cve_modifico'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #13
0
 function cargar()
 {
     $sql = "SELECT * FROM calendario_actividades WHERE cve_calendario = {$this->cve_calendario}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cve_calendario = $row['cve_calendario'];
         $this->cve_actividad = new Actividad($row['cve_actividad']);
         $this->fecha_inicio = $row['fecha_inicio'];
         $this->fecha_fin = $row['fecha_fin'];
         $this->lugar = $row['lugar'];
         $this->cve_municipio = new Municipio($row['cve_estado'], $row['cve_municipio']);
         $this->imagen_portada = $row['imagen_portada'];
         $this->precio = $row['precio'];
         $this->cupo_maximo = $row['cupo_maximo'];
         $this->observaciones = $row['observaciones'];
         $this->fecha_alta = $row['fecha_alta'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #14
0
 function cargar()
 {
     $sql = "SELECT * FROM clasificaciones_tramites WHERE cve_clasificacion_tramite = {$this->cveClasificacionTramite}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cveClasificacionTramite = $row['cve_clasificacion_tramite'];
         $this->nombre = $row['nombre'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #15
0
 function cargar()
 {
     $sql = "SELECT * FROM tipos_dependencia WHERE cve_tipo_dependencia = {$this->cveTipoDependencia}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cveTipoDependencia = $row['cve_tipo_dependencia'];
         $this->nombre = $row['nombre'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #16
0
 function cargar()
 {
     $sql = "SELECT * FROM el_reaton WHERE cve_reata = {$this->cveReata}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cveReata = $row['cve_reata'];
         $this->nombreCompleto = $row['nombre_completo'];
         $this->habilitado = $row['habilitado'];
         $this->fresita = $row['fresita'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }
예제 #17
0
 function cargar()
 {
     $sql = "SELECT * FROM documentacion_transparencia WHERE cve_expediente = {$this->cveExpediente}";
     $rst = UtilDB::ejecutaConsulta($sql);
     foreach ($rst as $row) {
         $this->cveArticulo = $row['cve_articulo'];
         $this->cveFraccion = $row['cve_fraccion'];
         $this->cveInciso = $row['cve_inciso'];
         $this->cveApartado = $row['cve_apartado'];
         $this->cveClasificacion = $row['cve_clasificacion_apartado'];
         $this->anio = $row['anio'];
         $this->trimestre = $row['trimestre'];
         $this->cveExpediente = $row['cve_expediente'];
         $this->cveReata = $row['cve_reata'];
         $this->descripcion = $row['descripcion'];
         $this->expediente = $row['expediente'];
         $this->folio = $row['folio'];
         $this->respuesta = $row['respuesta'];
         $this->anexo = $row['anexo'];
         $this->pdf = $row['pdf'];
         $this->infomex = $row['infomex'];
         $this->solicitud = $row['solicitud'];
         $this->fechaActualizacionDocumento = $row['fecha_actualizacion_documento'];
         $this->fechaGrabo = $row['fecha_grabo'];
         $this->fechaModifico = $row['fecha_modifico'];
         $this->cveModifico = $row['cve_modifico'];
         $this->activo = $row['activo'];
         $this->_existe = true;
     }
     $rst->closeCursor();
 }