public function listaParentescoPaciente($codPersonaTitular) { $o_TablaHtmlx = new tablaDHTMLX(); $o_LPersona = new LPersona(); $arrayFilas = $o_LPersona->listaParentescoPaciente($codPersonaTitular); $arrayFilas = is_array($arrayFilas) ? $arrayFilas : array(); $cboParemtesco = $o_LPersona->listaParentesco(); $cboParemtesco = is_array($cboParemtesco) ? $cboParemtesco : array(); $grabar = true; $eliminar = true; if (isset($_SESSION["permiso_formulario_servicio"][110]["GRABAR_PARENTESCO_PAC"]) && $_SESSION["permiso_formulario_servicio"][110]["GRABAR_PARENTESCO_PAC"] == 1) { $grabar = false; } if (isset($_SESSION["permiso_formulario_servicio"][110]["ELIMINAR_PARENTESCO_PAC"]) && $_SESSION["permiso_formulario_servicio"][110]["ELIMINAR_PARENTESCO_PAC"] == 1) { $eliminar = false; } $arrayCabecera = array(0 => "iidParentescoDePersona", 1 => "cCodigoPersonaPrincipal", 2 => "Código", 3 => "Persona", 4 => "idParentesco", 5 => "Parentesco", 6 => "Grabar", 7 => "Eliminar"); $arrayTamanio = array(0 => "70", 1 => "70", 2 => "70", 3 => "250", 4 => "60", 5 => "200", 6 => "50", 7 => "70"); $arrayTipo = array(0 => "ro", 1 => "ro", 2 => "ro", 3 => "ro", 4 => "ro", 5 => "co", 6 => "img", 7 => "img"); $arrayCursor = array(0 => "default", 1 => "default", 2 => "default", 3 => "default", 4 => "default", 5 => "default", 6 => "default", 7 => "default"); $arrayHidden = array(0 => "true", 1 => "true", 2 => "false", 3 => "false", 4 => "true", 5 => "false", 6 => $grabar, 7 => $eliminar); $arrayAling = array(0 => "left", 1 => "left", 2 => "center", 3 => "center", 4 => "center", 5 => "center", 6 => "center", 7 => "center"); return $o_TablaHtmlx->generaTablaFullCombo($arrayCabecera, $arrayFilas, $arrayTamanio, $arrayTipo, $arrayCursor, $arrayHidden, $arrayAling, $cboParemtesco); }