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

ACRPCAN.m

Go to the documentation of this file.
ACRPCAN ; GENERATED FROM 'ACR ARMS CAN' PRINT TEMPLATE (#3951) ; 09/30/09 ; (FILE 9002186.5, MARGIN=80)
 G BEGIN
N W !
T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
 Q
DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
 I Y W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 "  "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12) Q
 W Y Q
M D @DIXX
 Q
BEGIN ;
 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
 S I(0)="^ACRCAN(",J(0)=9002186.5
 D N:$X>0 Q:'DN  W ?0 W "DEFAULTS FOR CAN....:"
 S X=$G(^ACRCAN(D0,0)) W ?23 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^AUTTCAN(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,7)
 D T Q:'DN  D N D N:$X>23 Q:'DN  W ?23 W "REQUISITION DEFAULTS"
 D N:$X>23 Q:'DN  W ?23 W "===================="
 D N:$X>0 Q:'DN  W ?0 W "TO..................:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,17) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "REQUESTING OFFICE...:"
 W ?23 S Y=$P(X,U,14) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "LOCATION CODE.......:"
 S X=$G(^ACRCAN(D0,0)) W ?23 S Y=$P(X,U,7) S Y=$S(Y="":Y,$D(^AUTTLCOD(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "FOR REFERENCE CALL..:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,18) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TELEPHONE NUMBER....:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23,$E($P(X,U,19),1,12)
 D N:$X>0 Q:'DN  W ?0 W "DELIVER TO..........:"
 W ?23 S Y=$P(X,U,13) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "REQUESTED BY........:"
 W ?23 S Y=$P(X,U,15) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "REQUEST RECOMMEND BY:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,25) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "REQUEST APPROVED BY.:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,24) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "FUNDS AVAILABLE SIG.:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,1) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "PROPERTY CLEARANCE..:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,17) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "LOCAL PROP MGT OFF..:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,20) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "SUPPLY OFFICER......:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,20) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "LOCAL INFO SYS COORD:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,11) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "LOCAL TELECOM OFFICR:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,13) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "CONTRACT OFFICER....:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,10) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "LOCAL FIN MGT OFFICR:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,14) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "RECEIVING OFFICIAL..:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,3) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 W ?55 D PAUSE^ACRFWARN K DIP K:DN Y
 D T Q:'DN  D N D N:$X>23 Q:'DN  W ?23 W "PURCHASE ORDER DEFAULTS"
 D N:$X>23 Q:'DN  W ?23 W "======================="
 D N:$X>0 Q:'DN  W ?0 W "PURCHASING OFFICE...:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,15) S Y=$S(Y="":Y,$D(^ACRPO(Y,0))#2:$P(^(0),U),1:Y) S Y=$S(Y="":Y,$D(^AUTTLOC(Y,0))#2:$P(^(0),U),1:Y) S Y=$S(Y="":Y,$D(^DIC(4,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "ISSUING OFFICE......:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,10) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "SHIP TO.............:"
 W ?23 S Y=$P(X,U,11) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "MAIL INVOICE TO.....:"
 W ?23 S Y=$P(X,U,12) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "INSPECTION/ACCPT LOC:"
 W ?23 S Y=$P(X,U,16) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "PO AUTHORIZED BY....:"
 W ?23 S Y=$P(X,U,2) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "INVOICE AUDITOR.....:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,23) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D T Q:'DN  D N D N:$X>23 Q:'DN  W ?23 W "TRAVEL ORDER DEFAULTS"
 D N:$X>23 Q:'DN  W ?23 W "====================="
 D N:$X>0 Q:'DN  W ?0 W "BUREAU/DIV/REGION...:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,21) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "PRESENT DUTY STATION:"
 W ?23 S Y=$P(X,U,22) S Y=$S(Y="":Y,$D(^AUTTLOC(Y,0))#2:$P(^(0),U),1:Y) S Y=$S(Y="":Y,$D(^DIC(4,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TRAVEL RECOMMENDD BY:"
 W ?23 S Y=$P(X,U,4) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TRVL FUNDS AVAIL SIG:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,8) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TRAVEL AUTHORIZED BY:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,3) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TRAVEL ORDER AUDITOR:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,24) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TRAV VOUCHR AUDITOR.:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,22) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TRAV PAYMENT CERTIF.:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,21) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 W ?55 D PAUSE^ACRFWARN K DIP K:DN Y
 D T Q:'DN  D N D N:$X>23 Q:'DN  W ?23 W "TRAINING REQUEST DEFAULTS"
 D N:$X>23 Q:'DN  W ?23 W "========================="
 D N:$X>0 Q:'DN  W ?0 W "INITIATING SUPERVISR:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,5) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "FIRST CONCURRING OFF:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,6) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "SECOND CONCURRNG OFF:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,7) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TRAINING APPROVED BY:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,8) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "EMP DEVELOPMENT SPED:"
 S X=$G(^ACRCAN(D0,"DFLT")) W ?23 S Y=$P(X,U,9) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TRNG FUNDS AVAIL SIG:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,7) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TRAINING AUTHORZD BY:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,4) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 D N:$X>0 Q:'DN  W ?0 W "TRNG PROC OFFICIAL..:"
 S X=$G(^ACRCAN(D0,"DFLT1")) W ?23 S Y=$P(X,U,25) S Y(0)=Y S Y=$$NAME2^ACRFUTL1(Y) W $E(Y,1,30)
 G ^ACRPCAN1