Skip to content
Snippets Groups Projects
Commit 568c8cb5 authored by khaled-sadegh's avatar khaled-sadegh
Browse files

Feat : Géneration Convention

parent 9f2004a4
No related branches found
No related tags found
1 merge request!18Generer convention
...@@ -49,14 +49,11 @@ export class InternshipsController { ...@@ -49,14 +49,11 @@ export class InternshipsController {
return this._internshipsService.create(internshipDto); return this._internshipsService.create(internshipDto);
} }
@Post("/generate/:id") @Post("/:id/generate")
generatePDF(@Param() params: { id: string }): Promise<InternshipEntity> { generatePDF(@Param() params: { id: string }): Promise<InternshipEntity | void> {
return this._internshipsService.generatePDF(params.id); return this._internshipsService.generatePDF(params.id);
} }
@Put(':studentId') @Put(':studentId')
update( update(
@Param() params: { studentId: string }, @Param() params: { studentId: string },
......
...@@ -32,13 +32,13 @@ export class InternshipService { ...@@ -32,13 +32,13 @@ export class InternshipService {
var adresse = information.company.address; var adresse = information.company.address;
var adresseString = adresse.street + ', ' + adresse.postalCode + ', ' + + adresse.city + ', ' + adresse.country; var adresseString = adresse.street + ', ' + adresse.postalCode + ', ' + + adresse.city + ', ' + adresse.country;
var telOrganisme = '+33 6 63 12 84 65'; var telOrganisme = 'NULL';
var melOrganisme = information.company.hrContactEmail; var melOrganisme = information.company.hrContactEmail;
var reprsentePar = information.company.ceoName; var reprsentePar = information.company.ceoName;
var qualiteRepresentant = 'CEO'; var qualiteRepresentant = 'NULL';
var nomService = information.affectation.service; var nomService = information.affectation.service;
...@@ -98,7 +98,7 @@ export class InternshipService { ...@@ -98,7 +98,7 @@ export class InternshipService {
y: 564, y: 564,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -107,7 +107,7 @@ export class InternshipService { ...@@ -107,7 +107,7 @@ export class InternshipService {
y: 542, y: 542,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -116,7 +116,7 @@ export class InternshipService { ...@@ -116,7 +116,7 @@ export class InternshipService {
y: 522, y: 522,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -125,7 +125,7 @@ export class InternshipService { ...@@ -125,7 +125,7 @@ export class InternshipService {
y: 522, y: 522,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -134,7 +134,7 @@ export class InternshipService { ...@@ -134,7 +134,7 @@ export class InternshipService {
y: 501, y: 501,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -143,7 +143,7 @@ export class InternshipService { ...@@ -143,7 +143,7 @@ export class InternshipService {
y: 480, y: 480,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -152,7 +152,7 @@ export class InternshipService { ...@@ -152,7 +152,7 @@ export class InternshipService {
y: 459, y: 459,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -161,7 +161,7 @@ export class InternshipService { ...@@ -161,7 +161,7 @@ export class InternshipService {
y: 438, y: 438,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -171,7 +171,7 @@ export class InternshipService { ...@@ -171,7 +171,7 @@ export class InternshipService {
y: 396, y: 396,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -180,7 +180,7 @@ export class InternshipService { ...@@ -180,7 +180,7 @@ export class InternshipService {
y: 374, y: 374,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -189,7 +189,7 @@ export class InternshipService { ...@@ -189,7 +189,7 @@ export class InternshipService {
y: 353, y: 353,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -198,7 +198,7 @@ export class InternshipService { ...@@ -198,7 +198,7 @@ export class InternshipService {
y: 331, y: 331,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -207,7 +207,7 @@ export class InternshipService { ...@@ -207,7 +207,7 @@ export class InternshipService {
y: 331, y: 331,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -216,7 +216,7 @@ export class InternshipService { ...@@ -216,7 +216,7 @@ export class InternshipService {
y: 231, y: 231,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -225,7 +225,7 @@ export class InternshipService { ...@@ -225,7 +225,7 @@ export class InternshipService {
y: 214, y: 214,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -234,7 +234,7 @@ export class InternshipService { ...@@ -234,7 +234,7 @@ export class InternshipService {
y: 214, y: 214,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -243,7 +243,7 @@ export class InternshipService { ...@@ -243,7 +243,7 @@ export class InternshipService {
y: 197, y: 197,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -252,7 +252,7 @@ export class InternshipService { ...@@ -252,7 +252,7 @@ export class InternshipService {
y: 197, y: 197,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -261,7 +261,7 @@ export class InternshipService { ...@@ -261,7 +261,7 @@ export class InternshipService {
y: 131, y: 131,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -270,7 +270,7 @@ export class InternshipService { ...@@ -270,7 +270,7 @@ export class InternshipService {
y: 110, y: 110,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -279,7 +279,7 @@ export class InternshipService { ...@@ -279,7 +279,7 @@ export class InternshipService {
y: 89, y: 89,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
...@@ -288,7 +288,7 @@ export class InternshipService { ...@@ -288,7 +288,7 @@ export class InternshipService {
y: 69, y: 69,
size: 9, size: 9,
font: helveticaFont, font: helveticaFont,
color: rgb(0.95, 0.1, 0.1), color: rgb(0, 0, 0),
rotate: degrees(0), rotate: degrees(0),
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment