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 lMensaje, bool canceled=false) |
| Lanza un evento con el resultado de la ejecución. | |
| void | LanzarEvento_ServicioNoDisponible (string mensaje, TipoMensaje severidad) |
| Lanza un evento de notificación de servicio no disponible. | |
| void | LanzarEvento_Progreso (int totalElementos, int elementoActual) |
| Calcula y lanza un evento de progreso. | |
| void | LanzarEvento_BeforeEnvioElemento (ref bool llOk) |
| Lanza un evento de inicio de proceso de un nuevo elemento. | |
| void | WorkerEnvios_RunWorkerCompleted (object sender, RunWorkerCompletedEventArgs e) |
| bool | ValidarTerritorio (string territorio50) |
| Metodo de validación de código de Sage50 para territorio. | |
| bool | ValidarTerritorio (int territorio50) |
| Metodo de validación de código de Sage50 para territorio. | |
| void | DisposeAsyncProcess () |
| Libera el proceso asíncrono. | |
| string | GetTerritorioEnvio (bool usarValorComponente200, string tcEmpresa="") |
| Get province code. | |
| SoftwareFacturacionDTO | ObtenerDatosSoftwareFacturacion (string tcEmpresa="") |
| Método auxiliar para obtener los datos del software de facturación. Recupera eventuales sobreescrituras desde COMUNES.VARIABLES. | |
| string | ConvertirTerritorioDe50AComponente (int territorio50) |
| Get the different codes for the Province mapped from Sage50 Values to TBai Component values. | |
| string | GetSigPolicyId_Description (string territorio) |
| string | GetSigPolicyId_Identifier (string territorio) |
| string | GetSigPolicyHash_DigestValue (string territorio) |
| string | GetVFFechaobligadoautonomos (string territorio) |
| string | VFFechaobligadosociedades (string territorio) |
| string | GetEntorno (string tcEmpresa="") |
| Obtiene el entorno en el que se esta ejecutando (PRE o PRO) | |
| bool | TerritorioSoportaEnvioOnline () |
Check if the current Territory Suppors Online sending
| |
| string | TratarImporte (AsientosFacturasGenerador datosFactura, decimal importe, string mascara) |
| decimal | ToMonedaEmpresa (AsientosFacturasGenerador datosFactura, decimal importe) |
| decimal | GetImporteRetencionFiscal (AsientosFacturasGenerador datosFactura) |
| Obtiene el importe de la retención fical a partir de los datos de factuara. | |
| decimal | GetImporteTotalFacturaTickets (ewDocVentaTPV datosTicket) |
| decimal | GetCuotaTotalFacturaTickets (ewDocVentaTPV datosTicket) |
| string | NormalizarCaracteresNif (string nifCandidato) |
| Suprime espacion y caráctetes especiales de un nif candidato. | |
| string | GetSendURL (string territorio, bool anulacion, DateTime documentDate, int sistemaFacturacionForzado=-1) |
| For generating the URL for sending files depending on the Province. | |
| void | CheckURLList () |
| For Setting up the URL List. | |
| void | GenerateTrace (string basicInfo, string extendedInfo="") |
| Traces for debugging. | |
| 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. | |
| virtual void | GenerarClaveRegimenEspecialTrascendencia (int operacion, decimal retporcen, Certification_XML_Parameters XML_generator_parameters, int _nTerritorio, int lnComuni_c, string lcNif, bool llCritCaja, bool llIvaNoCero, TipoIvaLinea tipoIvaLinea, out string ClaveRegimenEspecialOTrascendencia, out string ClaveRegimenEspecialOTrascendenciaAdicional1) |
| Method for calculating the IVA/VAT regime of a given Invoice. | |
| bool | OperacionIVAEuropeo (int tnOperacion) |
| Devuelve si es una operación del IVA Europeo. | |
| bool | ObtenerSiiIva303 (string numFactura, string claveComprobar, string codigoTipoIva="") |
| Checker for particular IVA/VAT types within a given invoice. | |
| bool | IvaExentoSiiIva303 (string numFactura, string codigoTipoIva="") |
| Método para comprobar si en el documento existe un IVA EXENTO Se realiza el filtro de Tipo de IVA por las movimientos del asiento que conllevan IVA. | |
| int | ObtenerCausaExencionSiiIva303 (string numFactura) |
| Método para obtener la causa de exención del SII para un tipo de IVA concreto en una factura IVAREPER.SIICASUEX → _SIICausaExencion (int) | |
| string | ObtenerExentaSiiIva303 (string numFactura) |
| Método para obtener el detalle de la exención del SII para un tipo de IVA concreto en una factura IVAREPER.SIIEXENTA → _SIIExenta (string XML serializado) | |
| eTipoOperacionEmitidasSII | ObtenerTipoOperacionFactura (string numFactura, string tipoIVA) |
| Aux method for calculating the IVA/VAT regime of a given Invoice. | |
| eTipoOperacionEmitidasSII | ObtenerTipoOperacionAutofactura (string numFactura, string tipoIVA, DatosAdicionalesFactura datos) |
| 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. | |
| bool | ObtenerSiiIva303Ticket (ewDocVentaTPV datosTicket, string claveComprobar) |
| Checker for particular IVA/VAT types within a given ticket. | |
| string | CalcularBaseIvaAplicandoEntregas (AsientosFacturasVentaGenerador.TipoIvaLinea iva, AsientosFacturasGenerador datosFactura, EntregasEnFactura datosEntregas) |
| List< string > | CalcularBasesExentasAplicandoEntregas (List< string > basesExentas, AsientosFacturasGenerador 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. | |
| bool | NifClienteEsEspecialOperaciones (string nifCliente) |
| Nif especiales (empiezan por N o por W) | |
| decimal | _DeTextoADecimal (string tcValorEnTexto) |
| Función auxiliar para convertir strings en formato libre a decimal. Si no puede devuelve 0.0. | |
| DataRow | GetRowCompletoTabla (string tableDatabase, string tableName, string whereClause) |
| Helper for retrieving a whole Row of a database table. | |
| List< string > | GetAllSimpleValuesFromXML (string xmlContent, string tagName) |
| Helper method for reading all tags from a XML string for a given field. | |
| List< string > | GetAllSimpleValuesFromJSON (string jsonContent, string tagName, string mascara) |
| Helper method for reading all given tags from a JSON string. | |
| 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. | |
| static void | ReadTerminalData (string tcEmpresa="") |
| Reading data from the Terminal used for Invoicing. | |
| static void | ConfigureCertificate (bool useCertificateFile, string certificateName, SecureString certificatePassword=null) |
| Configure the Certificate data for signing the file. | |
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. | |
| ew.docsven.ewDocVentaFRA | loFactura = null |
| Member for holding additional Invoice data. | |
Atributos estáticos protegidos | |
| static ICertificationDA | DataAccess = DependencyInjector.Instance.Retrieve<ICertificationDA>() |
| Acceso a datos. | |
| static BackgroundWorker | _workerEnvios = null |
| Background worker for async operations. | |
| static int | _workerQueueLenght = 0 |
| Background worker queue lenght. | |
| static int | _workerQueueCompleted = 0 |
| Background worker queued items completed count. | |
| static bool | AbortRequested = false |
| Flag for a controlled termination of the Async sending process. | |
| static bool | _ActiveTraces = false |
Propiedades | |
| string | NombreComponente [get] |
| Nombre del componente que encapsulará el adapter derivado. | |
| string | ErrorMessage = "" [get, protected set] |
| Public property for retrieving errors. | |
| string | GeneratedSignature = "" [get, protected set] |
| Public property for retrieving the generated digital signature data. | |
| string | GeneratedXMLFile = "" [get, protected set] |
| Public property for retrieving a generated XML signed file. | |
| string | GeneratedCode = "" [get, protected set] |
| Public property for retrieving a generated Code. | |
| string | GeneratedQR = "" [get, protected set] |
| Public property for retrieving a generated QR Code. | |
| static bool | UseCertificateFile = false [get, set] |
| Use a physical file with certificate data. | |
| static string | CertificateName = "" [get, set] |
| Either the filenme of a physical file with certificate data, or the Certificate name in the Windows Cert Storage. | |
| static SecureString | CertificatePassword = null [get, set] |
| For physical files with certificate data, the password, for Stored Certificates, the thumbprint. | |
| static string | TerminalCertificateName = null [get, set] |
| Selected certificate name from Sage50 Terminal. | |
| static bool | TerminalCertificateTypeSello = false [get, set] |
| Selected certificate Sello type. | |
| static string | TerminalSerialNumber = null [get, set] |
| Sage50 Terminal Serial Number. | |
| 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 26 del archivo CertificationAdapter.cs.
|
inlineprotected |
| mascaraCertificacion |
Definición en la línea 51 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 1488 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 790 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1409 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 1427 del archivo CertificationAdapter.cs.
|
inlineprotected |
For Setting up the URL List.
Definición en la línea 703 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 783 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 360 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 333 del archivo CertificationAdapter.cs.
|
abstractprotected |
Libera el proceso asíncrono.
|
inlineprotected |
Definición en la línea 1593 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1585 del archivo CertificationAdapter.cs.
|
inlineprotectedvirtual |
Method for calculating the IVA/VAT regime of a given Invoice.
| operacion | |
| retporcen | |
| _nTerritorio | Territorio SII |
| lnComuni_c | |
| lcNif | |
| llCritCaja | |
| llIvaNoCero | |
| tipoIvaLinea | |
| ClaveRegimenEspecialOTrascendencia | |
| ClaveRegimenEspecialOTrascendenciaAdicional1 |
Reimplementado en sage.addons.factucert.Negocio.Clases.CertificationAdapterVerifactu.
Definición en la línea 867 del archivo CertificationAdapter.cs.
|
inlineprotected |
Traces for debugging.
| basicInfo | Trace info |
| extendedInfo | Trace extra info |
Definición en la línea 726 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 1568 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 1542 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 617 del archivo CertificationAdapter.cs.
|
inlineprotected |
Obtiene el entorno en el que se esta ejecutando (PRE o PRO)
Definición en la línea 458 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 589 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 600 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 1515 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 653 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 412 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 384 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 398 del archivo CertificationAdapter.cs.
|
inlineprotected |
Get province code.
| tcEmpresa | Código de empresa, si llega vacío el parámetro se asume la empresa activa. |
Definición en la línea 298 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 426 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 847 del archivo CertificationAdapter.cs.
|
inlineprotected |
Método para comprobar si en el documento existe un IVA EXENTO Se realiza el filtro de Tipo de IVA por las movimientos del asiento que conllevan IVA.
| numFactura | Invoice number |
| codigoTipoIva | Specific code to check |
Definición en la línea 1192 del archivo CertificationAdapter.cs.
|
inlineprotected |
Lanza un evento de inicio de proceso de un nuevo elemento.
| llOk |
Definición en la línea 173 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 103 del archivo CertificationAdapter.cs.
|
inlineprotected |
Calcula y lanza un evento de progreso.
| totalElementos | |
| elementoActual |
Definición en la línea 148 del archivo CertificationAdapter.cs.
|
inlineprotected |
Lanza un evento de notificación de servicio no disponible.
| mensaje | |
| severidad |
Definición en la línea 137 del archivo CertificationAdapter.cs.
|
inlineprotected |
Nif especiales (empiezan por N o por W)
| nifCliente |
Definición en la línea 1476 del archivo CertificationAdapter.cs.
|
inlineprotected |
Suprime espacion y caráctetes especiales de un nif candidato.
| nifCandidato | Nif candidato |
Definición en la línea 639 del archivo CertificationAdapter.cs.
|
inlineprotected |
Método para obtener la causa de exención del SII para un tipo de IVA concreto en una factura IVAREPER.SIICASUEX → _SIICausaExencion (int)
| numFactura | Invoice number |
Definición en la línea 1215 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1314 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1306 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 317 del archivo CertificationAdapter.cs.
|
inlineprotected |
Método para obtener el detalle de la exención del SII para un tipo de IVA concreto en una factura IVAREPER.SIIEXENTA → _SIIExenta (string XML serializado)
| numFactura | Invoice number |
Definición en la línea 1234 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 1167 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 1349 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1286 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 1258 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 1327 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 1147 del archivo CertificationAdapter.cs.
|
inlinestaticprotected |
Reading data from the Terminal used for Invoicing.
Definición en la línea 762 del archivo CertificationAdapter.cs.
|
inlineprotected |
Check if the current Territory Suppors Online sending
Definición en la línea 470 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 534 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 529 del archivo CertificationAdapter.cs.
|
abstractprotected |
|
abstractprotected |
|
inlineprotected |
Definición en la línea 440 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 178 del archivo CertificationAdapter.cs.
|
staticprotected |
Definición en la línea 271 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 33 del archivo CertificationAdapter.cs.
|
staticprotected |
Background worker for async operations.
Definición en la línea 249 del archivo CertificationAdapter.cs.
|
staticprotected |
Background worker queued items completed count.
Definición en la línea 259 del archivo CertificationAdapter.cs.
|
staticprotected |
Background worker queue lenght.
Definición en la línea 254 del archivo CertificationAdapter.cs.
|
staticprotected |
Flag for a controlled termination of the Async sending process.
Definición en la línea 264 del archivo CertificationAdapter.cs.
|
staticprotected |
Acceso a datos.
Definición en la línea 45 del archivo CertificationAdapter.cs.
|
protected |
Member for holding additional Invoice data.
Definición en la línea 1157 del archivo CertificationAdapter.cs.
|
protected |
Definición en la línea 28 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 222 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
For physical files with certificate data, the password, for Stored Certificates, the thumbprint.
Definición en la línea 227 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving errors.
Definición en la línea 190 del archivo CertificationAdapter.cs.
|
staticgetprotected |
Definición en la línea 739 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving a generated Code.
Definición en la línea 205 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving a generated QR Code.
Definición en la línea 210 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving the generated digital signature data.
Definición en la línea 195 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving a generated XML signed file.
Definición en la línea 200 del archivo CertificationAdapter.cs.
|
getabstractprotected |
Nombre del componente que encapsulará el adapter derivado.
Definición en la línea 38 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
Selected certificate name from Sage50 Terminal.
Definición en la línea 232 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
Selected certificate Sello type.
Definición en la línea 237 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
Sage50 Terminal Serial Number.
Definición en la línea 242 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
Use a physical file with certificate data.
Definición en la línea 217 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 82 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 87 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 62 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 67 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 77 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 72 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 92 del archivo CertificationAdapter.cs.