Fórum Operações Pendentes em TEF #339308
25/03/2007
0
olá pessoal, gostaira de contar com a ajuda de vocês.....bem é o seguinte, como fazer as verificações de operações pendentes no tef?? alguem ai tem algum exemplo pra me passar, ou alguma ideia, pois estou tendo dificuldades pra fazer tais verificações....
valeu pessoal
abraço a todos
valeu pessoal
abraço a todos
L3gion4rio
Curtir tópico
+ 0
Responder
Posts
25/03/2007
Essistemas
Eu tenho um arquivo INI, e quando é bem sucedido a abertura da venda ou Adm eu uso ela
procedure TTef.AbreTransacaoTEF;
begin
try
ArquivoINI := TIniFile.Create(F_PathArq+´ESPDV.INI´);
ArquivoINI.WriteString(´STATUS´, ´Transacao´, ´Aberta´);
ArquivoINI.WriteString(´STATUS´, ´Rede´, F_Rede);
finally
ArquivoINI.Free;
end;
end;
quando cancelo ou fecho a venda e da tudo certo uso
procedure TTef.FechaTransacaoTEF;
begin
try
ArquivoINI := TIniFile.Create(F_PathArq+´ESPDV.INI´);
ArquivoINI.WriteString(´STATUS´, ´Transacao´, ´Fechada´);
ArquivoINI.DeleteKey(´STATUS´,´Rede´);
finally
ArquivoINI.Free;
end;
end;
procedure TTef.AbreTransacaoTEF;
begin
try
ArquivoINI := TIniFile.Create(F_PathArq+´ESPDV.INI´);
ArquivoINI.WriteString(´STATUS´, ´Transacao´, ´Aberta´);
ArquivoINI.WriteString(´STATUS´, ´Rede´, F_Rede);
finally
ArquivoINI.Free;
end;
end;
quando cancelo ou fecho a venda e da tudo certo uso
procedure TTef.FechaTransacaoTEF;
begin
try
ArquivoINI := TIniFile.Create(F_PathArq+´ESPDV.INI´);
ArquivoINI.WriteString(´STATUS´, ´Transacao´, ´Fechada´);
ArquivoINI.DeleteKey(´STATUS´,´Rede´);
finally
ArquivoINI.Free;
end;
end;
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)