$xEmp = new cEmpresas($empresa); $xEmp->init(); $dias_aviso = $xEmp->getConjugarPeriodo($periocidad1, $diasaviso1) . $xEmp->getConjugarPeriodo($periocidad2, $diasaviso2); $dias_pago = $xEmp->getConjugarPeriodo($periocidad1, $diaspago1) . $xEmp->getConjugarPeriodo($periocidad2, $diaspago2); $dias_nomina = $xEmp->getConjugarPeriodo($periocidad1, $diasnomina1) . $xEmp->getConjugarPeriodo($periocidad2, $diasnomina2); $msg .= $xEmp->getMessages(); $xOEmp = new cSocios_aeconomica_dependencias(); $xOEmp->setData($xOEmp->query()->initByID($empresa)); $xOEmp->dias_de_avisos($dias_aviso); $xOEmp->dias_de_liquidacion($dias_pago); $xOEmp->dias_de_pago_nomina($dias_nomina); $xOEmp->directivo_principal($directivo); $xOEmp->clave_de_directivo($iddirectivo); $xOEmp->periocidad_de_avisos($periocidad1); $xOEmp->oficial_que_cierra($oficial); $xOEmp->nombre_corto($alias); $xOEmp->producto_preferente($producto); $xOEmp->email_de_envio($emails); $xOEmp->clave_de_persona($idsocio); $xOEmp->query()->update()->save($empresa); $xEmp = new cEmpresas($empresa); $xEmp->init(); $xEmp->setActualizarPorPersona(); $msg .= $xEmp->getMessages(); } if (setNoMenorQueCero($empresa) > 0) { $xEmp = new cEmpresas($empresa); $xEmp->init(); if ($xEmp->isInit() == true) { $alias = $xEmp->getNombreCorto(); //$iddirectivo=
function obj() { $mObj = null; switch ($this->mTabla) { case TPERSONAS_RELACIONES: $mObj = new cSocios_relaciones(); break; case TBANCOS_CUENTAS: $mObj = new cBancos_cuentas(); break; case TOPERACIONES_RECIBOS: $mObj = new cOperaciones_recibos(); break; case TOPERACIONES_MVTOS: $mObj = new cOperaciones_mvtos(); break; case TBANCOS_OPERACIONES: $mObj = new cBancos_operaciones(); break; case TBANCOS_CUENTAS: $mObj = new cBancos_cuentas(); break; case TCREDITOS_REGISTRO: $mObj = new cCreditos_solicitud(); break; case TTESORERIA_MVTOS: $mObj = new cTesoreria_cajas_movimientos(); break; case TCATALOGOS_EMPRESAS: $mObj = new cSocios_aeconomica_dependencias(); $this->mCampoDesc = $mObj->nombre_corto()->v(); break; case TCATALOGOS_RELACIONES: $mObj = new cSocios_relacionestipos(); $this->mCampoDesc = $mObj->descripcion_relacionestipos()->get(); break; case TCATALOGOS_ACTIVIDADES_ECONOMICAS: $mObj = new cPersonas_actividad_economica_tipos(); $this->mCampoDesc = $mObj->nombre_de_la_actividad()->get(); break; case TCATALOGOS_LOCALIDADES: $mObj = new cCatalogos_localidades(); $this->mCampoDesc = $mObj->nombre_de_la_localidad()->get(); break; case TCAPTACION_CUENTAS: $mObj = new cCaptacion_cuentas(); break; case TCATALOGOS_PAISES: $mObj = new cPersonas_domicilios_paises(); $this->mCampoDesc = $mObj->nombre_oficial()->get(); break; case TPERSONAS_DIRECCIONES: $mObj = new cSocios_vivienda(); break; case TPERSONAS_GENERALES: $mObj = new cSocios_general(); break; case TPERSONAS_MEMOS: $mObj = new cSocios_memo(); break; case TPERSONAS_PERFIL_TRANSACCIONAL: $mObj = new cPersonas_perfil_transaccional(); break; case TSEGUMIENTO_LLAMADAS: $mObj = new cSeguimiento_llamadas(); break; case TSYSTEM_LOG: $mObj = new cGeneral_log(); break; case TCREDITOS_PRODUCTOS_OTROS_PARAMETROS: $mObj = new cCreditos_productos_otros_parametros(); break; case TPERSONAS_ACTIVIDAD_ECONOMICA: $mObj = new cSocios_aeconomica(); break; case TUSUARIOS_NOTAS: $mObj = new cUsuarios_web_notas(); break; case TAML_PERFIL_RIESGO: $mObj = new cAml_riesgo_perfiles(); break; case TCATALOGOS_GRADO_RIESGO: $mObj = new cAml_risk_levels(); $this->mCampoDesc = $mObj->nombre_del_nivel()->get(); break; case TAML_REGISTRO_DE_RIESGOS: $mObj = new cAml_risk_register(); $this->mCampoDesc = $mObj->mensajes_del_sistema()->get(); break; case TAML_REGISTRO_DE_RIESGOS: $mObj = new cAml_alerts(); $this->mCampoDesc = $mObj->mensaje()->get(); break; default: $mObj = null; break; } if ($mObj != null) { $this->mClavePrincipal = $mObj->getKey(); } return $mObj; }