Clase abstracta de soporte a los diferentes Adapters que envuelven a los componentes externos Más...
Métodos protegidos | |
CertificationAdapter (string mascaraCertificacion) | |
void | LanzarEvento_Finalizacion (List< string > completados, List< string > correctos, List< string > fallidos, List< string > pendientes, List< string > rechazados, bool canceled=false) |
Lanza un evento con el resultado de la ejecución Más... | |
void | LanzarEvento_ServicioNoDisponible (string mensaje, TipoMensaje severidad) |
Lanza un evento de notificación de servicio no disponible Más... | |
void | LanzarEvento_Progreso (int totalElementos, int elementoActual) |
Calcula y lanza un evento de progreso Más... | |
void | LanzarEvento_BeforeEnvioElemento (ref bool llOk) |
Lanza un evento de inicio de proceso de un nuevo elemento Más... | |
void | WorkerEnvios_RunWorkerCompleted (object sender, RunWorkerCompletedEventArgs e) |
abstract bool | ValidarTerritorio (string territorio50) |
Metodo de validación de código de Sage50 para territorio Más... | |
abstract bool | ValidarTerritorio (int territorio50) |
Metodo de validación de código de Sage50 para territorio Más... | |
abstract void | DisposeAsyncProcess () |
Libera el proceso asíncrono Más... | |
string | GetTerritorioEnvio (bool usarValorComponente200) |
Get province code Más... | |
SoftwareFacturacionDTO | ObtenerDatosSoftwareFacturacion () |
Método auxiliar para obtener los datos del software de facturación. Recupera eventuales sobreescrituras desde COMUNES.VARIABLES Más... | |
string | ConvertirTerritorioDe50AComponente (int territorio50) |
Get the different codes for the Province mapped from Sage50 Values to TBai Component values Más... | |
string | GetSigPolicyId_Description (string territorio) |
string | GetSigPolicyId_Identifier (string territorio) |
string | GetSigPolicyHash_DigestValue (string territorio) |
string | GetEntorno () |
Obtiene el entorno en el que se esta ejecutando (PRE o PRO) Más... | |
bool | TerritorioSoportaEnvioOnline () |
Check if the current Territory Suppors Online sending
| |
string | TratarImporte (AsientosFacturasVentaGenerador datosFactura, decimal importe, string mascara) |
decimal | ToMonedaEmpresa (AsientosFacturasVentaGenerador datosFactura, decimal importe) |
decimal | GetImporteRetencionFiscal (AsientosFacturasVentaGenerador datosFactura) |
Obtiene el importe de la retención fical a partir de los datos de factuara Más... | |
decimal | GetImporteTotalFacturaTickets (ewDocVentaTPV datosTicket) |
string | NormalizarCaracteresNif (string nifCandidato) |
Suprime espacion y caráctetes especiales de un nif candidato. Más... | |
string | GetSendURL (string territorio, bool anulacion, DateTime documentDate) |
For generating the URL for sending files depending on the Province Más... | |
string | GetQrURL (string territorio) |
For generating the URL for the QR Code Más... | |
void | CheckURLList () |
For Setting up the URL List Más... | |
void | GenerateTrace (string basicInfo, string extendedInfo="") |
Traces for debugging Más... | |
Enums.TipoRegistroCertif | AjustarTipoRegistroParaAnulaciones (bool esAnulacion, Enums.TipoRegistroCertif tipo) |
string | IncorporarPaisAlNif (string codigoPais, string nifCliente) |
Método auxiliar para encapsular los casos especiales a la hora de incorporar el país al nif Más... | |
void | GenerarClaveRegimenEspecialTrascendencia (DataRow toFactura, Certification_XML_Parameters XML_generator_parameters, int _nTerritorio, int lnComuni_c, string lcNif, bool llCritCaja, bool llIvaNoCero, out string ClaveRegimenEspecialOTrascendencia, out string ClaveRegimenEspecialOTrascendenciaAdicional1) |
Method for calculating the IVA/VAT regime of a given Invoice Más... | |
bool | OperacionIVAEuropeo (int tnOperacion) |
Devuelve si es una operación del IVA Europeo Más... | |
bool | ObtenerSiiIva303 (string numFactura, string claveComprobar, string codigoTipoIva="") |
Checker for particular IVA/VAT types within a given invoice Más... | |
eTipoOperacionEmitidasSII | ObtenerTipoOperacionFactura (string numFactura, string tipoIVA) |
Aux method for calculating the IVA/VAT regime of a given Invoice Más... | |
IEnumerable< DetalleTicketRectificativoDTO > | ObtenerDatosRectificadasMultiplesTickets (string ticket, string letra) |
IEnumerable< DetalleFacturaRectificativaDTO > | ObtenerDatosRectificadasMultiplesFacturas (string factura) |
eTipoOperacionEmitidasSII | ObtenerTipoOperacionTicket (ewDocVentaTPV datosTicket, string VATCode) |
Aux method for calculating the IVA/VAT regime of a given Ticket Más... | |
bool | ObtenerSiiIva303Ticket (ewDocVentaTPV datosTicket, string claveComprobar) |
Checker for particular IVA/VAT types within a given ticket Más... | |
string | CalcularBaseIvaAplicandoEntregas (AsientosFacturasVentaGenerador.TipoIvaLinea iva, AsientosFacturasVentaGenerador datosFactura, EntregasEnFactura datosEntregas) |
List< string > | CalcularBasesExentasAplicandoEntregas (List< string > basesExentas, AsientosFacturasVentaGenerador datosFactura, EntregasEnFactura datosEntregas) |
Los datos de bases exentas son a libre asignación del usuario pero hay que aplicar de alguna forma una minoración en base a las entregas Más... | |
bool | NifClienteEsEspecialOperaciones (string nifCliente) |
Nif especiales (empiezan por N o por W) Más... | |
decimal | _DeTextoADecimal (string tcValorEnTexto) |
Función auxiliar para convertir strings en formato libre a decimal. Si no puede devuelve 0.0 Más... | |
DataRow | GetRowCompletoTabla (string tableDatabase, string tableName, string whereClause) |
Helper for retrieving a whole Row of a database table Más... | |
List< string > | GetAllSimpleValuesFromXML (string xmlContent, string tagName) |
Helper method for reading all tags from a XML string for a given field Más... | |
List< string > | GetAllSimpleValuesFromJSON (string jsonContent, string tagName, string mascara) |
Helper method for reading all given tags from a JSON string Más... | |
bool | EsSujeta (eTipoOperacionEmitidasSII tipoOpIva) |
bool | EsNoSujeta (eTipoOperacionEmitidasSII tipoOpIva) |
Métodos protegidos estáticos | |
static string | ConvertirTerritorioDe200A50 (string territorio200) |
Get the different codes for the Province mapped from TBai Component values Values to Sage50 Más... | |
static void | ReadTerminalData () |
Reading data from the Terminal used for Invoicing Más... | |
static void | ConfigureCertificate (bool useCertificateFile, string certificateName, SecureString certificatePassword=null) |
Configure the Certificate data for signing the file Más... | |
Atributos protegidos | |
readonly string | MonedaEmpresa = Convert.ToString(EW_GLOBAL._GetVariable("wc_moneda")) |
readonly string | _mascaraParaCertificacion = "0.00" |
Mask for formatting strings toxml document. It is fixed in the derived definition document and XML schema, so we ignore Sage50 internal masks. Más... | |
ew.docsven.ewDocVentaFRA | loFactura = null |
Member for holding additional Invoice data Más... | |
Atributos protegidos estáticos | |
static ICertificationDA | DataAccess = DependencyInjector.Instance.Retrieve<ICertificationDA>() |
Acceso a datos Más... | |
static BackgroundWorker | _workerEnvios = null |
Background worker for async operations Más... | |
static int | _workerQueueLenght = 0 |
Background worker queue lenght Más... | |
static int | _workerQueueCompleted = 0 |
Background worker queued items completed count Más... | |
static bool | AbortRequested = false |
Flag for a controlled termination of the Async sending process Más... | |
static bool | _ActiveTraces = false |
Propiedades | |
abstract string | NombreComponente [get] |
Nombre del componente que encapsulará el adapter derivado Más... | |
string | ErrorMessage = "" [get, protected set] |
Public property for retrieving errors Más... | |
string | GeneratedSignature = "" [get, protected set] |
Public property for retrieving the generated digital signature data Más... | |
string | GeneratedXMLFile = "" [get, protected set] |
Public property for retrieving a generated XML signed file Más... | |
string | GeneratedCode = "" [get, protected set] |
Public property for retrieving a generated Code Más... | |
string | GeneratedQR = "" [get, protected set] |
Public property for retrieving a generated QR Code Más... | |
static bool | UseCertificateFile = false [get, set] |
Use a physical file with certificate data Más... | |
static string | CertificateName = "" [get, set] |
Either the filenme of a physical file with certificate data, or the Certificate name in the Windows Cert Storage Más... | |
static SecureString | CertificatePassword = null [get, set] |
For physical files with certificate data, the password, for Stored Certificates, the thumbprint. Más... | |
static string | TerminalCertificateName = null [get, set] |
Selected certificate name from Sage50 Terminal Más... | |
static string | TerminalSerialNumber = null [get, set] |
Sage50 Terminal Serial Number Más... | |
static HashSet< string > | FacturasCreadasEstaSesionSinEnviar [get] |
Clase abstracta de soporte a los diferentes Adapters que envuelven a los componentes externos
Definición en la línea 24 del archivo CertificationAdapter.cs.
|
inlineprotected |
mascaraCertificacion |
Definición en la línea 49 del archivo CertificationAdapter.cs.
|
inlineprotected |
Función auxiliar para convertir strings en formato libre a decimal. Si no puede devuelve 0.0
tcValorEnTexto |
Definición en la línea 1197 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 682 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1118 del archivo CertificationAdapter.cs.
|
inlineprotected |
Los datos de bases exentas son a libre asignación del usuario pero hay que aplicar de alguna forma una minoración en base a las entregas
bases | |
datosFactura | |
datosEntregas |
Definición en la línea 1136 del archivo CertificationAdapter.cs.
|
inlineprotected |
For Setting up the URL List
Definición en la línea 602 del archivo CertificationAdapter.cs.
|
inlinestaticprotected |
Configure the Certificate data for signing the file
useCertificateFile | Use a physical file with a cert, or a certificate placed in the Windows storage |
certificateName | Name for the certificate, either the File Name, or the Certificate Id in the Storage |
certificatePassword | Optional. For physical files with certificate data, the password, for Stored Certificates, the thumbprint. |
Definición en la línea 675 del archivo CertificationAdapter.cs.
|
inlinestaticprotected |
Get the different codes for the Province mapped from TBai Component values Values to Sage50
territorio200 | The value of TBai Component territory |
Definición en la línea 350 del archivo CertificationAdapter.cs.
|
inlineprotected |
Get the different codes for the Province mapped from Sage50 Values to TBai Component values
territorio50 | The value of Sage50 territory |
Definición en la línea 323 del archivo CertificationAdapter.cs.
|
protectedpure virtual |
Libera el proceso asíncrono
Implementado en sage.addons.factucert.Negocio.Clases.CertificationAdapterVerifactu y sage.addons.factucert.Negocio.Clases.CertificationAdapterTbai.
|
inlineprotected |
Definición en la línea 1299 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1291 del archivo CertificationAdapter.cs.
|
inlineprotected |
Method for calculating the IVA/VAT regime of a given Invoice
toFactura | |
_nTerritorio | Territorio SII |
lnComuni_c | |
lcNif | |
llCritCaja | |
llIvaNoCero | |
ClaveRegimenEspecialOTrascendencia | |
ClaveRegimenEspecialOTrascendenciaAdicional1 |
Definición en la línea 756 del archivo CertificationAdapter.cs.
|
inlineprotected |
Traces for debugging
basicInfo | Trace info |
extendedInfo | Trace extra info |
Definición en la línea 623 del archivo CertificationAdapter.cs.
|
inlineprotected |
Helper method for reading all given tags from a JSON string
jsonContent | JSON string to process |
tagName | Tag to look for |
Definición en la línea 1274 del archivo CertificationAdapter.cs.
|
inlineprotected |
Helper method for reading all tags from a XML string for a given field
xmlContent | XML string to process |
tagName | Tag to look for |
Definición en la línea 1251 del archivo CertificationAdapter.cs.
|
inlineprotected |
Obtiene el entorno en el que se esta ejecutando (PRE o PRO)
Definición en la línea 420 del archivo CertificationAdapter.cs.
|
inlineprotected |
Obtiene el importe de la retención fical a partir de los datos de factuara
datosFactura |
Definición en la línea 521 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 531 del archivo CertificationAdapter.cs.
|
inlineprotected |
For generating the URL for the QR Code
territorio | Province code as defined by the component |
Definición en la línea 582 del archivo CertificationAdapter.cs.
|
inlineprotected |
Helper for retrieving a whole Row of a database table
tableDatabase | Database to read |
tableName | Table name to read |
whereClause | Where clause |
Definición en la línea 1224 del archivo CertificationAdapter.cs.
|
inlineprotected |
For generating the URL for sending files depending on the Province
territorio | Province code as defined by the TBai component |
anulacion | Is a cancellation URL request |
Definición en la línea 560 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 402 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 374 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 388 del archivo CertificationAdapter.cs.
|
inlineprotected |
Get province code
Definición en la línea 289 del archivo CertificationAdapter.cs.
|
inlineprotected |
Método auxiliar para encapsular los casos especiales a la hora de incorporar el país al nif
codigoPais | |
nifCliente |
Definición en la línea 739 del archivo CertificationAdapter.cs.
|
inlineprotected |
Lanza un evento de inicio de proceso de un nuevo elemento
llOk |
Definición en la línea 170 del archivo CertificationAdapter.cs.
|
inlineprotected |
Lanza un evento con el resultado de la ejecución
completados | Envíos completados (sin importar el resultado) |
correctos | Envíos correctos |
fallidos | Envíos con errores |
pendientes | Envíos no realizados |
rechazados | Envíos rechazados |
canceled | True para operación cancelada |
Definición en la línea 100 del archivo CertificationAdapter.cs.
|
inlineprotected |
Calcula y lanza un evento de progreso
totalElementos | |
elementoActual |
Definición en la línea 145 del archivo CertificationAdapter.cs.
|
inlineprotected |
Lanza un evento de notificación de servicio no disponible
mensaje | |
severidad |
Definición en la línea 134 del archivo CertificationAdapter.cs.
|
inlineprotected |
Nif especiales (empiezan por N o por W)
nifCliente |
Definición en la línea 1185 del archivo CertificationAdapter.cs.
|
inlineprotected |
Suprime espacion y caráctetes especiales de un nif candidato.
nifCandidato | Nif candidato |
Definición en la línea 546 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1023 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1015 del archivo CertificationAdapter.cs.
|
inlineprotected |
Método auxiliar para obtener los datos del software de facturación. Recupera eventuales sobreescrituras desde COMUNES.VARIABLES
Definición en la línea 307 del archivo CertificationAdapter.cs.
|
inlineprotected |
Checker for particular IVA/VAT types within a given invoice
numFactura | Invoice number |
claveComprobar | Type of VAT to check for |
codigoTipoIva | Specific code to check |
Definición en la línea 965 del archivo CertificationAdapter.cs.
|
inlineprotected |
Checker for particular IVA/VAT types within a given ticket
datosTicket | Ticket data |
claveComprobar | Type of VAT to check for |
Definición en la línea 1058 del archivo CertificationAdapter.cs.
|
inlineprotected |
Aux method for calculating the IVA/VAT regime of a given Invoice
numFactura | Invoice number |
Definición en la línea 987 del archivo CertificationAdapter.cs.
|
inlineprotected |
Aux method for calculating the IVA/VAT regime of a given Ticket
datosTicket | Ticket data |
Definición en la línea 1036 del archivo CertificationAdapter.cs.
|
inlineprotected |
Devuelve si es una operación del IVA Europeo
Operaciones:
tnOperacion | Operación del asiento |
Definición en la línea 946 del archivo CertificationAdapter.cs.
|
inlinestaticprotected |
Reading data from the Terminal used for Invoicing
Definición en la línea 659 del archivo CertificationAdapter.cs.
|
inlineprotected |
Check if the current Territory Suppors Online sending
Definición en la línea 432 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 489 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 484 del archivo CertificationAdapter.cs.
|
protectedpure virtual |
Metodo de validación de código de Sage50 para territorio
territorio50 |
Implementado en sage.addons.factucert.Negocio.Clases.CertificationAdapterVerifactu y sage.addons.factucert.Negocio.Clases.CertificationAdapterTbai.
|
protectedpure virtual |
Metodo de validación de código de Sage50 para territorio
territorio50 |
Implementado en sage.addons.factucert.Negocio.Clases.CertificationAdapterVerifactu y sage.addons.factucert.Negocio.Clases.CertificationAdapterTbai.
|
inlineprotected |
Definición en la línea 175 del archivo CertificationAdapter.cs.
|
staticprotected |
Definición en la línea 263 del archivo CertificationAdapter.cs.
|
protected |
Mask for formatting strings toxml document. It is fixed in the derived definition document and XML schema, so we ignore Sage50 internal masks.
Definición en la línea 31 del archivo CertificationAdapter.cs.
|
staticprotected |
Background worker for async operations
Definición en la línea 241 del archivo CertificationAdapter.cs.
|
staticprotected |
Background worker queued items completed count
Definición en la línea 251 del archivo CertificationAdapter.cs.
|
staticprotected |
Background worker queue lenght
Definición en la línea 246 del archivo CertificationAdapter.cs.
|
staticprotected |
Flag for a controlled termination of the Async sending process
Definición en la línea 256 del archivo CertificationAdapter.cs.
|
staticprotected |
Acceso a datos
Definición en la línea 43 del archivo CertificationAdapter.cs.
|
protected |
Member for holding additional Invoice data
Definición en la línea 956 del archivo CertificationAdapter.cs.
|
protected |
Definición en la línea 26 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
Either the filenme of a physical file with certificate data, or the Certificate name in the Windows Cert Storage
Definición en la línea 219 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
For physical files with certificate data, the password, for Stored Certificates, the thumbprint.
Definición en la línea 224 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving errors
Definición en la línea 187 del archivo CertificationAdapter.cs.
|
staticgetprotected |
Definición en la línea 637 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving a generated Code
Definición en la línea 202 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving a generated QR Code
Definición en la línea 207 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving the generated digital signature data
Definición en la línea 192 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving a generated XML signed file
Definición en la línea 197 del archivo CertificationAdapter.cs.
|
getprotected |
Nombre del componente que encapsulará el adapter derivado
Definición en la línea 36 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
Selected certificate name from Sage50 Terminal
Definición en la línea 229 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
Sage50 Terminal Serial Number
Definición en la línea 234 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
Use a physical file with certificate data
Definición en la línea 214 del archivo CertificationAdapter.cs.
sage.addons.factucert.Negocio.Interficies.CertifiedFileNotFound sage.addons.factucert.Negocio.Clases.CertificationAdapter._CertifiedFileNotFound |
Evento que se produce al no encontrar un fichero certificado para enviar
Definición en la línea 79 del archivo CertificationAdapter.cs.
sage.addons.factucert.Negocio.Interficies.FileRejected sage.addons.factucert.Negocio.Clases.CertificationAdapter._FileRejected |
Evento que se produce al recibir un rechazo
Definición en la línea 84 del archivo CertificationAdapter.cs.
sage.addons.factucert.Negocio.Interficies.MassiveSendAbort sage.addons.factucert.Negocio.Clases.CertificationAdapter._MassiveSendAbort |
Evento que se produce antes de la ejecución de cada certificación
Definición en la línea 59 del archivo CertificationAdapter.cs.
sage.addons.factucert.Negocio.Interficies.MassiveSendEnded sage.addons.factucert.Negocio.Clases.CertificationAdapter._MassiveSendEnded |
Evento que se produce al concluir la certificación
Definición en la línea 64 del archivo CertificationAdapter.cs.
sage.addons.factucert.Negocio.Interficies.MassiveSendProgress sage.addons.factucert.Negocio.Clases.CertificationAdapter._MassiveSendProgress |
Evento que se produce al incrementar el progreso del proceso
Definición en la línea 74 del archivo CertificationAdapter.cs.
sage.addons.factucert.Negocio.Interficies.MassiveSendRunWorkerCompleted sage.addons.factucert.Negocio.Clases.CertificationAdapter._MassiveSendRunWorkerCompleted |
Evento delegado que se produce al abacar el proceso asincrono
Definición en la línea 69 del archivo CertificationAdapter.cs.
sage.addons.factucert.Negocio.Interficies.ServiceUnavailable sage.addons.factucert.Negocio.Clases.CertificationAdapter._ServiceUnavailable |
Evento que se produce cuando el servicio no esta disponible
Definición en la línea 89 del archivo CertificationAdapter.cs.