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. | |
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 | 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 (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. | |
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. | |
string | GetQrURL (string territorio, int sistemaFacturacionForzado=-1) |
For generating the URL for the QR Code. | |
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 (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. | |
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. | |
eTipoOperacionEmitidasSII | ObtenerTipoOperacionFactura (string numFactura, string tipoIVA) |
Aux method for calculating the IVA/VAT regime of a given Invoice. | |
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, 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. | |
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 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 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 1232 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 716 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1153 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 1171 del archivo CertificationAdapter.cs.
|
inlineprotected |
For Setting up the URL List.
Definición en la línea 632 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 709 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 353 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 326 del archivo CertificationAdapter.cs.
|
abstractprotected |
Libera el proceso asíncrono.
|
inlineprotected |
Definición en la línea 1337 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1329 del archivo CertificationAdapter.cs.
|
inlineprotectedvirtual |
Method for calculating the IVA/VAT regime of a given Invoice.
toFactura | |
_nTerritorio | Territorio SII |
lnComuni_c | |
lcNif | |
llCritCaja | |
llIvaNoCero | |
ClaveRegimenEspecialOTrascendencia | |
ClaveRegimenEspecialOTrascendenciaAdicional1 |
Reimplementado en sage.addons.factucert.Negocio.Clases.CertificationAdapterVerifactu.
Definición en la línea 790 del archivo CertificationAdapter.cs.
|
inlineprotected |
Traces for debugging.
basicInfo | Trace info |
extendedInfo | Trace extra info |
Definición en la línea 653 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 1312 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 1286 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 557 del archivo CertificationAdapter.cs.
|
inlineprotected |
Obtiene el entorno en el que se esta ejecutando (PRE o PRO)
Definición en la línea 423 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 538 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 548 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 602 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 1259 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 590 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 405 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 377 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 391 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 291 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 773 del archivo CertificationAdapter.cs.
|
inlineprotected |
Lanza un evento de inicio de proceso de un nuevo elemento.
llOk |
Definición en la línea 171 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 101 del archivo CertificationAdapter.cs.
|
inlineprotected |
Calcula y lanza un evento de progreso.
totalElementos | |
elementoActual |
Definición en la línea 146 del archivo CertificationAdapter.cs.
|
inlineprotected |
Lanza un evento de notificación de servicio no disponible.
mensaje | |
severidad |
Definición en la línea 135 del archivo CertificationAdapter.cs.
|
inlineprotected |
Nif especiales (empiezan por N o por W)
nifCliente |
Definición en la línea 1220 del archivo CertificationAdapter.cs.
|
inlineprotected |
Suprime espacion y caráctetes especiales de un nif candidato.
nifCandidato | Nif candidato |
Definición en la línea 576 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1058 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 1050 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 310 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 1000 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 1093 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 1022 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 1071 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 981 del archivo CertificationAdapter.cs.
|
inlinestaticprotected |
Reading data from the Terminal used for Invoicing.
Definición en la línea 689 del archivo CertificationAdapter.cs.
|
inlineprotected |
Check if the current Territory Suppors Online sending
Definición en la línea 435 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 499 del archivo CertificationAdapter.cs.
|
inlineprotected |
Definición en la línea 494 del archivo CertificationAdapter.cs.
|
abstractprotected |
|
abstractprotected |
|
inlineprotected |
Definición en la línea 176 del archivo CertificationAdapter.cs.
|
staticprotected |
Definición en la línea 264 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 242 del archivo CertificationAdapter.cs.
|
staticprotected |
Background worker queued items completed count.
Definición en la línea 252 del archivo CertificationAdapter.cs.
|
staticprotected |
Background worker queue lenght.
Definición en la línea 247 del archivo CertificationAdapter.cs.
|
staticprotected |
Flag for a controlled termination of the Async sending process.
Definición en la línea 257 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 991 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 220 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
For physical files with certificate data, the password, for Stored Certificates, the thumbprint.
Definición en la línea 225 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving errors.
Definición en la línea 188 del archivo CertificationAdapter.cs.
|
staticgetprotected |
Definición en la línea 666 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving a generated Code.
Definición en la línea 203 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving a generated QR Code.
Definición en la línea 208 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving the generated digital signature data.
Definición en la línea 193 del archivo CertificationAdapter.cs.
|
getprotected set |
Public property for retrieving a generated XML signed file.
Definición en la línea 198 del archivo CertificationAdapter.cs.
|
getabstractprotected |
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 230 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
Sage50 Terminal Serial Number.
Definición en la línea 235 del archivo CertificationAdapter.cs.
|
staticgetsetprotected |
Use a physical file with certificate data.
Definición en la línea 215 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 80 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 85 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 60 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 65 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 75 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 70 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 90 del archivo CertificationAdapter.cs.