<% wID=request.item("ID") wAtivo=request.item("Ativo") wCBEmpresa=request.item("CBEmpresa") Set Database = Server.CreateObject("ADODB.Connection") Database.Open StringConexao SQL="Select * From Vendedores Where ID=0" & wID Set TabVendedores = Database.Execute(SQL) if wID <> 0 then SQL="Select * From Vendedores Where ID=" & wID Set TabVendedores = Database.Execute(SQL) if TabVendedores("CONSULTA_COMPLETA") = "S" then wCON_COMPLETA="checked" else wCON_COMPLETA="" end if if TabVendedores("CONS_PROPOSTA") = "S" then wCON_PROPOSTA="checked" else wCON_PROPOSTA="" end if if TabVendedores("CONS_MATRICULA") = "S" then wCON_MATRICULA="checked" else wCON_MATRICULA="" end if if TabVendedores("CONS_CERTIFICADO") = "S" then wCON_CERTIFICADO="checked" else wCON_CERTIFICADO="" end if if TabVendedores("CONS_EMPRESA") = "S" Then wCON_EMPRESA="checked" else wCON_EMPRESA="" end if if TabVendedores("CONS_ID_VENDEDOR") = "S" then wCON_ID_VENDEDOR="checked" else wCON_ID_VENDEDOR="" end if if TabVendedores("CONS_ID_CLIENTE") = "S" then wCON_ID_CLIENTE="checked" else wCON_ID_CLIENTE="" end if if TabVendedores("CONS_NOME_CLIENTE") = "S" then wCON_NOME_CLIENTE="checked" else wCON_NOME_CLIENTE="" end if if TabVendedores("CONS_CPF") = "S" then wCON_CPF="checked" else wCON_CPF="" end if if TabVendedores("CONS_CIDADE") = "S" then wCON_CIDADE="checked" else wCON_CIDADE="" end if if TabVendedores("Alt_Beneficiario") = "S" then wAlt_Benef="checked" else wAlt_Benef="" end if if TabVendedores("COMISSAO_PLANO") = "S" then wCOMISSAO_PLANO="checked" else wCOMISSAO_PLANO="" end if end if SQL= "SELECT * FROM EMPRESAS" Set TabEmpresas = Database.Execute(SQL) SQL= "SELECT * FROM PLANOS ORDER BY DESCRICAO" Set TabPlanos = Database.Execute(SQL) %>

Planos

Nome : ">
Endereço : ">
Numero : ">
Bairro : ">
Cep : ">
Cidade : ">
Estado :
CPF : ">
RG : ">
Empresa :
Comissão : 1ª: ">  2ª: ">  3ª: "> 4ª: "> Cobrança ">
Vlr. Fixo : ">
Login : ">
Senha : ">      <% if wAtivo="S" then %> <% else %> <% end if %> Ativo
Permissão :

Consulta por:

style="font-weight: 700">Proposta   style="font-weight: 700">Matricula style="font-weight: 700">Certificado style="font-weight: 700">Empresa style="font-weight: 700">Vendedor

style="font-weight: 700">Cód. Cliente style="font-weight: 700">Nome Cliente style="font-weight: 700">CPF style="font-weight: 700">Cidade

 

style="font-weight: 700">Consulta Completa (todos vendedores)  style="font-weight: 700"> Alterar/Excluir Beneficiário

    style="font-weight: 700">Comissão por plano
   


Meta 01 Meta02 Meta 3
Qt. Receb. Valor Qt. Receb. Valor Qt. Receb. Valor
"> "> "> "> "> ">

 
<% While NOT TabPlanos.EoF %> <% else %> "> <% end if %> <% else %> "> <% end if %> <% else %> "> <% end if %> <% else %> "> <% end if %> <% TabPlanos.MoveNext %> <% Wend %>
Visualizar Cadastrar   Planos Participantes  
<% if wID <> "" then SQL="SELECT ID_PLANO, PER_VISUALIZAR, PER_CADASTRAR FROM VENDEDORES_PLANOS WHERE ID_VENDEDOR = " & wID & " and ID_PLANO = " & TabPlanos("ID") Set TabBusca = Database.Execute(SQL) end if %> <% if NOT TabBusca.EOF then%> <% if TabBusca("PER_VISUALIZAR")="S" then%> " checked> <% if NOT TabBusca.EOF then %> <% if TabBusca("PER_CADASTRAR")="S" then%> " checked> <%=TabPlanos("ID")%> <%=TabPlanos("DESCRICAO")%> R$ <%=CCur(TabPlanos("VLR_MENSAL"))%>