public function LbuscarMedico($cod, $estado, $tipoDoc, $nDoc, $apPat, $apMat, $nombre) { $o_DRrhh = new DRrhh(); if ($estado == '') { } if ($cod != '' && $nDoc == '' && $apPat == '') { $rs = $o_DRrhh->getBuscaMedicoXCod($cod); } if ($nDoc != "Buscar..." && $nDoc != '') { $rs = $o_DRrhh->getBuscaMedicoXDoc($tipoDoc, $nDoc); } if ($apPat != '' || $apMat != '' || $nombre != '') { $rs = $o_DRrhh->DBuscaMedico($apPat, $apMat, $nombre, $estado); } // $array = $this->filasEmpleados($rs); $array = array(); $j = 0; foreach ($rs as $fila) { $array[$j][0] = $rs[$j][0]; $array[$j][1] = $rs[$j][1]; if ($rs[$j][3] == '1') { $array[$j][3] = "ACTIVO"; } else { $array[$j][3] = "INACTIVO"; } $array[$j][2] = $rs[$j][2]; $array[$j][4] = $rs[$j][4]; $array[$j][5] = $rs[$j][5]; $array[$j][6] = $rs[$j][6]; $j++; } return $array; }