Merge branch 'features/feature-attestation-fix-and-fiche-defunt' into staging
This commit is contained in:
commit
dc0bd6585c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1465,8 +1465,8 @@ class PageController extends Controller {
|
|||||||
$datecourant = $facturecourant->date_paiement;
|
$datecourant = $facturecourant->date_paiement;
|
||||||
$nouveaudate = $data;
|
$nouveaudate = $data;
|
||||||
$result = $this->myDb->gestion_update($table, $column, $data, $id, $this->idNextcloud);
|
$result = $this->myDb->gestion_update($table, $column, $data, $id, $this->idNextcloud);
|
||||||
$this->generer_document_comptable($datecourant);
|
// $this->generer_document_comptable($datecourant);
|
||||||
$this->generer_document_comptable($nouveaudate);
|
// $this->generer_document_comptable($nouveaudate);
|
||||||
} else {
|
} else {
|
||||||
if(strcmp($column, 'date')==0) {
|
if(strcmp($column, 'date')==0) {
|
||||||
if(strcmp($table, 'facture')){
|
if(strcmp($table, 'facture')){
|
||||||
@ -2029,7 +2029,7 @@ class PageController extends Controller {
|
|||||||
// logo : 80 de largeur et 55 de hauteur
|
// logo : 80 de largeur et 55 de hauteur
|
||||||
$logo = $this->getLogo();
|
$logo = $this->getLogo();
|
||||||
if($logo != 'nothing'){
|
if($logo != 'nothing'){
|
||||||
$pdf->Image($this->defaultImagePath."logo.png", 15, 15, 50,35);
|
$pdf->Image($this->defaultImagePath."logo.png", 10, 10, 75, 25);
|
||||||
}
|
}
|
||||||
$pdf->setXY(15, 15); $pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("N : ".$numFacture)), '', 'R');
|
$pdf->setXY(15, 15); $pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("N : ".$numFacture)), '', 'R');
|
||||||
|
|
||||||
@ -2039,10 +2039,34 @@ class PageController extends Controller {
|
|||||||
$pdf->SetFont('ComicSans', '', 10);
|
$pdf->SetFont('ComicSans', '', 10);
|
||||||
$pdf->MultiCell(0, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->adresse.", le ".$today), '', 'R');
|
$pdf->MultiCell(0, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->adresse.", le ".$today), '', 'R');
|
||||||
|
|
||||||
$pdf->SetY($pdf->GetY()+15);
|
$rapportInfoHeaderY = $pdf->GetY() + 15;
|
||||||
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode($nomDefunt."\n".$age."ans\n".(strcmp($defunt->sexe, 'm')==0 ? 'Masculin' : 'Féminin'))), '', 'L');
|
$rapportDefuntInfoY = $rapportInfoHeaderY;
|
||||||
$pdf->SetY($pdf->GetY()-15);
|
$rapportDevisInfoY = $rapportInfoHeaderY;
|
||||||
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("Éffectuées le ".$date_devis."\nà ".$defunt->adresse_lieu."\nde ".$defunt->heure_debut." à ".$defunt->heure_fin)), '', 'R');
|
$pdf->SetY(y: $rapportDefuntInfoY);
|
||||||
|
$pdf->SetFont('ComicSans', '', 10);
|
||||||
|
$pdf->Cell(0,5,FileExportHelpers::FormatTextForExport($nomDefunt));
|
||||||
|
$rapportDefuntInfoY += 5;
|
||||||
|
$pdf->SetY($rapportDefuntInfoY);
|
||||||
|
$pdf->Cell(0,5,FileExportHelpers::FormatTextForExport($age. " ans"));
|
||||||
|
$rapportDefuntInfoY += 5;
|
||||||
|
$pdf->SetY($rapportDefuntInfoY);
|
||||||
|
$sexeText = strcmp($defunt->sexe, 'm')==0 ? 'Masculin' : 'Féminin';
|
||||||
|
$pdf->Cell(0,5,FileExportHelpers::FormatTextForExport($sexeText));
|
||||||
|
|
||||||
|
//devis info
|
||||||
|
$rapportDevisInfoX = 115;
|
||||||
|
$maxWidth = $pdf->GetPageWidth();
|
||||||
|
$availableWidhtForDevisInfo = $maxWidth - 10 - $rapportDevisInfoX;
|
||||||
|
$pdf->SetXY($rapportDevisInfoX,$rapportDevisInfoY);
|
||||||
|
$pdf->MultiCell(0,5,FileExportHelpers::FormatTextForExport("Éffectuées le ".$date_devis));
|
||||||
|
$rapportDevisInfoY += 5;
|
||||||
|
$pdf->SetXY($rapportDevisInfoX,$rapportDevisInfoY);
|
||||||
|
$addressText = "à ".$defunt->adresse_lieu;
|
||||||
|
$pdf->MultiCell(0,5,FileExportHelpers::FormatTextForExport($addressText),0,'L');
|
||||||
|
$addressLineCount = FileExportHelpers::GetLineCountForATextInAMaxWidth($pdf,$addressText,$availableWidhtForDevisInfo);
|
||||||
|
$rapportDevisInfoY += 5 * $addressLineCount;
|
||||||
|
$pdf->SetXY($rapportDevisInfoX,$rapportDevisInfoY);
|
||||||
|
$pdf->Cell(0,5,FileExportHelpers::FormatTextForExport("de ".$defunt->heure_debut." à ".$defunt->heure_fin));
|
||||||
|
|
||||||
$pdf->SetY($pdf->GetY()+10);
|
$pdf->SetY($pdf->GetY()+10);
|
||||||
$pdf->Line(15, $pdf->GetY(), $pdf->GetPageWidth()-15, $pdf->GetY());
|
$pdf->Line(15, $pdf->GetY(), $pdf->GetPageWidth()-15, $pdf->GetY());
|
||||||
@ -2053,14 +2077,14 @@ class PageController extends Controller {
|
|||||||
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("Rigidité : ".$defunt->rigidite)), '', 'L');
|
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("Rigidité : ".$defunt->rigidite)), '', 'L');
|
||||||
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("Observations du corps : ".$defunt->observations_corps)), '', 'L');
|
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("Observations du corps : ".$defunt->observations_corps)), '', 'L');
|
||||||
|
|
||||||
$pdf->SetY($pdf->GetY()+10);
|
$pdf->SetY($pdf->GetY()+5);
|
||||||
|
|
||||||
$pdf->SetFont('ComicSans', 'B', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("ACCÈS")), '', 'L');
|
$pdf->SetFont('ComicSans', 'B', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("ACCÈS")), '', 'L');
|
||||||
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("Arteriel : ".$defunt->acces)), '', 'L');
|
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("Arteriel : ".$defunt->acces)), '', 'L');
|
||||||
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("Recherche : ".$defunt->acces_recherche)), '', 'L');
|
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("Recherche : ".$defunt->acces_recherche)), '', 'L');
|
||||||
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("État : ".$defunt->acces_etat)), '', 'L');
|
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("État : ".$defunt->acces_etat)), '', 'L');
|
||||||
|
|
||||||
$pdf->SetY($pdf->GetY()+10);
|
$pdf->SetY($pdf->GetY()+5);
|
||||||
|
|
||||||
$pdf->SetFont('ComicSans', 'B', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("INJECTION")), '', 'L');
|
$pdf->SetFont('ComicSans', 'B', 10); $pdf->MultiCell(0, 5, utf8_decode(html_entity_decode("INJECTION")), '', 'L');
|
||||||
$pdf->SetY($pdf->GetY()+3);
|
$pdf->SetY($pdf->GetY()+3);
|
||||||
@ -2098,9 +2122,8 @@ class PageController extends Controller {
|
|||||||
$pdf->SetXY(($col_width*2)+15, $pdf->GetY()-8); $pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode($defunt->drainage_etat)), 'LR', 'C');
|
$pdf->SetXY(($col_width*2)+15, $pdf->GetY()-8); $pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode($defunt->drainage_etat)), 'LR', 'C');
|
||||||
$pdf->Line(15, $pdf->GetY(), $pdf->GetPageWidth()-15, $pdf->GetY());
|
$pdf->Line(15, $pdf->GetY(), $pdf->GetPageWidth()-15, $pdf->GetY());
|
||||||
|
|
||||||
$pdf->SetY(-30); $pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_one), '', 'C');
|
$pdf->SetY(-20); $pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_one), '', 'C');
|
||||||
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_two), '', 'C');
|
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->adresse), '', 'C');
|
||||||
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->telephone), '', 'C');
|
|
||||||
|
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
|
|
||||||
@ -2165,9 +2188,8 @@ class PageController extends Controller {
|
|||||||
$col_width = round(($pdf->GetPageWidth()-30)/2);
|
$col_width = round(($pdf->GetPageWidth()-30)/2);
|
||||||
foreach ($observations as $key => $obs) {
|
foreach ($observations as $key => $obs) {
|
||||||
if($pdf->getY()>=($pdf->GetPageHeight()-45)) {
|
if($pdf->getY()>=($pdf->GetPageHeight()-45)) {
|
||||||
$pdf->SetY(-30); $pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_one), '', 'C');
|
$pdf->SetY(-20); $pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_one), '', 'C');
|
||||||
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_two), '', 'C');
|
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->adresse), '', 'C');
|
||||||
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->telephone), '', 'C');
|
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
}
|
}
|
||||||
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode($obs->designation)), 'LTRB', 'L');
|
$pdf->SetFont('ComicSans', '', 10); $pdf->MultiCell($col_width, 8, utf8_decode(html_entity_decode($obs->designation)), 'LTRB', 'L');
|
||||||
@ -2177,9 +2199,8 @@ class PageController extends Controller {
|
|||||||
$pdf->setY($pdf->GetY()+10);
|
$pdf->setY($pdf->GetY()+10);
|
||||||
|
|
||||||
if($pdf->getY()>=($pdf->GetPageHeight()-45)) {
|
if($pdf->getY()>=($pdf->GetPageHeight()-45)) {
|
||||||
$pdf->SetY(-30); $pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_one), '', 'C');
|
$pdf->SetY(-20); $pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_one), '', 'C');
|
||||||
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_two), '', 'C');
|
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->adresse), '', 'C');
|
||||||
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->telephone), '', 'C');
|
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2197,9 +2218,8 @@ class PageController extends Controller {
|
|||||||
$pdf->setY($pdf->GetY()-5);
|
$pdf->setY($pdf->GetY()-5);
|
||||||
$pdf->SetFont('ComicSans','',11); $pdf->Cell( $pdf->GetPageWidth()-80, 0, "Pour :", 0, 0, 'R');
|
$pdf->SetFont('ComicSans','',11); $pdf->Cell( $pdf->GetPageWidth()-80, 0, "Pour :", 0, 0, 'R');
|
||||||
|
|
||||||
$pdf->SetY(-30); $pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_one), '', 'C');
|
$pdf->SetY(-20); $pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_one), '', 'C');
|
||||||
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->legal_two), '', 'C');
|
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->adresse), '', 'C');
|
||||||
$pdf->SetFont('ComicSans', '', 8); $pdf->MultiCell($pdf->GetPageWidth()-30, 5, FileExportHelpers::FormatTextForExport($defaultConfig[0]->telephone), '', 'C');
|
|
||||||
|
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
$pdf->Image($this->src_path.(($defunt->sexe=='m'?'facehomme.jpg':'facefemme.jpg')), 0, 0, $pdf->GetPageWidth(), $pdf->GetPageHeight());
|
$pdf->Image($this->src_path.(($defunt->sexe=='m'?'facehomme.jpg':'facefemme.jpg')), 0, 0, $pdf->GetPageWidth(), $pdf->GetPageHeight());
|
||||||
@ -2292,7 +2312,7 @@ class PageController extends Controller {
|
|||||||
// logo : 80 de largeur et 55 de hauteur
|
// logo : 80 de largeur et 55 de hauteur
|
||||||
$logo = $this->getLogo();
|
$logo = $this->getLogo();
|
||||||
if($logo != 'nothing'){
|
if($logo != 'nothing'){
|
||||||
$pdf->Image($this->defaultImagePath."logo.png", 10, 10, 50,35);
|
$pdf->Image($this->defaultImagePath."logo.png", 10, 10, 75, 25);
|
||||||
}
|
}
|
||||||
$pdf->SetY(45); $pdf->SetFont('ComicSans', 'B', 15); $pdf->Cell(0, 10, utf8_decode(html_entity_decode("ATTESTATION BIJOU(X)")), 0, 0, 'C');
|
$pdf->SetY(45); $pdf->SetFont('ComicSans', 'B', 15); $pdf->Cell(0, 10, utf8_decode(html_entity_decode("ATTESTATION BIJOU(X)")), 0, 0, 'C');
|
||||||
|
|
||||||
|
|||||||
@ -613,6 +613,7 @@ class Bdd {
|
|||||||
$sql = "SELECT ".$this->tableprefix."defunt.id, ".$this->tableprefix."defunt.nom, ".$this->tableprefix."defunt.date_naissance, ".$this->tableprefix."defunt.ref_pacemaker, ".$this->tableprefix."defunt.sexe, "
|
$sql = "SELECT ".$this->tableprefix."defunt.id, ".$this->tableprefix."defunt.nom, ".$this->tableprefix."defunt.date_naissance, ".$this->tableprefix."defunt.ref_pacemaker, ".$this->tableprefix."defunt.sexe, "
|
||||||
.$this->tableprefix."client.nom as nom_client, ".$this->tableprefix."client.id as id_client, "
|
.$this->tableprefix."client.nom as nom_client, ".$this->tableprefix."client.id as id_client, "
|
||||||
.$this->tableprefix."devis.num as numero_devis, ".$this->tableprefix."devis.id as id_devis, ".$this->tableprefix."devis.user_id as user_id, "
|
.$this->tableprefix."devis.num as numero_devis, ".$this->tableprefix."devis.id as id_devis, ".$this->tableprefix."devis.user_id as user_id, "
|
||||||
|
.$this->tableprefix."devis.date as devis_date, "
|
||||||
.$this->tableprefix."lieu.id as lid, ".$this->tableprefix."lieu.nom as lieu
|
.$this->tableprefix."lieu.id as lid, ".$this->tableprefix."lieu.nom as lieu
|
||||||
FROM ".$this->tableprefix."defunt
|
FROM ".$this->tableprefix."defunt
|
||||||
LEFT JOIN ".$this->tableprefix."devis ON ".$this->tableprefix."devis.id_defunt = ".$this->tableprefix."defunt.id
|
LEFT JOIN ".$this->tableprefix."devis ON ".$this->tableprefix."devis.id_defunt = ".$this->tableprefix."defunt.id
|
||||||
|
|||||||
@ -7,7 +7,8 @@ class FileExportHelpers
|
|||||||
|
|
||||||
|
|
||||||
public static function FormatTextForExport(string $text){
|
public static function FormatTextForExport(string $text){
|
||||||
$textFormatted = utf8_decode(html_entity_decode($text));
|
$textFormatted = str_replace('‘', "'", $text);
|
||||||
|
$textFormatted = utf8_decode(html_entity_decode($textFormatted));
|
||||||
return $textFormatted;
|
return $textFormatted;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,4 +68,21 @@ class FileExportHelpers
|
|||||||
return $defuntFolder.'PACEMAKER/';
|
return $defuntFolder.'PACEMAKER/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function GetLineCountForATextInAMaxWidth($pdf,$text,$maxWidth){
|
||||||
|
$words = explode(' ', $text);
|
||||||
|
$lineWidth = 0;
|
||||||
|
$lineCount = 1;
|
||||||
|
|
||||||
|
foreach ($words as $word) {
|
||||||
|
$wordWidth = $pdf->GetStringWidth($word . ' ');
|
||||||
|
if ($lineWidth + $wordWidth > $maxWidth) {
|
||||||
|
$lineCount++;
|
||||||
|
$lineWidth = $wordWidth;
|
||||||
|
} else {
|
||||||
|
$lineWidth += $wordWidth;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $lineCount;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,15 +12,16 @@ export class Defunt {
|
|||||||
constructor(myresp) {
|
constructor(myresp) {
|
||||||
this.id = myresp.id;
|
this.id = myresp.id;
|
||||||
this.nom = ((myresp.nom.length === 0) ? '-' : myresp.nom);
|
this.nom = ((myresp.nom.length === 0) ? '-' : myresp.nom);
|
||||||
this.date_naissance = myresp.date_naissance;
|
this.ref_pacemaker = ((myresp.ref_pacemaker.length == 0) ? '-' : myresp.ref_pacemaker);
|
||||||
this.age = 0;
|
this.devisDate = "-";
|
||||||
this.sexe = ((myresp.sexe.length === 0) ? null : myresp.sexe);
|
if(myresp.id_devis != null && myresp.devis_date != null){
|
||||||
this.ref_pacemaker = ((myresp.ref_pacemaker.lenth == 0) ? '-' : myresp.ref_pacemaker);
|
const date = new Date(myresp.devis_date);
|
||||||
|
this.devisDate = date.toLocaleDateString('fr-FR');
|
||||||
|
}
|
||||||
this.pompe = ((myresp.nom_client == null) ? '-' : myresp.nom_client);
|
this.pompe = ((myresp.nom_client == null) ? '-' : myresp.nom_client);
|
||||||
this.lieu = ((myresp.lieu == null) ? '-' : myresp.lieu);
|
this.lieu = ((myresp.lieu == null) ? '-' : myresp.lieu);
|
||||||
this.numero_devis = ((myresp.user_id == null) ? '-' : myresp.user_id);
|
this.numero_devis = ((myresp.user_id == null) ? '-' : myresp.user_id);
|
||||||
this.baseUrl = generateUrl(`/apps/gestion/defunt/${this.id}/show`);
|
this.baseUrl = generateUrl(`/apps/gestion/defunt/${this.id}/show`);
|
||||||
this.age = Defunt.caclulateAge(myresp.date_naissance);
|
|
||||||
this.productCoverDescription = Defunt.getDefuntProductCoverDescriptionFromApiResponse(myresp);
|
this.productCoverDescription = Defunt.getDefuntProductCoverDescriptionFromApiResponse(myresp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,17 +40,11 @@ export class Defunt {
|
|||||||
let myrow = [
|
let myrow = [
|
||||||
'<div>' + this.id + '</div>', // identifiant
|
'<div>' + this.id + '</div>', // identifiant
|
||||||
'<div class="editable" data-table="defunt" data-column="nom" data-id="' + this.id + '">' + this.nom + '</div>', // nom
|
'<div class="editable" data-table="defunt" data-column="nom" data-id="' + this.id + '">' + this.nom + '</div>', // nom
|
||||||
'<div id="ageDefunt-'+this.id+'">'+this.age+'</div>', // age
|
|
||||||
'<div>'+
|
|
||||||
'<select class="gestion-select" data-table="defunt" data-column="sexe" data-id="' + this.id + '">'+
|
|
||||||
'<option value="m" '+((this.sexe=='m')?'selected':'')+'>Masculin</option>'+
|
|
||||||
'<option value="f" '+((this.sexe=='f')?'selected':'')+'>Féminin</option>'+
|
|
||||||
'</select>'+
|
|
||||||
'</div>', // sexe
|
|
||||||
'<div class="editable" data-table="defunt" data-column="ref_pacemaker" data-id="' + this.id + '">' + this.ref_pacemaker + '</div>', // reference pacemaker
|
'<div class="editable" data-table="defunt" data-column="ref_pacemaker" data-id="' + this.id + '">' + this.ref_pacemaker + '</div>', // reference pacemaker
|
||||||
'<div>'+this.numero_devis+'</div>', // numeroDevis
|
'<div>'+this.numero_devis+'</div>', // numeroDevis
|
||||||
'<div>'+this.pompe+'</div>', // pompe
|
'<div>'+this.pompe+'</div>', // pompe
|
||||||
'<div>'+this.lieu+'</div>', // lieu
|
'<div>'+this.lieu+'</div>', // lieu
|
||||||
|
'<div>'+this.devisDate+'</div>',
|
||||||
'<div class="selectCoverProductsList" data-id="' + this.id + '" data-current="' + this.productId + '">' +this.productCoverDescription+'</div>', // lieu
|
'<div class="selectCoverProductsList" data-id="' + this.id + '" data-current="' + this.productId + '">' +this.productCoverDescription+'</div>', // lieu
|
||||||
'<div style="display:inline-block;margin-right:0px;width:80%;"><a href="' + this.baseUrl + '"><button>' + t('gestion', 'Open') + '</button></a></div><div data-modifier="defunt" data-id=' + this.id + ' data-table="defunt" style="display:inline-block;margin-right:0px;" class="deleteItem icon-delete"></div>'
|
'<div style="display:inline-block;margin-right:0px;width:80%;"><a href="' + this.baseUrl + '"><button>' + t('gestion', 'Open') + '</button></a></div><div data-modifier="defunt" data-id=' + this.id + ' data-table="defunt" style="display:inline-block;margin-right:0px;" class="deleteItem icon-delete"></div>'
|
||||||
];
|
];
|
||||||
|
|||||||
@ -16,12 +16,11 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th><?php p($l->t('ID'));?></th>
|
<th><?php p($l->t('ID'));?></th>
|
||||||
<th>Nom</th>
|
<th>Nom</th>
|
||||||
<th>Âge</th>
|
|
||||||
<th>Sexe</th>
|
|
||||||
<th>Référence pacemaker</th>
|
<th>Référence pacemaker</th>
|
||||||
<th>Numéro de devis</th>
|
<th>Numéro de devis</th>
|
||||||
<th>Pompe funèbre</th>
|
<th>Pompe funèbre</th>
|
||||||
<th>Lieu de soin</th>
|
<th>Lieu de soin</th>
|
||||||
|
<th>Date de soin</th>
|
||||||
<th>Housse</th>
|
<th>Housse</th>
|
||||||
<th><?php p($l->t('Actions'));?></th>
|
<th><?php p($l->t('Actions'));?></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -21,11 +21,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
<h2>Aperçu du défunt</h2>
|
||||||
<div class="d-flex justify-content-between">
|
<div class="d-flex justify-content-between">
|
||||||
<h2>Aperçu du défunt</h2>
|
|
||||||
<div class="div">
|
<div class="div">
|
||||||
<button id="exportCareCertificate" class="btn btn-secondary" type="button">Générer l'attestation de soins</button>
|
<button id="exportCareCertificate" class="btn btn-secondary" type="button">Générer l'attestation de soins</button>
|
||||||
<button id="pacemakerBtn" class="btn btn-secondary" type="button">Générer l'attestation pacemaker</button>
|
<button id="pacemakerBtn" class="btn btn-secondary" type="button">Générer l'attestation pacemaker</button>
|
||||||
|
<button id="rapportSoinBtn" class="btn btn-secondary" type="button">Générer le rapport de soins</button>
|
||||||
|
<button id="showRapportBijouxExportModal" class="btn btn-secondary" type="button" data-toggle="modal" data-target="#saveRapportBijouxModal">Générer le rapport des bijoux</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
@ -486,10 +488,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="d-flex">
|
|
||||||
<button id="rapportSoinBtn" class="btn btn-secondary" type="button">Générer le rapport de soins</button>
|
|
||||||
<button id="showRapportBijouxExportModal" class="btn btn-secondary" type="button" data-toggle="modal" data-target="#saveRapportBijouxModal">Générer le rapport des bijoux</button>
|
|
||||||
</div>
|
|
||||||
<div class="modal" id="saveRapportBijouxModal" tabindex="-1">
|
<div class="modal" id="saveRapportBijouxModal" tabindex="-1">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user