From 703c90acc643b620b6b27cdd42c6a4a3d4f0a61a Mon Sep 17 00:00:00 2001 From: Transis ERP Date: Wed, 30 Mar 2022 11:11:30 -0300 Subject: [PATCH] =?UTF-8?q?Alterados=20m=C3=A9todos=20n=C3=A3o=20implement?= =?UTF-8?q?ados=20no=20SystemPro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SystemPro/SystemProServiceClient.cs | 62 ++++++++++--------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/src/OpenAC.Net.NFSe/Providers/SystemPro/SystemProServiceClient.cs b/src/OpenAC.Net.NFSe/Providers/SystemPro/SystemProServiceClient.cs index ea22a5c7..59d20079 100644 --- a/src/OpenAC.Net.NFSe/Providers/SystemPro/SystemProServiceClient.cs +++ b/src/OpenAC.Net.NFSe/Providers/SystemPro/SystemProServiceClient.cs @@ -1,10 +1,10 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : OpenAC.Net.NFSe // Author : Felipe Silveira (Transis Software) // Created : 18-08-2021 // // Last Modified By : Felipe Silveira (Transis Software) -// Last Modified On : 18-08-2021 +// Last Modified On : 30-03-2022 // *********************************************************************** // // The MIT License (MIT) @@ -29,12 +29,12 @@ // // *********************************************************************** +using OpenAC.Net.Core.Extensions; +using OpenAC.Net.DFe.Core; using System; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Xml.Linq; -using OpenAC.Net.Core.Extensions; -using OpenAC.Net.DFe.Core; namespace OpenAC.Net.NFSe.Providers { @@ -51,7 +51,7 @@ public SystemProServiceClient(ProviderSystemPro provider, TipoUrl tipoUrl, X509C #region Methods - public string Enviar(string cabec, string msg) => throw new NotImplementedException(); + public string Enviar(string cabec, string msg) => throw new NotImplementedException("Utilize o metodo EnviarSincrono"); public string EnviarSincrono(string cabec, string msg) { @@ -72,34 +72,40 @@ public string EnviarSincrono(string cabec, string msg) public string ConsultarLoteRps(string cabec, string msg) { - var message = new StringBuilder(); - message.Append(""); - message.Append(""); - message.AppendCData(cabec); - message.Append(""); - message.Append(""); - message.AppendCData(msg); - message.Append(""); - message.Append(""); - - return Execute("", message.ToString(), "ConsultarLoteRpsResponse"); + throw new NotImplementedException("ConsultarLoteRps nao implementada/suportada para o provedor SystemPro"); + + //Ate o dia 30/03/22 nao estava disponivel essa consulta pelo provedor + //var message = new StringBuilder(); + //message.Append(""); + //message.Append(""); + //message.AppendCData(cabec); + //message.Append(""); + //message.Append(""); + //message.AppendCData(msg); + //message.Append(""); + //message.Append(""); + + //return Execute("", message.ToString(), "ConsultarLoteRpsResponse"); } public string ConsultarSequencialRps(string cabec, string msg) => throw new NotImplementedException(); public string ConsultarNFSeRps(string cabec, string msg) { - var message = new StringBuilder(); - message.Append(""); - message.Append(""); - message.AppendCData(cabec); - message.Append(""); - message.Append(""); - message.AppendCData(msg); - message.Append(""); - message.Append(""); - - return Execute("", message.ToString(), "ConsultarNfseRpsResponse"); + throw new NotImplementedException("ConsultarNFSeRps nao implementada/suportada para o provedor SystemPro"); + + //Ate o dia 30/03/22 nao estava disponivel essa consulta pelo provedor + //var message = new StringBuilder(); + //message.Append(""); + //message.Append(""); + //message.AppendCData(cabec); + //message.Append(""); + //message.Append(""); + //message.AppendCData(msg); + //message.Append(""); + //message.Append(""); + + //return Execute("", message.ToString(), "ConsultarNfseRpsResponse"); } public string ConsultarNFSe(string cabec, string msg) @@ -153,4 +159,4 @@ protected override string TratarRetorno(XElement xmlDocument, string[] responseT #endregion Methods } -} \ No newline at end of file +}