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

ENJINK.m

Go to the documentation of this file.
  1. ENJINK ;(WASH ISC)/JA-Screen Data Deletion ;5-29-91
  1. ;;7.0;ENGINEERING;;Aug 17, 1993
  1. I V(V)="" S X="" X DJCL W "No data entered",*7 Q
  1. I V(V)'="" S @$P(DJJ(V),U,2) X XY W @DJHIN X XY W V(V),@DJLIN
  1. ;I '$D(^DIC(DJDD,0,"DEL")) G KILL
  1. ;I DUZ(0)["@" G KILL
  1. ;I $D(^DD(DJDD,0,"DEL")),DUZ(0)[^DD(DJDD,0,"DEL") G KILL
  1. G KILL:$P(DJJ(V),U,3)'=.01,KILL:'$D(^DIC(DJDD,0,"DEL")) G KILL:DUZ(0)="@" I $D(^DIC(DJDD,0,"DEL")) G KILL:DUZ(0)[^("DEL")
  1. X DJCL W *7,@DJHIN,"NOT ALLOWED TO DELETE",@DJLIN S X=V(V) G HALT
  1. KILL I $D(^DD(DJDD,DJAT,8.5)),DUZ(0)'[^(8.5),DUZ(0)'="@" X DJCL W *7,@DJHIN,"NOT ALLOWED TO DELETE",@DJLIN S X=V(V) G HALT
  1. ILL I DJ4["R",$P(DJJ(V),U,3)'=.01 X DJCL W *7,@DJHIN,"REQUIRED <NOTHING DELETED>",@DJLIN S X=V(V) G HALT
  1. G N:$P(DJJ(V),U,3)'=.01 X DJCL W *7,"SURE YOU WANT TO DELETE?: NO//" R X:DTIME I X["Y" X DJCP S DY=22,DX=0 X XY W @DJEOP S DIE=DIC,DR=".01///@" D ^DIE G:'$D(DA) K S X=V(V) G HALT
  1. S X=V(V) G HALT
  1. N X DJCP X DJCL W *7,"SURE YOU WANT TO DELETE?: NO//" R X:DTIME I X["Y" X DJCP S DY=22,DX=0 X XY W @DJEOP S DIE=DIC,DR=DJAT_"///@" D ^DIE S X=$S(X'="":V(V),1:"@") Q
  1. S X=V(V) Q
  1. NXT S DJNN=$O(^DD(DJDD,DJAT,DJNN)) Q:DJNN="" I $D(^(DJNN,2)) S X=V(V) X ^(2) S X="@" G NXT
  1. K DJDN Q
  1. K I DJDPL'="DJ.DEF2" K V S V=0 G K1
  1. S V=5.9 F DJK=6:1:25 K V(DJK)
  1. K1 F DJK=0:0 S V=$O(DJJ(V)) Q:V="" S @$P(DJJ(V),U,2) X XY S $P(DJDB,".",DJJ(V))="." W DJDB K DJDB
  1. S V=0,X="@" K DJDN,DJK Q
  1. HALT I $D(^ENG(6910.9,DJN,1,$O(^ENG(6910.9,DJN,1,"A",V,0)),2)) R " Carriage return to continue",DJX:DTIME Q