diff --git a/app/Config/Printers.php b/app/Config/Printers.php index 12d0cdb..1ab9a2d 100644 --- a/app/Config/Printers.php +++ b/app/Config/Printers.php @@ -7,29 +7,33 @@ use CodeIgniter\Config\BaseConfig; class Printers extends BaseConfig { public array $printers = [ - "lab" => [ + "zebracs1" => [ + "name" => "CS 2 Printer", + "command" => "copy /B file.txt \\\\glenlis\\zebracs1", + ], + "zebracs2" => [ + "name" => "CS 4 Printer", + "command" => "copy /B file.txt \\\\glenlis\\zebracs2", + ], + "zebracs3" => [ + "name" => "CS Lab Printer", + "command" => "copy /B file.txt \\\\glenlis\\zebracs3", + ], + "zebralab" => [ "name" => "Lab Printer", "command" => "copy /B file.txt \\\\glenlis\\zebralab", ], - "phlebo" => [ - "name" => "Phlebo Printer", - "command" => "copy /B file.txt \\\\print-server\\phlebo-printer", - ], - "reception" => [ - "name" => "Reception Printer", - "command" => 'copy /B file.txt \\\\print-server\\reception-printer', - ], ]; public array $roleDefaults = [ - 0 => "lab", - 1 => "lab", - 2 => "lab", - 3 => "phlebo", - 4 => "reception", + 0 => "zebracs2", + 1 => "zebralab", + 2 => "zebralab", + 3 => "zebracs2", + 4 => "zebracs2", ]; - public string $defaultPrinter = "lab"; + public string $defaultPrinter = "zebracs2"; public function getPrinter(string $printerKey): ?array { diff --git a/app/Controllers/LabelController.php b/app/Controllers/LabelController.php index 537dd6b..f5035cf 100644 --- a/app/Controllers/LabelController.php +++ b/app/Controllers/LabelController.php @@ -1,6 +1,8 @@ Ready -