<%@LANGUAGE="VBSCRIPT"%> <%@LANGUAGE="VBSCRIPT"%> <%@LANGUAGE="VBSCRIPT"%> <% Session.LCID =1033 %> <%'quitar al hacer if session("IDCLIENTE")="" THEN session("IDCLIENTE")="1" %> <% Randomize function ZeroPad(sWork, nDigits) ZeroPad = right(string(nDigits, "0") & trim(sWork), nDigits) end function function GetIndexNumber() sDay = Day(Now()) sMonth = Month(Now()) sYear = Year(Now()) sHour = Hour(Now()) sMinute = Minute(Now()) sSecond = Second(Now()) Tail = Int(1000000 * Rnd) GetIndexNumber = ZeroPad(sYear, 4) & ZeroPad(sMonth, 2) & ZeroPad(sDay, 2) & ZeroPad(sHour, 2) & ZeroPad(sMinute, 2) & ZeroPad(sSecond, 2) & ZeroPad(Tail, 6) end function %> <% ' *** Restrict Access To Page: Grant or deny access to this page MM_authorizedUsers="ADMIN,VENDEDOR,GERENTE,RESP_ZONA,ESPECIALISTA" MM_authFailedURL="login.asp" MM_grantAccess=false If Session("MM_Username") <> "" Then If (false Or CStr(Session("MM_UserAuthorization"))="") Or _ (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then MM_grantAccess = true End If End If If Not MM_grantAccess Then MM_qsChar = "?" If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&" MM_referrer = Request.ServerVariables("URL") if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString() MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer) Response.Redirect(MM_authFailedURL) End If %> <% Dim cot__IDRTA cot__IDRTA = "-1" If (REQUEST("IDRTA") <> "") Then cot__IDRTA = REQUEST("IDRTA") End If %> <% Dim cot Dim cot_numRows Set cot = Server.CreateObject("ADODB.Recordset") cot.ActiveConnection = MM_maq_STRING cot.Source = "SELECT * FROM RENTA WHERE IDRT=" + strreplace(cot__IDRTA, "'", "''") + "" cot.CursorType = 0 cot.CursorLocation = 2 cot.LockType = 1 cot.Open() cot_numRows = 0 %> <%' escribe cookies if request("ULP")<>"" THEN Response.Cookies("DIRECCION")=cstr(request("DIRECCION")) Response.Cookies("CIUDAD")=cstr(request("CIUDAD")) Response.Cookies("ESTADO")=cstr(request("ESTADO")) Response.Cookies("NOMBRE")=cstr(request("NOMBRE")) END IF %> <% ' *** Edit Operations: declare variables Dim MM_editAction Dim MM_abortEdit Dim MM_editQuery Dim MM_editCmd Dim MM_editConnection Dim MM_editTable Dim MM_editRedirectUrl Dim MM_editColumn Dim MM_recordId Dim MM_fieldsStr Dim MM_columnsStr Dim MM_fields Dim MM_columns Dim MM_typeArray Dim MM_formVal Dim MM_delim Dim MM_altVal Dim MM_emptyVal Dim MM_i MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME")) If (Request.QueryString <> "") Then MM_editAction = MM_editAction & "?" & Request.QueryString End If ' boolean to abort record edit MM_abortEdit = false ' query string to execute MM_editQuery = "" %> <% ' *** Insert Record: set variables If (CStr(Request("MM_insert")) = "RENTA") Then SESSION("INS")=TRUE MM_editConnection = MM_maq_STRING MM_editTable = "RENTA" MM_editRedirectUrl = "rentas.asp" MM_fieldsStr = "DOLAR|value|MONEDA|value|FACTURA|value|IDCTE2|value|ID|value|ACUNO|value|EMB|value|OEMB|value|HOROMETRO|value|TIPOPER|value|CANT|value|DIA|value|MES|value|ANIO|value|IMPORTE|value|LETRA|value|CIUDAD|value|ESTADO|value|NOMBRE|value|DIRECCION|value|WHO|VALUE" MM_columnsStr = "DOLAR|none,none,NULL|MONEDA|',none,''|FACTURA|',none,''|IDCTE|',none,''|ID|none,none,NULL|ACUNM|',none,''|EMB|',none,''|OEMB|none,none,NULL|HOROMETRO|',none,''|TIPOPER|none,none,NULL|CANT|none,none,NULL|DIA|none,none,NULL|MES|none,none,NULL|ANIO|none,none,NULL|IMPORTE|none,none,NULL|IMPORTELETRA|',none,''|CIUDAD|',none,''|ESTADO|',none,''|NOMBRE|',none,''|DIRECCION|',none,''|WHO|none,none,NULL" ' create the MM_fields and MM_columns arrays MM_fields = Split(MM_fieldsStr, "|") MM_columns = Split(MM_columnsStr, "|") ' set the form values For i = LBound(MM_fields) To UBound(MM_fields) Step 2 MM_fields(i+1) = CStr(Request.Form(MM_fields(i))) Next 'response.Redirect("es.asp?cmd=inside "+MM_columnsStr ) End If %> <% ' *** Insert Record: set variables If (CStr(Request("MM_insert")) = "sf") Then MM_editConnection = MM_maq_STRING MM_editTable = "COTS" MM_editRedirectUrl = "listcots.asp" MM_fieldsStr = "IDPROSPECTO|value|COMBOS|value|PRECIO|value|PLAZOA|value|LIBOR|value|PRE|value|MONEDA|value|TASAP|value|STDLEG|value|DOLAR|value|STDFIN|value|c6|value|INT|value|ENGPORC|value|ENG|value|c1|value|c2|value|c3|value|c4|value|c5|value|FIN|value|c7|value|IDDBS|value|HORA|value|FECHA|value|who|value|TCOT|value|WARN|value|MENSPL|value|ACUENTA|value|ENGPL|value|PLAZOPL|value|TASAPLANTEO|value|ANP|value" MM_columnsStr = "IDPROSPECTO|none,none,NULL|IDMAQUINA|none,none,NULL|PRECIO|none,none,NULL|PLAZO|none,none,NULL|LIBOR|none,none,NULL|PRE|none,none,NULL|MONEDA|',none,''|TASAP|none,none,NULL|STDLEG|none,none,NULL|DOLAR|none,none,NULL|STDFIN|none,none,NULL|C6|none,none,NULL|AINT|none,none,NULL|ENGPORC|',none,''|ENG|none,none,NULL|C1|none,none,NULL|C2|none,none,NULL|C3|none,none,NULL|C4|none,none,NULL|C5|none,none,NULL|FIN|none,none,NULL|C7|none,none,NULL|IDDBS|',none,''|HORA|',none,''|FECHA|',none,NULL|WHO|',none,''|TCOT|',none,''|WARN|',none,NULL|MENSPL|none,none,NULL|ACUENTA|none,none,NULL|ENGPL|none,none,NULL|PLAZOPL|none,none,NULL|TASAPLANTEO|none,none,NULL|ANP|none,none,NULL" ' create the MM_fields and MM_columns arrays MM_fields = Split(MM_fieldsStr, "|") MM_columns = Split(MM_columnsStr, "|") ' set the form values For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2 MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i))) Next ' append the query string to the redirect URL If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString Else MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString End If End If End If %> www.promad.com.mx
 
" method="post" name="form1" onSubmit="MM_validateForm('IDRTA','','RisNum');return document.MM_returnValue">
<%' Fin de cotizaciones diferentes %>
BUSCAR COTIZACION
     
 
<% IF not cot.eof THEN %>
<%' Fin de cotizaciones diferentes %>
ACTUALIZAR COTIZACION
  Estatus de Crédito / Cotizado(Ver)
       
 
 
<% END IF 'not cot.eof %>
huuuuuuu
<% cot.Close() Set cot = Nothing %> <% fin.Close() %> <% PROSPECTOS.Close() Set PROSPECTOS = Nothing %> <% valco.Close() Set valco = Nothing %> <% tarif.Close() Set tarif = Nothing %>