Commit f07d540c by Francis Cornejo

Empezando a arreglar los procesos de referidos externos

parent aa984856
......@@ -170,8 +170,8 @@ for ($i = 0; $i < $NroRegistros; $i++) {
<th> Validar Muestra</th>
<th id='colnewdate_' class='hide_me newdate'>Nueva Cita</th>";
//echo "solicitud ".$row['idsolicitudestudio'];
if ($refext=='t')
echo "<th > Lugar de Realización</th>";
/*if ($refext=='t')
echo "<th > Lugar de Realización</th>";*/
echo "</tr></thead><tbody>";
......@@ -241,7 +241,7 @@ for ($i = 0; $i < $NroRegistros; $i++) {
echo '<td id="colnewdate_" class="hide_me newdate" style="width:100px"> <div id="divnewdate_'.$k.'" style="display:none"></div></td>';
if ($refext=='t'){
/* if ($refext=='t'){
if ($rows['id_area']!=14){
echo "<td class='th-info' style='text-align:left !important;'>".$nestab."</td>";
......@@ -262,7 +262,7 @@ for ($i = 0; $i < $NroRegistros; $i++) {
echo "</td>";
}
}
}*/
echo "</tr>";
$k++;
......
......@@ -31,6 +31,11 @@ switch ($opcion) {
$referido = $_POST['referido'];
$return_='';
$enviohl7= $Comunicacion->ConsultaEnvioHL7($lugar);
$procref=$object->BuscarProcReferido();
while ($row_pl=@pg_fetch_array($procref)){
if($row_pl['id_proceso_laboratorio']==10)
$refext=$row_pl['activo'];
}
if ($con->conectar() == true) {
$query = "UPDATE sec_solicitudestudios "
......@@ -96,8 +101,13 @@ switch ($opcion) {
$result3=pg_query($sql3);
$rowtmu= pg_fetch_array($result3);
//14 es examen referido
if ($rowtmu[0]==14)
if ($rowtmu[0]==14){
if ($refext=='t')
$idestado='PR';
else {
$idestado='RC';
}
}
else
$idestado = 'PM';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment