%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% set conexao=server.createobject ("ADODB.Connection") conexao.Open MM_simuladoronline9_STRING %> <% Dim tabelas_promocoes__MMColParam tabelas_promocoes__MMColParam = "1" If (Request.QueryString("ID_Cliente") <> "") Then tabelas_promocoes__MMColParam = Request.QueryString("ID_Cliente") End If %> <% Dim tabelas_promocoes Dim tabelas_promocoes_cmd Dim tabelas_promocoes_numRows Set tabelas_promocoes_cmd = Server.CreateObject ("ADODB.Command") tabelas_promocoes_cmd.ActiveConnection = conexao tabelas_promocoes_cmd.CommandText = "SELECT * FROM tabelas_promocoes WHERE ID_Cliente = ?" tabelas_promocoes_cmd.Prepared = true tabelas_promocoes_cmd.Parameters.Append tabelas_promocoes_cmd.CreateParameter("param1", 5, 1, -1, tabelas_promocoes__MMColParam) ' adDouble Set tabelas_promocoes = tabelas_promocoes_cmd.Execute tabelas_promocoes_numRows = 0 %> <% Dim autenticar_logo__MMColParam autenticar_logo__MMColParam = "1" If (Request.QueryString("ID_Usuario") <> "") Then autenticar_logo__MMColParam = Request.QueryString("ID_Usuario") End If %> <% Dim autenticar_logo__corretora autenticar_logo__corretora = "1" If (Request.QueryString("ID_Cliente") <> "") Then autenticar_logo__corretora = Request.QueryString("ID_Cliente") End If %> <% set autenticar_logo = Server.CreateObject("ADODB.Recordset") autenticar_logo.ActiveConnection = conexao autenticar_logo.Source = "SELECT * FROM usuarios_adicionais, administrador WHERE ID_Usuario = " + Replace(autenticar_logo__MMColParam, "'", "''") + " AND ID_Cliente = " + Replace(autenticar_logo__corretora, "'", "''") + " AND ativo = 'S'" autenticar_logo.CursorType = 0 autenticar_logo.CursorLocation = 2 autenticar_logo.LockType = 3 autenticar_logo.Open() autenticar_logo_numRows = 0 %> <% Dim notas_pessoais__MMColParam notas_pessoais__MMColParam = "1" If (Request.QueryString("ID_Usuario") <> "") Then notas_pessoais__MMColParam = Request.QueryString("ID_Usuario") End If %> <% Dim notas_pessoais Dim notas_pessoais_numRows Set notas_pessoais = Server.CreateObject("ADODB.Recordset") notas_pessoais.ActiveConnection = conexao notas_pessoais.Source = "SELECT * FROM informacoes_fisica WHERE ID_Cliente = " + Replace(notas_pessoais__MMColParam, "'", "''") + " AND ID_Operadora = 15" notas_pessoais.CursorType = 0 notas_pessoais.CursorLocation = 2 notas_pessoais.LockType = 1 notas_pessoais.Open() notas_pessoais_numRows = 0 %> <% set serma = Server.CreateObject("ADODB.Recordset") serma.ActiveConnection = conexao serma.Source = "SELECT * FROM serma_ind, serma_inform_fisica WHERE serma_inform_fisica.codigo_serma = 15 ORDER BY CodSerma ASC" serma.CursorType = 0 serma.CursorLocation = 2 serma.LockType = 3 serma.Open() serma_numRows = 0 %> <% set serma_fam = Server.CreateObject("ADODB.Recordset") serma_fam.ActiveConnection = conexao serma_fam.Source = "SELECT * FROM serma_fam_grupo1, serma_inform_fisica WHERE serma_inform_fisica.codigo_serma = 18 ORDER BY CodSerma ASC" serma_fam.CursorType = 0 serma_fam.CursorLocation = 2 serma_fam.LockType = 3 serma_fam.Open() serma_fam_numRows = 0 %> <% Dim serma_fam_grupo_II Dim serma_fam_grupo_II_numRows Set serma_fam_grupo_II = Server.CreateObject("ADODB.Recordset") serma_fam_grupo_II.ActiveConnection = conexao serma_fam_grupo_II.Source = "SELECT * FROM serma_fam_grupo2, serma_inform_fisica WHERE serma_inform_fisica.codigo_serma = 1515 ORDER BY CodSerma ASC" serma_fam_grupo_II.CursorType = 0 serma_fam_grupo_II.CursorLocation = 2 serma_fam_grupo_II.LockType = 1 serma_fam_grupo_II.Open() serma_fam_grupo_II_numRows = 0 %> <% Dim Repeat13__numRows Repeat13__numRows = -1 Dim Repeat13__index Repeat13__index = 0 serma_numRows = serma_numRows + Repeat13__numRows %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 serma_fam_numRows = serma_fam_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = -1 Repeat2__index = 0 serma_fam_grupo_II_numRows = serma_fam_grupo_II_numRows + Repeat2__numRows %>
![]() |
<% If Not tabelas_promocoes.EOF Or Not tabelas_promocoes.BOF Then %>
<%=(tabelas_promocoes.Fields.Item("descricao_fisica").Value)%>
<% End If ' end Not tabelas_promocoes.EOF Or NOT tabelas_promocoes.BOF %>
|
| <%=(serma.Fields.Item("nome_operadora").Value)%> |
||||||
| FAIXA
ETÁRIA |
<%=(serma.Fields.Item("categoria1").Value)%> |
<%=(serma.Fields.Item("categoria2").Value)%> |
<%=(serma.Fields.Item("categoria3").Value)%> |
<%=(serma.Fields.Item("categoria4").Value)%> |
<%=(serma.Fields.Item("categoria5").Value)%> |
<%=(serma.Fields.Item("categoria6").Value)%> |
<%=(serma.Fields.Item("idade").Value)%>: |
<%= FormatNumber((serma.Fields.Item("valor").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma.Fields.Item("valor_2").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma.Fields.Item("valor_3").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma.Fields.Item("valor_4").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma.Fields.Item("valor_5").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma.Fields.Item("valor_6").Value), 2, -2, -2, -2) %> |
<%=(serma_fam.Fields.Item("nome_operadora").Value)%> |
||||||
| FAIXA
ETÁRIA |
<%=(serma_fam.Fields.Item("categoria1").Value)%> |
<%=(serma_fam.Fields.Item("categoria2").Value)%> |
<%=(serma_fam.Fields.Item("categoria3").Value)%> |
<%=(serma_fam.Fields.Item("categoria4").Value)%> |
<%=(serma_fam.Fields.Item("categoria5").Value)%> |
<%=(serma_fam.Fields.Item("categoria6").Value)%> |
<%=(serma_fam.Fields.Item("idade").Value)%>: |
<%= FormatNumber((serma_fam.Fields.Item("valor").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma_fam.Fields.Item("valor_2").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma_fam.Fields.Item("valor_3").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma_fam.Fields.Item("valor_4").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma_fam.Fields.Item("valor_5").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma_fam.Fields.Item("valor_6").Value), 2, -2, -2, -2) %> |
<%=(serma_fam_grupo_II.Fields.Item("nome_operadora").Value)%> |
||||||
| FAIXA
ETÁRIA |
<%=(serma_fam_grupo_II.Fields.Item("categoria1").Value)%> |
<%=(serma_fam_grupo_II.Fields.Item("categoria2").Value)%> |
<%=(serma_fam_grupo_II.Fields.Item("categoria3").Value)%> |
<%=(serma_fam_grupo_II.Fields.Item("categoria4").Value)%> |
<%=(serma_fam_grupo_II.Fields.Item("categoria5").Value)%> |
<%=(serma_fam_grupo_II.Fields.Item("categoria6").Value)%> |
<%=(serma_fam_grupo_II.Fields.Item("idade").Value)%>: |
<%= FormatNumber((serma_fam_grupo_II.Fields.Item("valor").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma_fam_grupo_II.Fields.Item("valor_2").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma_fam_grupo_II.Fields.Item("valor_3").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma_fam_grupo_II.Fields.Item("valor_4").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma_fam_grupo_II.Fields.Item("valor_5").Value), 2, -2, -2, -2) %> |
<%= FormatNumber((serma_fam_grupo_II.Fields.Item("valor_6").Value), 2, -2, -2, -2) %> |