sábado, 9 de julho de 2016

Curso WinDev - Tabela - 031 - Tabela - Agrupar Datas das Notas








Nessa aula vou mostrar como agroupar datas usando Query/Tabela

In this lecture I will show how to group dates using Query / Table

Dans cette conférence, je vais montrer comment les dates de groupe à l'aide de requêtes / Table

Video Youtube

 

http://doc.windev.com/en-US/?3044080&name=HExecuteQuery
http://doc.pcsoft.fr/fr-FR/?3044080&name=hexecuterequete_fonction




SELECT DISTINCT
    nota_fiscal_manifestacao_mdfe.data_importacao_arquivo AS data_importacao_arquivo
FROM
    nota_fiscal_manifestacao_mdfe
ORDER BY
    data_importacao_arquivo DESC

HExecuteQuery(QRY_manifestacao_por_dia)
FOR EACH QRY_manifestacao_por_dia
    TableAddLine(TABLE_local,QRY_manifestacao_por_dia.data_importacao_arquivo)
END




WinDev - Tabela - 001/... Ancorar Tabela e coluna
WinDev - Tabela - 002/... Esconder ou Mostrar Coluna Tabela 
WinDev - Tabela - 003/... Mudar Cor e Fundo da Coluna da Tabela 
WinDev - Tabela - 004/... Mudar Largura e Fonte da Coluna da Tabela 
WinDev - Tabela - 005/... Coluna de valor Deixar em Branco 
WinDev - Tabela - 006/... Alterar Nome,Cor,Cor de Fundo da Coluna da Tabela 
WinDev - Tabela - 007/... Alterar ordem das Colunas por Programacao
WinDev - Tabela - 008/... TableSeek Pesquizar se Existe
WinDev - Tabela - 009/... TableSelectPlus - Seleciona Iten tabela
WinDev - Tabela - 010/... TableSort - Classifica Coluna
WinDev - Tabela - 011/... Zoom
WinDev - Tabela - 012/... for Each Row Of - Percorrer
WinDev - Tabela - 013/... Selecionar Varias Linhas
WinDev - Tabela - 014/... Balao - Tabela ToolTip
WinDev - Tabela - 015/... Coluna Contrainer
WinDev - Tabela - 016/... Sum - Como Mudar Nome
WinDev - Tabela - 017/... TableInfoXY - Saber Nome,Posição e Linha da Coluna 
WinDev - Tabela - 018/... Guardar e Recuperar Posição Tabela
WinDev - Tabela - 019/... TableInputsearch
WinDev - Tabela - 020/... Descobrir Posição cliente Novo
WinDev - Tabela - 021/... Saber quantos e nome das Colunas
WinDev - Tabela - 022/... Tableselect - Selecionar varias linhas tabela e Ler
WinDev - Tabela - 023/... BuildBrowsingTable - Cria Tabela Manual
WinDev - Tabela - 024/... Somar Valor Tabela Automatico ou Manual - rowtotal
WinDev - Tabela - 025/... Eventos no cabecalho da Tabela
WinDev - Tabela - 026/... Tabela - Break - Totalizadores
WinDev - Tabela - 027/... Tabela - Colorir Linha
WinDev - Tabela - 028/... Double click Na seleção Item
WinDev - Tabela - 029/... Tabela - Descrição, Em Varias Linhas Coluna Tabela
WinDev - Tabela - 030/... Tabela - Fazer titulos com colunas
WinDev - Tabela - 031/... Tabela - Sql - Query - Agrupar Datas Nas Notas
WinDev - Tabela - 032/... Pintando Tabela
WinDev - Tabela - 033/... FOR EACH / WHERE / on / Ordem

==================================================================

WinDev - Tabela - 001/... Ancorar Tabela e coluna
WinDev - Tabela - 014/... Balao - Tabela ToolTip
WinDev - Tabela - 026/... Break - Tabela - Break - Totalizadores
WinDev - Tabela - 031/... Break Datas - Tabela - Sql - Query - Agrupar Datas Nas Notas
WinDev - Tabela - 025/... Cabecalho - Eventos no cabecalho da TabelaWinDev - Tabela - 027/... Colorir - Tabela - Colorir Linha
WinDev - Tabela - 003/... Cor - Mudar Cor e Fundo da Coluna da Tabela 
WinDev - Tabela - 023/... Criar Manual - BuildBrowsingTable - Cria Tabela Manual
WinDev - Tabela - 005/... Coluna de valor Deixar em Branco 
WinDev - Tabela - 006/... Coluna - Alterar Nome,Cor,Cor de Fundo da Coluna da Tabela 
WinDev - Tabela - 007/... Colunas - Alterar ordem das Colunas por Programacao
WinDev - Tabela - 015/... Coluna Contrainer
WinDev - Tabela - 021/... Colunas - Saber quantos e nome das Colunas
WinDev - Tabela - 029/... Coluna - Tabela - Descrição, Em Varias Linhas Coluna Tabela
WinDev - Tabela - 030/... Colunas - Tabela - Fazer titulos com colunas
WinDev - Tabela - 002/... Esconder ou Mostrar Coluna Tabela 
FOR EACH / WHERE / on / Ordem - Modificar - WinDev - Tabela - 033/...
WinDev - Tabela - 004/... Largura - Fonte - Mudar Largura e Fonte da Coluna da Tabela
WinDev - Tabela - 008/... Pesquisa - TableSeek Pesquizar se Existe
WinDev - Tabela - 019/... Pesquizar - TableInputsearch
WinDev - Tabela - 012/... Percorrer - for Each Row Of - Percorrer
WinDev - Tabela - 032/... Pintando Tabela
WinDev - Tabela - 017/... Posicao - TableInfoXY - Saber Nome,Posição e Linha da Coluna 
WinDev - Tabela - 020/... Posicao - Descobrir Posição cliente Novo
WinDev - Tabela - 018/... Posicao - Guardar e Recuperar Posição Tabela
WinDev - Tabela - 009/... Seleciona - TableSelectPlus - Seleciona Iten tabela
WinDev - Tabela - 013/... Selecionar Varias Linhas
WinDev - Tabela - 022/... Selecionar - Tableselect - Selecionar varias linhas tabela e Ler
WinDev - Tabela - 028/... Selecionar- Double click Na seleção Item
WinDev - Tabela - 016/... Somar - Sum - Como Mudar Nome
WinDev - Tabela - 024/... Somar Valor Tabela Automatico ou Manual - rowtotal
WinDev - Tabela - 010/... Sort - TableSort - Classifica Coluna
WinDev - Tabela - 011/... Zoom



























sexta-feira, 8 de julho de 2016

Curso WinDev - Funções Dialogo - 1/... - Confirm








http://doc.windev.com/en-US/search2.awp?origin=browse&cat=dialog-box-functions,261

Video Youtube


Nessa aula vou mostrar sobre Confirm

In this lecture I will show on Confirm

Dans cette conférence, je vais montrer sur Confirmer
 

http://doc.windev.com/en-US/?3021007&name=confirm_function
http://doc.pcsoft.fr/fr-FR/?3021007&name=confirmer_fonction

http://doc.windev.com/en-US/search2.awp?origin=browse&cat=dialog-box-functions,261
http://doc.windev.com/en-US/search2.awp?origin=browse&cat=functions-for-windows-management,486
http://doc.windev.com/


Blog - WinDev - Curso Funções Dialogo - 001/... - Confirm
Blog - WinDev - Curso Funções Dialogo - 002/... - Okcancel
Blog - WinDev - Curso Funções Dialogo - 003/... - Message
Blog - WinDev - Curso Funções Dialogo - 004/... - toastDisplay
Blog - WinDev - Curso Funções Dialogo - 005/... - YesNo
Blog - WinDev - Curso Funções Dialogo - 006/... - Input
Blog - WinDev - Curso Funções Dialogo - 007/... - Error
Blog - WinDev - Curso Funções Dialogo - 008/... - Gauge
Blog - WinDev - Curso Funções dialogo - 009/... - Info



// Nome do titulo Janela // title name window // nom du titre fenêtre
NextTitle("Farei uma Pergunta ")
// Confirm
n_resultado is int = Confirm("Voce vai querer Continuar","Proxima Linha","Mais Uma")
SWITCH n_resultado
    CASE Yes:
        Info("ok")
    CASE No:
        Info("nao")
    CASE Cancel:
        Info("Cancela")   
END
















quinta-feira, 7 de julho de 2016

Curso WinDev - Certificado - 010 - Soap - Status Nfe Sefaz









Video Youtube


Nessa aula vou ensinar a Fazer Soap - Status Nfe - Sefaz

In this lesson I will teach Soap Making - Status Nfe - Sefaz

Dans cette leçon, je vais enseigner Soap Making - Statut Nfe - SEFAZ
 

http://doc.windev.com/en-US/?3043007&name=HTTPRequest
http://doc.pcsoft.fr/fr-FR/?3043007&name=httprequete_fonction


Blog - WinDev - Curso Certificado - 001/... - Seleciona Certificado - Certificate Select 
Blog - WinDev - Curso Certificado - 002/... - Certificate Type - Pegar Dados Certificado
Blog - WinDev - Curso Certificado - 003/... - Ver se Certificado é Válido
Blog - WinDev - Curso Certificado - 004/... - CertificateLoad - Chamar pfx/arquivo
Blog - WinDev - Curso Certificado - 005/... - Assinatura Digital Nfe - Parte 1/...
Blog - WinDev - Curso Certificado - 006/... - Assinatura nfe - Parte 2/... - System.xml.xmlDocument
Blog - WinDev - Curso Certificado - 007/... - Assinatura nfe - Parte 3/... - Assinar Documento
Blog - Windev - Curso Certificado - 008/... HttpListCertificate
Blog - WinDev - Curso Soap - 009/... Consulta Cadastro Sefaz - WebService
Blog - WinDev - Curso Soap - 010 - Status Nfe Sefaz - WebService
DonwLoad Arquivo/Barra progresso/Http - WinDev - Certificado 011/...



//Site com WebService Sefaz RS // Site with webservcie sefaz RS // Site avec WebService Sefaz RS https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx
//Inserir o Soap // Insert Soap // Insérer Savon //
s_envelop_soap is string=[
    <?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Header>
    <nfeCabecMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2">
    <cUF>#cUF#</cUF>
    <versaoDados>3.10</versaoDados>
    </nfeCabecMsg>
    </soap12:Header>
    <soap12:Body>
    <nfeDadosMsg xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NfeStatusServico2">
    <consStatServ xmlns="http://www.portalfiscal.inf.br/nfe" versao="3.10">
    <tpAmb>2</tpAmb>
    <cUF>43</cUF>
    <xServ>STATUS</xServ>
    </consStatServ>
    </nfeDadosMsg>
    </soap12:Body>
    </soap12:Envelope>   
]
s_uf is string="43"
s_envelop_soap=Replace(s_envelop_soap,"#cUF#",s_uf)
s_envelop_soap=Replace(s_envelop_soap,CR,"")
// colocar o webservice // put the web service //  mettre le service web//
s_webservice_consulta is string="https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx"
//Criar webservice ok // create webservice ok // créer webservice ok
b_webservice_ok is boolean=False
b_webservice_ok=HTTPRequest(s_webservice_consulta,"","",s_envelop_soap,"text/xml","","")
IF b_webservice_ok=True THEN //verificar se webservice_ok esta ok // check ok ok this webservice  // vérifier ok ok ce webservcie
    s_retorno is string=HTTPGetResult(httpResult) //pegar retorno httpgetresult // return catch// retour captures
    EDT_retorno=s_retorno
    EDT_cStat=pesquisa_tag_nfe_wdk("cStat",s_retorno)
    EDT_xMotivo=pesquisa_tag_nfe_wdk("xMotivo",s_retorno)   
END
//Vamos TEstar


PROCEDURE pesquisa_tag_nfe_wdk(_tag,_retorno_xml)


_texto_inicial is string="<"+_tag+">"
_texto_final is string="</"+_tag+">"
nPosicaoInicial is int=0
nPosicaoFinal is int=0
nPosicaoInicial = PositionOccurrence(_retorno_xml,_texto_inicial,firstRank,FromBeginning) + Length(_texto_inicial)
nPosicaoFinal = PositionOccurrence(_retorno_xml,_texto_final,firstRank,FromBeginning)
IF nPosicaoFinal>nPosicaoInicial THEN
    RESULT Middle(_retorno_xml,nPosicaoInicial,nPosicaoFinal-nPosicaoInicial)   
ELSE
    RESULT ""   
END

































Teste

Teste
teste