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

ACGSTAR1.m

Go to the documentation of this file.
ACGSTAR1 ;IHS/OIRM/DSD/THL,AEF - ENTRY POINT FOR CONTRACT PROCESSING CONT'D; [ 03/27/2000   2:22 PM ]
 ;;2.0t1;CONTRACT INFORMATION SYSTEM;;FEB 16, 2000
 ;;ENTRY POINT FOR CONTRACT PROCESSING CONT'D
KILL ;EP;TO KILL ALL VARIABLES
 D KILL^ACGSKILL
 Q
KILL1 ;EP;TO KILL SELECTED VARIABLES
 D KILL1^ACGSKILL
 Q
VND ;EP;TO LOOK UP VENDOR
 S DIR(0)="SO^1:Contractor;2:Contract Number",DIR("A")="Which one"
 D DIR^ACGSDIC
 Q:$D(ACGQUIT)!(+Y<1)
 S ACG4=$P(ACGPARA,U,3)
 I ACG4=236 S DIC="^ACGS(",DIC(0)="AEMQZ",DIC("A")="Contract Number..........: ",DIC("S")="I $D(^ACGS(""C"",+Y))"
 E  I ACGY=1 S DIC="^AUTTVNDR(",DIC(0)="AEMQZ",DIC("A")="Contractor...............: "
 E  I ACGY=2 S DIC="^ACGS(",DIC(0)="AEMQZ",DIC("A")="Contract Number..........: ",DIC("S")="Q:""^15^17^""[(U_+^ACGS(+Y,""DT"")_U)  I $D(^ACGS(""C"",+Y))"
 W !
 D DIC^ACGSDIC
 I +Y<1!$D(ACGQUIT) K ACGQUIT Q
VND1 ;EP
 I $D(ACGVDA) S Y=ACGVDA
 S ACG4=$P(ACGPARA,U,3)
 I ACGY=2,ACG4'=236 Q:'$D(^ACGS(+Y,10))  S Y=+^ACGS(+Y,10)
 S:ACG4'=236 ACG5DA=+Y
 S:ACG4=236 ACG5DA=$P(^ACGS(+Y,"DT"),U,5)
 I ACG4'=236,'$D(^AUTTVNDR(+Y,0)) Q
 D:ACG4'=236 ^ACGSVITG
 Q:$D(ACGQUIT)
 D ^ACGSVCTR
 Q
VNDUP ;EP;TO UPDATE VENDOR CONTRACT DATA
 S:'$D(^AUTTVNDR(ACG5DA,"CN",0)) ^AUTTVNDR(ACG5DA,"CN",0)="^9999999.1112^^"
 S ACG(2)=$E($P(^ACGS(ACGRDA,"DT"),U,2),1,12)
 F ACG=1:1:5 S ACG(21+ACG)=$P(^ACGS(ACGRDA,"DT1"),U,ACG)
 S DA(1)=ACG5DA,(DIE,DIC)="^AUTTVNDR("_ACG5DA_",""CN"",",DR="1////"_ACG(24)_";2////"_ACG(25)_";3////"_ACG(26)_";4////"_$E(ACG(22),1,30)_";1005////"_ACG(23)_";6////"_ACGRDA
 I $D(ACGNEW),ACG1DA'=15,ACG1DA'=17 D
 .S DIC(0)="L",X=$E(ACG(2),1,9),DIC("DR")=DR
 .D FILE^ACGSDIC
 .S ACGCDA=+Y,DIE="^ACGS(",DA=ACGRDA,DR=".05////"_ACGCDA D DIE^ACGSDIC
 Q
INACT ;EP;TO INACTIVATE CONTRACT
 D VND^ACGSTAR1
 I $D(ACGQUIT)!'$D(ACGCNO) K ACGQUIT Q
 S DIR(0)="SO^1:ACTIVE;2:COMPLETED PHYSICALLY;3:COMPLETED ADMINISTRATIVELY",DIR("A")="Status Code",DIR("A",1)=" ",DIR("B")=$P(^ACGS(ACGCNO,"IHS"),U,22)
 W !!,"Change Status Code:"
 D DIR^ACGSDIC
 I $D(ACGQUIT)!(Y<1) K ACGQUIT Q
 S DA=ACGCNO,DIE="^ACGS(",DR="121////"_Y_$S(Y=2:";154T",Y=3:";155T",1:"")
 W !
 D DIE^ACGSDIC
 Q