$id = 0; $nroorden = 0; ///////implementation/////// if (isset($_REQUEST["cmbTipo"])) { $cmbTipo = $_REQUEST["cmbTipo"]; } if (isset($_REQUEST["btnAceptar"])) { $txtfecha1 = $_REQUEST["txtFecha"]; $cantcuota = $_REQUEST["txtcantcuotas"]; $tiempo = $_REQUEST["txtperiodicidadCuotas"]; $txtmonto = $_REQUEST["txtMonto"]; $usuario = $_SESSION["usuario"]; $nroorden = $_SESSION["ArrayCuotasWebForm"]["nroorden"]; $cmbTipo = $_REQUEST["cmbTipo"]; if ($_REQUEST["Accion"] == "ALTA") { if (InsertarCuotas($txtfecha1, $cantcuota, $tiempo, $txtmonto, $usuario, $nroorden, $cmbTipo)) { echo "<script type='text/javascript'> \t\t\t\t\t\n\t\t\t\t\talert('Registro Insertado.');\t\t\t\t\n\t\t\t\t\twindow.location.href = '/AcuerdosWebForm';\n\t\t\t </script>"; } else { echo "<script type='text/javascript'> \n\t\t\t\t\talert('Error: No se pudo insertar el registro.'); \t\t\t\n\t\t\t\t\thistory.go(-1);\t\t\t\t\n\t\t\t\t</script>"; } } } if (isset($_SESSION["ArrayCuotasWebForm"]["nroorden"])) { $Accion = "ALTA"; $nroorden = $_SESSION["ArrayCuotasWebForm"]["nroorden"]; } $cmbTipo = CargarTipo(false, '', 0); $usuario = $_SESSION["usuario"]; if (isset($_SESSION['nroorden'])) { $nroorden = $_SESSION['nroorden']; } else {
RetronaXML("FALLO"); } } catch (Exception $e) { RetronaXML($e->getMessage()); } } if ($_REQUEST['FUNCION'] == "InsertarCuotas") { try { $txtFecha = utf8_decode(ValorParametroRequest('txtFecha')); $cantcuota = utf8_decode(ValorParametroRequest('cantcuota')); $periodicidadCuotas = utf8_decode(ValorParametroRequest('periodicidadCuotas')); $txtMonto = utf8_decode(ValorParametroRequest('txtMonto')); $usuario = utf8_decode(ValorParametroRequest('usuario')); $nroorden = utf8_decode(ValorParametroRequest('nroorden')); $cmbTipo = utf8_decode(ValorParametroRequest('cmbTipo')); $resultado = @InsertarCuotas($txtFecha, $cantcuota, $periodicidadCuotas, $txtMonto, $usuario, $nroorden, $cmbTipo); if ($resultado) { RetronaXML("OK"); } else { RetronaXML("FALLO"); } } catch (Exception $e) { RetronaXML($e->getMessage()); } } if ($_REQUEST['FUNCION'] == "InsertarAcuerdoNuevo") { try { $txtfechavenc = utf8_decode(ValorParametroRequest('txtfechavenc')); $txtmonto = utf8_decode(ValorParametroRequest('txtMonto')); $txtfechapago = utf8_decode(ValorParametroRequest('txtfechapago')); $txtobservaciones = utf8_decode(ValorParametroRequest('txtobservaciones'));