[613] | 1 | ECDSXREF ;BIR/MAM,RHK-DSS M Cross References (Old Files) ;18 Apr 95
|
---|
| 2 | ;;2.0; EVENT CAPTURE ;;8 May 96
|
---|
| 3 | INACT ; kill 'AP' x-ref for inactivated code
|
---|
| 4 | S ECK=$P(^ECK(DA,0),"^"),ECLOC=$P(ECK,"-"),ECUNIT=$P(ECK,"-",2),ECCAT=$P(ECK,"-",3),ECPRO=$P(ECK,"-",4)
|
---|
| 5 | K ^ECK("AP",ECLOC,ECUNIT,ECCAT,ECPRO,DA),^ECK("APP",ECLOC,ECUNIT,ECPRO,DA)
|
---|
| 6 | K ECK,ECCAT,ECLOC,ECPRO,ECUNIT
|
---|
| 7 | Q
|
---|
| 8 | ACTIV ; set 'AP' x-ref when re-activated
|
---|
| 9 | Q:$D(ECCH) S ECK=$P(^ECK(DA,0),"^"),ECLOC=$P(ECK,"-"),ECUNIT=$P(ECK,"-",2),ECCAT=$P(ECK,"-",3),ECPRO=$P(ECK,"-",4)
|
---|
| 10 | S ^ECK("AP",ECLOC,ECUNIT,ECCAT,ECPRO,DA)="",^ECK("APP",ECLOC,ECUNIT,ECPRO,DA)=""
|
---|
| 11 | K ECK,ECCAT,ECLOC,ECPRO,ECUNIT
|
---|
| 12 | Q
|
---|
| 13 | AC ; set 'AC' x-ref on CATEGORY (Y/N) field in file 720
|
---|
| 14 | I X=1 S ^ECP("AC",$P(^ECP(DA,0),"^"),DA)=""
|
---|
| 15 | Q
|
---|
| 16 | KILLAC ; kill 'AC' x-ref on CATEGORY (Y/N) field in file 720
|
---|
| 17 | K ^ECP("AC",$P(^ECP(DA,0),"^"),DA)
|
---|
| 18 | Q
|
---|
| 19 | AP ; set 'AP' x-ref on EVENT CODE field in file 720.2
|
---|
| 20 | Q:$D(ECCH) Q:$P(^ECK(DA,0),"^",2) S ECK=$P(^ECK(DA,0),"^",1),ECLOC=$P(ECK,"-",1),ECUNIT=$P(ECK,"-",2),ECCAT=$P(ECK,"-",3),ECPRO=$P(ECK,"-",4)
|
---|
| 21 | S ^ECK("AP",ECLOC,ECUNIT,ECCAT,ECPRO,DA)="",^ECK("APP",ECLOC,ECUNIT,ECPRO,DA)=""
|
---|
| 22 | K ECLOC,ECUNIT,ECCAT,ECPRO,ECK
|
---|
| 23 | Q
|
---|
| 24 | KILLAP ; kill 'AP' x-ref on EVENT CODE field in file 720.2
|
---|
| 25 | S ECK=$P(^ECK(DA,0),"^",1),ECLOC=$P(ECK,"-",1),ECUNIT=$P(ECK,"-",2),ECCAT=$P(ECK,"-",3),ECPRO=$P(ECK,"-",4)
|
---|
| 26 | K ^ECK("AP",ECLOC,ECUNIT,ECCAT,ECPRO,DA),^ECK("APP",ECLOC,ECUNIT,ECPRO,DA),ECLOC,ECCAT,ECPRO,ECUNIT,ECK
|
---|
| 27 | Q
|
---|
| 28 | ACC ; set 'ACC' x-ref on COST CENTER field in file 49
|
---|
| 29 | S ^DIC(49,"ACC",+X,DA)=""
|
---|
| 30 | Q
|
---|
| 31 | KILLACC ; kill 'ACC' x-ref on COST CENTER field in file 49
|
---|
| 32 | K ^DIC(49,"ACC",+X,DA)
|
---|
| 33 | Q
|
---|
| 34 | AST ; set AST cross reference on .01 field of 720.2
|
---|
| 35 | S ECLOC=$P($P(^ECK(DA,0),"^"),"-"),^ECK("AST",ECLOC,DA)="" K ECLOC Q
|
---|
| 36 | ;
|
---|
| 37 | KAST ; kill AST cross reference on.01 field of 702.2
|
---|
| 38 | S ECLOC=$P($P(^ECK(DA,0),"^"),"-") K ^ECK("AST",ECLOC,DA),ECLOC Q
|
---|
| 39 | ;
|
---|
| 40 | QUIT R !,"Enter ^ to quit or return to continue : ",ECZ:DTIME W ! I '$T!(ECZ["^") S ECQT=1
|
---|
| 41 | Q
|
---|