Skip to content

Commit

Permalink
Merge pull request #918 from udistrital/feature/issue-860
Browse files Browse the repository at this point in the history
feat: integración de funcionalidad de inscripción y mejoras en el proceso de inscripción. #860
  • Loading branch information
fabianbarreto02 committed Mar 7, 2022
2 parents 2cf4cd1 + 1a01cab commit 3474ec3
Show file tree
Hide file tree
Showing 36 changed files with 1,190 additions and 1,865 deletions.
5 changes: 5 additions & 0 deletions src/app/@core/data/models/informacion/info_caracteristica.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { TipoDiscapacidad } from './tipo_discapacidad';
import { Lugar } from './lugar';
import { GrupoSanguineo } from './grupo_sanguineo';
import { Rh } from './rh_tercero';
import { Tercero } from '../terceros/tercero';

export class InfoCaracteristica {
GrupoSanguineo: GrupoSanguineo;
Expand All @@ -16,4 +17,8 @@ export class InfoCaracteristica {
TipoRelacionUbicacionEnte: number;
Ente: number;
Tercero: number;
GrupoSisben: string;
EPS: Tercero;
FechaVinculacionEPS: Date;
HermanosEnLaUniversidad: number;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { TipoDiscapacidad } from './tipo_discapacidad';
import { GrupoSanguineo } from './grupo_sanguineo';
import { Rh } from './rh_tercero';
import { Lugar } from './lugar';
import { Tercero } from '../terceros/tercero';

export class InfoCaracteristicaGet {
GrupoSanguineo: GrupoSanguineo;
Expand All @@ -25,4 +26,8 @@ export class InfoCaracteristicaGet {
Tercero: number;
IdDocumentoDiscapacidad: number;
IdDocumentoPoblacion: number;
GrupoSisben: string;
EPS: Tercero;
FechaVinculacionEPS: string;
hermanosUnivesidad: string;
}
16 changes: 16 additions & 0 deletions src/app/@core/data/models/inscripcion/transferencia_reintegro.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { ProyectoAcademicoInstitucion } from "../proyecto_academico/proyecto_academico_institucion";

export class TransferenciaInternaReintegro {
UniversidadOrigen: string;
ProgramaOrigen: ProyectoAcademicoInstitucion;
ProgramaOrigenInput: string;
CodigoEstudiante: number;
CodigoEstudianteExterno: string;
CantidadCreditos: number;
UltimoSemestre: number;
Cancelo: boolean;
ProgramaDestino: ProyectoAcademicoInstitucion;
MotivoCambio: string
SoporteDocumento: number;
Acuerdo: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ export class LinkDownloadNuxeoComponent implements ViewCell, AfterViewInit {
) { }

ngAfterViewInit(): void {
this.documentoService.get('documento/' + this.value)
.subscribe((data) => {
this.documentoData = data;
}, (error) => {
this.errorDocument = true;
this.label = 'No encontrado'
},
)
if (this.value) {
this.documentoService.get('documento/' + this.value)
.subscribe((data) => {
this.documentoData = data;
}, (error) => {
this.errorDocument = true;
this.label = 'No encontrado'
},
)
}
}


Expand All @@ -47,10 +49,10 @@ export class LinkDownloadNuxeoComponent implements ViewCell, AfterViewInit {
if (this.documentoData) {
this.nuxeoService.getByUUID(this.documentoData.Enlace)
.subscribe((docFile: any) => {
if(docFile.status){
if (docFile.status) {
this.label = 'No encontrado'
this.errorDocument = true;
}else {
} else {
this.documentoFile = docFile;
this.open();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { InstitucionEnfasis } from '../../../@core/data/models/proyecto_academic
import { LinkDownloadNuxeoComponent } from '../../../@theme/components/link-download-nuxeo/link-download-nuxeo.component';
import { CustomizeButtonComponent } from '../../../@theme/components';
import { NewNuxeoService } from '../../../@core/utils/new_nuxeo.service';
import { ImplicitAutenticationService } from '../../../@core/utils/implicit_autentication.service';

@Component({
selector: 'consultar-solicitudes',
Expand Down Expand Up @@ -48,6 +49,7 @@ export class ConsultarSolicitudesDerechosPecuniarios {
private userService: UserService,
private popUpManager: PopUpManager,
private nuxeo: NewNuxeoService,
private autenticationService: ImplicitAutenticationService,
private sgaMidService: SgaMidService,
private translate: TranslateService,) {
this.dataSource = new LocalDataSource();
Expand All @@ -56,11 +58,6 @@ export class ConsultarSolicitudesDerechosPecuniarios {
this.updateLanguage();
});

this.userService.tercero$.subscribe((user) => {
this.userResponse = user;
this.userResponse.Rol = 'Coordinador'
})

this.loadInfoPersona();
this.createTable();
}
Expand All @@ -70,7 +67,16 @@ export class ConsultarSolicitudesDerechosPecuniarios {
}

public async loadInfoPersona(): Promise<void> {
this.userService.tercero$.subscribe((user) => {
this.userResponse = user;
// this.userResponse.Rol = 'Coordinador'
})

this.autenticationService.getRole().then((rol: Array<String>) => {
if (rol.includes('COORDINADOR') || rol.includes('COORDINADOR_PREGADO') || rol.includes('COORDINADOR_POSGRADO')) {
this.userResponse.Rol = 'Coordinador';
}
})
}

updateLanguage() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export const FORMULARIO_SOLICITUD = {
tipo_formulario: 'mini',
alertas: true,
nombre: "FORMULARIO_SOLICITUD",
customPadding: '0',
btn: 'Enviar respuesta',
modelo: 'RespuestaSolicitudDerechos',
campos: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ export class GeneracionRecibosDerechosPecuniarios {
assignConfig.width = '1300px';
assignConfig.height = '800px';
const aux = { ...documentos[0], observacion: data.VerRespuesta.documento.Observacion, aprobado: false }
console.log(aux)
assignConfig.data = { documento: aux, observando: true }
const dialogo = this.dialog.open(DialogoDocumentosComponent, assignConfig);
}
Expand Down

This file was deleted.

Empty file.

This file was deleted.

Loading

0 comments on commit 3474ec3

Please sign in to comment.