From 99ec7e20356109b0da8dfe36d67969bec7e4730e Mon Sep 17 00:00:00 2001 From: Etienne Pallier Date: Mon, 7 Sep 2020 13:32:21 +0200 Subject: [PATCH] Refactorisation des formats d'etiquette en 1 seule fonction etiquette_formatX() --- CHANGES.txt | 3 ++- README.md | 4 ++-- src/Controller/DocumentsController.php | 2 +- src/Controller/MaterielsController.php | 226 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 4 files changed, 227 insertions(+), 8 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index f6c63e6..76b890f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -83,8 +83,9 @@ Outre ces changements, voici d'autres changements importants : ======= CHANGES ======= ------- -03/09/2020 v3.7.9.93-94 (EP) +03-07/09/2020 v3.7.9.93-95 (EP) - (e) Nouveau format etiquette 19mm avec QrCode pour la nouvelle etiqueteuse Dymo MobileLabeler => format etiquette numéro 3 + - (i) refactorisation des formats d'etiquette en 1 seule fonction etiquette_formatX() ------- 03/09/2020 v3.7.9.92 (EP) diff --git a/README.md b/README.md index b3ddae8..d919d11 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,8 @@ Logiciel testé et validé sur les configurations suivantes : -------------------------------------------------------------------------------------------- -Date: 04/09/2020 -Version: 3.7.9.94 +Date: 07/09/2020 +Version: 3.7.9.95 HISTORIQUE DES CHANGEMENTS DE VERSION : voir le fichier CHANGES.txt (ou la page web /pages/changes) diff --git a/src/Controller/DocumentsController.php b/src/Controller/DocumentsController.php index 575c9d3..9b93d13 100755 --- a/src/Controller/DocumentsController.php +++ b/src/Controller/DocumentsController.php @@ -31,7 +31,7 @@ class DocumentsController extends AppController //@Override parent protected function setAuthorizations() { - // Action 'add' (ajout d'une nouvelle entité) + // Action 'add' (ajout d'une nouvelle entité) : statut quelconque mais doit appartenir au user $this->setAuthorizationsForAction('add', [0,1]); //$this->setAuthorizationsForAction('add', ['VALIDATED',1]); //$this->setAuthorizationsForAction('edit', ['VALIDATED',1]); diff --git a/src/Controller/MaterielsController.php b/src/Controller/MaterielsController.php index dff6522..7251dd9 100755 --- a/src/Controller/MaterielsController.php +++ b/src/Controller/MaterielsController.php @@ -3577,8 +3577,11 @@ class MaterielsController extends AppController { private function etiquette_format1($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { // Texte à imprimer (colonne de gauche) + $nb_text_lines = 2; + /* $text_line1 = trim("$numeroLab / " . "$dateAcquisition"); $text_line2 = "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); + */ // Image(s) à imprimer (colonne de droite) - code hexa // LOGO IRAP N&B @@ -3587,6 +3590,32 @@ class MaterielsController extends AppController { $img_logo_blue = 'iVBORw0KGgoAAAANSUhEUgAAAJYAAABOCAYAAADCbO+gAAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nfHn5T/T3IevtV8Sbsz55BjJ5Z32zsrC+9FgD2JFqbHbO+lVUAtG0GQOXhrE/vIADyBQC03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SkfhEoIUgLSYyqQ1JJhgH1N8iMB9IDgQinIi7Dai8FoBE4UVAzzEBnAq0gGrBd4EIfBoQgfuDj4Ge83Ggviv9WPAQ0EKZAPQMqkNjtwm8AVSXnkVzgOBAsHutz4DTu4mle/Q8XlEdwlcioTY47xpwTe4aoMk8BBSDDaAXyAbrgfwL5UuGg41A6X8AL4FK8ClIARpoEVUTK0Jqtf4VXA+ULvJqYtWmyCBidwGdgAj6KpgODgda/SK2oLIHg7VAbSfkAAK6V9pBBBNhRO5fAdWjthYDkScXqA96BqVvBhIRVc+oyZRmEZE0FnoWEVLPpbbVRkcwAChd5WCDI5HqHgQ+B+pvBlAdSp8ArgYaC42VSKln/gyU6ziiOr+vbRlyCVGJWzfq4xwX3f2P+j4YaFzaVfbFeVfHlvp6N9sTF8GCZK4ncSHhZWBLPE3k08NLNFGa9CvBs0AEknjvT6RpggUN9CagVekfVJWdAfwiggqS7bGL+3cV/64G6l9CEn3z9iGRp6sIkRBproSIQCKVRG14x0maSaK6veknExcZtUAfBRqPhKwkICCQiOOGXb2Pg75pLF/x2okI65cwCSLnVyLSQF+WvE1DCXIEtamJmgI+DMoMSHuLtMREBWS3Kend/VhXmxqOF5aW1AIR2T6JpzW56O9Y6BWSDl/dq6DdJbTQHgMJMy1CqT4v+Yl+ebKnL6G/vB4lW/r/YgSkLpOSHIH9PgJJYu33IU1WqBFIEivJg3YZgSSx2mVYk5UmiZXkQLuMQJJY7TKsyUqTxEpyoF1GIEmsdhnWZKVJYiU50C4jkCRWuwxrstL/BxJPAjyhtOFQAAAAAElFTkSuQmCC'; $img_logo = $img_logo_black; + // DYMO LabelManager PnP + $tape_size = '12'; + $label_length = '0'; + $root_cell_length = '0'; + $font_size = '24'; + $object_margin_left="200"; + $object_margin_right="200"; + $cell1_length = '2606.94'; + $length_mode = 'Fixed'; + $cell2_length = '863.9999'; + + return $this->etiquette_formatX( + $numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme, $nb_text_lines, + $img_logo, + $tape_size, + $label_length, + $root_cell_length, + $font_size, + $object_margin_left, + $object_margin_right, + $cell1_length, + $length_mode, + $cell2_length + ); + + /* // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire //' return @@ -3668,7 +3697,9 @@ class MaterielsController extends AppController { '; //. "\n"; - } + */ + + } // etiquette_format1() /* @@ -3679,8 +3710,11 @@ class MaterielsController extends AppController { private function etiquette_format2($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { // Texte à imprimer (colonne de gauche) + $nb_text_lines = 2; + /* $text_line1 = trim("$numeroLab / " . "$dateAcquisition"); $text_line2 = "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); + */ // Image(s) à imprimer (colonne de droite) - code hexa // (EP 14-3-19) Recuperation du QrCode qui a été créé par la vue détaillée "view" en cours (le QrCode actuellement affiché par la vue en cours) @@ -3689,6 +3723,31 @@ class MaterielsController extends AppController { $qrc = base64_encode($qrc); $img_logo = $qrc; + $tape_size = '19'; + $label_length = '0'; + $root_cell_length = '0'; + $font_size = '24'; + $object_margin_left="200"; + $object_margin_right="200"; + $cell1_length = '2606.94'; + $length_mode = 'Fixed'; + $cell2_length = '863.9999'; + + return $this->etiquette_formatX( + $numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme, $nb_text_lines, + $img_logo, + $tape_size, + $label_length, + $root_cell_length, + $font_size, + $object_margin_left, + $object_margin_right, + $cell1_length, + $length_mode, + $cell2_length + ); + + /* // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire //' return @@ -3768,7 +3827,9 @@ class MaterielsController extends AppController { '; - } + */ + + } // etiquette_format2() /* @@ -3781,11 +3842,14 @@ class MaterielsController extends AppController { */ private function etiquette_format3($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { - // Texte à imprimer (colonne de gauche) + // Texte à imprimer (colonne de gauche) sur 3 lignes + $nb_text_lines = 3; + /* //$text_line1 = trim("$numeroLab / " . "$dateAcquisition"); $text_line1 = trim("$numeroLab"); $text_line2 = trim("$dateAcquisition"); $text_line3 = "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); + */ // Image(s) à imprimer (colonne de droite) - code hexa // (EP 14-3-19) Recuperation du QrCode qui a été créé par la vue détaillée "view" en cours (le QrCode actuellement affiché par la vue en cours) @@ -3817,6 +3881,21 @@ class MaterielsController extends AppController { $cell2_length = '863.9999'; */ + return $this->etiquette_formatX( + $numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme, $nb_text_lines, + $img_logo, + $tape_size, + $label_length, + $root_cell_length, + $font_size, + $object_margin_left, + $object_margin_right, + $cell1_length, + $length_mode, + $cell2_length + ); + + /* // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire //' return @@ -3899,7 +3978,8 @@ class MaterielsController extends AppController { '; - } + */ + } // etiquette_format3() @@ -3911,8 +3991,11 @@ class MaterielsController extends AppController { private function etiquette_format4($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { // Texte à imprimer (colonne de gauche) + $nb_text_lines = 2; + /* $text_line1 = trim("$numeroLab / " . "$dateAcquisition"); $text_line2 = "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); + */ // Image(s) à imprimer (colonne de droite) - code hexa // (EP 14-3-19) Recuperation du QrCode qui a été créé par la vue détaillée "view" en cours (le QrCode actuellement affiché par la vue en cours) @@ -3921,6 +4004,31 @@ class MaterielsController extends AppController { $qrc = base64_encode($qrc); $img_logo = $qrc; + $tape_size = '12'; + $label_length = '0'; + $root_cell_length = '0'; + $font_size = '24'; + $object_margin_left="200"; + $object_margin_right="200"; + $cell1_length = '2606.94'; + $length_mode = 'Fixed'; + $cell2_length = '863.9999'; + + return $this->etiquette_formatX( + $numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme, $nb_text_lines, + $img_logo, + $tape_size, + $label_length, + $root_cell_length, + $font_size, + $object_margin_left, + $object_margin_right, + $cell1_length, + $length_mode, + $cell2_length + ); + + /* // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire //' return @@ -4000,6 +4108,116 @@ class MaterielsController extends AppController { '; + */ + + } // etiquette_format4() + + + + /* + * Définition d'étiquette (générale) + * + */ + private function etiquette_formatX( + $numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme, $nb_text_lines, + $img_logo, + $tape_size, + $label_length, + $root_cell_length, + $font_size, + $object_margin_left, + $object_margin_right, + $cell1_length, + $length_mode, + $cell2_length + ) { + + // Texte à imprimer (colonne de gauche) : sur 2 ou 3 lignes + $text_lines = trim("$numeroLab"); + $text_lines .= $nb_text_lines == 3 ? "\n" : ' / '; + $text_lines .= trim("$dateAcquisition") . "\n"; + $text_lines .= "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); + + // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire + //' + return + ' + Landscape + Tape'.$tape_size.'mm + '.$tape_size.'mm + Auto + '.$label_length.' + + '.$root_cell_length.' + Auto + 0 + Solid + + Horizontal + + + + + TEXTE_1 + + + + Rotation0 + False + False + Left + Middle + ShrinkToFit + True + False + + + ' + .$text_lines. + ' + + + + + + + + + '.$cell1_length.' + '.$length_mode.' + 0 + Solid + + + + + + GRAPHISME + + + + Rotation0 + False + False + ' + .$img_logo. + ' + Uniform + 0 + + Right + Center + + + '.$cell2_length.' + Auto + 0 + Solid + + + + + '; } -- libgit2 0.21.2