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

FBAACFE.m

Go to the documentation of this file.
  1. FBAACFE ;WOIFO/SAB - CONTRACT FILE ENTER/EDIT ;9/24/2009
  1. ;;3.5;FEE BASIS;**108,163**;JAN 30, 1995;Build 21
  1. ;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. N DA,DIC,DIDEL,DR,DLAYGO,DTOUT,DUOUT,X,Y
  1. N FBCNTRN,FBDA,FBNEW,FBX
  1. ;
  1. SEL ; add/select
  1. S DIC="^FBAA(161.43,",DIC(0)="AQELM",DLAYGO=161.43
  1. S DIC("A")="Select FEE BASIS CONTRACT NUMBER: "
  1. D ^DIC K DIC
  1. I Y<0 G END
  1. S (DA,FBDA)=+Y
  1. S FBCNTRN=$P(Y,"^",2)
  1. S FBNEW=+$P(Y,"^",3)
  1. ;
  1. ; lock
  1. L +^FBAA(161.43,FBDA):$S($D(DILOCKTM):DILOCKTM,1:5) I '$T D G SEL
  1. . W $C(7),!,"Record being edited by someone else. Try later.",!
  1. ;
  1. ; edit
  1. S DIE="^FBAA(161.43,"
  1. I 'FBNEW,$$CNTRPTR^FBUTL7(DA) D
  1. . S FBX="CONTRACT NUMBER: "_FBCNTRN_" (referenced, no editing)"
  1. . S DR="W !,FBX;1:5"
  1. E S DR=".01:5" ; FB*3.5*163 - Added fields 4 and 5 for CHOICE Program Indicator
  1. S DIDEL=161.43
  1. S DIE("NO^")="BACK"
  1. D ^DIE K DIE,DIDEL,DR
  1. I $D(DTOUT) G END
  1. ;
  1. ; unlock
  1. L -^FBAA(161.43,FBDA)
  1. ;
  1. ; repeat
  1. W !
  1. G SEL
  1. ;
  1. END ; exit
  1. Q