} else { $expe->regClveAgrupadora($m, $_POST['claveAgrup']); } //crea la entrada en el perfil transaccional $expe->creaPerfilTrans($m, $_POST['txtIngresoMensual'], $_POST['origenRec'], $_POST['actividadeco'], $_POST['destinoRec'], $_POST['montooperaciones'], $_POST['numoperaciones']); //registra el domicilio $dom = $expe->regDomClte($m, $_POST['calle'], $_POST['ave'], $_POST['n_ext'], $_POST['n_int'], $_POST['txtColonia'], $_POST['cp'], $_POST['txtCiudadPoblacion'], $_POST['txtEstado'], "", 1, $_POST['localidad'], $_POST['txtPais'], $_POST['txtTiempoDomicilio'], $_POST['txtTiempoPoblacion'], $_POST['refDom'], "", "", $_POST['tipovivienda']); //registra los detalles del empleo del cliente $expe->regEmpleoClte($m, $_POST['txtEmpresa'], $_POST['txtPueto'], $_POST['txtTelefonoTrabajo'], $_POST['txtExtencion'], $_POST['txtDomicilioTrabajo'], $_POST['txtColoniaTrabajo'], $_POST['txtCiudadPoblacionTrabajo'], $_POST['txtEstadoTrabajo'], $_POST['txtIngresoMensual'], $_POST['txtTiempoTrabajo'], $_POST['txtCorreoTrabajo'], $_POST['txtCodConvenio'], $_POST['txtConvenio'], $_POST['txtExpediente'], $_POST['txtPlaza'], $_POST['txtNoEmpleado'], $_POST['txtSindicato'], $_POST['txtZonaEscolar'], $_POST['txtFiliacion'], $_POST['txtTipoContrato'], $_POST['txtNoPlaza'], $_POST['txtNoFicha'], $_POST['txtCveCentroTrab'], $_POST['txtNoNomina'], $_POST['txtSucursal'], $_POST['txtArea'], $_POST['txtNoPencion']); //detalles socioeconomicos $expe->regDetallesExpe($m, $_POST['profesion'], $_POST['origenRec'], $_POST['destinoRec'], $_POST['pep'], 1, $_POST['cmbEstadoCivil'], $_POST['txtDependientesEconomicos'], $_POST['txtHoraContacto'], $_POST['txtUbicacionNegocio'], $_POST['txtNombreConyuge'], $_POST['txtApellidoPaternoConyuge'], $_POST['txtApellidoMaternoConyuge']); //referencias personales $i = 1; while ($i <= $_POST['numbRefPers']) { //nombre,id_cliente,horaContacto,telefono,relacion $expe->registroRefCltePers($_POST['txtNombreReferencia' . $i], $m, $_POST['txtHoraContactoReferencia' . $i], $_POST['txtTelefonoReferencia' . $i], $_POST['txtRelacion' . $i]); // $expe->regRefCltePers($_POST['txtNombreReferencia'.$i], // $m, $_POST['txtTelefonoReferencia'.$i], '', "", $_POST['txtRelacion'.$i]); $i++; } //referencias comerciales $i = 1; while ($i <= $_POST['numbRefComrs']) { $expe->regRefClteCom($_POST['txtComercio' . $i], $_POST['txtReferenciaComercial' . $i], $m, $_POST['cmbTipoRef' . $i]); $i++; } //adjuntos //identificacion oficial if (!empty($_FILES['identificacionOficial']['name'])) { $name_file = $upo->guardarArchivo('identificacionOficial', $m); // $expe->regAdjuntoExpend($_FILES['identificacionOficial']['name'], $m, $_POST['tipoDocIden']);
function setRefPer($nombres, $idExp, $hrsContacto, $telefono, $relacion) { $ex = new cExpediente(); $ex->registroRefCltePers($nombres, $idExp, $hrsContacto, $telefono, $relacion); // echo "guardado"; }