Ir para conteúdo
  • Cadastre-se

dev botao

  • Este tópico foi criado há 2838 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

Postado

Boa tarde.

Tenho o retorno de processamento de venda de um equipamento SAT, num arquivo texto.

Existe alguma forma de carregar o conteúdo deste arquivo, para o ACBRSat e efetuar a conversão para guardar o arquivo xml já decodificado ?

Abaixo o conteúdo do arquivo:

015830|06000|0000|Emitido com sucesso + conteúdo notas|||PENGZT48aW5mQ0ZlIElkPSJDRmUzNTE3MDI2MTA5OTAwODAwMDE0MTU5OTAwMDAyMDg3MDAwNDA2MDA4NTIyNCIgdmVyc2FvPSIwLjA2IiB2ZXJzYW9EYWRvc0VudD0iMC4wNiIgdmVyc2FvU0I9IjAxMDIwMCI+PGlkZT48Y1VGPjM1PC9jVUY+PGNORj4wMDg1MjI8L2NORj48bW9kPjU5PC9tb2Q+PG5zZXJpZVNBVD45MDAwMDIwODc8L25zZXJpZVNBVD48bkNGZT4wMDA0MDY8L25DRmU+PGRFbWk+MjAxNzAyMTQ8L2RFbWk+PGhFbWk+MTMwMDE1PC9oRW1pPjxjRFY+NDwvY0RWPjx0cEFtYj4yPC90cEFtYj48Q05QSj4xNjcxNjExNDAwMDE3MjwvQ05QSj48c2lnbkFDPlNHUi1TQVQgU0lTVEVNQSBERSBHRVNUQU8gRSBSRVRBR1VBUkRBIERPIFNBVDwvc2lnbkFDPjxhc3NpbmF0dXJhUVJDT0RFPlBFbmpoWGdZYU5JcEs0Sm9xM1J6bXFwUkhLWUNremd1akdQN0tHYjZYV3dyZWllT29oRkVUWXBhd3hocGp5TmUyakxxVGpzNU5aNG9tSVJVQ0M3WDRwL0UxMVB3Z3NtVHF3UXIzRTZzMEI1MDVZTk5TZC9xeFoxN3hsekduM0F5VHc0eTFKVXFBdGtIUTZkT2puQUoyWnBpOWxiemU1RWtUaktwVDJ5RFEzQ1ZIc0FCM1c1Sng5R1p4VEZhdENZRUZKdFYrenVxUyt3a1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3FmWkh0a3dCaDZNaHI4QmcxcG1VUjZHMS9DQngrR1R2WXhFSEtIMEFrWWE1YVFRK29UcmFQdVIxdllDV1FYWUFpanhkMXIwbUhMb3h3aW83bUo0ZW9rL1Mya25XTXdCWUxXaFZqOWhFaFpBNXo1Y2tGTVVjTFNNYmJuRkFqb3JtN1lHRzhja2dRWEpXMTVlZGlyNXEyT1BhQ0JLMHFQTFFOR2VkVFBpK0pLWk56WWc4MkRLT1dGUVd5aE9uckpkdVBmbXRuWXBtc1EzRncrOTk3bDNKVE1Icnh3d2w2YkVkaGp3dWNXQnVDSHRGZ1ZuSDlsMmxKWVJSdjJWb1owQ1RWRkJZRVVxTUR0ZVlBMXdvMmx3RW8vbDRaMWhEOG5scUJQbUJVL3M5YSthYXpuOWdBUHdkSmtsV3MzSWo5NWtBODJ0ZmY2NVRKODNDcEg8L1g1MDlDZXJ0aWZpY2F0ZT48L1g1MDlEYXRhPjwvS2V5SW5mbz48L1NpZ25hdHVyZT48L0NGZT4=|20170214130015|CFe35170261099008000141599000020870004060085224|67.50|21650307810|PEnjhXgYaNIpK4Joq3RzmqpRHKYCkzgujGP7KGb6XWwreieOohFETYpawxhpjyNe2jLqTjs5NZ4omIRUCC7X4p/E11PwgsmTqwQr3E6s0B505YNNSd/qxZ17xlzGn3AyTw4y1JUqAtkHQ6dOjnAJ2Zpi9lbze5EkTjKpT2yDQ3CVHsAB3W5Jx9GZxTFatCYEFJtV+zuqS+wkTxGFTed2ld5PB/AvE+docwa3BM00OkvvxVfWJsQoFLHPhBr3QYBCDxGiG1TXh0SwKJs/OzSu28leb1n4zha0TjNn+XzVG+AxZpMQERreGttC3s5FFXFXkt2SZ8CX8x7ceIaYh+OzNw==
 

Artur

Postado
41 minutos atrás, arturguerra disse:

Boa tarde.

Tenho o retorno de processamento de venda de um equipamento SAT, num arquivo texto.

Existe alguma forma de carregar o conteúdo deste arquivo, para o ACBRSat e efetuar a conversão para guardar o arquivo xml já decodificado ?

Artur

O componente já faz isso pra você, basta você configurar corretamente o caminho onde quer salvar os XML´s retornados pelo aparelho.

Exemplo:
ACBrSAT.ConfigArquivos.PastaCFeVenda := 'C:\SAT\VENDA\';
ACBrSAT.ConfigArquivos.PastaCFeCancelamento := 'C:\SAT\CANCEL\';

  • Curtir 1
Equipe ACBr Sérgio Assunção
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr

 

[email protected]

Postado

Sim Sérigo, isso eu sei. 

A questão é diferente: tenho o arquivo retorno. Não estou processando a venda pelo ACBRSat. 

Gostaria de passar o retorno que tenho (enviado acima), para o ACBRSat e ele fazer a tradução. Tenho 10 equipamentos SAT, conectados a apenas um CPU, por isso não uso o ACBRSat para as vendas.

Alguma idéia ?

Artur.

  • Este tópico foi criado há 2838 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.