visorus-erp-core 10.1.2 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/visorus-erp-core.umd.js +4907 -5330
- package/bundles/visorus-erp-core.umd.js.map +1 -1
- package/bundles/visorus-erp-core.umd.min.js +1 -1
- package/bundles/visorus-erp-core.umd.min.js.map +1 -1
- package/esm2015/lib/app.module.js +4 -3
- package/esm2015/lib/components/acreedor/select/select-acreedor.component.js +2 -2
- package/esm2015/lib/components/acreedor/services/acreedor.service.js +11 -25
- package/esm2015/lib/components/acreedor/services/acreedorCuentaContable.js +13 -11
- package/esm2015/lib/components/agente/models/Agente.js +1 -1
- package/esm2015/lib/components/agente/services/agente.service.js +17 -25
- package/esm2015/lib/components/almacen/models/Almacen.js +1 -1
- package/esm2015/lib/components/almacen/services/almacen.service.js +13 -26
- package/esm2015/lib/components/banco/models/Banco.js +1 -1
- package/esm2015/lib/components/banco/services/banco.service.js +10 -25
- package/esm2015/lib/components/caja/session-create/session-create.component.js +2 -2
- package/esm2015/lib/components/caja/sessionCaja.service.js +11 -25
- package/esm2015/lib/components/catalogoTipo/models/CatalogoTipo.js +1 -1
- package/esm2015/lib/components/catalogoTipo/services/catalogoTipo.service.js +10 -25
- package/esm2015/lib/components/clasificadorTipo/models/ClasificadorTipo.js +1 -1
- package/esm2015/lib/components/clasificadorTipo/services/clasificadorTipo.service.js +10 -25
- package/esm2015/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.js +10 -25
- package/esm2015/lib/components/claveMovimiento/models/ClaveMovimiento.js +1 -1
- package/esm2015/lib/components/claveMovimiento/services/claveMovimiento.service.js +10 -25
- package/esm2015/lib/components/cliente/models/Cliente.js +1 -1
- package/esm2015/lib/components/cliente/models/ClienteCuentaBanco.js +1 -1
- package/esm2015/lib/components/cliente/models/ClienteFlete.js +1 -1
- package/esm2015/lib/components/cliente/select/select-cliente.component.js +2 -2
- package/esm2015/lib/components/cliente/services/cliente.service.js +11 -26
- package/esm2015/lib/components/cliente/services/clienteCuentaBanco.service.js +12 -26
- package/esm2015/lib/components/cliente/services/clienteFlete.service.js +12 -26
- package/esm2015/lib/components/contacto/models/DatoContacto.js +1 -1
- package/esm2015/lib/components/contacto/services/datoContacto.service.js +10 -25
- package/esm2015/lib/components/dato-direccion/models/DatoDireccion.js +1 -1
- package/esm2015/lib/components/dato-direccion/services/datoDireccion.service.js +10 -25
- package/esm2015/lib/components/departamento/models/Departamento.js +1 -1
- package/esm2015/lib/components/departamento/services/departamento.service.js +10 -25
- package/esm2015/lib/components/empresa/models/ConfiguracionEmpresaAdministrativa.js +1 -1
- package/esm2015/lib/components/empresa/models/Empresa.js +1 -1
- package/esm2015/lib/components/empresa/services/empresa.service.js +13 -26
- package/esm2015/lib/components/error404/error404.component.js +2 -2
- package/esm2015/lib/components/flete/models/Flete.js +1 -1
- package/esm2015/lib/components/flete/services/flete.service.js +11 -25
- package/esm2015/lib/components/formaPago/models/FormaPago.js +1 -1
- package/esm2015/lib/components/formaPago/services/FormaPago.service.js +10 -25
- package/esm2015/lib/components/loading/loading.component.js +3 -3
- package/esm2015/lib/components/loading/loading.service.js +2 -2
- package/esm2015/lib/components/loading-screen/loading-screen.component.js +3 -3
- package/esm2015/lib/components/loading-screen/loading-screen.service.js +2 -2
- package/esm2015/lib/components/login-modal/login-modal.component.js +3 -3
- package/esm2015/lib/components/login-modal/login-modal.service.js +2 -2
- package/esm2015/lib/components/moneda/models/Moneda.js +1 -1
- package/esm2015/lib/components/moneda/services/moneda.service.js +11 -25
- package/esm2015/lib/components/pdfModal/pdf-modal.component.js +2 -2
- package/esm2015/lib/components/pdfModal/pdf-modal.service.js +2 -2
- package/esm2015/lib/components/persona-fisica/models/EstadoCivil.js +1 -1
- package/esm2015/lib/components/persona-fisica/models/Genero.js +1 -1
- package/esm2015/lib/components/persona-fisica/models/Persona.js +1 -1
- package/esm2015/lib/components/persona-fisica/models/PersonaFisica.js +1 -1
- package/esm2015/lib/components/persona-fisica/services/personaFisica.service.js +13 -12
- package/esm2015/lib/components/proveedor/models/Proveedor.js +1 -1
- package/esm2015/lib/components/proveedor/models/ProveedorCuentaBanco.js +1 -1
- package/esm2015/lib/components/proveedor/models/ProveedorFlete.js +1 -1
- package/esm2015/lib/components/proveedor/select/select-proveedor.component.js +2 -2
- package/esm2015/lib/components/proveedor/services/proveedor.service.js +11 -25
- package/esm2015/lib/components/proveedor/services/proveedorCuentaBanco.service.js +12 -26
- package/esm2015/lib/components/proveedor/services/proveedorFlete.service.js +11 -22
- package/esm2015/lib/components/seleccion-articulo-informacion/seleccion-articulo-informacion.component.js +2 -2
- package/esm2015/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.js +12 -26
- package/esm2015/lib/components/selecciona-articulo/selecciona-articulo.component.js +3 -3
- package/esm2015/lib/components/selecciona-articulo/stock.service.js +13 -15
- package/esm2015/lib/components/serieDocumento/models/SerieDocumento.js +1 -1
- package/esm2015/lib/components/serieDocumento/services/serieDocumento.service.js +13 -24
- package/esm2015/lib/components/tipo-contacto/models/TipoContacto.js +1 -1
- package/esm2015/lib/components/tipo-contacto/services/tipoContacto.service.js +10 -25
- package/esm2015/lib/components/ubicacion/models/Ubicacion.js +1 -1
- package/esm2015/lib/components/ubicacion/services/ubicacion.service.js +10 -25
- package/esm2015/lib/contabilidad/componentes/cclista/cclista.component.js +2 -2
- package/esm2015/lib/contabilidad/componentes/ccseleccion-dialog/ccseleccion-dialog.component.js +4 -4
- package/esm2015/lib/contabilidad/modelos/cuentaContable.model.js +1 -1
- package/esm2015/lib/contabilidad/modelos/normaInfoFinanciera.model.js +1 -1
- package/esm2015/lib/contabilidad/servicios/cuentacontable.service.js +12 -26
- package/esm2015/lib/globalPrimeNg.js +1 -1
- package/esm2015/lib/httpInterceptor/httpInterceptor.js +2 -2
- package/esm2015/lib/importComponents.js +1 -1
- package/esm2015/lib/importComponetsConta.js +1 -1
- package/esm2015/lib/models/PersonaMoral.js +1 -1
- package/esm2015/lib/models/Usuario.js +1 -1
- package/esm2015/lib/models/auth.js +1 -1
- package/esm2015/lib/services/auth.service.js +2 -2
- package/esm2015/lib/services/authenticated.service.js +2 -2
- package/esm2015/lib/services/canActivateGuard.service.ts.js +2 -2
- package/esm2015/lib/services/catalogo-adicional.service.js +11 -25
- package/esm2015/lib/services/controlAcceso.service.js +2 -2
- package/esm2015/lib/services/crud.service.js +46 -0
- package/esm2015/lib/services/file.service.js +2 -2
- package/esm2015/lib/services/global.service.js +2 -13
- package/esm2015/lib/services/init.service.js +2 -2
- package/esm2015/lib/services/message.service.js +2 -2
- package/esm2015/lib/services/paginate.service.js +2 -2
- package/esm2015/lib/services/personaMoral.service.js +10 -25
- package/esm2015/lib/services/versionCheck.service.js +2 -2
- package/esm2015/lib/utils/tipo_catalogo.ts.js +1 -1
- package/esm2015/public_api.js +3 -3
- package/esm2015/visorus-erp-core.js +1 -1
- package/fesm2015/visorus-erp-core.js +311 -783
- package/fesm2015/visorus-erp-core.js.map +1 -1
- package/lib/app.module.d.ts +1 -0
- package/lib/components/acreedor/services/acreedor.service.d.ts +5 -12
- package/lib/components/acreedor/services/acreedorCuentaContable.d.ts +6 -6
- package/lib/components/agente/services/agente.service.d.ts +8 -14
- package/lib/components/almacen/services/almacen.service.d.ts +6 -13
- package/lib/components/banco/services/banco.service.d.ts +4 -12
- package/lib/components/caja/sessionCaja.service.d.ts +5 -11
- package/lib/components/catalogoTipo/services/catalogoTipo.service.d.ts +4 -12
- package/lib/components/clasificadorTipo/services/clasificadorTipo.service.d.ts +4 -12
- package/lib/components/claveAumentoDisminucion/services/clave-aumento-disminucion.service.d.ts +4 -11
- package/lib/components/claveMovimiento/services/claveMovimiento.service.d.ts +4 -12
- package/lib/components/cliente/services/cliente.service.d.ts +5 -13
- package/lib/components/cliente/services/clienteCuentaBanco.service.d.ts +6 -13
- package/lib/components/cliente/services/clienteFlete.service.d.ts +6 -12
- package/lib/components/contacto/services/datoContacto.service.d.ts +4 -11
- package/lib/components/dato-direccion/services/datoDireccion.service.d.ts +4 -11
- package/lib/components/departamento/services/departamento.service.d.ts +4 -11
- package/lib/components/empresa/services/empresa.service.d.ts +6 -12
- package/lib/components/flete/services/flete.service.d.ts +5 -11
- package/lib/components/formaPago/services/FormaPago.service.d.ts +4 -12
- package/lib/components/moneda/services/moneda.service.d.ts +5 -11
- package/lib/components/persona-fisica/services/personaFisica.service.d.ts +7 -8
- package/lib/components/proveedor/services/proveedor.service.d.ts +5 -11
- package/lib/components/proveedor/services/proveedorCuentaBanco.service.d.ts +6 -12
- package/lib/components/proveedor/services/proveedorFlete.service.d.ts +6 -11
- package/lib/components/seleccion-articulo-informacion/services/articulo-informacion.service.d.ts +6 -12
- package/lib/components/selecciona-articulo/stock.service.d.ts +5 -7
- package/lib/components/serieDocumento/services/serieDocumento.service.d.ts +7 -12
- package/lib/components/tipo-contacto/services/tipoContacto.service.d.ts +4 -11
- package/lib/components/ubicacion/services/ubicacion.service.d.ts +4 -11
- package/lib/contabilidad/servicios/cuentacontable.service.d.ts +6 -12
- package/lib/services/catalogo-adicional.service.d.ts +5 -11
- package/lib/services/crud.service.d.ts +20 -0
- package/lib/services/global.service.d.ts +2 -4
- package/lib/services/personaMoral.service.d.ts +4 -11
- package/package.json +2 -2
- package/public_api.d.ts +2 -2
- package/esm2015/lib/services/api.service.js +0 -80
- package/lib/services/api.service.d.ts +0 -45
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DefaultValueAccessor, NgControlStatus, NgModel, ɵ
|
|
1
|
+
import { ɵɵinject, ɵɵdefineInjectable, ɵsetClassMetadata, Injectable, ɵɵelementStart, ɵɵtext, ɵɵelementEnd, ɵɵgetCurrentView, ɵɵlistener, ɵɵrestoreView, ɵɵnextContext, ɵɵelement, ɵɵtemplate, ɵɵadvance, ɵɵproperty, ɵɵtextInterpolate1, EventEmitter, ɵɵdirectiveInject, ɵɵdefineComponent, ɵɵstyleMap, ɵɵpureFunction0, Component, Input, Output, ɵɵviewQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵpureFunction1, ViewChild, ɵɵpipe, ɵɵpropertyInterpolate, ɵɵsanitizeUrl, ɵɵpipeBind1, ElementRef, ChangeDetectorRef, ɵɵsanitizeResourceUrl, ɵɵtextInterpolate, ɵɵreference, ɵɵpropertyInterpolate1, ɵɵstyleProp, ɵɵresolveWindow, ɵɵpipeBind2, ɵɵattribute, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
|
|
2
|
+
import { HttpHeaders, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
3
|
+
import { DefaultValueAccessor, NgControlStatus, NgModel, ɵangular_packages_forms_forms_ba, NgControlStatusGroup, NgForm, RequiredValidator, NumberValueAccessor, SelectControlValueAccessor, NgSelectOption, ɵangular_packages_forms_forms_z, FormsModule } from '@angular/forms';
|
|
4
4
|
import { InputText, InputTextModule } from 'primeng/inputtext';
|
|
5
5
|
import { TreeTable, TreeTableToggler, TreeTableModule } from 'primeng/treetable';
|
|
6
6
|
import { PrimeTemplate, Footer, ConfirmationService } from 'primeng/api';
|
|
@@ -95,121 +95,69 @@ class GlobalService {
|
|
|
95
95
|
return this.http.post(this.getUrl() + '/usuario/setModulo', modulo, this.buildAuth());
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
/** @nocollapse */ GlobalService.ɵfac = function GlobalService_Factory(t) { return new (t || GlobalService)(ɵɵinject(HttpClient)); };
|
|
99
|
-
/** @nocollapse */ GlobalService.ɵprov = ɵɵdefineInjectable({ token: GlobalService, factory: GlobalService.ɵfac, providedIn: 'root' });
|
|
100
|
-
/*@__PURE__*/ (function () { ɵsetClassMetadata(GlobalService, [{
|
|
101
|
-
type: Injectable,
|
|
102
|
-
args: [{
|
|
103
|
-
providedIn: 'root'
|
|
104
|
-
}]
|
|
105
|
-
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
106
98
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
this.
|
|
113
|
-
this.global = global;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Realiza una petición GET genérica y autenticada usando HttpParams.
|
|
117
|
-
* @param endpoint El endpoint del API (ej. '/FormaDePago')
|
|
118
|
-
* @param queryParams Un objeto clave-valor para los parámetros de la URL.
|
|
119
|
-
*/
|
|
120
|
-
get(endpoint, queryParams) {
|
|
121
|
-
// 1. Construye HttpParams de forma segura. Se encarga del URL encoding.
|
|
122
|
-
const params = new HttpParams({ fromObject: queryParams });
|
|
123
|
-
// 2. Combina las opciones: cabeceras de GlobalService y los nuevos params.
|
|
124
|
-
const options = Object.assign(Object.assign({}, this.global.buildAuth()), { params: params // Añade los HttpParams
|
|
125
|
-
});
|
|
126
|
-
const url = this.global.getUrl(endpoint);
|
|
127
|
-
return this.http.get(url, options);
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Realiza una petición POST genérica y autenticada.
|
|
131
|
-
* @param endpoint El endpoint del API
|
|
132
|
-
* @param body El cuerpo de la petición
|
|
133
|
-
*/
|
|
134
|
-
post(endpoint, body) {
|
|
135
|
-
const url = this.global.getUrl(endpoint);
|
|
136
|
-
const options = this.global.buildAuth();
|
|
137
|
-
return this.http.post(url, body, options);
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Realiza una petición PUT genérica y autenticada.
|
|
141
|
-
* @param endpoint El endpoint del API
|
|
142
|
-
* @param id El ID del recurso a actualizar
|
|
143
|
-
* @param body El cuerpo de la petición
|
|
144
|
-
*/
|
|
145
|
-
put(endpoint, id, body) {
|
|
146
|
-
const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
|
|
147
|
-
const options = this.global.buildAuth();
|
|
148
|
-
return this.http.put(url, body, options);
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Realiza una petición DELETE genérica y autenticada.
|
|
152
|
-
* @param endpoint El endpoint del API
|
|
153
|
-
* @param id El ID del recurso a eliminar
|
|
154
|
-
*/
|
|
155
|
-
delete(endpoint, id) {
|
|
156
|
-
const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
|
|
157
|
-
const options = this.global.buildAuth();
|
|
158
|
-
return this.http.delete(url, options);
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Realiza una petición PATCH genérica y autenticada.
|
|
162
|
-
* @param endpoint El endpoint del API
|
|
163
|
-
* @param id El ID del recurso a actualizar parcialmente
|
|
164
|
-
* @param body El cuerpo con los campos a actualizar
|
|
165
|
-
*/
|
|
166
|
-
patch(endpoint, id, body) {
|
|
167
|
-
const url = `<span class="math-inline">\{this\.global\.getUrl\(endpoint\)\}/</span>{id}`;
|
|
168
|
-
const options = this.global.buildAuth();
|
|
169
|
-
return this.http.patch(url, body, options);
|
|
99
|
+
class CrudService extends GlobalService {
|
|
100
|
+
constructor(httpCliente, url) {
|
|
101
|
+
super(httpCliente);
|
|
102
|
+
this.httpCliente = httpCliente;
|
|
103
|
+
this.url = url;
|
|
104
|
+
this.urlComponente = this.url;
|
|
170
105
|
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}], function () { return [{ type: HttpClient }, { type: GlobalService }]; }, null); })();
|
|
180
|
-
|
|
181
|
-
class CuentaContableService {
|
|
182
|
-
constructor(api) {
|
|
183
|
-
this.api = api;
|
|
184
|
-
this.endpoint = 'cuentaContable';
|
|
106
|
+
//Functions for ResourcesCrud [{ param: "max", value: 10}]
|
|
107
|
+
serializeParams(params) {
|
|
108
|
+
let serializeString = '';
|
|
109
|
+
params.map((e, index) => {
|
|
110
|
+
if (e.value !== undefined)
|
|
111
|
+
serializeString += ((index == 0) ? '?' : '&') + e.param + '=' + e.value;
|
|
112
|
+
});
|
|
113
|
+
return serializeString;
|
|
185
114
|
}
|
|
186
|
-
|
|
187
|
-
return this.
|
|
115
|
+
getHttp() {
|
|
116
|
+
return this.httpCliente;
|
|
188
117
|
}
|
|
189
|
-
|
|
190
|
-
return this.
|
|
118
|
+
geturl() {
|
|
119
|
+
return this.getUrl(this.urlComponente);
|
|
120
|
+
}
|
|
121
|
+
getBaseUrl() {
|
|
122
|
+
return this.getUrl('');
|
|
123
|
+
}
|
|
124
|
+
getByUrl(url, params) {
|
|
125
|
+
return this.httpCliente.get(this.getUrl(url) + this.serializeParams(params), this.buildAuth());
|
|
126
|
+
}
|
|
127
|
+
getAll(params) {
|
|
128
|
+
return this.httpCliente.get(this.getUrl(this.urlComponente) + (params ? (this.serializeParams(params)) : ('')), this.buildAuth());
|
|
191
129
|
}
|
|
192
130
|
get(id) {
|
|
193
|
-
return this.
|
|
131
|
+
return this.httpCliente.get(this.getUrl(this.urlComponente) + '/' + id, this.buildAuth());
|
|
194
132
|
}
|
|
195
133
|
save(obj) {
|
|
196
|
-
return this.
|
|
134
|
+
return this.httpCliente.post(this.getUrl(this.urlComponente), obj, this.buildAuth());
|
|
197
135
|
}
|
|
198
136
|
update(obj) {
|
|
199
|
-
return this.
|
|
137
|
+
return this.httpCliente.put(this.getUrl(this.urlComponente) + '/' + obj.id, obj, this.buildAuth());
|
|
200
138
|
}
|
|
201
139
|
delete(id) {
|
|
202
|
-
return this.
|
|
140
|
+
return this.httpCliente.delete(this.getUrl(this.urlComponente) + '/' + id, this.buildAuth());
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
class CuentaContableService extends CrudService {
|
|
145
|
+
constructor(httpClient) {
|
|
146
|
+
super(httpClient, 'cuentaContable');
|
|
147
|
+
this.httpClient = httpClient;
|
|
148
|
+
}
|
|
149
|
+
obtieneCuentasContablesRecursivo() {
|
|
150
|
+
return this.httpClient.get(this.getUrl('cuentaContable') + '/obtieneCuentasContablesRecursivo', this.buildAuth());
|
|
203
151
|
}
|
|
204
152
|
}
|
|
205
|
-
/** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(ɵɵinject(
|
|
153
|
+
/** @nocollapse */ CuentaContableService.ɵfac = function CuentaContableService_Factory(t) { return new (t || CuentaContableService)(ɵɵinject(HttpClient)); };
|
|
206
154
|
/** @nocollapse */ CuentaContableService.ɵprov = ɵɵdefineInjectable({ token: CuentaContableService, factory: CuentaContableService.ɵfac, providedIn: 'root' });
|
|
207
|
-
|
|
155
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CuentaContableService, [{
|
|
208
156
|
type: Injectable,
|
|
209
157
|
args: [{
|
|
210
158
|
providedIn: 'root'
|
|
211
159
|
}]
|
|
212
|
-
}], function () { return [{ type:
|
|
160
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
213
161
|
|
|
214
162
|
function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
215
163
|
ɵɵelementStart(0, "tr");
|
|
@@ -460,7 +408,7 @@ class CclistaComponent {
|
|
|
460
408
|
ɵɵstyleMap(ɵɵpureFunction0(7, _c0));
|
|
461
409
|
ɵɵproperty("value", ctx.cuentasContables ? ctx.cuentasContables : ctx.tempAccounts)("scrollable", true)("scrollHeight", ctx.maxH + "px")("resizableColumns", true);
|
|
462
410
|
} }, directives: [DefaultValueAccessor, InputText, NgControlStatus, NgModel, TreeTable, PrimeTemplate, TreeTableToggler, NgIf, ButtonDirective], styles: [""] });
|
|
463
|
-
|
|
411
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CclistaComponent, [{
|
|
464
412
|
type: Component,
|
|
465
413
|
args: [{
|
|
466
414
|
selector: 'lib-cclista',
|
|
@@ -501,9 +449,9 @@ class CcseleccionDialogComponent {
|
|
|
501
449
|
}
|
|
502
450
|
/** @nocollapse */ CcseleccionDialogComponent.ɵfac = function CcseleccionDialogComponent_Factory(t) { return new (t || CcseleccionDialogComponent)(); };
|
|
503
451
|
/** @nocollapse */ CcseleccionDialogComponent.ɵcmp = ɵɵdefineComponent({ type: CcseleccionDialogComponent, selectors: [["lib-ccseleccion-dialog"]], viewQuery: function CcseleccionDialogComponent_Query(rf, ctx) { if (rf & 1) {
|
|
504
|
-
|
|
452
|
+
ɵɵviewQuery(_c0$1, 3);
|
|
505
453
|
} if (rf & 2) {
|
|
506
|
-
|
|
454
|
+
let _t;
|
|
507
455
|
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.dialog = _t.first);
|
|
508
456
|
} }, inputs: { tipoCuenta: "tipoCuenta", displayShowCuentas: "displayShowCuentas" }, outputs: { evSelectedAccount: "evSelectedAccount" }, decls: 3, vars: 17, consts: [["header", "Selecciona cuenta contable", 3, "visible", "modal", "minY", "baseZIndex", "blockScroll", "draggable", "maximizable", "visibleChange", "onHide"], [1, "padding10", 3, "ngStyle"], [3, "isShared", "typeAccount", "evSelectedAccount"]], template: function CcseleccionDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
509
457
|
ɵɵelementStart(0, "p-dialog", 0);
|
|
@@ -522,7 +470,7 @@ class CcseleccionDialogComponent {
|
|
|
522
470
|
ɵɵadvance(1);
|
|
523
471
|
ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
|
|
524
472
|
} }, directives: [Dialog, NgStyle, CclistaComponent], styles: [""] });
|
|
525
|
-
|
|
473
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CcseleccionDialogComponent, [{
|
|
526
474
|
type: Component,
|
|
527
475
|
args: [{
|
|
528
476
|
selector: 'lib-ccseleccion-dialog',
|
|
@@ -555,7 +503,7 @@ class LoginModalService {
|
|
|
555
503
|
}
|
|
556
504
|
/** @nocollapse */ LoginModalService.ɵfac = function LoginModalService_Factory(t) { return new (t || LoginModalService)(); };
|
|
557
505
|
/** @nocollapse */ LoginModalService.ɵprov = ɵɵdefineInjectable({ token: LoginModalService, factory: LoginModalService.ɵfac, providedIn: 'root' });
|
|
558
|
-
|
|
506
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoginModalService, [{
|
|
559
507
|
type: Injectable,
|
|
560
508
|
args: [{
|
|
561
509
|
providedIn: 'root'
|
|
@@ -585,7 +533,7 @@ class LoadingScreenService {
|
|
|
585
533
|
}
|
|
586
534
|
/** @nocollapse */ LoadingScreenService.ɵfac = function LoadingScreenService_Factory(t) { return new (t || LoadingScreenService)(); };
|
|
587
535
|
/** @nocollapse */ LoadingScreenService.ɵprov = ɵɵdefineInjectable({ token: LoadingScreenService, factory: LoadingScreenService.ɵfac, providedIn: 'root' });
|
|
588
|
-
|
|
536
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingScreenService, [{
|
|
589
537
|
type: Injectable,
|
|
590
538
|
args: [{
|
|
591
539
|
providedIn: 'root'
|
|
@@ -668,7 +616,7 @@ class httpInterceptor {
|
|
|
668
616
|
}
|
|
669
617
|
/** @nocollapse */ httpInterceptor.ɵfac = function httpInterceptor_Factory(t) { return new (t || httpInterceptor)(ɵɵinject(LoginModalService), ɵɵinject(ToastrService), ɵɵinject(LoadingScreenService)); };
|
|
670
618
|
/** @nocollapse */ httpInterceptor.ɵprov = ɵɵdefineInjectable({ token: httpInterceptor, factory: httpInterceptor.ɵfac });
|
|
671
|
-
|
|
619
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(httpInterceptor, [{
|
|
672
620
|
type: Injectable
|
|
673
621
|
}], function () { return [{ type: LoginModalService }, { type: ToastrService }, { type: LoadingScreenService }]; }, null); })();
|
|
674
622
|
|
|
@@ -696,7 +644,7 @@ class Error404Component {
|
|
|
696
644
|
ɵɵelementEnd();
|
|
697
645
|
ɵɵelementEnd();
|
|
698
646
|
} }, styles: [".error[_ngcontent-%COMP%]{font-size:70px}"] });
|
|
699
|
-
|
|
647
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(Error404Component, [{
|
|
700
648
|
type: Component,
|
|
701
649
|
args: [{
|
|
702
650
|
selector: 'app-error404',
|
|
@@ -724,7 +672,7 @@ class LoadingService {
|
|
|
724
672
|
}
|
|
725
673
|
/** @nocollapse */ LoadingService.ɵfac = function LoadingService_Factory(t) { return new (t || LoadingService)(); };
|
|
726
674
|
/** @nocollapse */ LoadingService.ɵprov = ɵɵdefineInjectable({ token: LoadingService, factory: LoadingService.ɵfac, providedIn: 'root' });
|
|
727
|
-
|
|
675
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingService, [{
|
|
728
676
|
type: Injectable,
|
|
729
677
|
args: [{
|
|
730
678
|
providedIn: 'root'
|
|
@@ -782,8 +730,8 @@ class LoadingComponent {
|
|
|
782
730
|
ɵɵpropertyInterpolate("src", ctx.logo_loading, ɵɵsanitizeUrl);
|
|
783
731
|
ɵɵadvance(2);
|
|
784
732
|
ɵɵtextInterpolate1("", ɵɵpipeBind1(13, 2, "cargando"), "...");
|
|
785
|
-
} }, pipes: [TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{height:170px;position:relative
|
|
786
|
-
|
|
733
|
+
} }, pipes: [TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%]:before{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:before{font-size:20px;content:\"\\f13b\";animation:a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:first-child:after{content:\"\\f13c\";animation:b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a \";animation:d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:after, .loader.amit[_ngcontent-%COMP%]:before{transform:scale(1)}@keyframes a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0!important;background-color:hsla(0,0%,100%,0)!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] });
|
|
734
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingComponent, [{
|
|
787
735
|
type: Component,
|
|
788
736
|
args: [{
|
|
789
737
|
selector: 'loading',
|
|
@@ -833,8 +781,8 @@ class LoadingScreenComponent {
|
|
|
833
781
|
ɵɵelementEnd();
|
|
834
782
|
ɵɵelementEnd();
|
|
835
783
|
ɵɵelementEnd();
|
|
836
|
-
} }, styles: [".loading-screen-wrapper[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.384);
|
|
837
|
-
|
|
784
|
+
} }, styles: [".loading-screen-wrapper[_ngcontent-%COMP%]{z-index:100000;position:fixed;background-color:rgba(0,0,0,.384);width:100%;height:100%;display:block}.loading-screen-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}svg[_ngcontent-%COMP%]{display:none}.blobs[_ngcontent-%COMP%]{filter:url(#goo);width:300px;height:300px;position:relative;overflow:hidden;border-radius:70px;transform-style:preserve-3d}.blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{transform-style:preserve-3d;transform-origin:left top;animation:blob-grow 3.4s linear infinite;box-shadow:0 -10px 40px -5px #475158}.blob[_ngcontent-%COMP%], .blobs[_ngcontent-%COMP%] .blob-center[_ngcontent-%COMP%]{position:absolute;background:#475158;top:50%;left:50%;width:30px;height:30px;transform:scale(.9) translate(-50%,-50%);border-radius:50%}.blob[_ngcontent-%COMP%]{animation:blobs 3.4s ease-out infinite;transform-origin:center top;opacity:0}.blob[_ngcontent-%COMP%]:first-child{animation-delay:.2s}.blob[_ngcontent-%COMP%]:nth-child(2){animation-delay:.4s}.blob[_ngcontent-%COMP%]:nth-child(3){animation-delay:.6s}.blob[_ngcontent-%COMP%]:nth-child(4){animation-delay:.8s}.blob[_ngcontent-%COMP%]:nth-child(5){animation-delay:1s}@keyframes blobs{0%{opacity:0;transform:scale(0) translate(calc(-330px - 50%),-50%)}1%{opacity:1}35%,65%{opacity:1;transform:scale(.9) translate(-50%,-50%)}99%{opacity:1}to{opacity:0;transform:scale(0) translate(calc(330px - 50%),-50%)}}@keyframes blob-grow{0%,39%{transform:scale(0) translate(-50%,-50%)}40%,42%{transform:scaleY(.9) translate(-50%,-50%)}43%,44%{transform:scale(1.2,1.1) translate(-50%,-50%)}45%,46%{transform:scale(1.3,1.2) translate(-50%,-50%)}47%,48%{transform:scale(1.4,1.3) translate(-50%,-50%)}52%{transform:scale(1.5,1.4) translate(-50%,-50%)}54%{transform:scale(1.7,1.6) translate(-50%,-50%)}58%{transform:scale(1.8,1.7) translate(-50%,-50%)}68%,70%{transform:scale(1.7,1.5) translate(-50%,-50%)}78%{transform:scale(1.6,1.4) translate(-50%,-50%)}80%,81%{transform:scale(1.5,1.4) translate(-50%,-50%)}82%,83%{transform:scale(1.4,1.3) translate(-50%,-50%)}84%,85%{transform:scale(1.3,1.2) translate(-50%,-50%)}86%,87%{transform:scale(1.2,1.1) translate(-50%,-50%)}90%,91%{transform:scaleY(.9) translate(-50%,-50%)}92%,to{transform:scale(0) translate(-50%,-50%)}}"] });
|
|
785
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoadingScreenComponent, [{
|
|
838
786
|
type: Component,
|
|
839
787
|
args: [{
|
|
840
788
|
selector: 'app-loading-screen',
|
|
@@ -861,7 +809,7 @@ class PdfModalService {
|
|
|
861
809
|
}
|
|
862
810
|
/** @nocollapse */ PdfModalService.ɵfac = function PdfModalService_Factory(t) { return new (t || PdfModalService)(); };
|
|
863
811
|
/** @nocollapse */ PdfModalService.ɵprov = ɵɵdefineInjectable({ token: PdfModalService, factory: PdfModalService.ɵfac, providedIn: 'root' });
|
|
864
|
-
|
|
812
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PdfModalService, [{
|
|
865
813
|
type: Injectable,
|
|
866
814
|
args: [{
|
|
867
815
|
providedIn: 'root'
|
|
@@ -927,7 +875,7 @@ class FileService {
|
|
|
927
875
|
}
|
|
928
876
|
/** @nocollapse */ FileService.ɵfac = function FileService_Factory(t) { return new (t || FileService)(ɵɵinject(ToastrService), ɵɵinject(TranslateService)); };
|
|
929
877
|
/** @nocollapse */ FileService.ɵprov = ɵɵdefineInjectable({ token: FileService, factory: FileService.ɵfac, providedIn: 'root' });
|
|
930
|
-
|
|
878
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(FileService, [{
|
|
931
879
|
type: Injectable,
|
|
932
880
|
args: [{
|
|
933
881
|
providedIn: 'root'
|
|
@@ -1021,7 +969,7 @@ class PdfModalComponent {
|
|
|
1021
969
|
ɵɵadvance(1);
|
|
1022
970
|
ɵɵproperty("ngIf", ctx.pdfBase64);
|
|
1023
971
|
} }, directives: [Dialog, NgIf], styles: [".down[_ngcontent-%COMP%]{display:block}"] });
|
|
1024
|
-
|
|
972
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PdfModalComponent, [{
|
|
1025
973
|
type: Component,
|
|
1026
974
|
args: [{
|
|
1027
975
|
selector: 'pdf-modal',
|
|
@@ -1222,7 +1170,7 @@ class AuthService {
|
|
|
1222
1170
|
}
|
|
1223
1171
|
/** @nocollapse */ AuthService.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(ɵɵinject(HttpClient)); };
|
|
1224
1172
|
/** @nocollapse */ AuthService.ɵprov = ɵɵdefineInjectable({ token: AuthService, factory: AuthService.ɵfac, providedIn: 'root' });
|
|
1225
|
-
|
|
1173
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AuthService, [{
|
|
1226
1174
|
type: Injectable,
|
|
1227
1175
|
args: [{
|
|
1228
1176
|
providedIn: 'root'
|
|
@@ -1394,8 +1342,8 @@ class LoginModalComponent {
|
|
|
1394
1342
|
ɵɵproperty("ngIf", ctx.empresas.length == 0);
|
|
1395
1343
|
ɵɵadvance(1);
|
|
1396
1344
|
ɵɵproperty("ngIf", ctx.empresas.length);
|
|
1397
|
-
} }, directives: [NgIf, ɵ
|
|
1398
|
-
|
|
1345
|
+
} }, directives: [NgIf, ɵangular_packages_forms_forms_ba, NgControlStatusGroup, NgForm, DefaultValueAccessor, RequiredValidator, NgControlStatus, NgModel, TranslateDirective, NgForOf], pipes: [TranslatePipe], styles: [".modal[_ngcontent-%COMP%]{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-invalid[_ngcontent-%COMP%]:not(form), .ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] });
|
|
1346
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(LoginModalComponent, [{
|
|
1399
1347
|
type: Component,
|
|
1400
1348
|
args: [{
|
|
1401
1349
|
selector: 'app-login-modal',
|
|
@@ -1404,35 +1352,20 @@ class LoginModalComponent {
|
|
|
1404
1352
|
}]
|
|
1405
1353
|
}], function () { return [{ type: LoginModalService }, { type: AuthService }]; }, null); })();
|
|
1406
1354
|
|
|
1407
|
-
class SessionCajaService {
|
|
1408
|
-
constructor(
|
|
1409
|
-
|
|
1410
|
-
this.
|
|
1411
|
-
}
|
|
1412
|
-
getAll(params) {
|
|
1413
|
-
return this.api.get(this.endpoint, params);
|
|
1414
|
-
}
|
|
1415
|
-
get(id) {
|
|
1416
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
1417
|
-
}
|
|
1418
|
-
save(obj) {
|
|
1419
|
-
return this.api.post(this.endpoint, obj);
|
|
1420
|
-
}
|
|
1421
|
-
update(obj) {
|
|
1422
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
1423
|
-
}
|
|
1424
|
-
delete(id) {
|
|
1425
|
-
return this.api.delete(this.endpoint, id);
|
|
1355
|
+
class SessionCajaService extends CrudService {
|
|
1356
|
+
constructor(httpClient) {
|
|
1357
|
+
super(httpClient, 'sessionCaja');
|
|
1358
|
+
this.httpClient = httpClient;
|
|
1426
1359
|
}
|
|
1427
1360
|
}
|
|
1428
|
-
/** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(ɵɵinject(
|
|
1361
|
+
/** @nocollapse */ SessionCajaService.ɵfac = function SessionCajaService_Factory(t) { return new (t || SessionCajaService)(ɵɵinject(HttpClient)); };
|
|
1429
1362
|
/** @nocollapse */ SessionCajaService.ɵprov = ɵɵdefineInjectable({ token: SessionCajaService, factory: SessionCajaService.ɵfac, providedIn: 'root' });
|
|
1430
|
-
|
|
1363
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SessionCajaService, [{
|
|
1431
1364
|
type: Injectable,
|
|
1432
1365
|
args: [{
|
|
1433
1366
|
providedIn: 'root'
|
|
1434
1367
|
}]
|
|
1435
|
-
}], function () { return [{ type:
|
|
1368
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
1436
1369
|
|
|
1437
1370
|
function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
1438
1371
|
ɵɵelementStart(0, "a", 4);
|
|
@@ -1596,7 +1529,7 @@ class SessionCreateComponent {
|
|
|
1596
1529
|
ɵɵadvance(2);
|
|
1597
1530
|
ɵɵproperty("ngIf", ctx.caja);
|
|
1598
1531
|
} }, directives: [Dialog, PrimeTemplate, NgIf, DefaultValueAccessor, InputText, NgControlStatus, NgModel, NumberValueAccessor, ButtonDirective], styles: [""] });
|
|
1599
|
-
|
|
1532
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SessionCreateComponent, [{
|
|
1600
1533
|
type: Component,
|
|
1601
1534
|
args: [{
|
|
1602
1535
|
selector: 'session-create',
|
|
@@ -1656,38 +1589,22 @@ class Cliente {
|
|
|
1656
1589
|
}
|
|
1657
1590
|
}
|
|
1658
1591
|
|
|
1659
|
-
class ClienteService {
|
|
1660
|
-
constructor(
|
|
1661
|
-
|
|
1662
|
-
this.endpoint = 'cliente';
|
|
1663
|
-
}
|
|
1664
|
-
getAll(params) {
|
|
1665
|
-
return this.api.get(this.endpoint, params);
|
|
1666
|
-
}
|
|
1667
|
-
get(id) {
|
|
1668
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
1669
|
-
}
|
|
1670
|
-
save(obj) {
|
|
1671
|
-
return this.api.post(this.endpoint, obj);
|
|
1672
|
-
}
|
|
1673
|
-
update(obj) {
|
|
1674
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
1675
|
-
}
|
|
1676
|
-
delete(id) {
|
|
1677
|
-
return this.api.delete(this.endpoint, id);
|
|
1592
|
+
class ClienteService extends CrudService {
|
|
1593
|
+
constructor(httpCliente) {
|
|
1594
|
+
super(httpCliente, '/cliente');
|
|
1678
1595
|
}
|
|
1679
1596
|
validar_archivos_bss(id) {
|
|
1680
|
-
return this.
|
|
1597
|
+
return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
|
|
1681
1598
|
}
|
|
1682
1599
|
}
|
|
1683
|
-
/** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(ɵɵinject(
|
|
1600
|
+
/** @nocollapse */ ClienteService.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(ɵɵinject(HttpClient)); };
|
|
1684
1601
|
/** @nocollapse */ ClienteService.ɵprov = ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' });
|
|
1685
|
-
|
|
1602
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClienteService, [{
|
|
1686
1603
|
type: Injectable,
|
|
1687
1604
|
args: [{
|
|
1688
1605
|
providedIn: 'root'
|
|
1689
1606
|
}]
|
|
1690
|
-
}], function () { return [{ type:
|
|
1607
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
1691
1608
|
|
|
1692
1609
|
class PaginateService {
|
|
1693
1610
|
constructor(translate) {
|
|
@@ -1736,7 +1653,7 @@ class PaginateService {
|
|
|
1736
1653
|
}
|
|
1737
1654
|
/** @nocollapse */ PaginateService.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(ɵɵinject(TranslateService)); };
|
|
1738
1655
|
/** @nocollapse */ PaginateService.ɵprov = ɵɵdefineInjectable({ token: PaginateService, factory: PaginateService.ɵfac, providedIn: "root" });
|
|
1739
|
-
|
|
1656
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PaginateService, [{
|
|
1740
1657
|
type: Injectable,
|
|
1741
1658
|
args: [{
|
|
1742
1659
|
providedIn: "root"
|
|
@@ -1939,7 +1856,7 @@ class SelectClienteComponent {
|
|
|
1939
1856
|
ɵɵpropertyInterpolate("selectionMode", ctx.selectMode);
|
|
1940
1857
|
ɵɵproperty("value", ctx.clientes)("lazy", true)("paginator", true)("rows", ctx.page.rows)("totalRecords", ctx.page.total)("selection", ctx.clienteSeleccionado)("scrollable", true)("loading", ctx.loading);
|
|
1941
1858
|
} }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, SelectableRow, NgIf], pipes: [TranslatePipe], encapsulation: 2 });
|
|
1942
|
-
|
|
1859
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SelectClienteComponent, [{
|
|
1943
1860
|
type: Component,
|
|
1944
1861
|
args: [{
|
|
1945
1862
|
selector: 'select-cliente',
|
|
@@ -1968,35 +1885,20 @@ class Proveedor {
|
|
|
1968
1885
|
}
|
|
1969
1886
|
}
|
|
1970
1887
|
|
|
1971
|
-
class ProveedorService {
|
|
1972
|
-
constructor(
|
|
1973
|
-
|
|
1974
|
-
this.
|
|
1975
|
-
}
|
|
1976
|
-
getAll(params) {
|
|
1977
|
-
return this.api.get(this.endpoint, params);
|
|
1978
|
-
}
|
|
1979
|
-
get(id) {
|
|
1980
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
1981
|
-
}
|
|
1982
|
-
save(obj) {
|
|
1983
|
-
return this.api.post(this.endpoint, obj);
|
|
1984
|
-
}
|
|
1985
|
-
update(obj) {
|
|
1986
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
1987
|
-
}
|
|
1988
|
-
delete(id) {
|
|
1989
|
-
return this.api.delete(this.endpoint, id);
|
|
1888
|
+
class ProveedorService extends CrudService {
|
|
1889
|
+
constructor(httpClient) {
|
|
1890
|
+
super(httpClient, '/proveedor');
|
|
1891
|
+
this.httpClient = httpClient;
|
|
1990
1892
|
}
|
|
1991
1893
|
}
|
|
1992
|
-
/** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(ɵɵinject(
|
|
1894
|
+
/** @nocollapse */ ProveedorService.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(ɵɵinject(HttpClient)); };
|
|
1993
1895
|
/** @nocollapse */ ProveedorService.ɵprov = ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' });
|
|
1994
|
-
|
|
1896
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ProveedorService, [{
|
|
1995
1897
|
type: Injectable,
|
|
1996
1898
|
args: [{
|
|
1997
1899
|
providedIn: 'root'
|
|
1998
1900
|
}]
|
|
1999
|
-
}], function () { return [{ type:
|
|
1901
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
2000
1902
|
|
|
2001
1903
|
function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
2002
1904
|
ɵɵelementStart(0, "tr");
|
|
@@ -2116,7 +2018,7 @@ class SelectProveedorComponent {
|
|
|
2116
2018
|
ɵɵadvance(3);
|
|
2117
2019
|
ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(15, _c0$4));
|
|
2118
2020
|
} }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, Paginator], pipes: [TranslatePipe], encapsulation: 2 });
|
|
2119
|
-
|
|
2021
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SelectProveedorComponent, [{
|
|
2120
2022
|
type: Component,
|
|
2121
2023
|
args: [{
|
|
2122
2024
|
templateUrl: 'select-proveedor.component.html',
|
|
@@ -2130,51 +2032,34 @@ class SelectProveedorComponent {
|
|
|
2130
2032
|
type: Output
|
|
2131
2033
|
}] }); })();
|
|
2132
2034
|
|
|
2133
|
-
class AlmacenService {
|
|
2134
|
-
constructor(
|
|
2135
|
-
|
|
2136
|
-
this.
|
|
2137
|
-
}
|
|
2138
|
-
getAll(params) {
|
|
2139
|
-
return this.api.get(this.endpoint, params);
|
|
2035
|
+
class AlmacenService extends CrudService {
|
|
2036
|
+
constructor(httpClient) {
|
|
2037
|
+
super(httpClient, '/almacen');
|
|
2038
|
+
this.httpClient = httpClient;
|
|
2140
2039
|
}
|
|
2141
2040
|
obtenerAlmacenEmpresa() {
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
get(id) {
|
|
2145
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
2146
|
-
}
|
|
2147
|
-
save(obj) {
|
|
2148
|
-
return this.api.post(this.endpoint, obj);
|
|
2149
|
-
}
|
|
2150
|
-
update(obj) {
|
|
2151
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
2152
|
-
}
|
|
2153
|
-
delete(id) {
|
|
2154
|
-
return this.api.delete(this.endpoint, id);
|
|
2041
|
+
let url = this.geturl() + '/obtenerAlmacenEmpresa';
|
|
2042
|
+
return this.getHttp().get(url, this.buildAuth());
|
|
2155
2043
|
}
|
|
2156
2044
|
}
|
|
2157
|
-
/** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(ɵɵinject(
|
|
2045
|
+
/** @nocollapse */ AlmacenService.ɵfac = function AlmacenService_Factory(t) { return new (t || AlmacenService)(ɵɵinject(HttpClient)); };
|
|
2158
2046
|
/** @nocollapse */ AlmacenService.ɵprov = ɵɵdefineInjectable({ token: AlmacenService, factory: AlmacenService.ɵfac, providedIn: 'root' });
|
|
2159
|
-
|
|
2047
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AlmacenService, [{
|
|
2160
2048
|
type: Injectable,
|
|
2161
2049
|
args: [{
|
|
2162
2050
|
providedIn: 'root'
|
|
2163
2051
|
}]
|
|
2164
|
-
}], function () { return [{ type:
|
|
2052
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
2165
2053
|
|
|
2166
|
-
class StockService {
|
|
2167
|
-
constructor(
|
|
2168
|
-
|
|
2169
|
-
this.
|
|
2170
|
-
}
|
|
2171
|
-
getAll(params) {
|
|
2172
|
-
return this.api.get(this.endpoint, params);
|
|
2054
|
+
class StockService extends CrudService {
|
|
2055
|
+
constructor(httpClient) {
|
|
2056
|
+
super(httpClient, 'stock');
|
|
2057
|
+
this.httpClient = httpClient;
|
|
2173
2058
|
}
|
|
2174
2059
|
obtenerExistenciasArticulosDescripcion(parametros, params) {
|
|
2175
|
-
const url =
|
|
2060
|
+
const url = this.getBaseUrl() + '/stock/obtenerExistenciasArticulos';
|
|
2176
2061
|
let promesa = new Promise((resolve, reject) => {
|
|
2177
|
-
this.
|
|
2062
|
+
this.httpClient.post(url + this.serializeParams(params), parametros, this.buildAuth()).subscribe((data) => {
|
|
2178
2063
|
resolve(data);
|
|
2179
2064
|
}, (err) => {
|
|
2180
2065
|
reject(err);
|
|
@@ -2183,48 +2068,33 @@ class StockService {
|
|
|
2183
2068
|
return promesa;
|
|
2184
2069
|
}
|
|
2185
2070
|
}
|
|
2186
|
-
/** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(ɵɵinject(
|
|
2071
|
+
/** @nocollapse */ StockService.ɵfac = function StockService_Factory(t) { return new (t || StockService)(ɵɵinject(HttpClient)); };
|
|
2187
2072
|
/** @nocollapse */ StockService.ɵprov = ɵɵdefineInjectable({ token: StockService, factory: StockService.ɵfac, providedIn: 'root' });
|
|
2188
|
-
|
|
2073
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(StockService, [{
|
|
2189
2074
|
type: Injectable,
|
|
2190
2075
|
args: [{
|
|
2191
2076
|
providedIn: 'root'
|
|
2192
2077
|
}]
|
|
2193
|
-
}], function () { return [{ type:
|
|
2078
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
2194
2079
|
|
|
2195
|
-
class ArticuloInformacionService {
|
|
2196
|
-
constructor(
|
|
2197
|
-
|
|
2198
|
-
this.
|
|
2199
|
-
}
|
|
2200
|
-
getAll(params) {
|
|
2201
|
-
return this.api.get(this.endpoint, params);
|
|
2080
|
+
class ArticuloInformacionService extends CrudService {
|
|
2081
|
+
constructor(httpClient) {
|
|
2082
|
+
super(httpClient, 'articulo');
|
|
2083
|
+
this.httpClient = httpClient;
|
|
2202
2084
|
}
|
|
2203
2085
|
obtenerExistencias(articulo) {
|
|
2204
2086
|
let uRL = "/existenciasArticulo/" + articulo;
|
|
2205
|
-
return this.
|
|
2206
|
-
}
|
|
2207
|
-
get(id) {
|
|
2208
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
2209
|
-
}
|
|
2210
|
-
save(obj) {
|
|
2211
|
-
return this.api.post(this.endpoint, obj);
|
|
2212
|
-
}
|
|
2213
|
-
update(obj) {
|
|
2214
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
2215
|
-
}
|
|
2216
|
-
delete(id) {
|
|
2217
|
-
return this.api.delete(this.endpoint, id);
|
|
2087
|
+
return this.httpClient.get(this.geturl() + uRL, this.buildAuth());
|
|
2218
2088
|
}
|
|
2219
2089
|
}
|
|
2220
|
-
/** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(ɵɵinject(
|
|
2090
|
+
/** @nocollapse */ ArticuloInformacionService.ɵfac = function ArticuloInformacionService_Factory(t) { return new (t || ArticuloInformacionService)(ɵɵinject(HttpClient)); };
|
|
2221
2091
|
/** @nocollapse */ ArticuloInformacionService.ɵprov = ɵɵdefineInjectable({ token: ArticuloInformacionService, factory: ArticuloInformacionService.ɵfac, providedIn: 'root' });
|
|
2222
|
-
|
|
2092
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ArticuloInformacionService, [{
|
|
2223
2093
|
type: Injectable,
|
|
2224
2094
|
args: [{
|
|
2225
2095
|
providedIn: 'root'
|
|
2226
2096
|
}]
|
|
2227
|
-
}], function () { return [{ type:
|
|
2097
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
2228
2098
|
|
|
2229
2099
|
function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
|
|
2230
2100
|
ɵɵelement(0, "col");
|
|
@@ -2356,7 +2226,7 @@ class SeleccionArticuloInformacionComponent {
|
|
|
2356
2226
|
ɵɵstyleMap(ɵɵpureFunction0(19, _c1$2));
|
|
2357
2227
|
ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true)("responsive", true);
|
|
2358
2228
|
} }, directives: [Dialog, Table, PrimeTemplate, Footer, ButtonDirective, NgForOf, ResizableColumn], styles: [""] });
|
|
2359
|
-
|
|
2229
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
|
|
2360
2230
|
type: Component,
|
|
2361
2231
|
args: [{
|
|
2362
2232
|
selector: 'lib-seleccion-articulo-informacion',
|
|
@@ -2853,8 +2723,8 @@ class SeleccionaArticuloComponent {
|
|
|
2853
2723
|
ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(24, _c1$3));
|
|
2854
2724
|
ɵɵadvance(1);
|
|
2855
2725
|
ɵɵproperty("ngIf", ctx.showModalInformacion);
|
|
2856
|
-
} }, directives: [Dialog, SelectControlValueAccessor, InputText, NgControlStatus, NgModel, NgSelectOption, ɵ
|
|
2857
|
-
|
|
2726
|
+
} }, directives: [Dialog, SelectControlValueAccessor, InputText, NgControlStatus, NgModel, NgSelectOption, ɵangular_packages_forms_forms_z, DefaultValueAccessor, ButtonDirective, NgForOf, Table, PrimeTemplate, Paginator, NgIf, TranslateDirective, SelectableRow, SeleccionArticuloInformacionComponent], pipes: [TranslatePipe, CurrencyPipe, DecimalPipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] });
|
|
2727
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SeleccionaArticuloComponent, [{
|
|
2858
2728
|
type: Component,
|
|
2859
2729
|
args: [{
|
|
2860
2730
|
selector: 'app-selecciona-articulo',
|
|
@@ -2875,35 +2745,20 @@ class SeleccionaArticuloComponent {
|
|
|
2875
2745
|
type: Output
|
|
2876
2746
|
}] }); })();
|
|
2877
2747
|
|
|
2878
|
-
class AcreedorService {
|
|
2879
|
-
constructor(
|
|
2880
|
-
|
|
2881
|
-
this.
|
|
2882
|
-
}
|
|
2883
|
-
getAll(params) {
|
|
2884
|
-
return this.api.get(this.endpoint, params);
|
|
2885
|
-
}
|
|
2886
|
-
get(id) {
|
|
2887
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
2888
|
-
}
|
|
2889
|
-
save(obj) {
|
|
2890
|
-
return this.api.post(this.endpoint, obj);
|
|
2891
|
-
}
|
|
2892
|
-
update(obj) {
|
|
2893
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
2894
|
-
}
|
|
2895
|
-
delete(id) {
|
|
2896
|
-
return this.api.delete(this.endpoint, id);
|
|
2748
|
+
class AcreedorService extends CrudService {
|
|
2749
|
+
constructor(httpClient) {
|
|
2750
|
+
super(httpClient, 'acreedor');
|
|
2751
|
+
this.httpClient = httpClient;
|
|
2897
2752
|
}
|
|
2898
2753
|
}
|
|
2899
|
-
/** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(ɵɵinject(
|
|
2754
|
+
/** @nocollapse */ AcreedorService.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(ɵɵinject(HttpClient)); };
|
|
2900
2755
|
/** @nocollapse */ AcreedorService.ɵprov = ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' });
|
|
2901
|
-
|
|
2756
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AcreedorService, [{
|
|
2902
2757
|
type: Injectable,
|
|
2903
2758
|
args: [{
|
|
2904
2759
|
providedIn: 'root'
|
|
2905
2760
|
}]
|
|
2906
|
-
}], function () { return [{ type:
|
|
2761
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
2907
2762
|
|
|
2908
2763
|
function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
2909
2764
|
ɵɵelementStart(0, "tr");
|
|
@@ -3091,7 +2946,7 @@ class SelectAcreedorComponent {
|
|
|
3091
2946
|
ɵɵadvance(4);
|
|
3092
2947
|
ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", ɵɵpureFunction0(13, _c0$7));
|
|
3093
2948
|
} }, directives: [Dialog, DefaultValueAccessor, InputText, NgControlStatus, NgModel, ButtonDirective, Table, PrimeTemplate, Paginator, SelectableRow, NgIf], pipes: [TranslatePipe, DatePipe], encapsulation: 2 });
|
|
3094
|
-
|
|
2949
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SelectAcreedorComponent, [{
|
|
3095
2950
|
type: Component,
|
|
3096
2951
|
args: [{
|
|
3097
2952
|
templateUrl: 'select-acreedor.component.html',
|
|
@@ -3160,8 +3015,9 @@ function HttpLoaderFactory(http) {
|
|
|
3160
3015
|
}
|
|
3161
3016
|
class CoreLibModule {
|
|
3162
3017
|
}
|
|
3018
|
+
/** @nocollapse */ CoreLibModule.ɵfac = function CoreLibModule_Factory(t) { return new (t || CoreLibModule)(); };
|
|
3163
3019
|
/** @nocollapse */ CoreLibModule.ɵmod = ɵɵdefineNgModule({ type: CoreLibModule });
|
|
3164
|
-
/** @nocollapse */ CoreLibModule.ɵinj = ɵɵdefineInjector({
|
|
3020
|
+
/** @nocollapse */ CoreLibModule.ɵinj = ɵɵdefineInjector({ providers: [
|
|
3165
3021
|
primeNgServices,
|
|
3166
3022
|
{ provide: HTTP_INTERCEPTORS, useClass: httpInterceptor, multi: true }
|
|
3167
3023
|
], imports: [[
|
|
@@ -3178,7 +3034,7 @@ class CoreLibModule {
|
|
|
3178
3034
|
})
|
|
3179
3035
|
]] });
|
|
3180
3036
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, CardModule, TooltipModule, OverlayPanelModule, RadioButtonModule, CheckboxModule, AutoCompleteModule, TableModule, TreeTableModule, CalendarModule, TableModule, ButtonModule, InputTextModule, DropdownModule, InputMaskModule, MessagesModule, MessageModule, PaginatorModule, ConfirmDialogModule, ProgressBarModule, TriStateCheckboxModule, KeyFilterModule, InputSwitchModule, DialogModule, TabViewModule, PanelModule, ToolbarModule, SplitButtonModule, FieldsetModule, TreeModule, TabMenuModule, MenubarModule, FormsModule, ToastrModule, TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent] }); })();
|
|
3181
|
-
|
|
3037
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CoreLibModule, [{
|
|
3182
3038
|
type: NgModule,
|
|
3183
3039
|
args: [{
|
|
3184
3040
|
declarations: [
|
|
@@ -3236,7 +3092,7 @@ class ControlAccesoService {
|
|
|
3236
3092
|
}
|
|
3237
3093
|
/** @nocollapse */ ControlAccesoService.ɵfac = function ControlAccesoService_Factory(t) { return new (t || ControlAccesoService)(ɵɵinject(AuthService)); };
|
|
3238
3094
|
/** @nocollapse */ ControlAccesoService.ɵprov = ɵɵdefineInjectable({ token: ControlAccesoService, factory: ControlAccesoService.ɵfac, providedIn: 'root' });
|
|
3239
|
-
|
|
3095
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ControlAccesoService, [{
|
|
3240
3096
|
type: Injectable,
|
|
3241
3097
|
args: [{
|
|
3242
3098
|
providedIn: 'root'
|
|
@@ -3285,7 +3141,7 @@ class InitService {
|
|
|
3285
3141
|
}
|
|
3286
3142
|
/** @nocollapse */ InitService.ɵfac = function InitService_Factory(t) { return new (t || InitService)(ɵɵinject(HttpClient), ɵɵinject(AuthService)); };
|
|
3287
3143
|
/** @nocollapse */ InitService.ɵprov = ɵɵdefineInjectable({ token: InitService, factory: InitService.ɵfac, providedIn: 'root' });
|
|
3288
|
-
|
|
3144
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(InitService, [{
|
|
3289
3145
|
type: Injectable,
|
|
3290
3146
|
args: [{
|
|
3291
3147
|
providedIn: 'root'
|
|
@@ -3360,42 +3216,26 @@ class MessageService {
|
|
|
3360
3216
|
}
|
|
3361
3217
|
/** @nocollapse */ MessageService.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(ɵɵinject(ToastrService)); };
|
|
3362
3218
|
/** @nocollapse */ MessageService.ɵprov = ɵɵdefineInjectable({ token: MessageService, factory: MessageService.ɵfac, providedIn: 'root' });
|
|
3363
|
-
|
|
3219
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(MessageService, [{
|
|
3364
3220
|
type: Injectable,
|
|
3365
3221
|
args: [{
|
|
3366
3222
|
providedIn: 'root'
|
|
3367
3223
|
}]
|
|
3368
3224
|
}], function () { return [{ type: ToastrService }]; }, null); })();
|
|
3369
3225
|
|
|
3370
|
-
class PersonaMoralService {
|
|
3371
|
-
constructor(
|
|
3372
|
-
|
|
3373
|
-
this.endpoint = 'personaMoral';
|
|
3374
|
-
}
|
|
3375
|
-
getAll(params) {
|
|
3376
|
-
return this.api.get(this.endpoint, params);
|
|
3377
|
-
}
|
|
3378
|
-
get(id) {
|
|
3379
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3380
|
-
}
|
|
3381
|
-
save(obj) {
|
|
3382
|
-
return this.api.post(this.endpoint, obj);
|
|
3383
|
-
}
|
|
3384
|
-
update(obj) {
|
|
3385
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3386
|
-
}
|
|
3387
|
-
delete(id) {
|
|
3388
|
-
return this.api.delete(this.endpoint, id);
|
|
3226
|
+
class PersonaMoralService extends CrudService {
|
|
3227
|
+
constructor(http) {
|
|
3228
|
+
super(http, '/personaMoral');
|
|
3389
3229
|
}
|
|
3390
3230
|
}
|
|
3391
|
-
/** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(ɵɵinject(
|
|
3231
|
+
/** @nocollapse */ PersonaMoralService.ɵfac = function PersonaMoralService_Factory(t) { return new (t || PersonaMoralService)(ɵɵinject(HttpClient)); };
|
|
3392
3232
|
/** @nocollapse */ PersonaMoralService.ɵprov = ɵɵdefineInjectable({ token: PersonaMoralService, factory: PersonaMoralService.ɵfac, providedIn: 'root' });
|
|
3393
|
-
|
|
3233
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PersonaMoralService, [{
|
|
3394
3234
|
type: Injectable,
|
|
3395
3235
|
args: [{
|
|
3396
3236
|
providedIn: 'root'
|
|
3397
3237
|
}]
|
|
3398
|
-
}], function () { return [{ type:
|
|
3238
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3399
3239
|
|
|
3400
3240
|
class CanActivateGuard {
|
|
3401
3241
|
constructor(controlAccesoService) {
|
|
@@ -3412,42 +3252,27 @@ class CanActivateGuard {
|
|
|
3412
3252
|
}
|
|
3413
3253
|
/** @nocollapse */ CanActivateGuard.ɵfac = function CanActivateGuard_Factory(t) { return new (t || CanActivateGuard)(ɵɵinject(ControlAccesoService)); };
|
|
3414
3254
|
/** @nocollapse */ CanActivateGuard.ɵprov = ɵɵdefineInjectable({ token: CanActivateGuard, factory: CanActivateGuard.ɵfac, providedIn: 'root' });
|
|
3415
|
-
|
|
3255
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CanActivateGuard, [{
|
|
3416
3256
|
type: Injectable,
|
|
3417
3257
|
args: [{
|
|
3418
3258
|
providedIn: 'root'
|
|
3419
3259
|
}]
|
|
3420
3260
|
}], function () { return [{ type: ControlAccesoService }]; }, null); })();
|
|
3421
3261
|
|
|
3422
|
-
class CatalogoAdicionalService {
|
|
3423
|
-
constructor(
|
|
3424
|
-
|
|
3425
|
-
this.
|
|
3426
|
-
}
|
|
3427
|
-
getAll(params) {
|
|
3428
|
-
return this.api.get(this.endpoint, params);
|
|
3429
|
-
}
|
|
3430
|
-
get(id) {
|
|
3431
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3432
|
-
}
|
|
3433
|
-
save(obj) {
|
|
3434
|
-
return this.api.post(this.endpoint, obj);
|
|
3435
|
-
}
|
|
3436
|
-
update(obj) {
|
|
3437
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3438
|
-
}
|
|
3439
|
-
delete(id) {
|
|
3440
|
-
return this.api.delete(this.endpoint, id);
|
|
3262
|
+
class CatalogoAdicionalService extends CrudService {
|
|
3263
|
+
constructor(httpClient) {
|
|
3264
|
+
super(httpClient, 'catalogoAdicional');
|
|
3265
|
+
this.httpClient = httpClient;
|
|
3441
3266
|
}
|
|
3442
3267
|
}
|
|
3443
|
-
/** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(ɵɵinject(
|
|
3268
|
+
/** @nocollapse */ CatalogoAdicionalService.ɵfac = function CatalogoAdicionalService_Factory(t) { return new (t || CatalogoAdicionalService)(ɵɵinject(HttpClient)); };
|
|
3444
3269
|
/** @nocollapse */ CatalogoAdicionalService.ɵprov = ɵɵdefineInjectable({ token: CatalogoAdicionalService, factory: CatalogoAdicionalService.ɵfac, providedIn: 'root' });
|
|
3445
|
-
|
|
3270
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CatalogoAdicionalService, [{
|
|
3446
3271
|
type: Injectable,
|
|
3447
3272
|
args: [{
|
|
3448
3273
|
providedIn: 'root'
|
|
3449
3274
|
}]
|
|
3450
|
-
}], function () { return [{ type:
|
|
3275
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3451
3276
|
|
|
3452
3277
|
class Authenticated {
|
|
3453
3278
|
constructor(authService, controlAccesoService, router) {
|
|
@@ -3511,7 +3336,7 @@ class Authenticated {
|
|
|
3511
3336
|
}
|
|
3512
3337
|
/** @nocollapse */ Authenticated.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(ɵɵinject(AuthService), ɵɵinject(ControlAccesoService), ɵɵinject(Router)); };
|
|
3513
3338
|
/** @nocollapse */ Authenticated.ɵprov = ɵɵdefineInjectable({ token: Authenticated, factory: Authenticated.ɵfac, providedIn: 'root' });
|
|
3514
|
-
|
|
3339
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(Authenticated, [{
|
|
3515
3340
|
type: Injectable,
|
|
3516
3341
|
args: [{
|
|
3517
3342
|
providedIn: 'root'
|
|
@@ -3559,48 +3384,39 @@ class VersionCheckService {
|
|
|
3559
3384
|
}
|
|
3560
3385
|
/** @nocollapse */ VersionCheckService.ɵfac = function VersionCheckService_Factory(t) { return new (t || VersionCheckService)(ɵɵinject(HttpClient)); };
|
|
3561
3386
|
/** @nocollapse */ VersionCheckService.ɵprov = ɵɵdefineInjectable({ token: VersionCheckService, factory: VersionCheckService.ɵfac, providedIn: 'root' });
|
|
3562
|
-
|
|
3387
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(VersionCheckService, [{
|
|
3563
3388
|
type: Injectable,
|
|
3564
3389
|
args: [{
|
|
3565
3390
|
providedIn: 'root'
|
|
3566
3391
|
}]
|
|
3567
3392
|
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3568
3393
|
|
|
3569
|
-
class AgenteService {
|
|
3570
|
-
constructor(
|
|
3571
|
-
|
|
3572
|
-
this.
|
|
3394
|
+
class AgenteService extends CrudService {
|
|
3395
|
+
constructor(httpClient) {
|
|
3396
|
+
super(httpClient, 'agente');
|
|
3397
|
+
this.httpClient = httpClient;
|
|
3573
3398
|
}
|
|
3574
3399
|
saveUsuarioAgente(usuario) {
|
|
3575
|
-
|
|
3400
|
+
let url = this.getUrl('agente') + '/usuario';
|
|
3401
|
+
return this.getHttp().post(url, usuario, this.buildAuth());
|
|
3576
3402
|
}
|
|
3577
3403
|
getUsuarioAgente(id) {
|
|
3578
|
-
|
|
3404
|
+
let url = this.getUrl('agente') + '/usuario/' + id;
|
|
3405
|
+
return this.getHttp().get(url, this.buildAuth());
|
|
3579
3406
|
}
|
|
3580
3407
|
obtenerAgenteEmpresa() {
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
get(id) {
|
|
3584
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3585
|
-
}
|
|
3586
|
-
save(obj) {
|
|
3587
|
-
return this.api.post(this.endpoint, obj);
|
|
3588
|
-
}
|
|
3589
|
-
update(obj) {
|
|
3590
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3591
|
-
}
|
|
3592
|
-
delete(id) {
|
|
3593
|
-
return this.api.delete(this.endpoint, id);
|
|
3408
|
+
let url = this.geturl() + '/obtenerAgenteEmpresa';
|
|
3409
|
+
return this.getHttp().get(url, this.buildAuth());
|
|
3594
3410
|
}
|
|
3595
3411
|
}
|
|
3596
|
-
/** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(ɵɵinject(
|
|
3412
|
+
/** @nocollapse */ AgenteService.ɵfac = function AgenteService_Factory(t) { return new (t || AgenteService)(ɵɵinject(HttpClient)); };
|
|
3597
3413
|
/** @nocollapse */ AgenteService.ɵprov = ɵɵdefineInjectable({ token: AgenteService, factory: AgenteService.ɵfac, providedIn: 'root' });
|
|
3598
|
-
|
|
3414
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AgenteService, [{
|
|
3599
3415
|
type: Injectable,
|
|
3600
3416
|
args: [{
|
|
3601
3417
|
providedIn: 'root'
|
|
3602
3418
|
}]
|
|
3603
|
-
}], function () { return [{ type:
|
|
3419
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3604
3420
|
|
|
3605
3421
|
class Almacen {
|
|
3606
3422
|
constructor() { }
|
|
@@ -3617,133 +3433,69 @@ class Banco {
|
|
|
3617
3433
|
}
|
|
3618
3434
|
}
|
|
3619
3435
|
|
|
3620
|
-
class BancoService {
|
|
3621
|
-
constructor(
|
|
3622
|
-
|
|
3623
|
-
this.endpoint = 'banco';
|
|
3624
|
-
}
|
|
3625
|
-
getAll(params) {
|
|
3626
|
-
return this.api.get(this.endpoint, params);
|
|
3627
|
-
}
|
|
3628
|
-
get(id) {
|
|
3629
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3630
|
-
}
|
|
3631
|
-
save(obj) {
|
|
3632
|
-
return this.api.post(this.endpoint, obj);
|
|
3633
|
-
}
|
|
3634
|
-
update(obj) {
|
|
3635
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3636
|
-
}
|
|
3637
|
-
delete(id) {
|
|
3638
|
-
return this.api.delete(this.endpoint, id);
|
|
3436
|
+
class BancoService extends CrudService {
|
|
3437
|
+
constructor(http) {
|
|
3438
|
+
super(http, '/banco');
|
|
3639
3439
|
}
|
|
3640
3440
|
}
|
|
3641
|
-
/** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(ɵɵinject(
|
|
3441
|
+
/** @nocollapse */ BancoService.ɵfac = function BancoService_Factory(t) { return new (t || BancoService)(ɵɵinject(HttpClient)); };
|
|
3642
3442
|
/** @nocollapse */ BancoService.ɵprov = ɵɵdefineInjectable({ token: BancoService, factory: BancoService.ɵfac, providedIn: 'root' });
|
|
3643
|
-
|
|
3443
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(BancoService, [{
|
|
3644
3444
|
type: Injectable,
|
|
3645
3445
|
args: [{
|
|
3646
3446
|
providedIn: 'root'
|
|
3647
3447
|
}]
|
|
3648
|
-
}], function () { return [{ type:
|
|
3448
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3649
3449
|
|
|
3650
3450
|
class CatalogoTipo {
|
|
3651
3451
|
constructor() { }
|
|
3652
3452
|
}
|
|
3653
3453
|
|
|
3654
|
-
class CatalogoTipoService {
|
|
3655
|
-
constructor(
|
|
3656
|
-
|
|
3657
|
-
this.endpoint = 'catalogoTipo';
|
|
3658
|
-
}
|
|
3659
|
-
getAll(params) {
|
|
3660
|
-
return this.api.get(this.endpoint, params);
|
|
3661
|
-
}
|
|
3662
|
-
get(id) {
|
|
3663
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3664
|
-
}
|
|
3665
|
-
save(obj) {
|
|
3666
|
-
return this.api.post(this.endpoint, obj);
|
|
3667
|
-
}
|
|
3668
|
-
update(obj) {
|
|
3669
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3670
|
-
}
|
|
3671
|
-
delete(id) {
|
|
3672
|
-
return this.api.delete(this.endpoint, id);
|
|
3454
|
+
class CatalogoTipoService extends CrudService {
|
|
3455
|
+
constructor(htt) {
|
|
3456
|
+
super(htt, '/catalogoTipo');
|
|
3673
3457
|
}
|
|
3674
3458
|
}
|
|
3675
|
-
/** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(ɵɵinject(
|
|
3459
|
+
/** @nocollapse */ CatalogoTipoService.ɵfac = function CatalogoTipoService_Factory(t) { return new (t || CatalogoTipoService)(ɵɵinject(HttpClient)); };
|
|
3676
3460
|
/** @nocollapse */ CatalogoTipoService.ɵprov = ɵɵdefineInjectable({ token: CatalogoTipoService, factory: CatalogoTipoService.ɵfac, providedIn: 'root' });
|
|
3677
|
-
|
|
3461
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(CatalogoTipoService, [{
|
|
3678
3462
|
type: Injectable,
|
|
3679
3463
|
args: [{
|
|
3680
3464
|
providedIn: 'root'
|
|
3681
3465
|
}]
|
|
3682
|
-
}], function () { return [{ type:
|
|
3466
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3683
3467
|
|
|
3684
|
-
class ClasificadorTipoService {
|
|
3685
|
-
constructor(
|
|
3686
|
-
|
|
3687
|
-
this.endpoint = 'clasificadorTipo';
|
|
3688
|
-
}
|
|
3689
|
-
getAll(params) {
|
|
3690
|
-
return this.api.get(this.endpoint, params);
|
|
3691
|
-
}
|
|
3692
|
-
get(id) {
|
|
3693
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3694
|
-
}
|
|
3695
|
-
save(obj) {
|
|
3696
|
-
return this.api.post(this.endpoint, obj);
|
|
3697
|
-
}
|
|
3698
|
-
update(obj) {
|
|
3699
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3700
|
-
}
|
|
3701
|
-
delete(id) {
|
|
3702
|
-
return this.api.delete(this.endpoint, id);
|
|
3468
|
+
class ClasificadorTipoService extends CrudService {
|
|
3469
|
+
constructor(http) {
|
|
3470
|
+
super(http, '/clasificadorTipo');
|
|
3703
3471
|
}
|
|
3704
3472
|
}
|
|
3705
|
-
/** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(ɵɵinject(
|
|
3473
|
+
/** @nocollapse */ ClasificadorTipoService.ɵfac = function ClasificadorTipoService_Factory(t) { return new (t || ClasificadorTipoService)(ɵɵinject(HttpClient)); };
|
|
3706
3474
|
/** @nocollapse */ ClasificadorTipoService.ɵprov = ɵɵdefineInjectable({ token: ClasificadorTipoService, factory: ClasificadorTipoService.ɵfac, providedIn: 'root' });
|
|
3707
|
-
|
|
3475
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClasificadorTipoService, [{
|
|
3708
3476
|
type: Injectable,
|
|
3709
3477
|
args: [{
|
|
3710
3478
|
providedIn: 'root'
|
|
3711
3479
|
}]
|
|
3712
|
-
}], function () { return [{ type:
|
|
3480
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3713
3481
|
|
|
3714
3482
|
class ClaveMovimiento {
|
|
3715
3483
|
constructor() { }
|
|
3716
3484
|
}
|
|
3717
3485
|
|
|
3718
|
-
class ClaveMovimientoService {
|
|
3719
|
-
constructor(
|
|
3720
|
-
|
|
3721
|
-
this.endpoint = 'claveMovimiento';
|
|
3722
|
-
}
|
|
3723
|
-
getAll(params) {
|
|
3724
|
-
return this.api.get(this.endpoint, params);
|
|
3725
|
-
}
|
|
3726
|
-
get(id) {
|
|
3727
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3728
|
-
}
|
|
3729
|
-
save(obj) {
|
|
3730
|
-
return this.api.post(this.endpoint, obj);
|
|
3731
|
-
}
|
|
3732
|
-
update(obj) {
|
|
3733
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3734
|
-
}
|
|
3735
|
-
delete(id) {
|
|
3736
|
-
return this.api.delete(this.endpoint, id);
|
|
3486
|
+
class ClaveMovimientoService extends CrudService {
|
|
3487
|
+
constructor(http) {
|
|
3488
|
+
super(http, 'claveMovimiento');
|
|
3737
3489
|
}
|
|
3738
3490
|
}
|
|
3739
|
-
/** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(ɵɵinject(
|
|
3491
|
+
/** @nocollapse */ ClaveMovimientoService.ɵfac = function ClaveMovimientoService_Factory(t) { return new (t || ClaveMovimientoService)(ɵɵinject(HttpClient)); };
|
|
3740
3492
|
/** @nocollapse */ ClaveMovimientoService.ɵprov = ɵɵdefineInjectable({ token: ClaveMovimientoService, factory: ClaveMovimientoService.ɵfac, providedIn: 'root' });
|
|
3741
|
-
|
|
3493
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClaveMovimientoService, [{
|
|
3742
3494
|
type: Injectable,
|
|
3743
3495
|
args: [{
|
|
3744
3496
|
providedIn: 'root'
|
|
3745
3497
|
}]
|
|
3746
|
-
}], function () { return [{ type:
|
|
3498
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3747
3499
|
|
|
3748
3500
|
class ClienteCuentaBanco {
|
|
3749
3501
|
constructor() {
|
|
@@ -3764,73 +3516,43 @@ class ClienteFlete {
|
|
|
3764
3516
|
}
|
|
3765
3517
|
}
|
|
3766
3518
|
|
|
3767
|
-
class ClienteCuentaBancoService {
|
|
3768
|
-
constructor(
|
|
3769
|
-
|
|
3770
|
-
this.
|
|
3519
|
+
class ClienteCuentaBancoService extends CrudService {
|
|
3520
|
+
constructor(httpClient) {
|
|
3521
|
+
super(httpClient, '/clienteCuentaBanco');
|
|
3522
|
+
this.httpClient = httpClient;
|
|
3771
3523
|
}
|
|
3772
3524
|
saveAll(params) {
|
|
3773
3525
|
let p = { 'cuentas': params };
|
|
3774
|
-
return this.
|
|
3775
|
-
}
|
|
3776
|
-
get(id) {
|
|
3777
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3778
|
-
}
|
|
3779
|
-
delete(id) {
|
|
3780
|
-
return this.api.delete(this.endpoint, id);
|
|
3781
|
-
}
|
|
3782
|
-
getAll(params) {
|
|
3783
|
-
return this.api.get(this.endpoint, params);
|
|
3784
|
-
}
|
|
3785
|
-
save(obj) {
|
|
3786
|
-
return this.api.post(this.endpoint, obj);
|
|
3787
|
-
}
|
|
3788
|
-
update(obj) {
|
|
3789
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3526
|
+
return this.httpClient.post(this.geturl(), p, this.buildAuth());
|
|
3790
3527
|
}
|
|
3791
3528
|
}
|
|
3792
|
-
/** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(ɵɵinject(
|
|
3529
|
+
/** @nocollapse */ ClienteCuentaBancoService.ɵfac = function ClienteCuentaBancoService_Factory(t) { return new (t || ClienteCuentaBancoService)(ɵɵinject(HttpClient)); };
|
|
3793
3530
|
/** @nocollapse */ ClienteCuentaBancoService.ɵprov = ɵɵdefineInjectable({ token: ClienteCuentaBancoService, factory: ClienteCuentaBancoService.ɵfac, providedIn: 'root' });
|
|
3794
|
-
|
|
3531
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClienteCuentaBancoService, [{
|
|
3795
3532
|
type: Injectable,
|
|
3796
3533
|
args: [{
|
|
3797
3534
|
providedIn: 'root'
|
|
3798
3535
|
}]
|
|
3799
|
-
}], function () { return [{ type:
|
|
3536
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3800
3537
|
|
|
3801
|
-
class ClienteFleteService {
|
|
3802
|
-
constructor(
|
|
3803
|
-
|
|
3804
|
-
this.
|
|
3538
|
+
class ClienteFleteService extends CrudService {
|
|
3539
|
+
constructor(httpClient) {
|
|
3540
|
+
super(httpClient, '/clienteFlete');
|
|
3541
|
+
this.httpClient = httpClient;
|
|
3805
3542
|
}
|
|
3806
3543
|
saveAll(p) {
|
|
3807
3544
|
let params = { fletes: p };
|
|
3808
|
-
return this.
|
|
3809
|
-
}
|
|
3810
|
-
get(id) {
|
|
3811
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3812
|
-
}
|
|
3813
|
-
delete(id) {
|
|
3814
|
-
return this.api.delete(this.endpoint, id);
|
|
3815
|
-
}
|
|
3816
|
-
getAll(params) {
|
|
3817
|
-
return this.api.get(this.endpoint, params);
|
|
3818
|
-
}
|
|
3819
|
-
save(obj) {
|
|
3820
|
-
return this.api.post(this.endpoint, obj);
|
|
3821
|
-
}
|
|
3822
|
-
update(obj) {
|
|
3823
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3545
|
+
return this.save(params);
|
|
3824
3546
|
}
|
|
3825
3547
|
}
|
|
3826
|
-
/** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(ɵɵinject(
|
|
3548
|
+
/** @nocollapse */ ClienteFleteService.ɵfac = function ClienteFleteService_Factory(t) { return new (t || ClienteFleteService)(ɵɵinject(HttpClient)); };
|
|
3827
3549
|
/** @nocollapse */ ClienteFleteService.ɵprov = ɵɵdefineInjectable({ token: ClienteFleteService, factory: ClienteFleteService.ɵfac, providedIn: 'root' });
|
|
3828
|
-
|
|
3550
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClienteFleteService, [{
|
|
3829
3551
|
type: Injectable,
|
|
3830
3552
|
args: [{
|
|
3831
3553
|
providedIn: 'root'
|
|
3832
3554
|
}]
|
|
3833
|
-
}], function () { return [{ type:
|
|
3555
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3834
3556
|
|
|
3835
3557
|
class TipoContacto {
|
|
3836
3558
|
constructor() {
|
|
@@ -3844,100 +3566,52 @@ class DatoContacto {
|
|
|
3844
3566
|
}
|
|
3845
3567
|
}
|
|
3846
3568
|
|
|
3847
|
-
class DatoContactoService {
|
|
3848
|
-
constructor(
|
|
3849
|
-
|
|
3850
|
-
this.endpoint = 'contacto';
|
|
3851
|
-
}
|
|
3852
|
-
getAll(params) {
|
|
3853
|
-
return this.api.get(this.endpoint, params);
|
|
3854
|
-
}
|
|
3855
|
-
get(id) {
|
|
3856
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3857
|
-
}
|
|
3858
|
-
save(obj) {
|
|
3859
|
-
return this.api.post(this.endpoint, obj);
|
|
3860
|
-
}
|
|
3861
|
-
update(obj) {
|
|
3862
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3863
|
-
}
|
|
3864
|
-
delete(id) {
|
|
3865
|
-
return this.api.delete(this.endpoint, id);
|
|
3569
|
+
class DatoContactoService extends CrudService {
|
|
3570
|
+
constructor(http) {
|
|
3571
|
+
super(http, '/contacto');
|
|
3866
3572
|
}
|
|
3867
3573
|
}
|
|
3868
|
-
/** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(ɵɵinject(
|
|
3574
|
+
/** @nocollapse */ DatoContactoService.ɵfac = function DatoContactoService_Factory(t) { return new (t || DatoContactoService)(ɵɵinject(HttpClient)); };
|
|
3869
3575
|
/** @nocollapse */ DatoContactoService.ɵprov = ɵɵdefineInjectable({ token: DatoContactoService, factory: DatoContactoService.ɵfac, providedIn: 'root' });
|
|
3870
|
-
|
|
3576
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(DatoContactoService, [{
|
|
3871
3577
|
type: Injectable,
|
|
3872
3578
|
args: [{
|
|
3873
3579
|
providedIn: 'root'
|
|
3874
3580
|
}]
|
|
3875
|
-
}], function () { return [{ type:
|
|
3581
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3876
3582
|
|
|
3877
|
-
class DatoDireccionService {
|
|
3878
|
-
constructor(
|
|
3879
|
-
|
|
3880
|
-
this.endpoint = 'datoDireccion';
|
|
3881
|
-
}
|
|
3882
|
-
getAll(params) {
|
|
3883
|
-
return this.api.get(this.endpoint, params);
|
|
3884
|
-
}
|
|
3885
|
-
get(id) {
|
|
3886
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3887
|
-
}
|
|
3888
|
-
save(obj) {
|
|
3889
|
-
return this.api.post(this.endpoint, obj);
|
|
3890
|
-
}
|
|
3891
|
-
update(obj) {
|
|
3892
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3893
|
-
}
|
|
3894
|
-
delete(id) {
|
|
3895
|
-
return this.api.delete(this.endpoint, id);
|
|
3583
|
+
class DatoDireccionService extends CrudService {
|
|
3584
|
+
constructor(http) {
|
|
3585
|
+
super(http, '/datoDireccion');
|
|
3896
3586
|
}
|
|
3897
3587
|
}
|
|
3898
|
-
/** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(ɵɵinject(
|
|
3588
|
+
/** @nocollapse */ DatoDireccionService.ɵfac = function DatoDireccionService_Factory(t) { return new (t || DatoDireccionService)(ɵɵinject(HttpClient)); };
|
|
3899
3589
|
/** @nocollapse */ DatoDireccionService.ɵprov = ɵɵdefineInjectable({ token: DatoDireccionService, factory: DatoDireccionService.ɵfac, providedIn: 'root' });
|
|
3900
|
-
|
|
3590
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(DatoDireccionService, [{
|
|
3901
3591
|
type: Injectable,
|
|
3902
3592
|
args: [{
|
|
3903
3593
|
providedIn: 'root'
|
|
3904
3594
|
}]
|
|
3905
|
-
}], function () { return [{ type:
|
|
3595
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3906
3596
|
|
|
3907
3597
|
class Departamento {
|
|
3908
3598
|
constructor() {
|
|
3909
3599
|
}
|
|
3910
3600
|
}
|
|
3911
3601
|
|
|
3912
|
-
class DepartamentoService {
|
|
3913
|
-
constructor(
|
|
3914
|
-
|
|
3915
|
-
this.endpoint = 'departamento';
|
|
3916
|
-
}
|
|
3917
|
-
getAll(params) {
|
|
3918
|
-
return this.api.get(this.endpoint, params);
|
|
3919
|
-
}
|
|
3920
|
-
get(id) {
|
|
3921
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
3922
|
-
}
|
|
3923
|
-
save(obj) {
|
|
3924
|
-
return this.api.post(this.endpoint, obj);
|
|
3925
|
-
}
|
|
3926
|
-
update(obj) {
|
|
3927
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3928
|
-
}
|
|
3929
|
-
delete(id) {
|
|
3930
|
-
return this.api.delete(this.endpoint, id);
|
|
3602
|
+
class DepartamentoService extends CrudService {
|
|
3603
|
+
constructor(http) {
|
|
3604
|
+
super(http, '/departamento');
|
|
3931
3605
|
}
|
|
3932
3606
|
}
|
|
3933
|
-
/** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(ɵɵinject(
|
|
3607
|
+
/** @nocollapse */ DepartamentoService.ɵfac = function DepartamentoService_Factory(t) { return new (t || DepartamentoService)(ɵɵinject(HttpClient)); };
|
|
3934
3608
|
/** @nocollapse */ DepartamentoService.ɵprov = ɵɵdefineInjectable({ token: DepartamentoService, factory: DepartamentoService.ɵfac, providedIn: 'root' });
|
|
3935
|
-
|
|
3609
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(DepartamentoService, [{
|
|
3936
3610
|
type: Injectable,
|
|
3937
3611
|
args: [{
|
|
3938
3612
|
providedIn: 'root'
|
|
3939
3613
|
}]
|
|
3940
|
-
}], function () { return [{ type:
|
|
3614
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3941
3615
|
|
|
3942
3616
|
class FormaPago {
|
|
3943
3617
|
constructor() { }
|
|
@@ -3957,132 +3631,72 @@ class ConfiguracionEmpresaAdministrativa {
|
|
|
3957
3631
|
}
|
|
3958
3632
|
}
|
|
3959
3633
|
|
|
3960
|
-
class EmpresaService {
|
|
3961
|
-
constructor(
|
|
3962
|
-
|
|
3963
|
-
this.
|
|
3964
|
-
}
|
|
3965
|
-
getAll(params) {
|
|
3966
|
-
return this.api.get(this.endpoint, params);
|
|
3634
|
+
class EmpresaService extends CrudService {
|
|
3635
|
+
constructor(httpClient) {
|
|
3636
|
+
super(httpClient, '/empresa');
|
|
3637
|
+
this.httpClient = httpClient;
|
|
3967
3638
|
}
|
|
3968
3639
|
get() {
|
|
3969
|
-
return
|
|
3970
|
-
|
|
3971
|
-
getByEmpresa(id) {
|
|
3972
|
-
return this.api.get(`${this.endpoint}/configuracionEmpresaAdministrativo/configuracionUsuario/${id}`);
|
|
3973
|
-
}
|
|
3974
|
-
save(obj) {
|
|
3975
|
-
return this.api.post(this.endpoint, obj);
|
|
3976
|
-
}
|
|
3977
|
-
update(obj) {
|
|
3978
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
3979
|
-
}
|
|
3980
|
-
delete(id) {
|
|
3981
|
-
return this.api.delete(this.endpoint, id);
|
|
3640
|
+
// return super.get(1);
|
|
3641
|
+
return this.httpClient.get(this.getBaseUrl() + '/configuracionEmpresaAdministrativo/configuracionUsuario', this.buildAuth());
|
|
3982
3642
|
}
|
|
3983
3643
|
}
|
|
3984
|
-
/** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(ɵɵinject(
|
|
3644
|
+
/** @nocollapse */ EmpresaService.ɵfac = function EmpresaService_Factory(t) { return new (t || EmpresaService)(ɵɵinject(HttpClient)); };
|
|
3985
3645
|
/** @nocollapse */ EmpresaService.ɵprov = ɵɵdefineInjectable({ token: EmpresaService, factory: EmpresaService.ɵfac, providedIn: 'root' });
|
|
3986
|
-
|
|
3646
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(EmpresaService, [{
|
|
3987
3647
|
type: Injectable,
|
|
3988
3648
|
args: [{
|
|
3989
3649
|
providedIn: 'root'
|
|
3990
3650
|
}]
|
|
3991
|
-
}], function () { return [{ type:
|
|
3651
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
3992
3652
|
|
|
3993
|
-
class FleteService {
|
|
3994
|
-
constructor(
|
|
3995
|
-
|
|
3996
|
-
this.
|
|
3997
|
-
}
|
|
3998
|
-
getAll(params) {
|
|
3999
|
-
return this.api.get(this.endpoint, params);
|
|
4000
|
-
}
|
|
4001
|
-
get(id) {
|
|
4002
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
4003
|
-
}
|
|
4004
|
-
save(obj) {
|
|
4005
|
-
return this.api.post(this.endpoint, obj);
|
|
4006
|
-
}
|
|
4007
|
-
update(obj) {
|
|
4008
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
4009
|
-
}
|
|
4010
|
-
delete(id) {
|
|
4011
|
-
return this.api.delete(this.endpoint, id);
|
|
3653
|
+
class FleteService extends CrudService {
|
|
3654
|
+
constructor(httpClient) {
|
|
3655
|
+
super(httpClient, '/flete');
|
|
3656
|
+
this.httpClient = httpClient;
|
|
4012
3657
|
}
|
|
4013
3658
|
}
|
|
4014
|
-
/** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(ɵɵinject(
|
|
3659
|
+
/** @nocollapse */ FleteService.ɵfac = function FleteService_Factory(t) { return new (t || FleteService)(ɵɵinject(HttpClient)); };
|
|
4015
3660
|
/** @nocollapse */ FleteService.ɵprov = ɵɵdefineInjectable({ token: FleteService, factory: FleteService.ɵfac, providedIn: 'root' });
|
|
4016
|
-
|
|
3661
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(FleteService, [{
|
|
4017
3662
|
type: Injectable,
|
|
4018
3663
|
args: [{
|
|
4019
3664
|
providedIn: 'root'
|
|
4020
3665
|
}]
|
|
4021
|
-
}], function () { return [{ type:
|
|
3666
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4022
3667
|
|
|
4023
|
-
class FormaPagoService {
|
|
4024
|
-
constructor(
|
|
4025
|
-
|
|
4026
|
-
this.endpoint = 'FormaDePago';
|
|
4027
|
-
}
|
|
4028
|
-
getAll(params) {
|
|
4029
|
-
return this.api.get(this.endpoint, params);
|
|
4030
|
-
}
|
|
4031
|
-
get(id) {
|
|
4032
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
4033
|
-
}
|
|
4034
|
-
save(obj) {
|
|
4035
|
-
return this.api.post(this.endpoint, obj);
|
|
4036
|
-
}
|
|
4037
|
-
update(obj) {
|
|
4038
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
4039
|
-
}
|
|
4040
|
-
delete(id) {
|
|
4041
|
-
return this.api.delete(this.endpoint, id);
|
|
3668
|
+
class FormaPagoService extends CrudService {
|
|
3669
|
+
constructor(http) {
|
|
3670
|
+
super(http, '/FormaDePago');
|
|
4042
3671
|
}
|
|
4043
3672
|
}
|
|
4044
|
-
/** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(ɵɵinject(
|
|
3673
|
+
/** @nocollapse */ FormaPagoService.ɵfac = function FormaPagoService_Factory(t) { return new (t || FormaPagoService)(ɵɵinject(HttpClient)); };
|
|
4045
3674
|
/** @nocollapse */ FormaPagoService.ɵprov = ɵɵdefineInjectable({ token: FormaPagoService, factory: FormaPagoService.ɵfac, providedIn: "root" });
|
|
4046
|
-
|
|
3675
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(FormaPagoService, [{
|
|
4047
3676
|
type: Injectable,
|
|
4048
3677
|
args: [{
|
|
4049
3678
|
providedIn: "root"
|
|
4050
3679
|
}]
|
|
4051
|
-
}], function () { return [{ type:
|
|
3680
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4052
3681
|
|
|
4053
3682
|
class Moneda {
|
|
4054
3683
|
constructor() { }
|
|
4055
3684
|
}
|
|
4056
3685
|
|
|
4057
|
-
class MonedaService {
|
|
4058
|
-
constructor(
|
|
4059
|
-
|
|
4060
|
-
this.
|
|
4061
|
-
}
|
|
4062
|
-
getAll(params) {
|
|
4063
|
-
return this.api.get(this.endpoint, params);
|
|
4064
|
-
}
|
|
4065
|
-
get(id) {
|
|
4066
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
4067
|
-
}
|
|
4068
|
-
save(obj) {
|
|
4069
|
-
return this.api.post(this.endpoint, obj);
|
|
4070
|
-
}
|
|
4071
|
-
update(obj) {
|
|
4072
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
4073
|
-
}
|
|
4074
|
-
delete(id) {
|
|
4075
|
-
return this.api.delete(this.endpoint, id);
|
|
3686
|
+
class MonedaService extends CrudService {
|
|
3687
|
+
constructor(httpClient) {
|
|
3688
|
+
super(httpClient, '/moneda');
|
|
3689
|
+
this.httpClient = httpClient;
|
|
4076
3690
|
}
|
|
4077
3691
|
}
|
|
4078
|
-
/** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(ɵɵinject(
|
|
3692
|
+
/** @nocollapse */ MonedaService.ɵfac = function MonedaService_Factory(t) { return new (t || MonedaService)(ɵɵinject(HttpClient)); };
|
|
4079
3693
|
/** @nocollapse */ MonedaService.ɵprov = ɵɵdefineInjectable({ token: MonedaService, factory: MonedaService.ɵfac, providedIn: 'root' });
|
|
4080
|
-
|
|
3694
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(MonedaService, [{
|
|
4081
3695
|
type: Injectable,
|
|
4082
3696
|
args: [{
|
|
4083
3697
|
providedIn: 'root'
|
|
4084
3698
|
}]
|
|
4085
|
-
}], function () { return [{ type:
|
|
3699
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4086
3700
|
|
|
4087
3701
|
class EstadoCivil {
|
|
4088
3702
|
constructor() { }
|
|
@@ -4092,26 +3706,26 @@ class Genero {
|
|
|
4092
3706
|
constructor() { }
|
|
4093
3707
|
}
|
|
4094
3708
|
|
|
4095
|
-
class PersonaFisicaService {
|
|
4096
|
-
constructor(
|
|
4097
|
-
|
|
4098
|
-
this.
|
|
3709
|
+
class PersonaFisicaService extends CrudService {
|
|
3710
|
+
constructor(httpClient) {
|
|
3711
|
+
super(httpClient, '/PersonaFisica');
|
|
3712
|
+
this.httpClient = httpClient;
|
|
4099
3713
|
}
|
|
4100
3714
|
getGeneros() {
|
|
4101
|
-
return this.
|
|
3715
|
+
return this.httpClient.get(this.getBaseUrl() + '/genero', this.buildAuth());
|
|
4102
3716
|
}
|
|
4103
3717
|
getEstadoCivil() {
|
|
4104
|
-
return this.
|
|
3718
|
+
return this.httpClient.get(this.getBaseUrl() + '/estadoCivil', this.buildAuth());
|
|
4105
3719
|
}
|
|
4106
3720
|
}
|
|
4107
|
-
/** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(ɵɵinject(
|
|
3721
|
+
/** @nocollapse */ PersonaFisicaService.ɵfac = function PersonaFisicaService_Factory(t) { return new (t || PersonaFisicaService)(ɵɵinject(HttpClient)); };
|
|
4108
3722
|
/** @nocollapse */ PersonaFisicaService.ɵprov = ɵɵdefineInjectable({ token: PersonaFisicaService, factory: PersonaFisicaService.ɵfac, providedIn: "root" });
|
|
4109
|
-
|
|
3723
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(PersonaFisicaService, [{
|
|
4110
3724
|
type: Injectable,
|
|
4111
3725
|
args: [{
|
|
4112
3726
|
providedIn: "root"
|
|
4113
3727
|
}]
|
|
4114
|
-
}], function () { return [{ type:
|
|
3728
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4115
3729
|
|
|
4116
3730
|
class ProveedorCuentaBanco {
|
|
4117
3731
|
constructor() {
|
|
@@ -4128,224 +3742,138 @@ class ProveedorFlete {
|
|
|
4128
3742
|
}
|
|
4129
3743
|
}
|
|
4130
3744
|
|
|
4131
|
-
class ProveedorCuentaBancoService {
|
|
4132
|
-
constructor(
|
|
4133
|
-
|
|
4134
|
-
this.
|
|
4135
|
-
}
|
|
4136
|
-
getAll(params) {
|
|
4137
|
-
return this.api.get(this.endpoint, params);
|
|
3745
|
+
class ProveedorCuentaBancoService extends CrudService {
|
|
3746
|
+
constructor(httpClient) {
|
|
3747
|
+
super(httpClient, '/proveedorCuentaBanco');
|
|
3748
|
+
this.httpClient = httpClient;
|
|
4138
3749
|
}
|
|
4139
3750
|
saveAll(params) {
|
|
4140
3751
|
let p = { 'cuentas': params };
|
|
4141
|
-
return this.
|
|
4142
|
-
}
|
|
4143
|
-
get(id) {
|
|
4144
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
4145
|
-
}
|
|
4146
|
-
delete(id) {
|
|
4147
|
-
return this.api.delete(this.endpoint, id);
|
|
4148
|
-
}
|
|
4149
|
-
update(obj) {
|
|
4150
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
4151
|
-
}
|
|
4152
|
-
save(obj) {
|
|
4153
|
-
return this.api.post(this.endpoint, obj);
|
|
3752
|
+
return this.httpClient.post(this.geturl(), p, this.buildAuth());
|
|
4154
3753
|
}
|
|
4155
3754
|
}
|
|
4156
|
-
/** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(ɵɵinject(
|
|
3755
|
+
/** @nocollapse */ ProveedorCuentaBancoService.ɵfac = function ProveedorCuentaBancoService_Factory(t) { return new (t || ProveedorCuentaBancoService)(ɵɵinject(HttpClient)); };
|
|
4157
3756
|
/** @nocollapse */ ProveedorCuentaBancoService.ɵprov = ɵɵdefineInjectable({ token: ProveedorCuentaBancoService, factory: ProveedorCuentaBancoService.ɵfac, providedIn: 'root' });
|
|
4158
|
-
|
|
3757
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ProveedorCuentaBancoService, [{
|
|
4159
3758
|
type: Injectable,
|
|
4160
3759
|
args: [{
|
|
4161
3760
|
providedIn: 'root'
|
|
4162
3761
|
}]
|
|
4163
|
-
}], function () { return [{ type:
|
|
3762
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4164
3763
|
|
|
4165
|
-
class ProveedorFleteService {
|
|
4166
|
-
constructor(
|
|
4167
|
-
|
|
4168
|
-
this.
|
|
4169
|
-
}
|
|
4170
|
-
getAll(params) {
|
|
4171
|
-
return this.api.get(this.endpoint, params);
|
|
3764
|
+
class ProveedorFleteService extends CrudService {
|
|
3765
|
+
constructor(httpClient) {
|
|
3766
|
+
super(httpClient, '/proveedorFlete');
|
|
3767
|
+
this.httpClient = httpClient;
|
|
4172
3768
|
}
|
|
4173
3769
|
saveAll(p) {
|
|
4174
3770
|
let params = { fletes: p };
|
|
4175
3771
|
return this.save(params);
|
|
4176
3772
|
}
|
|
4177
|
-
save(obj) {
|
|
4178
|
-
return this.api.post(this.endpoint, obj);
|
|
4179
|
-
}
|
|
4180
|
-
update(obj) {
|
|
4181
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
4182
|
-
}
|
|
4183
|
-
delete(id) {
|
|
4184
|
-
return this.api.delete(this.endpoint, id);
|
|
4185
|
-
}
|
|
4186
3773
|
}
|
|
4187
|
-
/** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(ɵɵinject(
|
|
3774
|
+
/** @nocollapse */ ProveedorFleteService.ɵfac = function ProveedorFleteService_Factory(t) { return new (t || ProveedorFleteService)(ɵɵinject(HttpClient)); };
|
|
4188
3775
|
/** @nocollapse */ ProveedorFleteService.ɵprov = ɵɵdefineInjectable({ token: ProveedorFleteService, factory: ProveedorFleteService.ɵfac, providedIn: 'root' });
|
|
4189
|
-
|
|
3776
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ProveedorFleteService, [{
|
|
4190
3777
|
type: Injectable,
|
|
4191
3778
|
args: [{
|
|
4192
3779
|
providedIn: 'root'
|
|
4193
3780
|
}]
|
|
4194
|
-
}], function () { return [{ type:
|
|
3781
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4195
3782
|
|
|
4196
|
-
class ClaveAumentoDisminucionService {
|
|
4197
|
-
constructor(
|
|
4198
|
-
|
|
4199
|
-
this.endpoint = 'claveAumentoDisminucion';
|
|
4200
|
-
}
|
|
4201
|
-
getAll(params) {
|
|
4202
|
-
return this.api.get(this.endpoint, params);
|
|
4203
|
-
}
|
|
4204
|
-
get(id) {
|
|
4205
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
4206
|
-
}
|
|
4207
|
-
save(obj) {
|
|
4208
|
-
return this.api.post(this.endpoint, obj);
|
|
4209
|
-
}
|
|
4210
|
-
update(obj) {
|
|
4211
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
4212
|
-
}
|
|
4213
|
-
delete(id) {
|
|
4214
|
-
return this.api.delete(this.endpoint, id);
|
|
3783
|
+
class ClaveAumentoDisminucionService extends CrudService {
|
|
3784
|
+
constructor(http) {
|
|
3785
|
+
super(http, 'claveAumentoDisminucion');
|
|
4215
3786
|
}
|
|
4216
3787
|
}
|
|
4217
|
-
/** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(ɵɵinject(
|
|
3788
|
+
/** @nocollapse */ ClaveAumentoDisminucionService.ɵfac = function ClaveAumentoDisminucionService_Factory(t) { return new (t || ClaveAumentoDisminucionService)(ɵɵinject(HttpClient)); };
|
|
4218
3789
|
/** @nocollapse */ ClaveAumentoDisminucionService.ɵprov = ɵɵdefineInjectable({ token: ClaveAumentoDisminucionService, factory: ClaveAumentoDisminucionService.ɵfac, providedIn: 'root' });
|
|
4219
|
-
|
|
3790
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(ClaveAumentoDisminucionService, [{
|
|
4220
3791
|
type: Injectable,
|
|
4221
3792
|
args: [{
|
|
4222
3793
|
providedIn: 'root'
|
|
4223
3794
|
}]
|
|
4224
|
-
}], function () { return [{ type:
|
|
3795
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4225
3796
|
|
|
4226
|
-
class SerieDocumentoService {
|
|
4227
|
-
constructor(
|
|
4228
|
-
|
|
4229
|
-
this.
|
|
3797
|
+
class SerieDocumentoService extends CrudService {
|
|
3798
|
+
constructor(httpClient) {
|
|
3799
|
+
super(httpClient, 'serieDocumento');
|
|
3800
|
+
this.httpClient = httpClient;
|
|
4230
3801
|
}
|
|
4231
3802
|
getTipos() {
|
|
4232
|
-
return this.
|
|
3803
|
+
return this.httpClient.get(this.getUrl('serieDocumento') + '/tipoSerie', this.buildAuth());
|
|
4233
3804
|
}
|
|
4234
3805
|
getReporte(params) {
|
|
4235
|
-
return this.
|
|
4236
|
-
}
|
|
4237
|
-
get(id) {
|
|
4238
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
4239
|
-
}
|
|
4240
|
-
save(obj) {
|
|
4241
|
-
return this.api.post(this.endpoint, obj);
|
|
4242
|
-
}
|
|
4243
|
-
update(obj) {
|
|
4244
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
4245
|
-
}
|
|
4246
|
-
delete(id) {
|
|
4247
|
-
return this.api.delete(this.endpoint, id);
|
|
3806
|
+
return this.httpClient.get(this.getUrl('serieDocumento') + '/descargaFormatoReporte' + this.serializeParams(params), this.buildAuth());
|
|
4248
3807
|
}
|
|
4249
3808
|
}
|
|
4250
|
-
/** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(ɵɵinject(
|
|
3809
|
+
/** @nocollapse */ SerieDocumentoService.ɵfac = function SerieDocumentoService_Factory(t) { return new (t || SerieDocumentoService)(ɵɵinject(HttpClient)); };
|
|
4251
3810
|
/** @nocollapse */ SerieDocumentoService.ɵprov = ɵɵdefineInjectable({ token: SerieDocumentoService, factory: SerieDocumentoService.ɵfac, providedIn: 'root' });
|
|
4252
|
-
|
|
3811
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(SerieDocumentoService, [{
|
|
4253
3812
|
type: Injectable,
|
|
4254
3813
|
args: [{
|
|
4255
3814
|
providedIn: 'root'
|
|
4256
3815
|
}]
|
|
4257
|
-
}], function () { return [{ type:
|
|
3816
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4258
3817
|
|
|
4259
3818
|
class SerieDocumento {
|
|
4260
3819
|
constructor() { }
|
|
4261
3820
|
}
|
|
4262
3821
|
|
|
4263
|
-
class TipoContactoService {
|
|
4264
|
-
constructor(
|
|
4265
|
-
|
|
4266
|
-
this.endpoint = 'tipoContacto';
|
|
4267
|
-
}
|
|
4268
|
-
getAll(params) {
|
|
4269
|
-
return this.api.get(this.endpoint, params);
|
|
4270
|
-
}
|
|
4271
|
-
get(id) {
|
|
4272
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
4273
|
-
}
|
|
4274
|
-
save(obj) {
|
|
4275
|
-
return this.api.post(this.endpoint, obj);
|
|
4276
|
-
}
|
|
4277
|
-
update(obj) {
|
|
4278
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
4279
|
-
}
|
|
4280
|
-
delete(id) {
|
|
4281
|
-
return this.api.delete(this.endpoint, id);
|
|
3822
|
+
class TipoContactoService extends CrudService {
|
|
3823
|
+
constructor(http) {
|
|
3824
|
+
super(http, '/tipoContacto');
|
|
4282
3825
|
}
|
|
4283
3826
|
}
|
|
4284
|
-
/** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(ɵɵinject(
|
|
3827
|
+
/** @nocollapse */ TipoContactoService.ɵfac = function TipoContactoService_Factory(t) { return new (t || TipoContactoService)(ɵɵinject(HttpClient)); };
|
|
4285
3828
|
/** @nocollapse */ TipoContactoService.ɵprov = ɵɵdefineInjectable({ token: TipoContactoService, factory: TipoContactoService.ɵfac, providedIn: 'root' });
|
|
4286
|
-
|
|
3829
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(TipoContactoService, [{
|
|
4287
3830
|
type: Injectable,
|
|
4288
3831
|
args: [{
|
|
4289
3832
|
providedIn: 'root'
|
|
4290
3833
|
}]
|
|
4291
|
-
}], function () { return [{ type:
|
|
3834
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4292
3835
|
|
|
4293
3836
|
class Ubicacion {
|
|
4294
3837
|
constructor() { }
|
|
4295
3838
|
}
|
|
4296
3839
|
|
|
4297
|
-
class UbicacionService {
|
|
4298
|
-
constructor(
|
|
4299
|
-
|
|
4300
|
-
this.endpoint = 'ubicacion';
|
|
4301
|
-
}
|
|
4302
|
-
getAll(params) {
|
|
4303
|
-
return this.api.get(this.endpoint, params);
|
|
4304
|
-
}
|
|
4305
|
-
get(id) {
|
|
4306
|
-
return this.api.get(`${this.endpoint}/${id}`);
|
|
4307
|
-
}
|
|
4308
|
-
save(obj) {
|
|
4309
|
-
return this.api.post(this.endpoint, obj);
|
|
4310
|
-
}
|
|
4311
|
-
update(obj) {
|
|
4312
|
-
return this.api.put(this.endpoint, obj.id, obj);
|
|
4313
|
-
}
|
|
4314
|
-
delete(id) {
|
|
4315
|
-
return this.api.delete(this.endpoint, id);
|
|
3840
|
+
class UbicacionService extends CrudService {
|
|
3841
|
+
constructor(http) {
|
|
3842
|
+
super(http, 'ubicacion');
|
|
4316
3843
|
}
|
|
4317
3844
|
}
|
|
4318
|
-
/** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(ɵɵinject(
|
|
3845
|
+
/** @nocollapse */ UbicacionService.ɵfac = function UbicacionService_Factory(t) { return new (t || UbicacionService)(ɵɵinject(HttpClient)); };
|
|
4319
3846
|
/** @nocollapse */ UbicacionService.ɵprov = ɵɵdefineInjectable({ token: UbicacionService, factory: UbicacionService.ɵfac, providedIn: 'root' });
|
|
4320
|
-
|
|
3847
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(UbicacionService, [{
|
|
4321
3848
|
type: Injectable,
|
|
4322
3849
|
args: [{
|
|
4323
3850
|
providedIn: 'root'
|
|
4324
3851
|
}]
|
|
4325
|
-
}], function () { return [{ type:
|
|
3852
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4326
3853
|
|
|
4327
3854
|
class TipoCatalogo {
|
|
4328
3855
|
}
|
|
4329
3856
|
TipoCatalogo.ARTICULO = 2;
|
|
4330
3857
|
TipoCatalogo.USO_CFDI = 11;
|
|
4331
3858
|
|
|
4332
|
-
class AcreedorCuentaContableService {
|
|
4333
|
-
constructor(
|
|
4334
|
-
|
|
4335
|
-
this.
|
|
3859
|
+
class AcreedorCuentaContableService extends CrudService {
|
|
3860
|
+
constructor(httpClient) {
|
|
3861
|
+
super(httpClient, 'acreedorCuentaContable');
|
|
3862
|
+
this.httpClient = httpClient;
|
|
4336
3863
|
}
|
|
4337
3864
|
cuentasContables() {
|
|
4338
|
-
|
|
3865
|
+
let uRL = "/cuentaContable/obtieneCuentasContablesRecursivo/";
|
|
3866
|
+
return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
|
|
4339
3867
|
}
|
|
4340
3868
|
}
|
|
4341
|
-
/** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(ɵɵinject(
|
|
3869
|
+
/** @nocollapse */ AcreedorCuentaContableService.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(ɵɵinject(HttpClient)); };
|
|
4342
3870
|
/** @nocollapse */ AcreedorCuentaContableService.ɵprov = ɵɵdefineInjectable({ token: AcreedorCuentaContableService, factory: AcreedorCuentaContableService.ɵfac, providedIn: 'root' });
|
|
4343
|
-
|
|
3871
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && ɵsetClassMetadata(AcreedorCuentaContableService, [{
|
|
4344
3872
|
type: Injectable,
|
|
4345
3873
|
args: [{
|
|
4346
3874
|
providedIn: 'root'
|
|
4347
3875
|
}]
|
|
4348
|
-
}], function () { return [{ type:
|
|
3876
|
+
}], function () { return [{ type: HttpClient }]; }, null); })();
|
|
4349
3877
|
|
|
4350
3878
|
class CuentaContableModel {
|
|
4351
3879
|
constructor() {
|
|
@@ -4366,5 +3894,5 @@ class NormaInformacionFinancieraModel {
|
|
|
4366
3894
|
* Generated bundle index. Do not edit.
|
|
4367
3895
|
*/
|
|
4368
3896
|
|
|
4369
|
-
export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService,
|
|
3897
|
+
export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CrudService, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SelectAcreedorComponent, SelectClienteComponent, SelectProveedorComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
|
|
4370
3898
|
//# sourceMappingURL=visorus-erp-core.js.map
|