Ir para conteúdo
  • Cadastre-se

dev botao

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

Recommended Posts

Postado

O que pude ver a principio pelo aplicativo que estou fazendo, os dados da Dimep são:

 

CNPJ desenvolvedor: 16716114000172
CNPJ contribuinte: 61099008000141
Assinatura: SGR-SAT SISTEMA DE GESTAO E RETAGUARDA DO SAT
Codigo de Ativação: 123456789
 
Declaração de Funções:  (Algumas)
 
    function TesteFimAFim(numeroSessao : Longint; codigoDeAtivacao: PAnsiChar; dadosVenda : PAnsiChar) : PAnsiChar ; stdcall; External 'dllsat.dll';
    function AtivarSAT( numeroSessao: Longint; subComando : Longint; codigoDeAtivacao: PAnsiChar; CNPJ: PAnsiChar; cUF : Longint ) : PAnsiChar ; stdcall; External 'dllsat.dll';
    function EnviarDadosVenda(numeroSessao : Longint; codigoDeAtivacao: PAnsiChar; dadosVenda : PAnsiChar) : PAnsiChar ; stdcall; External 'dllsat.dll';
    function CancelarUltimaVenda(numeroSessao : Longint; codigoAtivacao: PAnsiChar; chave: PAnsiChar; dadosCancelamento : PAnsiChar) : PAnsiChar ; stdcall;  External 'dllsat.dll';
    function ConsultarNumeroSessao(numeroSessao : Longint; cNumeroDeSessao : Longint) : PAnsiChar ; stdcall;  External 'dllsat.dll';
    function ConsultarStatusOperacional( numeroSessao : Longint; codigoDeAtivacao : PAnsiChar ) : PAnsiChar ; stdcall; External 'dllsat.dll';
    function ExtrairLogs( numeroSessao : Longint; codigoDeAtivacao : PAnsiChar ) : PAnsiChar ; stdcall; External 'dllsat.dll';
    function BloquearSAT( numeroSessao : Longint; codigoDeAtivacao : PAnsiChar ) : PAnsiChar ; stdcall; External 'dllsat.dll';
    function DesbloquearSAT( numeroSessao : Integer; codigoDeAtivacao : PAnsiChar ) : PAnsiChar ; stdcall; External 'dllsat.dll';
 
    function TrocarCodigoDeAtivacao( numeroSessao : Longint; codigoDeAtivacao : PAnsiChar; opcao : Longint; novoCodigo : PAnsiChar; confNovoCodigo : PAnsiChar ) : PAnsiChar ; stdcall; External 'dllsat.dll';
 
    function AssociarAssinatura( numeroSessao : Longint; codigoDeAtivacao: PAnsiChar; CNPJvalue : PAnsiChar; assinaturaCNPJs : PAnsiChar ) : PAnsiChar ; stdcall; External 'dllsat.dll';
 
    function ConsultarSAT( numeroSessao : Longint ) : PAnsiChar ; stdcall; External 'dllsat.dll';

 

 

 

 

Estão funcionando, por exemplo:

 

Consulta SAT:

 

  Retorno.Clear;
  wResultado:=ConsultarSAT(Random(999999));
  retorno.lines.add(wResultado);
 
 
Consulta Estado Operacional:
 
  Retorno.Clear;
  wResultado:= ConsultarStatusOperacional(Random(999999),PAnsiChar('123456789'));
  retorno.lines.add(wResultado);
 
Extrair Logs:
 
  Retorno.Clear;
  wResultado:= ExtrairLogs(Random(999999),PAnsiChar('123456789'));
  retorno.lines.add(wResultado);
 
 
Ativar Sat:
 
  Retorno.Clear;
  wResultado:=AtivarSAT(Random(999999),1,PAnsiChar('123456789'),PAnsiChar('61099008000141'),35);
  retorno.lines.add(wResultado);
 
Enviar Venda:
 
var
 wCaminho,wVenda:string;
begin
 
 
   If OpenDialog.Execute = True Then wCaminho:=OpenDialog.FileName;
 
   DadosVenda.Clear;
   DadosVenda.Lines.LoadFromFile(wCaminho);
   wVenda:=DadosVenda.Text;
 
   wVenda:=StringReplace(wVenda, #39, '"', [rfReplaceAll, rfIgnoreCase]);
 
   wResultado:=EnviarDadosVenda(Random(999999),PAnsiChar('123456789'),PAnsiChar(wVenda));
 
  retorno.lines.add(wResultado);
 
 
Teste Fim a Fim:
 
var
 wXML:String;
 wConta:Integer;
begin
 
 
  Retorno.Clear;
  wResultado:= TesteFimAFim(Random(999999), PAnsichar('123456789'), PAnsiChar(DadosVenda.Text));
  retorno.lines.add(wResultado);
 
 
 
 
Porem as funções EnviarDadosVenda e TesteFimAFim retornão erro 1999 (Segundo o Marlus da Dimep é erro de Estrutura de XML) porem o XML é o que eles mandam mesmo e que
valida na aplicação de exemplo deles.
 
Enviei um email para o mesmo analisar o XML e a estrutura para verificar e ficou de me responder.. Vou aguardar.
Postado

O erro que sempre retorna ao passar o XML:  013018|06010|1999|Rejeição: Erro não identificado|||

 

Segundo o Marlus, pode ser que a função esta passando como PAnsiChar como segue abaixo:

 

function EnviarDadosVenda(numeroSessao : Longint; codigoDeAtivacao: PAnsiChar; dadosVenda : PAnsiChar) : PAnsiChar ; stdcall; External 'dllsat.dll';

 

 

E o Sat Aceita o arquivo codificado como UTF8, por isso ele da problema na estrutura do XML...  Mas estou na luta tentando efetuar a conversão para

UTF8 mas ainda não tive resultados, deu o mesmo erro....

 

   wVenda:=UTF8Encode(wVenda);
   wResultado:=EnviarDadosVenda(Random(999999),PAnsiChar('123456789'),wVenda);
 
E na função declarei como String ao invés de PAnsiChar.  
 
Alguem tem alguma dica?
Postado

Ai galerinha fiz algumas mudanças e deu certo a questão do PAnsiChar e UFT8Encode: Segue como ficou.

 

Alterei a chamada da Função para:
 
function EnviarDadosVenda(numeroSessao : Longint; codigoDeAtivacao: PAnsiChar; dadosVenda : UTF8String) : PAnsiChar ; stdcall; External 'dllsat.dll';
 
 
E na passada da Função:
 
   wResultado:=EnviarDadosVenda(Random(999999),PAnsiChar('123456789'),UTF8Encode(wVenda));
 
E deu certo.
 
 
Ele retorna Criptografado com Base64, a partir dai é descriptografar e gerar o XML e o QRCode para geração da impressão... Preciso tratar as demais funções que recebem o texto do XMl para UTF8 tmb.
Mas a ideia é a mesma...
 
Só lembrando que não estou utilizando componente algum do ACBR, mas em teoria até mesmo para o ACBR a ideia é a mesma.
 
Retorno:
 
114542|06000|0000|Emitido com sucesso + conteúdo notas|||PENGZT48aW5mQ0ZlIElkPSJDRmUzNTE0MTE2MTA5OTAwODAwMDE0MTU5OTAwMDAwOTczMDAwMDEzMjU0MjkxMCIgdmVyc2FvPSIwLjA2IiB2ZXJzYW9EYWRvc0VudD0iMC4wNiIgdmVyc2FvU0I9IjAxMDAwMCI+PG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WTVOemt4YmtaVmFHZFBPVnBrWVZKNURRcG9NWGs0TjNGWFNHVkpNMlpQUzFkR09XZHBTalUwTlVFNVMwZ3ZhV296Tm5GQ1dsUm9SazlFVEUwd1JXZFJOVFJHWjFsQ0wwcEhRMFZyYkZCVGRrb3JEUXBNWVZsRFFXWnlTak5qV0ZkNksyNW9UbEJNZVhoTk5VTkJUMmR1Vm1sR1JXZG1SVTVtUmtadlJpczRjVzFJU1U5RU5sVllabkExUzFKalNrd3pjRGhrRFFwWlVWYzJWVzlzUTJ0cGFIVXdVekZFUjJoRmEwcDZSMDVXT1ZkMVRVRTRUMWxXUVd0Uk5ESjBhMlZSZDFnNU5WRlJhV053TkZwVGFHaHlSbkJLVVZOSERRb3pTbEZNV0VkdmFqYzRPWEp4UjNOcVQyNHhiRTFuYnpNTkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwPTwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPjwvQ0ZlPg==|20141119161601|CFe35141161099008000141599000009730000132542910|2.10|61099008000141|bJuH2Ga9dV+ewuG90byMpHZ8hOs0kxvHg9i0OgUp/1P4S+Rzikk7WakRKFjIqzqbz1lg5l1lSlGFW38Xw2j2Y/NKB6acRccloqaxJ/4+j80UKVsC0G9w2gF14X4JBW98v22WMYp5yFcd+KFUs2ub1j02NZkJ0RBYiEuDm9q5gq3F+mheD97u2oIBU8DetxSIq3qDtb7f15ki9ce8et8A7aqhu9JB7qhtuB77xwLn7Rm+c5nCNTjptD9R7OazTRM0+03FpdJEyAcq/WGizV4oyQHMqLljGaE9nGDjbqywg5SubpozSbROLrAE1zVrzPrrS5uP+cGlLins3APACrMVpQ==
Postado

Teste FimAFim:

 

function TesteFimAFim(numeroSessao : Longint; codigoDeAtivacao: PAnsiChar; dadosVenda : UTF8String) : PAnsiChar ; stdcall; External 'dllsat.dll';

 

wResultado:=TesteFimAFim(Random(999999),PAnsiChar('123456789'),UTF8Encode(wXML));

 

 

Lembrando que a Assinatura no XML para Teste FimAFim precisa sem completada com zeros a esquerda até 344 caracteres.

 

Exemplo:

 

<signAC>SGR-SAT SISTEMA DE GESTAO E RETAGUARDA DO SAT00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</signAC>

 

 

 

868614|09000|Emitido com sucesso|||PENGZT48aW5mQ0ZlIElkPSJDRmUzNTE0MTE2MTA5OTAwODAwMDE0MTU5OTAwMDAwOTczMDAwMDAwMzA3NTYyMiIgdmVyc2FvPSIwLjA2IiB2ZXJzYW9EYWRvc0VudD0iMC4wNiIgdmVyc2FvU0I9IjAxMDAwMCI+PGlkZT48Y1VGPjM1PC9jVUY+PGNORj4zMDc1NjI8L2NORj48bW9kPjU5PC9tb2Q+PG5zZXJpZVNBVD45MDAwMDA5NzM8L25zZXJpZVNBVD48bkNGZT4wMDAwMDA8L25DRmU+PGRFbWk+MjAxNDExMTk8L2RFbWk+PGhFbWk+MTY0OTE5PC9oRW1pPjxjRFY+MjwvY0RWPjx0cEFtYj4yPC90cEFtYj48Q05QSj42MTA5OTAwODAwMDE0MTwvQ05QSj48c2lnbkFDPlNHUi1TQVQgU0lTVEVNQSBERSBHRVNUQU8gRSBSRVRBR1VBUkRBIERPIFNBVDwvc2lnbkFDPjxhc3NpbmF0dXJhUVJDT0RFPmFXaUFJaWV5eTdjV3Q1aHl3WnlEM0paMzdWVUo5QW8vek03S1FDQ3I5NlN1WEZUWmxwL1ZZamUwbitHT29DRHVPWG8yUnVjbytlaVE1QXVQb0NyelRZR1VjaEp0V2IzbFd2TTZkek9aSXVQRHFQYVhvVjdWTXlEQkFQT2FiN1FDYXhoT1FUL2tiTTBOZk16TzZtM1RVYUhxb0R0N0xsc0czcUduMHAvdnZhcGtMVHJha3RMOVU0VUdlclV2S2JDekhPMFVnbWI1Vmp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a3haYUhaaWFUTkRkRU5ZUkhkMVEzWm1ORGhqV213dmIxVldkSEZwTkhBemJpdERTazVxYkROME4wWkJNRVprTUdkclZHMXdjVXRFWW5vd0RRcFNiRVp0ZGpVemVWazBjak5wVDJOQ2RVNU5aVzkxUkRFdmMwUXlZa0pyVTAxRFUzbEZMMHBZUjNaUVZEQlVOamhWWWtsR1REZEhiWEV4ZDFoM2NrRkNEUXBzWkV4eVFqSkJSMEZFYlhkWFpYYzBlbXhuVmpKMVNqTm5Va3BaTDJSU1NVVlNNVkZyU0VWNmRFUlJRVGhuYm5GdFdrcHRNVmcxV1dsQmMzaHZUa3BHRFFwQmMyWkNOVVZVUlRNNVRrOW5Na2xKY2pRNFZ6UXdTalZPVVdSS2NHUjBiSEZTYlhBek5qRlBVRWw1VG5wV05HWTVOemt4YmtaVmFHZFBPVnBrWVZKNURRcG9NWGs0TjNGWFNHVkpNMlpQUzFkR09XZHBTalUwTlVFNVMwZ3ZhV296Tm5GQ1dsUm9SazlFVEUwd1JXZFJOVFJHWjFsQ0wwcEhRMFZyYkZCVGRrb3JEUXBNWVZsRFFXWnlTak5qV0ZkNksyNW9UbEJNZVhoTk5VTkJUMmR1Vm1sR1JXZG1SVTVtUmtadlJpczRjVzFJU1U5RU5sVllabkExUzFKalNrd3pjRGhrRFFwWlVWYzJWVzlzUTJ0cGFIVXdVekZFUjJoRmEwcDZSMDVXT1ZkMVRVRTRUMWxXUVd0Uk5ESjBhMlZSZDFnNU5WRlJhV053TkZwVGFHaHlSbkJLVVZOSERRb3pTbEZNV0VkdmFqYzRPWEp4UjNOcVQyNHhiRTFuYnpNTkNpMHRMUzB0UlU1RUlFTkZVbFJKUmtsRFFWUkZMUzB0TFMwPTwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPjwvQ0ZlPg==|20141119164919|000000|CFe35141161099008000141599000009730000003075622

  • Fundadores
Postado

SIM, todas as DLLs SAT são compatíveis entre si, mudando apenas o meio de chamada "stdcall" ou "cdecl"... e para isso o ACBrSAT tem 2 modelos...

Leia o começo desse post...

 

Você pode testar a aplicação Demo baixando a desse endereço:

Consultor SAC ACBr

Daniel Simões de Almeida
O melhor TEF, é com o Projeto ACBr - Clique e Conheça
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Postado

Olá caros, a DIMEP lançou recentemente uma campanha para incentivar as Software Houses que tiverem interesse em indicar seus clientes para a compra do D-SAT. 

 

Quer ganhar mais com a DIMEP?

Campanha D-SAT, indique e ganhe!
Agora já está valendo! Foi emitido o primeiro cupom fiscal utilizando a tecnologia CF-e-Sat e a Dimep é a primeira empresa a implementar esta solução através do equipamento D-SAT. Venha fazer parte deste sucesso conosco, a cada cliente que você indicar e gerar negócio para o equipamento D-SAT ganhe R$ 50,00 por equipamento vendido até 31/12/2014.

Não deixe para a última hora. Indique já o D-SAT para seus clientes.

Campanha válida para indicação e ou venda efetiva do produto.

http://www.p2criacao.com.br/dimep/mailing/IndicaVendas/IndicaVendas.html

 

  • Moderadores
Postado

Me diz uma coisa, onde é armazenado o retorno do D-SAT DIMEP? 

Pois não achei... 

Obrigado

Para salvar automaticamente os XMLs, use as propriedades abaixo:

  ACBrSAT1.SalvarCFes := True;
  ACBrSAT1.PastaCFeVenda := PathCFe;
  ACBrSAT1.PastaCFeCancelamento := PathCFeCancelado;
djsystem-logo.png
 youtube.png facebook.png instagram.png linkedin.png
André Ferreira de Moraes | Analista de Sistemas
www.djsystem.com.br | www.djpdv.com.br
www.tefhouse.com.br | www.xpos.com.br
Postado

Muito obrigado.
Mas é o seguinte, a resposta que eu quero saber é a mensagem que o D-S@T da quando a  função foi realizada com sucesso ou deu algum erro.
Ex:

" 026500|10000|Resposta com Sucesso.|||900000980|DHCP|192.168.000.1xx|02:01:00:00:09:80|255.255.255.000|192.168.000.xxx|192.168.000.xxx|000.000.000.000|CONECTADO|ALTO|1 Gbyte|177 MbytesMbytes|20141203091958|01.00.00|00.06|00000000000000000000000000000000000000000000|00000000000000000000000000000000000000000000|00000000000000000000000000000000000000000000|20141203091943|20141203091943|20141104|20191102|0"

Antes essa mensagem de retorno, com o emulador da receita, era armazenado em um arquivo .txt, porém com o D-S@T não encontrei nada disso, e a unica função que no que me parece que seria o retorno "CodigoErro()", está dando erro ao ser chamada.

Não estou usando o Acbr, nesse momento pq estou fazendo um projeto que irá fazer esses procedimentos, porém no Acbr retorna isso...


Obrigado.

  • Moderadores
Postado

Não estou usando o Acbr, nesse momento pq estou fazendo um projeto que irá fazer esses procedimentos, porém no Acbr retorna isso...

Se vc não usa o ACBr, então esse não é lugar correto para tirar suas dúvidas, pois o fórum é sobre o componente ACBrSAT.
djsystem-logo.png
 youtube.png facebook.png instagram.png linkedin.png
André Ferreira de Moraes | Analista de Sistemas
www.djsystem.com.br | www.djpdv.com.br
www.tefhouse.com.br | www.xpos.com.br
  • 3 semanas depois ...
  • Fundadores
Postado

Após receber um SAT da Dimep, pude fazer novos testes... e implementei as seguintes melhorias:

 

Data: 20/12/2014
-- ACBrSAT --        (por: DSA) [*] Mecanismo de Gravação de Log modificado, para permitir que a aplicação trate
    a gravação das linhas por si.. [*] TACBrSAT agora passa a descender de TACBrComponent
[+] Adicionada a propriedade: Rede : TRede, para permitir gerar e manipular os
    XMLs para configuração da Interface de Rede do SAT [*] ConfigurarInterfaceDeRede modificado para caso não receba o conteudo de um
    XML como parâmetro de entrada, irá gerar um XML com os valores atribuidos a
    ACBrSAT.Rede [*] Metodo TesteFimAFim modificado para salvar o conteudo do XML de resposta em
    ACBrSAT.CFe, no caso de sucesso.

 

Lembram que o SAT da Dimep é compatível com o ACBrSAT, usando o modelo satDinamico_stdcall

  • Curtir 1
Consultor SAC ACBr

Daniel Simões de Almeida
O melhor TEF, é com o Projeto ACBr - Clique e Conheça
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

  • Fundadores
Postado

Mais algumas melhorias:

 

Data: 21/12/2014
-- ACBrSAT --        (por: DSA)
[+] Adicionada nova propriedade "Status: TACBrSATStatus", que conterá os valores
    já tratados da resposta ao método: "ConsultarStatusOperacional"

 

Demo do ACBrSAT atualizado em:

Consultor SAC ACBr

Daniel Simões de Almeida
O melhor TEF, é com o Projeto ACBr - Clique e Conheça
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

  • Este tópico foi criado há 3628 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.