Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: LRBARCF

LRBARCF.m

Go to the documentation of this file.
  1. LRBARCF ;DALOI/JMC - Lab Label Configuration Utility ;1/13/97 12:36
  1. ;;5.2;LAB SERVICE;**161,218**;Sep 27, 1994
  1. EN ;
  1. ;
  1. N %ZIS,DIC,DIR,DIRUT,DTOUT,DUOUT,J,X,Y
  1. N LABEL,LRCLRFMT,LRFMT,LRLABEL,LRLABLIO,LRMSG,LRNODE,LRQUIT
  1. ;
  1. S LRQUIT=0,LRMSG=""
  1. ;
  1. S DIC="^LAB(69.9,1,3.6,",DIC(0)="AEMQZ",DIC("A")="Select LABEL DEVICE: "
  1. D ^DIC Q:Y<1
  1. S LRLABLIO=Y(0,0),LRNODE=+Y,LRNODE(0)=Y(0)
  1. ;
  1. F J=2:1:3 I $P(LRNODE(0),"^",J)="" D
  1. . I J=2 S LRMSG="No printer type designated in file #69.9"
  1. . I J=3 S LRMSG="No label stock designated in file #69.9"
  1. . S LRQUIT=1
  1. ;
  1. I 'LRQUIT,$P(LRNODE(0),"^",2)<1 S LRMSG="This printer type not supported",LRQUIT=1
  1. ;
  1. I LRQUIT D Q
  1. . I $L(LRMSG) D EN^DDIOL(LRMSG,"","!?12")
  1. ;
  1. S DIR(0)=""
  1. F J=1:1 S LABEL="F"_J,X=$T(@LABEL) Q:X="" D
  1. . I $L($P(X,";;",2+$P(LRNODE(0),"^",2))) S DIR(0)=DIR(0)_J_":"_$P(X,";;",2)_";"
  1. S DIR("A")="Select format to program printer"
  1. S DIR(0)="SO^"_DIR(0)
  1. D ^DIR Q:$D(DIRUT)
  1. ;
  1. S LRFMT=+Y,LABEL="F"_LRFMT,LRLABEL=$P($T(@LABEL),";;",2+$P(LRNODE(0),"^",2))
  1. I $P(LRNODE(0),"^",2)=1 D Q:LRQUIT
  1. . N DIR,DIRUT,DTOUT,DUOUT,X,Y
  1. . S DIR(0)="YO",DIR("A")="Do you want to clear all existing formats",DIR("B")="NO"
  1. . D ^DIR
  1. . I $D(DIRUT) S LRQUIT=1 Q
  1. . S LRCLRFMT=+Y
  1. ;
  1. S IOP=LRLABLIO,%ZIS="Q" D ^%ZIS
  1. I POP D HOME^%ZIS Q
  1. I $D(IO("Q")) D Q
  1. . N ZTSK
  1. . S ZTRTN="DQ^LRBARCF",ZTDESC="Program Lab Label Printer"
  1. . F J="LRFMT","LRLABEL","LRCLRFMT" S ZTSAVE(J)=""
  1. . D ^%ZTLOAD,^%ZISC
  1. . D EN^DDIOL("Task "_$S($G(ZTSK):"",1:"NOT ")_"Queued","","!")
  1. ;
  1. DQ ; Start the programming
  1. ;
  1. I LRCLRFMT D CLRFMT^LRBARA
  1. ;
  1. I '$D(ZTQUEUED) D
  1. . U IO(0)
  1. . D EN^DDIOL("Programming format F"_LRFMT,"","!")
  1. ;
  1. U IO
  1. D @LRLABEL
  1. ;
  1. I $D(ZTQUEUED) S ZTREQ="@"
  1. E D ^%ZISC
  1. ;
  1. Q
  1. ;
  1. ;
  1. FORMATS ;;Type of label stock;;Download routine for Intermec 3000/4000 Series;;
  1. F1 ;;Local Use;;
  1. F2 ;;Local Use;;
  1. F3 ;;1x2 Plain (Old Style);;FMT^LRBARA;;
  1. F4 ;;1x2 Barcode (Old Style);;FMT^LRBARA;;
  1. F5 ;;1x2 Code 39/128 - UID;;FMT^LRBARA;;
  1. F6 ;;Local Use;;
  1. F7 ;;1x3 Plain (Old Style);;FMT^LRBARC;;
  1. F8 ;;1x3 Barcode (Old Style);;FMT^LRBARC;;
  1. F9 ;;1x3 Code 39/128 - UID;;FMT^LRBARC;;
  1. F10 ;;Local Use;;
  1. F11 ;;Local Use;;
  1. F12 ;;10 Part Barcode (Old Style);;FMT^LRBARB;;
  1. F13 ;;10 Part Code 39/128 - UID;;FMT^LRBARB;;
  1. F14 ;;Reserved - future use;;
  1. F15 ;;Reserved - future use;;
  1. F16 ;;Reserved - future use;;
  1. F17 ;;Reserved - future use;;
  1. F18 ;;Reserved - future use;;
  1. F19 ;;Reserved - future use;;