Browse Source

fixed: aggiunto blinkspecial alla 7" nel reset carrello
fixed2: aggiunta versione senza reset ma solo con blink questa è la versione attiva

Giancarlo 8 years ago
parent
commit
56dce353c7
3 changed files with 18 additions and 2 deletions
  1. 3 0
      TODO.txt
  2. 4 0
      src/Distinta.php
  3. 11 2
      src/Modules/Pages.php

+ 3 - 0
TODO.txt

@@ -0,0 +1,3 @@
+[ ] TODO Sulla tabella dei bind aggiungere i campi che di solito si andrebbero ad inserire nei save delle picking list,questo per evitare di mandare save product anche se le informazioni sono le stesse
+[ ] TODO Parametrizzare nel file LABEL.INI i parametri del BlinkSpecial
+[ ] TODO creare la classe wrapper Parameters o Configuration, serve per leggere più velocemente i parametri dai file INI e nel caso manchino uno o l'intero file INI, a creare dei defaults

+ 4 - 0
src/Distinta.php

@@ -133,6 +133,10 @@ EOF;
   {
   {
     $CORE_SETTINGS = \F3::get('CORE.fb');
     $CORE_SETTINGS = \F3::get('CORE.fb');
     $findBoxCore = new \FindBoxCoreSystem(...array_values($CORE_SETTINGS));
     $findBoxCore = new \FindBoxCoreSystem(...array_values($CORE_SETTINGS));
+
+    $label = new \SmartESL($findBoxCore, [$labelId]);
+    $label->BlinkSpecial(0, 1, 1000, 8, 0);
+
     $elenco = [];
     $elenco = [];
     for($i = 1; $i <= MAX_RIGHE_CAMPI_CARRELLO; $i++) {
     for($i = 1; $i <= MAX_RIGHE_CAMPI_CARRELLO; $i++) {
       $fieldName = 'campo' . str_pad($i, 2, '0', STR_PAD_LEFT);
       $fieldName = 'campo' . str_pad($i, 2, '0', STR_PAD_LEFT);

+ 11 - 2
src/Modules/Pages.php

@@ -43,7 +43,16 @@ class Pages extends BaseController
         $distinta = new \Distinta($f3);
         $distinta = new \Distinta($f3);
         $distinta->CleanDistintaTable();
         $distinta->CleanDistintaTable();
         $distinta->CopyDistinta($stepValues['consegna']);
         $distinta->CopyDistinta($stepValues['consegna']);
-        $distinta->ResetLabelCarrello($stepValues['labelid']);
+        // TODO #RESETCARRELLO da confermare quale tenere, prima versione con reset carrello + blink
+        //$distinta->ResetLabelCarrello($stepValues['labelid']);
+        // TODO #RESETCARRELLO versione con solo blink carrello
+        // <
+        $CORE_SETTINGS = \F3::get('CORE.fb');
+        $findBoxCore = new \FindBoxCoreSystem(...array_values($CORE_SETTINGS));
+
+        $label = new \SmartESL($findBoxCore, [$stepValues['labelid']]);
+        $label->BlinkSpecial(0, 1, 1000, 8, 0);
+        // >
         $distinta->SaveProductsToFindBox('3', true, 50); // prende soltanto i primi 3 dalla tabella copia delle distinte
         $distinta->SaveProductsToFindBox('3', true, 50); // prende soltanto i primi 3 dalla tabella copia delle distinte
 
 
         $f3->set('COOKIE.p2l', json_encode($stepValues));
         $f3->set('COOKIE.p2l', json_encode($stepValues));
@@ -117,7 +126,7 @@ class Pages extends BaseController
           }
           }
         } else {
         } else {
           // Seleziona le prossime tre etichette
           // Seleziona le prossime tre etichette
-          foreach($rowsDistinta as $rowDist) {
+          foreach ($rowsDistinta as $rowDist) {
             $CORE_SETTINGS = $f3->get('CORE.fb');
             $CORE_SETTINGS = $f3->get('CORE.fb');
             $findBoxCore = new \FindBoxCoreSystem(...array_values($CORE_SETTINGS));
             $findBoxCore = new \FindBoxCoreSystem(...array_values($CORE_SETTINGS));
             $labelId = $distinta->GetLabelIdFromBarcode($rowDist['barcode']);
             $labelId = $distinta->GetLabelIdFromBarcode($rowDist['barcode']);