We have a separate Printer Redirect screen available for managers to use which simplifies the process of redirection and enabling/disabling order devices.
1. Create a script to update the database order device table
This batch file does the trick. Add it to your scripts directory: redirect_order_device.bat
Code:
:: Redirect Order Device
:: Arguments: Source_Device_Object, Destination_Device_Object
::
:: Example: redirect_order_device.bat 1 2
:: Redirects order device 1 to 2
::
:: How It Works ::
:: Echo the sql statement to a file embedded with script arguments, then execute it against the db
::
:: Replace isql with dbisql for ver 3.0 and above
echo update micros.order_device_def set redirect = %2 where ord_dvc_seq = %1 > redirect_order_device.sql
dbisql -q -c "uid=support;pwd=support" redirect_order_device.sql
2. Setup External Programs
Create as many external programs as you have printer redirections.
Use the following settings:
[ul]
[li]User Interface: None[/li]
[li]Run Style: Normal[/li]
[li]Run in separate virtual machine: unchecked[/li]
[li]Object Range Type: blank[/li]
[li]Working Directory: ..\Scripts[/li]
[li]Command Line: (varies, see below)[/li]
[/ul]
DISABLE EXPO (order device #3)
..\Scripts\redirect_order_device.bat 3 NULL
ENABLE EXPO (order device #3)
..\Scripts\redirect_order_device.bat 3 3
REDIRECT Line to Pantry
..\Scripts\redirect_order_device.bat 1 2
RESET Line
..\Scripts\redirect_order_device.bat 1 1
3. Setup a touchscreen with buttons for each redirection.
We use a popup from the manager screen with separate buttons to:
[ul]
[li]Disable Expo: --> External Program: (406) Disable Expo Printer[/li]
[li]Enable Expo: --> External Program: (407) Enable Expo Printer[/li]
[li]Line -> Pantry: --> External Program: (408) Redirect Line->Pantry[/li]
[li]Reset Line --> External Program: (409) Reset Line[/li]
[li]Pantry -> Line: --> External Program: (410) Redirect Pantry->Line[/li]
[li]Reset Pantry --> External Program: (411) Reset Pantry[/li]
[/ul]