utn-cli 2.0.59 → 2.0.60
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.
|
@@ -27,8 +27,8 @@ export async function createComponent() {
|
|
|
27
27
|
if (dbDir) {
|
|
28
28
|
const sqlPath = path.join(currentDir, dbDir.name, 'docker-scripts/1-crear estructura.sql');
|
|
29
29
|
if (fs.existsSync(sqlPath)) {
|
|
30
|
-
console.log(`Buscando tabla para el servicio "${
|
|
31
|
-
tableInfo = findTableByComment(sqlPath,
|
|
30
|
+
console.log(`Buscando tabla para el servicio "${nombreServicio}" en ${sqlPath}...`);
|
|
31
|
+
tableInfo = findTableByComment(sqlPath, nombreServicio);
|
|
32
32
|
if (tableInfo) {
|
|
33
33
|
console.log(`Tabla encontrada: ${tableInfo.tableName} en la base de datos ${tableInfo.dbName}`);
|
|
34
34
|
} else {
|
package/package.json
CHANGED
|
@@ -113,7 +113,7 @@ export class GestionTablaXYZComponent {
|
|
|
113
113
|
mostrarDetalleDelRegistro(LicenciaId: any): void {
|
|
114
114
|
let data = {};
|
|
115
115
|
this.http
|
|
116
|
-
.get(`${this.datosGlobalesService.ObtenerURL()}
|
|
116
|
+
.get(`${this.datosGlobalesService.ObtenerURL()}XYZ/datosDeUnaLicencia/${LicenciaId}`)
|
|
117
117
|
.subscribe({
|
|
118
118
|
next: (datos: any) => {
|
|
119
119
|
let data = datos.body[0];
|
|
@@ -136,7 +136,7 @@ export class GestionTablaXYZComponent {
|
|
|
136
136
|
}
|
|
137
137
|
firmaFuncionario(LicenciaId: any): void {
|
|
138
138
|
this.http
|
|
139
|
-
.post(`${this.datosGlobalesService.ObtenerURL()}
|
|
139
|
+
.post(`${this.datosGlobalesService.ObtenerURL()}XYZ/firmaFuncionario`, { LicenciaId })
|
|
140
140
|
.subscribe({
|
|
141
141
|
next: (datos: any) => {
|
|
142
142
|
this.obtenerDatosParaPoblarLaTabla();
|
|
@@ -160,7 +160,7 @@ export class GestionTablaXYZComponent {
|
|
|
160
160
|
}
|
|
161
161
|
eliminar(LicenciaId: any): void {
|
|
162
162
|
this.http
|
|
163
|
-
.post(`${this.datosGlobalesService.ObtenerURL()}
|
|
163
|
+
.post(`${this.datosGlobalesService.ObtenerURL()}XYZ/borrar`, { LicenciaId })
|
|
164
164
|
.subscribe({
|
|
165
165
|
next: (datos: any) => {
|
|
166
166
|
this.obtenerDatosParaPoblarLaTabla();
|
|
@@ -196,7 +196,7 @@ export class GestionTablaXYZComponent {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
obtenerDatosParaPoblarLaTabla() {
|
|
199
|
-
this.http.get(`${this.datosGlobalesService.ObtenerURL()}
|
|
199
|
+
this.http.get(`${this.datosGlobalesService.ObtenerURL()}XYZ/listar`).subscribe({
|
|
200
200
|
next: (datos: any) => {
|
|
201
201
|
if (datos.error) {
|
|
202
202
|
console.error('Problemas al obtener los registros:', datos.error);
|
|
@@ -216,7 +216,7 @@ export class GestionTablaXYZComponent {
|
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
obtenerTiposLicencias() {
|
|
219
|
-
this.http.get(`${this.datosGlobalesService.ObtenerURL()}
|
|
219
|
+
this.http.get(`${this.datosGlobalesService.ObtenerURL()}XYZ/tipos`).subscribe({
|
|
220
220
|
next: (datos: any) => {
|
|
221
221
|
if (datos.error) {
|
|
222
222
|
console.error('Problemas al intentar obtener los registros:', datos.error);
|
|
@@ -231,7 +231,7 @@ export class GestionTablaXYZComponent {
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
Agregar(incapacidad: any) {
|
|
234
|
-
this.http.post(`${this.datosGlobalesService.ObtenerURL()}
|
|
234
|
+
this.http.post(`${this.datosGlobalesService.ObtenerURL()}XYZ/agregar`, incapacidad).subscribe({
|
|
235
235
|
next: (datos: any) => {
|
|
236
236
|
if (datos.error) {
|
|
237
237
|
console.log('Problemas al intentar obtener los registros:', datos.error);
|
|
@@ -245,7 +245,7 @@ export class GestionTablaXYZComponent {
|
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
Actualizar(incapacidad: any) {
|
|
248
|
-
this.http.post(`${this.datosGlobalesService.ObtenerURL()}
|
|
248
|
+
this.http.post(`${this.datosGlobalesService.ObtenerURL()}XYZ/actualizar`, incapacidad).subscribe({
|
|
249
249
|
next: (datos: any) => {
|
|
250
250
|
if (datos.error) {
|
|
251
251
|
console.log('Problemas al intentar obtener los registros:', datos.error);
|
|
@@ -260,7 +260,7 @@ export class GestionTablaXYZComponent {
|
|
|
260
260
|
}
|
|
261
261
|
DescargarReporte() {
|
|
262
262
|
this.cargando = true;
|
|
263
|
-
this.http.get(`${this.datosGlobalesService.ObtenerURL()}
|
|
263
|
+
this.http.get(`${this.datosGlobalesService.ObtenerURL()}XYZ/reporte`, {
|
|
264
264
|
responseType: 'text'
|
|
265
265
|
}).subscribe({
|
|
266
266
|
next: (datos: any) => {
|