Commit 99ec7e20356109b0da8dfe36d67969bec7e4730e
1 parent
13d2fa1e
Exists in
master
and in
1 other branch
Refactorisation des formats d'etiquette en 1 seule fonction
etiquette_formatX() v3.7.9.95
Showing
4 changed files
with
227 additions
and
8 deletions
Show diff stats
CHANGES.txt
... | ... | @@ -83,8 +83,9 @@ Outre ces changements, voici d'autres changements importants : |
83 | 83 | ======= CHANGES ======= |
84 | 84 | |
85 | 85 | ------- |
86 | -03/09/2020 v3.7.9.93-94 (EP) | |
86 | +03-07/09/2020 v3.7.9.93-95 (EP) | |
87 | 87 | - (e) Nouveau format etiquette 19mm avec QrCode pour la nouvelle etiqueteuse Dymo MobileLabeler => format etiquette numéro 3 |
88 | + - (i) refactorisation des formats d'etiquette en 1 seule fonction etiquette_formatX() | |
88 | 89 | |
89 | 90 | ------- |
90 | 91 | 03/09/2020 v3.7.9.92 (EP) | ... | ... |
README.md
... | ... | @@ -42,8 +42,8 @@ Logiciel testé et validé sur les configurations suivantes : |
42 | 42 | |
43 | 43 | -------------------------------------------------------------------------------------------- |
44 | 44 | |
45 | -Date: 04/09/2020 | |
46 | -Version: 3.7.9.94 | |
45 | +Date: 07/09/2020 | |
46 | +Version: 3.7.9.95 | |
47 | 47 | |
48 | 48 | |
49 | 49 | HISTORIQUE DES CHANGEMENTS DE VERSION : voir le fichier CHANGES.txt (ou la page web /pages/changes) | ... | ... |
src/Controller/DocumentsController.php
... | ... | @@ -31,7 +31,7 @@ class DocumentsController extends AppController |
31 | 31 | //@Override parent |
32 | 32 | protected function setAuthorizations() { |
33 | 33 | |
34 | - // Action 'add' (ajout d'une nouvelle entité) | |
34 | + // Action 'add' (ajout d'une nouvelle entité) : statut quelconque mais doit appartenir au user | |
35 | 35 | $this->setAuthorizationsForAction('add', [0,1]); |
36 | 36 | //$this->setAuthorizationsForAction('add', ['VALIDATED',1]); |
37 | 37 | //$this->setAuthorizationsForAction('edit', ['VALIDATED',1]); | ... | ... |
src/Controller/MaterielsController.php
... | ... | @@ -3577,8 +3577,11 @@ class MaterielsController extends AppController { |
3577 | 3577 | private function etiquette_format1($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { |
3578 | 3578 | |
3579 | 3579 | // Texte à imprimer (colonne de gauche) |
3580 | + $nb_text_lines = 2; | |
3581 | + /* | |
3580 | 3582 | $text_line1 = trim("$numeroLab / " . "$dateAcquisition"); |
3581 | 3583 | $text_line2 = "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); |
3584 | + */ | |
3582 | 3585 | |
3583 | 3586 | // Image(s) à imprimer (colonne de droite) - code hexa |
3584 | 3587 | // LOGO IRAP N&B |
... | ... | @@ -3587,6 +3590,32 @@ class MaterielsController extends AppController { |
3587 | 3590 | $img_logo_blue = 'iVBORw0KGgoAAAANSUhEUgAAAJYAAABOCAYAAADCbO+gAAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nfHn5T/T3IevtV8Sbsz55BjJ5Z32zsrC+9FgD2JFqbHbO+lVUAtG0GQOXhrE/vIADyBQC03pzzHoZsXpLE4gwnC4vs7GxzAZ9rLivoN/ufgm/Kv4Y595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4UVAzzEBnAq0gGrBd4EIfBoQgfuDj4Ge83Ggviv9WPAQ0EKZAPQMqkNjtwm8AVSXnkVzgOBAsHutz4DTu4mle/Q8XlEdwlcioTY47xpwTe4aoMk8BBSDDaAXyAbrgfwL5UuGg41A6X8AL4FK8ClIARpoEVUTK0Jqtf4VXA+ULvJqYtWmyCBidwGdgAj6KpgODgda/SK2oLIHg7VAbSfkAAK6V9pBBBNhRO5fAdWjthYDkScXqA96BqVvBhIRVc+oyZRmEZE0FnoWEVLPpbbVRkcwAChd5WCDI5HqHgQ+B+pvBlAdSp8ArgYaC42VSKln/gyU6ziiOr+vbRlyCVGJWzfq4xwX3f2P+j4YaFzaVfbFeVfHlvp6N9sTF8GCZK4ncSHhZWBLPE3k08NLNFGa9CvBs0AEknjvT6RpggUN9CagVekfVJWdAfwiggqS7bGL+3cV/64G6l9CEn3z9iGRp6sIkRBproSIQCKVRG14x0maSaK6veknExcZtUAfBRqPhKwkICCQiOOGXb2Pg75pLF/x2okI65cwCSLnVyLSQF+WvE1DCXIEtamJmgI+DMoMSHuLtMREBWS3Kend/VhXmxqOF5aW1AIR2T6JpzW56O9Y6BWSDl/dq6DdJbTQHgMJMy1CqT4v+Yl+ebKnL6G/vB4lW/r/YgSkLpOSHIH9PgJJYu33IU1WqBFIEivJg3YZgSSx2mVYk5UmiZXkQLuMQJJY7TKsyUqTxEpyoF1GIEmsdhnWZKVJYiU50C4jkCRWuwxrstL/BxJPAjyhtOFQAAAAAElFTkSuQmCC'; |
3588 | 3591 | $img_logo = $img_logo_black; |
3589 | 3592 | |
3593 | + // DYMO LabelManager PnP | |
3594 | + $tape_size = '12'; | |
3595 | + $label_length = '0'; | |
3596 | + $root_cell_length = '0'; | |
3597 | + $font_size = '24'; | |
3598 | + $object_margin_left="200"; | |
3599 | + $object_margin_right="200"; | |
3600 | + $cell1_length = '2606.94'; | |
3601 | + $length_mode = 'Fixed'; | |
3602 | + $cell2_length = '863.9999'; | |
3603 | + | |
3604 | + return $this->etiquette_formatX( | |
3605 | + $numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme, $nb_text_lines, | |
3606 | + $img_logo, | |
3607 | + $tape_size, | |
3608 | + $label_length, | |
3609 | + $root_cell_length, | |
3610 | + $font_size, | |
3611 | + $object_margin_left, | |
3612 | + $object_margin_right, | |
3613 | + $cell1_length, | |
3614 | + $length_mode, | |
3615 | + $cell2_length | |
3616 | + ); | |
3617 | + | |
3618 | + /* | |
3590 | 3619 | // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire |
3591 | 3620 | //'<?xml version="1.0" encoding="utf-8"POINTINTERROG> |
3592 | 3621 | return |
... | ... | @@ -3668,7 +3697,9 @@ class MaterielsController extends AppController { |
3668 | 3697 | </RootCell> |
3669 | 3698 | </ContinuousLabel>'; |
3670 | 3699 | //. "\n"; |
3671 | - } | |
3700 | + */ | |
3701 | + | |
3702 | + } // etiquette_format1() | |
3672 | 3703 | |
3673 | 3704 | |
3674 | 3705 | /* |
... | ... | @@ -3679,8 +3710,11 @@ class MaterielsController extends AppController { |
3679 | 3710 | private function etiquette_format2($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { |
3680 | 3711 | |
3681 | 3712 | // Texte à imprimer (colonne de gauche) |
3713 | + $nb_text_lines = 2; | |
3714 | + /* | |
3682 | 3715 | $text_line1 = trim("$numeroLab / " . "$dateAcquisition"); |
3683 | 3716 | $text_line2 = "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); |
3717 | + */ | |
3684 | 3718 | |
3685 | 3719 | // Image(s) à imprimer (colonne de droite) - code hexa |
3686 | 3720 | // (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 { |
3689 | 3723 | $qrc = base64_encode($qrc); |
3690 | 3724 | $img_logo = $qrc; |
3691 | 3725 | |
3726 | + $tape_size = '19'; | |
3727 | + $label_length = '0'; | |
3728 | + $root_cell_length = '0'; | |
3729 | + $font_size = '24'; | |
3730 | + $object_margin_left="200"; | |
3731 | + $object_margin_right="200"; | |
3732 | + $cell1_length = '2606.94'; | |
3733 | + $length_mode = 'Fixed'; | |
3734 | + $cell2_length = '863.9999'; | |
3735 | + | |
3736 | + return $this->etiquette_formatX( | |
3737 | + $numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme, $nb_text_lines, | |
3738 | + $img_logo, | |
3739 | + $tape_size, | |
3740 | + $label_length, | |
3741 | + $root_cell_length, | |
3742 | + $font_size, | |
3743 | + $object_margin_left, | |
3744 | + $object_margin_right, | |
3745 | + $cell1_length, | |
3746 | + $length_mode, | |
3747 | + $cell2_length | |
3748 | + ); | |
3749 | + | |
3750 | + /* | |
3692 | 3751 | // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire |
3693 | 3752 | //'<?xml version="1.0" encoding="utf-8"POINTINTERROG> |
3694 | 3753 | return |
... | ... | @@ -3768,7 +3827,9 @@ class MaterielsController extends AppController { |
3768 | 3827 | </Subcells> |
3769 | 3828 | </RootCell> |
3770 | 3829 | </ContinuousLabel>'; |
3771 | - } | |
3830 | + */ | |
3831 | + | |
3832 | + } // etiquette_format2() | |
3772 | 3833 | |
3773 | 3834 | |
3774 | 3835 | /* |
... | ... | @@ -3781,11 +3842,14 @@ class MaterielsController extends AppController { |
3781 | 3842 | */ |
3782 | 3843 | private function etiquette_format3($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { |
3783 | 3844 | |
3784 | - // Texte à imprimer (colonne de gauche) | |
3845 | + // Texte à imprimer (colonne de gauche) sur 3 lignes | |
3846 | + $nb_text_lines = 3; | |
3847 | + /* | |
3785 | 3848 | //$text_line1 = trim("$numeroLab / " . "$dateAcquisition"); |
3786 | 3849 | $text_line1 = trim("$numeroLab"); |
3787 | 3850 | $text_line2 = trim("$dateAcquisition"); |
3788 | 3851 | $text_line3 = "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); |
3852 | + */ | |
3789 | 3853 | |
3790 | 3854 | // Image(s) à imprimer (colonne de droite) - code hexa |
3791 | 3855 | // (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 { |
3817 | 3881 | $cell2_length = '863.9999'; |
3818 | 3882 | */ |
3819 | 3883 | |
3884 | + return $this->etiquette_formatX( | |
3885 | + $numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme, $nb_text_lines, | |
3886 | + $img_logo, | |
3887 | + $tape_size, | |
3888 | + $label_length, | |
3889 | + $root_cell_length, | |
3890 | + $font_size, | |
3891 | + $object_margin_left, | |
3892 | + $object_margin_right, | |
3893 | + $cell1_length, | |
3894 | + $length_mode, | |
3895 | + $cell2_length | |
3896 | + ); | |
3897 | + | |
3898 | + /* | |
3820 | 3899 | // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire |
3821 | 3900 | //'<?xml version="1.0" encoding="utf-8"POINTINTERROG> |
3822 | 3901 | return |
... | ... | @@ -3899,7 +3978,8 @@ class MaterielsController extends AppController { |
3899 | 3978 | </Subcells> |
3900 | 3979 | </RootCell> |
3901 | 3980 | </ContinuousLabel>'; |
3902 | - } | |
3981 | + */ | |
3982 | + } // etiquette_format3() | |
3903 | 3983 | |
3904 | 3984 | |
3905 | 3985 | |
... | ... | @@ -3911,8 +3991,11 @@ class MaterielsController extends AppController { |
3911 | 3991 | private function etiquette_format4($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { |
3912 | 3992 | |
3913 | 3993 | // Texte à imprimer (colonne de gauche) |
3994 | + $nb_text_lines = 2; | |
3995 | + /* | |
3914 | 3996 | $text_line1 = trim("$numeroLab / " . "$dateAcquisition"); |
3915 | 3997 | $text_line2 = "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); |
3998 | + */ | |
3916 | 3999 | |
3917 | 4000 | // Image(s) à imprimer (colonne de droite) - code hexa |
3918 | 4001 | // (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 { |
3921 | 4004 | $qrc = base64_encode($qrc); |
3922 | 4005 | $img_logo = $qrc; |
3923 | 4006 | |
4007 | + $tape_size = '12'; | |
4008 | + $label_length = '0'; | |
4009 | + $root_cell_length = '0'; | |
4010 | + $font_size = '24'; | |
4011 | + $object_margin_left="200"; | |
4012 | + $object_margin_right="200"; | |
4013 | + $cell1_length = '2606.94'; | |
4014 | + $length_mode = 'Fixed'; | |
4015 | + $cell2_length = '863.9999'; | |
4016 | + | |
4017 | + return $this->etiquette_formatX( | |
4018 | + $numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme, $nb_text_lines, | |
4019 | + $img_logo, | |
4020 | + $tape_size, | |
4021 | + $label_length, | |
4022 | + $root_cell_length, | |
4023 | + $font_size, | |
4024 | + $object_margin_left, | |
4025 | + $object_margin_right, | |
4026 | + $cell1_length, | |
4027 | + $length_mode, | |
4028 | + $cell2_length | |
4029 | + ); | |
4030 | + | |
4031 | + /* | |
3924 | 4032 | // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire |
3925 | 4033 | //'<?xml version="1.0" encoding="utf-8"POINTINTERROG> |
3926 | 4034 | return |
... | ... | @@ -4000,6 +4108,116 @@ class MaterielsController extends AppController { |
4000 | 4108 | </Subcells> |
4001 | 4109 | </RootCell> |
4002 | 4110 | </ContinuousLabel>'; |
4111 | + */ | |
4112 | + | |
4113 | + } // etiquette_format4() | |
4114 | + | |
4115 | + | |
4116 | + | |
4117 | + /* | |
4118 | + * Définition d'étiquette (générale) | |
4119 | + * | |
4120 | + */ | |
4121 | + private function etiquette_formatX( | |
4122 | + $numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme, $nb_text_lines, | |
4123 | + $img_logo, | |
4124 | + $tape_size, | |
4125 | + $label_length, | |
4126 | + $root_cell_length, | |
4127 | + $font_size, | |
4128 | + $object_margin_left, | |
4129 | + $object_margin_right, | |
4130 | + $cell1_length, | |
4131 | + $length_mode, | |
4132 | + $cell2_length | |
4133 | + ) { | |
4134 | + | |
4135 | + // Texte à imprimer (colonne de gauche) : sur 2 ou 3 lignes | |
4136 | + $text_lines = trim("$numeroLab"); | |
4137 | + $text_lines .= $nb_text_lines == 3 ? "\n" : ' / '; | |
4138 | + $text_lines .= trim("$dateAcquisition") . "\n"; | |
4139 | + $text_lines .= "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); | |
4140 | + | |
4141 | + // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire | |
4142 | + //'<?xml version="1.0" encoding="utf-8"POINTINTERROG> | |
4143 | + return | |
4144 | + '<ContinuousLabel Version="8.0" Units="twips"> | |
4145 | + <PaperOrientation>Landscape</PaperOrientation> | |
4146 | + <Id>Tape'.$tape_size.'mm</Id> | |
4147 | + <PaperName>'.$tape_size.'mm</PaperName> | |
4148 | + <LengthMode>Auto</LengthMode> | |
4149 | + <LabelLength>'.$label_length.'</LabelLength> | |
4150 | + <RootCell> | |
4151 | + <Length>'.$root_cell_length.'</Length> | |
4152 | + <LengthMode>Auto</LengthMode> | |
4153 | + <BorderWidth>0</BorderWidth> | |
4154 | + <BorderStyle>Solid</BorderStyle> | |
4155 | + <BorderColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
4156 | + <SubcellsOrientation>Horizontal</SubcellsOrientation> | |
4157 | + <Subcells> | |
4158 | + | |
4159 | + <Cell> | |
4160 | + <TextObject> | |
4161 | + <Name>TEXTE_1</Name> | |
4162 | + <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
4163 | + <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> | |
4164 | + <LinkedObjectName></LinkedObjectName> | |
4165 | + <Rotation>Rotation0</Rotation> | |
4166 | + <IsMirrored>False</IsMirrored> | |
4167 | + <IsVariable>False</IsVariable> | |
4168 | + <HorizontalAlignment>Left</HorizontalAlignment> | |
4169 | + <VerticalAlignment>Middle</VerticalAlignment> | |
4170 | + <TextFitMode>ShrinkToFit</TextFitMode> | |
4171 | + <UseFullFontHeight>True</UseFullFontHeight> | |
4172 | + <Verticalized>False</Verticalized> | |
4173 | + <StyledText> | |
4174 | + <Element> | |
4175 | + <String>' | |
4176 | + .$text_lines. | |
4177 | + '</String> | |
4178 | + <Attributes> | |
4179 | + <Font Family="Arial" Size="'.$font_size.'" Bold="True" Italic="False" Underline="False" Strikeout="False"/> | |
4180 | + <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
4181 | + </Attributes> | |
4182 | + </Element> | |
4183 | + </StyledText> | |
4184 | + </TextObject> | |
4185 | + <ObjectMargin Left="'.$object_margin_left.'" Right="'.$object_margin_right.'" Top="0" Bottom="0"/> | |
4186 | + <Length>'.$cell1_length.'</Length> | |
4187 | + <LengthMode>'.$length_mode.'</LengthMode> | |
4188 | + <BorderWidth>0</BorderWidth> | |
4189 | + <BorderStyle>Solid</BorderStyle> | |
4190 | + <BorderColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
4191 | + </Cell> | |
4192 | + | |
4193 | + <Cell> | |
4194 | + <ImageObject> | |
4195 | + <Name>GRAPHISME</Name> | |
4196 | + <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
4197 | + <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> | |
4198 | + <LinkedObjectName></LinkedObjectName> | |
4199 | + <Rotation>Rotation0</Rotation> | |
4200 | + <IsMirrored>False</IsMirrored> | |
4201 | + <IsVariable>False</IsVariable> | |
4202 | + <Image>' | |
4203 | + .$img_logo. | |
4204 | + '</Image> | |
4205 | + <ScaleMode>Uniform</ScaleMode> | |
4206 | + <BorderWidth>0</BorderWidth> | |
4207 | + <BorderColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
4208 | + <HorizontalAlignment>Right</HorizontalAlignment> | |
4209 | + <VerticalAlignment>Center</VerticalAlignment> | |
4210 | + </ImageObject> | |
4211 | + <ObjectMargin Left="'.$object_margin_left.'" Right="'.$object_margin_right.'" Top="0" Bottom="0"/> | |
4212 | + <Length>'.$cell2_length.'</Length> | |
4213 | + <LengthMode>Auto</LengthMode> | |
4214 | + <BorderWidth>0</BorderWidth> | |
4215 | + <BorderStyle>Solid</BorderStyle> | |
4216 | + <BorderColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
4217 | + </Cell> | |
4218 | + </Subcells> | |
4219 | + </RootCell> | |
4220 | + </ContinuousLabel>'; | |
4003 | 4221 | } |
4004 | 4222 | |
4005 | 4223 | ... | ... |