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(); }
function jsaCargarDatosDeConvenio($convenio) { $OConv = new cProductoDeCredito($convenio); $OConv->init(); $tab = new TinyAjaxBehavior(); $tab->add(TabSetValue::getBehavior('idnumpagos', $OConv->getNumeroPagosPreferente())); if ($OConv->getEsProductoDeNomina() == false) { //false por que lo determina la empresa $tab->add(TabSetValue::getBehavior('idperiocidadpagos', $OConv->getPeriocidadPrefente())); } //$tab -> add(TabSetValue::getBehavior('idnumpagos', $OConv->obj()->pagos_maximo()->v())); return $tab->getString(); }