Example #1
0
function EditarAsunto($ids)
{
    $asunto_g = utf8_decode($_REQUEST['asunto']);
    $sql = "UPDATE documentos\r\n\t\t\tSET asunto_documento='" . $asunto_g . "'\r\n\t\t\tWHERE id_documento=" . $ids;
    $query = new Consulta($sql);
    return $query->RespuestaConsulta();
}
function ObtenerAbreviaturaArea()
{
    $sql = "Select abve_nombre_area as abreviatura\r\n\t\t\tFROM areas\r\n\t\t\tWHERE id_area=" . $_SESSION['session'][5];
    $query_sql = new Consulta($sql);
    $row = $query_sql->verRegistro();
    return $row["abreviatura"];
}
Example #3
0
 function getMiRol()
 {
     $sql = "SELECT\r\n\t\t\t\tr.id_rol\r\n\t\t\t\tFROM\r\n\t\t\t\trol AS r\r\n\t\t\t\tInner Join usuarios AS u ON r.id_rol = u.id_rol\r\n\t\t\t\tWHERE\r\n\t\t\t\tu.id_usuario =  '" . $_SESSION['session'][0] . "'";
     $query = new Consulta($sql);
     $row = $query->ConsultaVerRegistro();
     return $row["id_rol"];
 }
    function FichaMeses()
    {
        $this->anpid = $anpid;
        $this->axo_poa = $axo_poa;
        $this->id_user = $id_user;
        $sql = "SELECT m.*\r\nFROM\r\n`programacion_partidas_meses` AS `ppm`\r\nInner Join `programacion_partidas` AS `pp` ON `ppm`.`id_programacion_partidas` = `pp`.`id_programacion_partidas`\r\nInner Join `asignacion_ff_anp_objetivos` AS `afao` ON `afao`.`id_asignacion_ff_anp_objetivos` = `pp`.`id_ff_anp_subactividad`\r\nInner Join `asignacion_anp_objetivos` AS `aao` ON `aao`.`id_asignacion_anp_objetivos` = `afao`.`id_asignacion_anp_objetivos`\r\nInner Join `presupuesto_anp` AS `pa` ON `pa`.`id_presupuesto_anp` = `afao`.`id_presupuesto_anp`\r\nInner Join `presupuesto_ff` AS `pf` ON `pf`.`id_presupuesto_ff` = `pa`.`id_presupuesto_ff`\r\nInner Join `fuente_financiamiento` AS `ff` ON `ff`.`id_ff` = `pf`.`id_ff`\r\nInner Join `anp_objetivo_especifico` AS `aoesp` ON `aoesp`.`id_anp_objetivo_especifico` = `aao`.`id_anp_objetivo_especifico`\r\nInner Join `tarea` AS `t` ON `t`.`id_tarea` = `aao`.`id_tarea`\r\nInner Join `anp_objetivo_estrategico` AS `aoest` ON `aoest`.`id_anp_objetivo_estrategico` = `aoesp`.`id_anp_objetivo_estrategico`\r\nInner Join `objetivo_estrategico` AS `oe` ON `oe`.`id_objetivo_estrategico` = `aoest`.`id_objetivo_estrategico`\r\nInner Join `mes` AS `m` ON `ppm`.`id_mes` = `m`.`id_mes`\r\nWHERE\r\n`aao`.`id_anp` =  '" . $anpid . "' AND\r\n`aao`.`id_axo_poa` =  '" . $axo_poa . "'\r\n\r\nGROUP BY\r\n`ppm`.`id_mes`";
        $Q_m = new Consulta($sql);
        ?>
		
			
			
	<style type="text/css">
<!--
.Estilo1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bold;
}
body {
	background-color: #c0cccc;
}
body,td,th {
	color: #333300;
}
-->
    </style>
<form id="form1" name="form1" method="post" action="">
  <label>
  <div align="center"><span class="Estilo1">Seleccione el Mes</span><br />
    <select name="idmes" onchange="submit()">
      <option value="0">Elija el Mes</option>
	 <?php 
        while ($row_m = $Q_m->ConsultaVerRegistro()) {
            if ($_POST[idmes] == $row_m[0]) {
                $select = "selected";
            } else {
                $select = "";
            }
            ?>
	
						<option value="<?php 
            echo $row_m[0];
            ?>
" <?php 
            echo $select;
            ?>
 ><?php 
            echo $row_m[1];
            ?>
</option><?php 
        }
        ?>
 
    </select>
  </div>
  </label>
</form>		
	<?php 
    }
 function getReferencia()
 {
     $sql = "SELECT\r\n\t\t\t\tdf.id_referencia_finalizado,\r\n\t\t\t\tdf.descripcion\r\n\t\t\t\tFROM\r\n\t\t\t\treferencia_finalizado AS df\r\n\t\t\t\tWHERE\r\n\t\t\t\tdf.id_documento_finalizado =  '{$this->_id}'";
     $query = new Consulta($sql);
     while ($row = $query->VerRegistro()) {
         $referencias[] = array('id' => $row['id_referencia_finalizado'], 'descripcion' => $row['descripcion']);
     }
     return $referencias;
 }
Example #6
0
function ActualizarEstado($ids)
{
    ///////////////////////////////// big
    $sql_x = " INSERT INTO documento_estado_CI (id_documento,estado,fech_hor) VALUES ('" . $_REQUEST["ids"] . "'," . $_REQUEST["est"] . ",'" . date("Y-m-d H:i:s") . "')";
    $query_x = new Consulta($sql_x);
    /////////////////////////////////
    $sql_d = "INSERT INTO arch_documento_archivo (id_documento, fecha, id_estado)\r\n\t\t\t  VALUES ('" . $_REQUEST["ids"] . "','" . date("Y-m-d H:i:s") . "'," . $_REQUEST["est"] . ")";
    $query_d = new Consulta($sql_d);
    return $query_d->RespuestaConsulta();
}
Example #7
0
 function getAcciones($cat, $usu)
 {
     $return;
     $sql = "SELECT\r\n\t\t\t\ta.id_accion,\r\n\t\t\t\ta.nombre_accion\r\n\t\t\t\tFROM\r\n\t\t\t\taccion_categoria AS ac\r\n\t\t\t\tInner Join categoria AS c ON c.id_categoria = ac.id_categoria\r\n\t\t\t\tInner Join accion AS a ON ac.id_accion = a.id_accion\r\n\t\t\t\tWHERE\r\n\t\t\t\tc.id_categoria =  '{$cat}'  AND\r\n\t\t\t\ta.estado_accion = 1 AND \r\n\t\t\t\tac.id_accion NOT IN  (\r\n\t\t\t\tSELECT id_accion\r\n\t\t\t\tFROM\r\n\t\t\t\tacciones_deshabilitadas_usuario\r\n\t\t\t\tWHERE\r\n\t\t\t\tid_usuario = '{$usu}' AND\r\n\t\t\t\tc.id_pagina = id_pagina\r\n\t\t\t\t)\r\n\t\t\t\tORDER BY nombre_accion\r\n\t\t\t\t";
     $query = new Consulta($sql);
     while ($row = $query->VerRegistro()) {
         $return[] = array('id' => $row['id_accion'], 'nombre' => $row['nombre_accion']);
     }
     return $return;
 }
 function getObjetivosEstrategicos()
 {
     $result;
     $sql = "SELECT * FROM objetivo_estrategico  ";
     $query = new Consulta($sql);
     while ($row = $query->ConsultaVerRegistro()) {
         $result[] = array('id' => $row['id_objetivo_estrategico'], 'nombre' => $row['nombre_objetivo_estrategico'], 'codigo' => $row['codigo_objetivo_estrategico'], 'indicador' => $row['indicador_objetivo_estrategico'], 'unidad_medida' => $row['id_unidad_medida']);
     }
     return $result;
 }
Example #9
0
 function getUsuarios()
 {
     $return;
     $sql = " SELECT * FROM usuarios u WHERE id_area= '" . $this->_id . "' AND estado_usuario = 1 ";
     $query = new Consulta($sql);
     while ($row = $query->VerRegistro()) {
         $return[] = array('id' => $row['id_usuario'], 'nombre' => $row['nombre_usuario'], 'apellidos' => $row['apellidos_usuario'], 'email' => $row['email_usuario']);
     }
     return $return;
 }
 function mostrar_PresupuestoMensual($ftefto)
 {
     $gsqlp = $this->SqlFtt($ftefto);
     $sqlg = $gsqlp;
     $selmescampos = $this->setsql($gsqlp);
     //OBJ Estrat ///////////////////////////////////////////////////////////////////////
     //die ()
     $sqlprg = $this->set_sql("oe.*", $gsqlp, "oe.id_objetivo_estrategico", "codigo_objetivo_estrategico");
     $query = new Consulta($sqlprg);
     while ($row_prg = $query->ConsultaVerRegistro()) {
         //$prg=table_row($row_prg[id_programa],"objetivo_estrategico");
         $prg[total_monto] = $row_prg[total_monto];
         $gsqlsp = $gsqlp . " AND oe.id_objetivo_estrategico='" . $row_prg[id_objetivo_estrategico] . "'";
         $this->setsql($gsqlsp);
         $this->registro_programa($row_prg, $ftefto);
         //SUB PROGRAMA///////////////////////////////////////////////////////////////////////
         $sql_sb = $this->set_sql("aoesp.*", $gsqlsp, "aoesp.id_anp_objetivo_especifico ", "codigo_objetivo_especifico");
         $query_sb = new Consulta($sql_sb);
         while ($row_sb = $query_sb->ConsultaVerRegistro()) {
             //$sbprg=table_row($row_sb[id_subprograma],"subprograma");
             $gsqla = $gsqlsp . " AND aoesp.id_anp_objetivo_especifico='" . $row_sb[id_anp_objetivo_especifico] . "'";
             $this->setsql($gsqla);
             //regitro sub programa
             $this->registro_subprograma($row_prg, $row_sb, $ftefto);
             //ACTIVIDAD///////////////////////////////////////////////////////////////////////
             $sql_a = $this->set_sql("t.*,aao.*,afao.*", $gsqla, "t.id_tarea", "nro_asignacion");
             $query_a = new Consulta($sql_a);
             while ($row_a = $query_a->ConsultaVerRegistro()) {
                 //$actividad=table_row($row_a[id_actividad],"actividad");
                 $gsqlsa = $gsqla . "  AND t.id_tarea='" . $row_a[id_tarea] . "'";
                 $this->setsql($gsqlsa);
                 $this->registro_actividad($row_prg, $row_sb, $row_a, $ftefto);
                 /*		//SUB ACTIVIDAD ///////////////////////////////////////////////////////////////////////
                 									$sql_sa=$this->set_sql("sa.id_subactividad, sa.nombre_subactividad,
                 											 sa.codigo_completo_subactividad, asb.id_anp_subactividad, asb.id_anp,asb.id_axo_poa ",
                 											 $gsqlsa,	"fas.id_anp_subactividad","sa.id_subactividad");
                 				//die($sql_sa);							
                 											$query_sa=new Consulta($sql_sa);
                 											while($row_sa=$query_sa->ConsultaVerRegistro()){ 
                 												$gsqlsaa= $gsqlsa." AND sa.id_subactividad='".$row_sa[id_subactividad]."'";
                 												$this->setsql($gsqlsaa);
                 												$this->registro_subactividad($row_sa,$ftefto);
                 											}//fin SubActividad*/
             }
             // fin actividad
         }
         //fin sub programa
     }
     //fin programa
     $this->setsql($sqlg);
     $this->fin_de_registros($ftefto);
 }
 function UnidadMedida($id = 0)
 {
     $this->id = $id;
     if ($this->id > 0) {
         $sql = " SELECT * FROM unidad_medida";
         $query = new Consulta($sql);
         if ($query->numregistros() > 0) {
             $row = $query->ConsultaVerRegistro();
             $this->nombre = $row['nombre_unidad_medida'];
             $this->descripcion = $row['descripcion_unidad_medida'];
         }
     }
 }
Example #12
0
 function Estado($id = 0)
 {
     $this->_id = $id;
     if ($this->_id > 0) {
         $sql = "SELECT * FROM estados WHERE id_estado = '" . $this->_id . "'";
         $query = new Consulta($sql);
         if ($query->NumeroRegistros()) {
             $row = $query->VerRegistro();
             $this->_nombre = $row['nombre_estado'];
             $this->_abreviatura = $row['abrev_nombre_estado'];
         }
     }
 }
Example #13
0
 function Anp($id = 0)
 {
     $this->_id = $id;
     if ($this->_id > 0) {
         $sql = "SELECT * FROM areaspro_dbsiganp1.anp WHERE id_anp = '" . $this->_id . "'";
         $query = new Consulta($sql);
         if ($query->NumeroRegistros()) {
             $row = $query->VerRegistro();
             $this->_nombre = $row['nombre_anp'];
             $this->_siglas = $row['siglas_anp'];
         }
     }
 }
 function TipoDocumento($id = 0)
 {
     $this->_id = $id;
     if ($this->_id > 0) {
         $sql = "SELECT * FROM tipos_documento WHERE id_tipo_documento = '" . $this->_id . "'";
         $query = new Consulta($sql);
         if ($query->NumeroRegistros()) {
             $row = $query->VerRegistro();
             $this->_nombre = $row['nombre_tipo_documento'];
             $this->_abreviatura = $row['abreviatura_tipo_documento'];
         }
     }
 }
Example #15
0
 function Pagina($id = 0)
 {
     $this->_id = $id;
     if ($this->_id > 0) {
         $sql = "SELECT * FROM paginas WHERE id_pagina = '" . $this->_id . "'";
         $query = new Consulta($sql);
         if ($query->NumeroRegistros()) {
             $row = $query->VerRegistro();
             $this->_nombre = $row['nombre_pagina'];
             $this->_url = $row['url_pagina'];
         }
     }
 }
 function inserir($cpf, $dataHora, $medico)
 {
     require_once "../modelo/Paciente.php";
     $paciente = new Paciente();
     if (!$paciente->verificaExistencia($cpf)) {
         echo "<script>alert('Paciente não localizado');</script>";
     } else {
         require_once "../modelo/Consulta.php";
         $paciente->buscaCpf($cpf);
         $consulta = new Consulta();
         $consulta->inserir($paciente->getId(), $dataHora, $medico);
         echo "<script>alert('Consulta cadastrada com sucesso!');</script>";
     }
 }
Example #17
0
 function Remitente($id = 0)
 {
     $this->_id = $id;
     if ($this->_id > 0) {
         $sql = "SELECT * FROM remitentes WHERE id_remitente = '" . $this->_id . "'";
         $query = new Consulta($sql);
         if ($query->NumeroRegistros()) {
             $row = $query->VerRegistro();
             $this->_nombre = $row['nombre_remitente'];
             $this->_abreviatura = $row['abreviatura_remitente'];
             $this->_tipo = $row['tipo_remitente'];
         }
     }
 }
Example #18
0
 function Prioridad($id = 0)
 {
     $this->_id = $id;
     if ($this->_id > 0) {
         $sql = "SELECT * FROM prioridades WHERE id_prioridad = '" . $this->_id . "'";
         $query = new Consulta($sql);
         if ($query->NumeroRegistros()) {
             $row = $query->VerRegistro();
             $this->_nombre = $row['nombre_prioridad'];
             $this->_tiempo_horas_respuesta = $row['tiempo_horas_respuesta_prioridad'];
             $this->_color = $row['color_prioridad'];
         }
     }
 }
Example #19
0
 public function Login()
 {
     $post = array('Name' => filter_input('POST', 'name', FILTER_SANITIZE_STRING), 'Pass' => filter_input('POST', 'password', FILTER_SANITIZE_STRING));
     if (empty($post)) {
         try {
             $mdl = new Consulta();
             $mdl->Verificar($post);
         } catch (RuntimeException $e) {
             echo $e->getMessage();
         } catch (DomainException $e) {
             echo '<strong>Error ' . $e->getCode() . '</strong>: ' . $e->getMessage();
         }
     }
 }
Example #20
0
 function IndiceListarModulos($id = '')
 {
     if (empty($id)) {
         $sql = "select * from modulos ORDER BY id_modulo";
     } else {
         $sql = "select * from modulos where id_modulo ='{$id}' ORDER BY id_modulo";
     }
     $query = new Consulta($sql);
     if ($query->numcampos() > 0) {
         while ($rows = $query->ConsultaVerRegistro()) {
             $prg[] = array('id' => $rows['id_modulo'], 'nombre' => $rows['nombre_modulo'], 'descripcion' => $rows['descripcion_modulo'], 'carpeta' => $rows['carpeta_modulo']);
         }
     }
     return $prg;
 }
Example #21
0
 function Accion($id = 0)
 {
     $this->_id = $id;
     if ($this->_id > 0) {
         $sql = "SELECT * FROM accion WHERE id_accion = '" . $this->_id . "'";
         $query = new Consulta($sql);
         if ($query->NumeroRegistros()) {
             $row = $query->VerRegistro();
             $this->_nombre = $row['nombre_accion'];
             $this->_abreviatura = $row['abreviatura_accion'];
             $this->_descripcion = $row['descripcion_accion'];
             $this->_estado = $row['estado_accion'];
         }
     }
 }
Example #22
0
function GuardarFinalizado($cod, $id, $tipo)
{
    $fecha_actual = time() - 3600;
    $fecha = date("Y-m-d H:i:s", $fecha_actual);
    $sql = "UPDATE documento_finalizado\r\n\t\t\tSET \r\n\t\t\tcodigo_documento_finalizado='" . $cod . "',\r\n\t\t\tfecha_finalizado = '" . $fecha . "'\r\n\t\t\tWHERE id_documento_finalizado=" . $id;
    $query = new Consulta($sql);
    if ($query->RespuestaConsulta()) {
        $sql_u = "SELECT ultimo_numero\r\n\t\t\t\t  FROM numero_documentos_respuesta\r\n\t\t\t\t  WHERE tipo_documento = " . $tipo;
        $query_u = new Consulta($sql_u);
        $row_u = $query_u->ConsultaVerRegistro();
        $ultimo = $row_u["ultimo_numero"];
        $sql_n = "UPDATE numero_documentos_respuesta\r\n\t\t\t\t SET ultimo_numero='" . ($ultimo + 1) . "'\r\n\t\t\t\t WHERE tipo_documento=" . $tipo;
        $query_n = new Consulta($sql_n);
    }
    return $query_n->RespuestaConsulta();
}
Example #23
0
 private static function parametrosResultadosAND()
 {
     $query = Input::get('query');
     $data['query'] = $query;
     $data['enderecoColecao'] = Colecao::getEnderecoColecaoAtual();
     $data['viewName'] = 'site.resultados.index';
     $data['scriptName'] = 'site.resultados.script';
     $data['postings'] = Consulta::executar($query);
     return $data;
 }
Example #24
0
    function carga_combo($sql, $nom, $next = '', $msg_d = '-- Seleccione --', $msg_v = '-- Sin Opciones --')
    {
        $q = new Consulta($sql);
        if ($q->numregistros() == 0) {
            ?>
			<select name="<?php 
            echo $nom;
            ?>
"><option value=''><?php 
            echo $msg_v;
            ?>
</option></select>
<?php 
        } else {
            ?>
	<select name="<?php 
            echo $nom;
            ?>
" onchange="carga_combo(this,'<?php 
            echo $next;
            ?>
')" > 
		<option value='' selected ><?php 
            echo $msg_d;
            ?>
</option>
		<?php 
            while ($r = $q->ConsultaVerRegistro()) {
                ?>
			<option value='<?php 
                echo $r[0];
                ?>
'><?php 
                echo urlencode($r[1]);
                ?>
</option>
		<?php 
            }
            ?>
</select><?php 
        }
        //if hay registros
    }
 function mostrar_Presupuesto()
 {
     $gsqlp = $this->SqlFtt($this->ftefto);
     $sqlg = $gsqlp;
     $this->setsql($gsqlp);
     //Partida ///////////////////////////////////////////////////////////////////////
     $sqlprtd = $this->set_sql("pp.id_partida, codigo_partida,nombre_partida", $gsqlp, "pp.id_partida", "partida.codigo_partida", "partida");
     //die ($sqlprtd);
     $query = new Consulta($sqlprtd);
     while ($row_prtd = $query->ConsultaVerRegistro()) {
         $gsqlsp = $gsqlp . " AND pp.id_partida='" . $row_prtd[id_partida] . "'";
         $this->setsql($gsqlsp);
         //die ($this->sql);
         $this->registro_partida($row_prtd);
     }
     //fin Partida
     $this->setsql($sqlg);
     $this->fin_de_registros();
 }
Example #26
0
 function Borrador($id = 0)
 {
     $this->_id = $id;
     if ($this->_id > 0) {
         $sql = "SELECT\r\n                    b.id_borrador_respuesta AS id,\r\n                    b.id_documento AS id_documento,\r\n                    b.id_usuario AS id_usuario,\r\n                    b.descripcion_borrador_respuesta AS descripcion,\r\n                    b.fecha_borrador_respuesta AS fecha,\r\n                    b.categoria AS categoria,\r\n                    b.id_accion AS id_accion,\r\n                    b.id_area AS id_area,\r\n                    b.id_destino AS id_destino,\r\n                    b.aprobacion_respuesta_borrador AS aprobacion\r\n                    FROM\r\n                    borradores_respuesta AS b\r\n                    WHERE\r\n                    b.id_borrador_respuesta =  '{$this->_id}'";
         $query = new Consulta($sql);
         if ($query->NumeroRegistros()) {
             $row = $query->VerRegistro();
             $this->_id_documento = $row['id_documento'];
             $this->_id_usuario = $row['id_usuario'];
             $this->_decripcion = $row['descripcion'];
             $this->_fecha = $row['fecha'];
             $this->_categoria = $row['categoria'];
             $this->_id_accion = $row['id_accion'];
             $this->_id_area = $row['id_area'];
             $this->_id_destino = $row['id_destino'];
             $this->_aprobacion = $row['aprobacion'];
         }
     }
 }
 function mostrar_Presupuesto()
 {
     $gsqlp = $this->SqlFts;
     $sqlg = $gsqlp;
     $this->setsql($gsqlp);
     //OBJ Estrat ///////////////////////////////////////////////////////////////////////
     //die ()
     $sqlprg = $this->set_sql("oe.*,m.*", $gsqlp, "oe.id_objetivo_estrategico", "codigo_objetivo_estrategico");
     $query = new Consulta($sqlprg);
     while ($row_prg = $query->ConsultaVerRegistro()) {
         //$prg=table_row($row_prg[id_programa],"objetivo_estrategico");
         $prg[total_monto] = $row_prg[total_monto];
         $gsqlsp = $gsqlp . " AND m.id_mes='" . $_POST[idmes] . "' and oe.id_objetivo_estrategico='" . $row_prg[id_objetivo_estrategico] . "'";
         $this->setsql($gsqlsp);
         $this->registro_programa($row_prg, $ftefto);
         //OBJETIVO ESPECIFICO///////////////////////////////////////////////////////////////////////
         $sql_sb = $this->set_sql("aoesp.*,m.*", $gsqlsp, "aoesp.id_anp_objetivo_especifico ", "codigo_objetivo_especifico");
         $query_sb = new Consulta($sql_sb);
         while ($row_sb = $query_sb->ConsultaVerRegistro()) {
             //$sbprg=table_row($row_sb[id_subprograma],"subprograma");
             $gsqla = $gsqlsp . " AND aoesp.id_anp_objetivo_especifico= '" . $row_sb[id_anp_objetivo_especifico] . "' AND m.id_mes='" . $_POST[idmes] . "'";
             $this->setsql($gsqla);
             //regitro sub programa
             $this->registro_subprograma($row_prg, $row_sb, $ftefto);
             //TAREA///////////////////////////////////////////////////////////////////////
             $sql_a = $this->set_sql("t.*,aao.*,afao.*,m.*", $gsqla, "t.id_tarea", "aao.nro_asignacion");
             $query_a = new Consulta($sql_a);
             while ($row_a = $query_a->ConsultaVerRegistro()) {
                 //$actividad=table_row($row_a[id_actividad],"actividad");
                 $gsqlsa = $gsqla . "  AND t.id_tarea='" . $row_a[id_tarea] . "'  AND m.id_mes='" . $_POST[idmes] . "'";
                 $this->setsql($gsqlsa);
                 $this->registro_actividad($row_prg, $row_sb, $row_a, $ftefto);
             }
             // fin actividad
         }
         //fin sub programa
     }
     //fin programa
     $this->setsql($sqlg);
     $this->fin_de_registros($ftefto);
 }
Example #28
0
 /**
  * Resets all references to other model objects or collections of model objects.
  *
  * This method is a user-space workaround for PHP's inability to garbage collect
  * objects with circular references (even in PHP 5.3). This is currently necessary
  * when using Propel in certain daemon or large-volume/high-memory operations.
  *
  * @param boolean $deep Whether to also clear the references on all referrer objects.
  */
 public function clearAllReferences($deep = false)
 {
     if ($deep && !$this->alreadyInClearAllReferencesDeep) {
         $this->alreadyInClearAllReferencesDeep = true;
         if ($this->aConsulta instanceof Persistent) {
             $this->aConsulta->clearAllReferences($deep);
         }
         $this->alreadyInClearAllReferencesDeep = false;
     }
     // if ($deep)
     $this->aConsulta = null;
 }
 public function pmGetFiltroInfo()
 {
     $ObjetoFiltro = $this->Consulta->getFiltros();
     foreach ($ObjetoFiltro as $obj) {
         $Valores = $obj->getValores();
         $arrayAreas = array();
         foreach ($Valores as $v) {
             $arrayAreas[] = str_replace('-', ' ', $v->getNome());
         }
         $this->gerarSQLFiltro($obj->getFiltro(), $arrayAreas);
     }
 }
Example #30
0
 public function postMovimientos()
 {
     if (!Request::ajax()) {
         $rf = array();
         foreach (Input::all() as $r => $i) {
             $dato[$i] = $r;
         }
         $hash = hash('sha256', $this->acceso . $this->clave . $this->fecha);
         if ($hash == $this->hashg) {
             $r = Consulta::getMovimientos();
             echo json_encode($r);
         } else {
             echo "Error:0002";
         }
     } else {
         echo "Error:0001";
     }
 }