diff --git a/core/tm/controller/localidad.ts b/core/tm/controller/localidad.ts index 6b62cd3c8b..d82a257fe7 100644 --- a/core/tm/controller/localidad.ts +++ b/core/tm/controller/localidad.ts @@ -1,5 +1,6 @@ -import { MatchingAndes } from '@andes/match/lib/matchingAndes.class'; +// import { MatchingAndes } from '@andes/match/lib/matchingAndes.class'; +const { MatchingAndes } = require('@andes/match'); import * as localidad from '../schemas/localidad'; import * as provincia from '../schemas/provincia_model'; import { ZonaSanitaria } from '../schemas/zonaSanitarias'; diff --git a/core/tm/schemas/ocupacion.ts b/core/tm/schemas/ocupacion.ts index 0091dd8642..edff5aceb9 100644 --- a/core/tm/schemas/ocupacion.ts +++ b/core/tm/schemas/ocupacion.ts @@ -1,6 +1,6 @@ import * as mongoose from 'mongoose'; -const schema = new mongoose.Schema({ +export const schema = new mongoose.Schema({ // Export the schema itself codigo: { type: String }, @@ -8,5 +8,5 @@ const schema = new mongoose.Schema({ type: String } }); -// export let ocupacionSchema = schema; + export const model = mongoose.model('ocupaciones', schema, 'ocupaciones'); diff --git a/modules/descargas/informe-rup/informe-body.ts b/modules/descargas/informe-rup/informe-body.ts index 59d10b9090..354058d129 100644 --- a/modules/descargas/informe-rup/informe-body.ts +++ b/modules/descargas/informe-rup/informe-body.ts @@ -51,6 +51,144 @@ export class InformeRupBody extends HTMLComponent { {{{this}}} {{/each}} + + {{#if informeEstadistico}} +
| + + FECHA + + | ++ + CAMA + + | ++ + UNIDAD ORGANIZATIVA + + | +
|---|---|---|
| + + {{ fecha }} + + | +
+
+ {{#if extras.ingreso}}
+ INGRESO + {{/if}} + {{#if extras.egreso}} + EGRESO + {{/if}} + {{#unless idSalaComun}} + {{ nombre }} ({{ sectorName }}) + {{/unless}} + + |
+ + + {{ unidadOrganizativa }} + + | +