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

AFSHTBUP.m

Go to the documentation of this file.
AFSHTBUP ;OKC/RDC/DRS - FINANCE TABLE UPDATE PROGRAM; [ 10/27/2004   4:20 PM ]
 ;;3.0T1;A0 FINANCIAL DATA MGMT SYSTEM;**1,13**;FEB 02, 1999
 ;;MODIFIED FOR CACHE' COMPLIANCE ;ACR*2.1*9
 ;D CRTSETUP^AFSTCK1                  ;ACR*2.1*13.02 IM13574
 D CRTSETUP^AFSHCK1                   ;ACR*2.1*13.02 IM13574
A0 ;
 D HDRM
 ;
 ;IHS/AANHS/MAW MODIFIED TO ALLOW BUDGET ACTIVITY EDIT
 ;IHS/AANHS/REM ADDED COST CENTER EDIT
PCC1 K DIR S DIR("A")="Enter Table you want to update ('X' to Exit)"
 ;S DIR(0)="S^A:Allowance/Allotment;C:Common Accounting Number (CAN);D:Document Reference Code;L:Location Code;O:Object Class Code;B:Budget Activity;S:Sub Activity;SS:Sub Sub Activity;CC:Cost Center Code;X:EXIT"  ;ACR*2.1*13.02 IM13574
 S DIR(0)="S^A:Allowance/Allotment"                ;ACR*2.1*13.02 IM13574
 S DIR(0)=DIR(0)_";C:Common Accounting Number (CAN)" ;ACR*2.1*13.02 IM13574
 S DIR(0)=DIR(0)_";D:Document Reference Code"      ;ACR*2.1*13.02 IM13574
 S DIR(0)=DIR(0)_";L:Location Code"                ;ACR*2.1*13.02 IM13574
 S DIR(0)=DIR(0)_";O:Object Class Code"            ;ACR*2.1*13.02 IM13574
 S DIR(0)=DIR(0)_";B:Budget Activity"              ;ACR*2.1*13.02 IM13574
 S DIR(0)=DIR(0)_";S:Sub Activity"                 ;ACR*2.1*13.02 IM13574
 S DIR(0)=DIR(0)_";SS:Sub Sub Activity"            ;ACR*2.1*13.02 IM13574
 S DIR(0)=DIR(0)_";CC:Cost Center Code"            ;ACR*2.1*13.02 IM13574
 S DIR(0)=DIR(0)_";X:EXIT"                         ;ACR*2.1*13.02 IM13574
 D ^DIR
 ;
 I $D(DTOUT)!($D(DUOUT)) G ABEND
 S AFSOPT=Y
 I AFSOPT="X" G FINI
 U IO(0) W !!
 G ALLOW:AFSOPT="A",CAN:AFSOPT="C",DREF:AFSOPT="D",LOCAT:AFSOPT="L",OBJCL:AFSOPT="O",BUDGET:AFSOPT="B",SUB:AFSOPT="S",SUBSUB:AFSOPT="SS",COST:AFSOPT="CC"
 G ABEND2
 ;
 ;IHS/AANHS/REM MODIFIED FOR COST CENTER CODE 
COST ;;ENTRY POINT
 K DIC,DIE,DIR,DR,DO S DIC="^AUTTCCT(",DIC(0)="QAZEML" D ^DIC
 G A0:$D(DUOUT)!($D(DTOUT))!($D(DLOUT))
 G ABEND:+Y<1 S DA=+Y,DR=".01;1;10",DIE=DIC D ^DIE
 G COST                                        ;ACR*2.1*13.02 IM13574
 ;
 ;IHS/AANHS/MAW MODIFIED FOR BUDGET ACTIVITY
SUB ;;ENTRY POINT
 K DIC,DIE,DIR,DR,DO S DIC="^AUTTSA(",DIC(0)="QAZEML" D ^DIC
 G A0:$D(DUOUT)!($D(DTOUT))!($D(DLOUT))
 G ABEND:+Y<1 S DA=+Y,DR=".01;.02;.03",DIE=DIC D ^DIE
 G ALLOW
 ;
SUBSUB ;;ENTRY POINT
 K DIC,DIE,DIR,DR,DO S DIC="^AUTTSSA(",DIC(0)="QAZEML" D ^DIC
 G A0:$D(DUOUT)!($D(DTOUT))!($D(DLOUT))
 G ABEND:+Y<1 S DA=+Y,DR=".01;.02;.03;.04;.05;10;20;30",DIE=DIC D ^DIE
 G ALLOW
 ;
BUDGET ;;ENTRY POINT
 K DIC,DIE,DIR,DR,DO S DIC="^AUTTBA(",DIC(0)="QAZEML" D ^DIC
 G A0:$D(DUOUT)!($D(DTOUT))!($D(DLOUT))
 G ABEND:+Y<1 S DA=+Y,DR=".01;.02",DIE=DIC D ^DIE
 G ALLOW
 ;
ALLOW ;;ENTRY POINT
 K DIC,DIE,DIR,DR,DO S DIC="^AUTTALLW(",DIC(0)="QAZEML" D ^DIC
 G A0:$D(DUOUT)!($D(DTOUT))!($D(DLOUT))
 G ABEND:+Y<1 S DA=+Y,DR=".01;.03;.02",DIE=DIC D ^DIE
 G ALLOW
CAN ;;ENTRY POINT
 K DIC,DIE,DIR,DR,DO S DIC="^AUTTCAN(",DIC(0)="QAZEML" D ^DIC
 G A0:$D(DUOUT)!($D(DTOUT))!($D(DLOUT))
 G ABEND:+Y<1 S DA=+Y,DR=".01;.11;.04;.03;1;2;.05;.06;4;.17;.15;3",DIE=DIC D ^DIE
 G CAN
DREF ;;ENTRY POINT
 K DIC,DIE,DIR,DR,DO S DIC="^AUTTDOCR(",DIC(0)="QAZEML" D ^DIC
 G A0:$D(DUOUT)!($D(DTOUT))!($D(DLOUT))
 G ABEND:+Y<1 S DA=+Y,DR=".01;1;2;3;10",DIE=DIC D ^DIE
 G DREF
LOCAT ;;ENTRY POINT
 K DIC,DIE,DIR,DR,DO S DIC="^AUTTLCOD(",DIC(0)="QAZEML" D ^DIC
 G A0:$D(DUOUT)!($D(DTOUT))!($D(DLOUT))
 G ABEND:+Y<1 S DA=+Y,DR=".01;.02;.03;.04;1;2",DIE=DIC D ^DIE
 G LOCAT
OBJCL ;;ENTRY POINT
 K DIC,DIE,DIR,DR,DO S DIC="^AUTTOBJC(",DIC(0)="QAZEML" D ^DIC
 G A0:$D(DUOUT)!($D(DTOUT))!($D(DLOUT))
 G ABEND:+Y<1 S DA=+Y,DR=".01;3;.03;.03;.04;1",DIE=DIC D ^DIE
 G OBJCL
ABEND K DO,DA,DIC,DIE,DR,X,Y,Z G A0
ABEND2 K AFSOPT G A0
HDRM ;MAIN HEADER
 D ^XBCLS
 U IO(0) W !,?15
 F AFSI=1:1:50 W "*"
 W !,?15,@AFSRVON,"*    AREA OFFICE FINANCE TABLE UPDATE PROGRAMS   *",@AFSRVOF,!,?15
 F AFSI=1:1:50 W "*"
 W !
 Q
FINI ;
 K DO,DA,DIC,DIE,DR,X,Y,Z,AFSOPT
 Q