Commit 75ef40cc27ee8d8a911d27e05822b232f5a2bf30
1 parent
a1699aa7
Exists in
master
and in
1 other branch
v3.7.9.93
Nouveau format etiquette 19mm avec QrCode pour la nouvelle etiqueteuse Dymo MobileLabeler => format etiquette numéro 3
Showing
3 changed files
with
152 additions
and
8 deletions
Show diff stats
CHANGES.txt
... | ... | @@ -13,6 +13,12 @@ CHANGEMENTS |
13 | 13 | |
14 | 14 | |
15 | 15 | ------- |
16 | +03/09/2020 NEWS#3 : | |
17 | + | |
18 | +- Nouveau format étiquette 19mm avec QrCode pour la nouvelle étiqueteuse (Dymo MobileLabeler) | |
19 | + | |
20 | + | |
21 | +------- | |
16 | 22 | 31/07/2020 NEWS#2 : |
17 | 23 | |
18 | 24 | - Nouvelle page "Statistiques" (depuis accueil et menu Outils, /pages/stats) : nombre de matériels créés, validés, archivés, suivis, et prêtés (en moyenne, au total, et par année) |
... | ... | @@ -77,6 +83,10 @@ Outre ces changements, voici d'autres changements importants : |
77 | 83 | ======= CHANGES ======= |
78 | 84 | |
79 | 85 | ------- |
86 | +03/09/2020 v3.7.9.93 (EP) | |
87 | + - (e) Nouveau format etiquette 19mm avec QrCode pour la nouvelle etiqueteuse Dymo MobileLabeler => format etiquette numéro 3 | |
88 | + | |
89 | +------- | |
80 | 90 | 03/09/2020 v3.7.9.92 (EP) |
81 | 91 | - (b) (materiels/edit) bugfix "action impossible" quand edition d'un materiel avec date achat nulle |
82 | 92 | ... | ... |
README.md
... | ... | @@ -43,7 +43,7 @@ Logiciel testé et validé sur les configurations suivantes : |
43 | 43 | -------------------------------------------------------------------------------------------- |
44 | 44 | |
45 | 45 | Date: 03/09/2020 |
46 | -Version: 3.7.9.92 | |
46 | +Version: 3.7.9.93 | |
47 | 47 | |
48 | 48 | |
49 | 49 | HISTORIQUE DES CHANGEMENTS DE VERSION : voir le fichier CHANGES.txt (ou la page web /pages/changes) | ... | ... |
src/Controller/MaterielsController.php
... | ... | @@ -3769,13 +3769,146 @@ class MaterielsController extends AppController { |
3769 | 3769 | </RootCell> |
3770 | 3770 | </ContinuousLabel>'; |
3771 | 3771 | } |
3772 | - | |
3772 | + | |
3773 | + | |
3774 | + /* | |
3775 | + * Définition d'étiquette | |
3776 | + * | |
3777 | + * - Type : RUBAN (19mm) | |
3778 | + * - Etiqueteuse : DYMO MobileLabeler | |
3779 | + * - Contenu : texte sur 3 lines et QrCode | |
3780 | + * (Format IRAP) | |
3781 | + */ | |
3782 | + private function etiquette_format3($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { | |
3783 | + | |
3784 | + // Texte à imprimer (colonne de gauche) | |
3785 | + //$text_line1 = trim("$numeroLab / " . "$dateAcquisition"); | |
3786 | + $text_line1 = trim("$numeroLab"); | |
3787 | + $text_line2 = trim("$dateAcquisition"); | |
3788 | + $text_line3 = "$organisme " . trim($numeroInventaireOrganisme ? '/ ' . "$numeroInventaireOrganisme" : ''); | |
3789 | + | |
3790 | + // Image(s) à imprimer (colonne de droite) - code hexa | |
3791 | + // (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) | |
3792 | + $qrc_file_full_name = $this->request->getSession()->read("qrCodePath"); | |
3793 | + $qrc = file_get_contents("file://".$qrc_file_full_name); | |
3794 | + $qrc = base64_encode($qrc); | |
3795 | + $img_logo = $qrc; | |
3796 | + | |
3797 | + // DYMO MobileLabeler 19mm | |
3798 | + $tape_size = '19'; | |
3799 | + $label_length = '5278.94'; | |
3800 | + $root_cell_length = '4078.94'; | |
3801 | + $font_size = '11'; | |
3802 | + $object_margin_left='0'; | |
3803 | + $object_margin_right='0'; | |
3804 | + $cell1_length = '1980'; | |
3805 | + $length_mode = 'Auto'; | |
3806 | + $cell2_length = '869.4'; | |
3807 | + /* | |
3808 | + // DYMO LabelManager PnP | |
3809 | + $tape_size = '12'; | |
3810 | + $label_length = '0'; | |
3811 | + $root_cell_length = '0'; | |
3812 | + $font_size = '24'; | |
3813 | + $object_margin_left="200"; | |
3814 | + $object_margin_right="200"; | |
3815 | + $cell1_length = '2606.94'; | |
3816 | + $length_mode = 'Fixed'; | |
3817 | + $cell2_length = '863.9999'; | |
3818 | + */ | |
3819 | + | |
3820 | + // (EP202006) NB: La 1ère ligne (xml version...) pose problème, donc je la vire | |
3821 | + //'<?xml version="1.0" encoding="utf-8"POINTINTERROG> | |
3822 | + return | |
3823 | + '<ContinuousLabel Version="8.0" Units="twips"> | |
3824 | + <PaperOrientation>Landscape</PaperOrientation> | |
3825 | + <Id>Tape'.$tape_size.'mm</Id> | |
3826 | + <PaperName>'.$tape_size.'mm</PaperName> | |
3827 | + <LengthMode>Auto</LengthMode> | |
3828 | + <LabelLength>'.$label_length.'</LabelLength> | |
3829 | + <RootCell> | |
3830 | + <Length>'.$root_cell_length.'</Length> | |
3831 | + <LengthMode>Auto</LengthMode> | |
3832 | + <BorderWidth>0</BorderWidth> | |
3833 | + <BorderStyle>Solid</BorderStyle> | |
3834 | + <BorderColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
3835 | + <SubcellsOrientation>Horizontal</SubcellsOrientation> | |
3836 | + <Subcells> | |
3837 | + | |
3838 | + <Cell> | |
3839 | + <TextObject> | |
3840 | + <Name>TEXTE_1</Name> | |
3841 | + <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
3842 | + <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> | |
3843 | + <LinkedObjectName></LinkedObjectName> | |
3844 | + <Rotation>Rotation0</Rotation> | |
3845 | + <IsMirrored>False</IsMirrored> | |
3846 | + <IsVariable>False</IsVariable> | |
3847 | + <HorizontalAlignment>Left</HorizontalAlignment> | |
3848 | + <VerticalAlignment>Middle</VerticalAlignment> | |
3849 | + <TextFitMode>ShrinkToFit</TextFitMode> | |
3850 | + <UseFullFontHeight>True</UseFullFontHeight> | |
3851 | + <Verticalized>False</Verticalized> | |
3852 | + <StyledText> | |
3853 | + <Element> | |
3854 | + <String>' | |
3855 | + .$text_line1 . "\n" | |
3856 | + .$text_line2 . "\n" | |
3857 | + .$text_line3 . | |
3858 | + '</String> | |
3859 | + <Attributes> | |
3860 | + <Font Family="Arial" Size="'.$font_size.'" Bold="True" Italic="False" Underline="False" Strikeout="False"/> | |
3861 | + <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
3862 | + </Attributes> | |
3863 | + </Element> | |
3864 | + </StyledText> | |
3865 | + </TextObject> | |
3866 | + <ObjectMargin Left="'.$object_margin_left.'" Right="'.$object_margin_right.'" Top="0" Bottom="0"/> | |
3867 | + <Length>'.$cell1_length.'</Length> | |
3868 | + <LengthMode>'.$length_mode.'</LengthMode> | |
3869 | + <BorderWidth>0</BorderWidth> | |
3870 | + <BorderStyle>Solid</BorderStyle> | |
3871 | + <BorderColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
3872 | + </Cell> | |
3873 | + | |
3874 | + <Cell> | |
3875 | + <ImageObject> | |
3876 | + <Name>GRAPHISME</Name> | |
3877 | + <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
3878 | + <BackColor Alpha="0" Red="255" Green="255" Blue="255"/> | |
3879 | + <LinkedObjectName></LinkedObjectName> | |
3880 | + <Rotation>Rotation0</Rotation> | |
3881 | + <IsMirrored>False</IsMirrored> | |
3882 | + <IsVariable>False</IsVariable> | |
3883 | + <Image>' | |
3884 | + .$img_logo. | |
3885 | + '</Image> | |
3886 | + <ScaleMode>Uniform</ScaleMode> | |
3887 | + <BorderWidth>0</BorderWidth> | |
3888 | + <BorderColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
3889 | + <HorizontalAlignment>Right</HorizontalAlignment> | |
3890 | + <VerticalAlignment>Center</VerticalAlignment> | |
3891 | + </ImageObject> | |
3892 | + <ObjectMargin Left="'.$object_margin_left.'" Right="'.$object_margin_right.'" Top="0" Bottom="0"/> | |
3893 | + <Length>'.$cell2_length.'</Length> | |
3894 | + <LengthMode>Auto</LengthMode> | |
3895 | + <BorderWidth>0</BorderWidth> | |
3896 | + <BorderStyle>Solid</BorderStyle> | |
3897 | + <BorderColor Alpha="255" Red="0" Green="0" Blue="0"/> | |
3898 | + </Cell> | |
3899 | + </Subcells> | |
3900 | + </RootCell> | |
3901 | + </ContinuousLabel>'; | |
3902 | + } | |
3903 | + | |
3904 | + | |
3905 | + | |
3773 | 3906 | /* |
3774 | 3907 | * RUBAN (12mm) |
3775 | - * LABEL FOR PRINTER DYMO LabelManager PnP : 2 lines WITH LOGO | |
3908 | + * LABEL FOR PRINTER DYMO LabelManager PnP : 2 lines WITH QrCode | |
3776 | 3909 | * Format IRAP, avec QRCODE |
3777 | 3910 | */ |
3778 | - private function etiquette_format3($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { | |
3911 | + private function etiquette_format4($numeroLab, $organisme, $dateAcquisition, $numeroInventaireOrganisme) { | |
3779 | 3912 | |
3780 | 3913 | // Texte à imprimer (colonne de gauche) |
3781 | 3914 | $text_line1 = trim("$numeroLab / " . "$dateAcquisition"); |
... | ... | @@ -3822,9 +3955,9 @@ class MaterielsController extends AppController { |
3822 | 3955 | <StyledText> |
3823 | 3956 | <Element> |
3824 | 3957 | <String>' |
3825 | - .$text_line1 . "\n" | |
3826 | - .$text_line2 . | |
3827 | - '</String> | |
3958 | + .$text_line1 . "\n" | |
3959 | + .$text_line2 . | |
3960 | + '</String> | |
3828 | 3961 | <Attributes> |
3829 | 3962 | <Font Family="Arial" Size="24" Bold="True" Italic="False" Underline="False" Strikeout="False"/> |
3830 | 3963 | <ForeColor Alpha="255" Red="0" Green="0" Blue="0"/> |
... | ... | @@ -3850,7 +3983,7 @@ class MaterielsController extends AppController { |
3850 | 3983 | <IsVariable>False</IsVariable> |
3851 | 3984 | <Image>' |
3852 | 3985 | .$img_logo. |
3853 | - '</Image> | |
3986 | + '</Image> | |
3854 | 3987 | <ScaleMode>Uniform</ScaleMode> |
3855 | 3988 | <BorderWidth>0</BorderWidth> |
3856 | 3989 | <BorderColor Alpha="255" Red="0" Green="0" Blue="0"/> |
... | ... | @@ -3870,6 +4003,7 @@ class MaterielsController extends AppController { |
3870 | 4003 | } |
3871 | 4004 | |
3872 | 4005 | |
4006 | + | |
3873 | 4007 | /* |
3874 | 4008 | * ETIQUETTE (19x51 mm) |
3875 | 4009 | * LABEL FOR PRINTER DYMO LabelWriter 450 : WITH LOGO | ... | ... |