function jsaGetNumeroDeCredito($idsocio) { $xSoc = new cSocio($idsocio); $xSoc->init(); $solicitud = $xSoc->getIDNuevoDocto(iDE_CREDITO); $tab = new TinyAjaxBehavior(); $tab->add(TabSetValue::getBehavior('iidsolicitud', $solicitud)); //tipo de credito y preferencia e pago //Mayo/2014 $xEmp = new cEmpresas($xSoc->getClaveDeEmpresa()); $xEmp->init(); $tab->add(TabSetValue::getBehavior('idtipoconvenio', $xEmp->getProductoPref())); $tab->add(TabSetValue::getBehavior('idperiocidadpagos', $xEmp->getPeriocidadPref())); return $tab->getString(); }
function jsaGetPerfilDeProducto($producto, $persona) { $OConv = new cProductoDeCredito($producto); $OConv->init(); $tab = new TinyAjaxBehavior(); $xSoc = new cSocio($persona); $pagos = $OConv->getNumeroPagosPreferente(); $periocidad = $OConv->getPeriocidadPrefente(); if ($xSoc->init() == true) { if ($xSoc->getClaveDeEmpresa() != FALLBACK_CLAVE_EMPRESA) { $xEmp = new cEmpresas($xSoc->getClaveDeEmpresa()); $xEmp->init(); $tab->add(TabSetValue::getBehavior('idproducto', $xEmp->getProductoPref())); $periocidad = $xEmp->getPeriocidadPref(); } } $tab->add(TabSetValue::getBehavior('idnumerodepagos', $pagos)); $tab->add(TabSetValue::getBehavior('idperiocidad', $periocidad)); return $tab->getString(); }
$xEmp->setActualizarPorPersona(); $msg .= $xEmp->getMessages(); } if (setNoMenorQueCero($empresa) > 0) { $xEmp = new cEmpresas($empresa); $xEmp->init(); if ($xEmp->isInit() == true) { $alias = $xEmp->getNombreCorto(); //$iddirectivo= $iddirectivo = $xEmp->getClaveDeContacto(); $directivo = $xEmp->getNombreContacto(); $idsocio = $xEmp->getClaveDePersona(); $periocidad1 = $xEmp->getPeriocidadPref(); $lstPeriodos = $xEmp->getListaDePeriocidad(); $periocidad2 = isset($lstPeriodos[1]) ? $lstPeriodos[1] : $periocidad1; $producto = $xEmp->getProductoPref(); $mails = $xEmp->getEmailsDeEnvio(); $oficial = $xEmp->getClaveDeOficial(); $mail1 = isset($mails[0]) ? $mails[0] : ""; $mail2 = isset($mails[1]) ? $mails[1] : ""; $mail3 = isset($mails[2]) ? $mails[2] : ""; $diasaviso1 = $xEmp->getDiasDeAviso($periocidad1, MQL_STRING); $diasaviso2 = $xEmp->getDiasDeAviso($periocidad2, MQL_STRING); $diasnomina1 = $xEmp->getDiasDeNomina($periocidad1, MQL_STRING); $diasnomina2 = $xEmp->getDiasDeNomina($periocidad2, MQL_STRING); $diaspago1 = $xEmp->getDiasDePago($periocidad1, MQL_STRING); $diaspago2 = $xEmp->getDiasDePago($periocidad2, MQL_STRING); $step = MQL_MOD; } } function jsaGetNombreDirector($persona)