function setActualizarNivelDeRiesgo($actualizar = false) { $xQL = new MQL(); $xLi = new cSQLListas(); $xLog = new cCoreLog(); //$xLi->getInicialDeCuentas() $rs = $xQL->getDataRecord($xLi->getInicialDePersonas()); foreach ($rs as $rows) { $persona = $rows["codigo"]; $xAml = new cAMLPersonas($persona); $xAml->init($persona, $rows); $riesgo = $xAml->setAnalizarNivelDeRiesgo(); $NivelActual = $xAml->getOPersona()->getNivelDeRiesgo(); if ($riesgo != $NivelActual) { if ($riesgo >= SYS_RIESGO_MEDIO) { $xLog->add($xAml->getMessages(), $xLog->DEVELOPER); } if ($actualizar == true) { $xAml->getOPersona()->setActualizarNivelDeRiesgo($riesgo, $xAml->getMessages()); } $xLog->add($xAml->getOPersona()->getMessages(), $xLog->DEVELOPER); } } return $xLog->getMessages(); }
$xRPT->setSQL($sql); $xRPT->setTitle($xHP->getTitle()); //============ Reporte //$xT = new cTabla($sql, 2); //$xT->setTipoSalida($out); $body = $xRPT->getEncabezado($xHP->getTitle(), $FechaInicial, $FechaFinal); $xRPT->setBodyMail($body); $xRPT->addContent($body); $xCats = new cCatalogoDeDatos(""); $DActividades = $xCats->get("clave_interna", "nombre_de_la_actividad", "personas_actividad_economica_tipos"); $DGenero = $xCats->get("idsocios_genero", "descripcion_genero", "socios_genero"); $DPaises = $xCats->initPorTabla(TCATALOGOS_PAISES); $DRiesgo = $xCats->initPorTabla(TCATALOGOS_GRADO_RIESGO); //$xT->setEventKey("jsGoPanel"); //$xT->setKeyField("creditos_solicitud"); $sql = $xL->getInicialDePersonas() . " WHERE (`personalidad_juridica` = 2 OR `personalidad_juridica` = 5)"; $rs = $query->getDataRecord($sql); $xTa = new cHTabla(); $xDSoc = new cSocios_general(); $xF = new cFecha(); $xTa->initRow(); $xTa->addTH("Sucursal"); $xTa->addTH("Nombre"); $xTa->addTH("Fecha de Constitucion"); $xTa->addTH("Nacionalidad"); $xTa->addTH("RFC"); $xTa->addTH("Actividad economica"); //$xTa->addTH("Puesto o Ocupacion"); $xTa->addTH("Direccion"); $xTa->addTH("Telefono Principal"); $xTa->addTH("Apoderado");
$xRPT->setSQL($sql); $xRPT->setTitle($xHP->getTitle()); //============ Reporte //$xT = new cTabla($sql, 2); //$xT->setTipoSalida($out); $body = $xRPT->getEncabezado($xHP->getTitle(), $FechaInicial, $FechaFinal); $xRPT->setBodyMail($body); $xRPT->addContent($body); $xCats = new cCatalogoDeDatos(""); $DActividades = $xCats->get("clave_interna", "nombre_de_la_actividad", "personas_actividad_economica_tipos"); $DGenero = $xCats->get("idsocios_genero", "descripcion_genero", "socios_genero"); $DPaises = $xCats->initPorTabla(TCATALOGOS_PAISES); $DRiesgo = $xCats->initPorTabla(TCATALOGOS_GRADO_RIESGO); //$xT->setEventKey("jsGoPanel"); //$xT->setKeyField("creditos_solicitud"); $sql = $xL->getInicialDePersonas() . " WHERE (`personalidad_juridica` != 2 AND `personalidad_juridica` != 5)"; $rs = $query->getDataRecord($sql); $xTa = new cHTabla(); $xDSoc = new cSocios_general(); $xF = new cFecha(); $xTa->initRow(); $xTa->addTH("Sucursal"); $xTa->addTH("Primer Apellido"); $xTa->addTH("Segundo Apellido"); $xTa->addTH("Nombre"); $xTa->addTH("Genero"); $xTa->addTH("Fecha de Nacimiento"); $xTa->addTH("Pais de Nacimiento"); $xTa->addTH("Lugar de Nacimiento"); $xTa->addTH("Nacionalidad"); $xTa->addTH("RFC");