1 | TIUFX ; SLC/MAM - LM Screen X (Boilerplate Text) INIT, DS/BOILTX ;10/26/95 15:35
|
---|
2 | ;;1.0;TEXT INTEGRATION UTILITIES;;Jun 20, 1997
|
---|
3 | ;
|
---|
4 | HDR ; -- header code
|
---|
5 | S VALMHDR(1)=$$FHDR
|
---|
6 | HDRX ;
|
---|
7 | Q
|
---|
8 | ;
|
---|
9 | FHDR() ; Function returns Type_Name for headers; Requires Array TIUFNOD0.
|
---|
10 | N NAME,TYPE
|
---|
11 | S NAME=$P(TIUFNOD0,U)
|
---|
12 | S TYPE=$$MIXED^TIULS(TIUFNOD0("TYPE"))
|
---|
13 | I TYPE'="" S TYPE=TYPE_" "
|
---|
14 | Q $$CENTER^TIUFL(TYPE_NAME,79)
|
---|
15 | ;
|
---|
16 | INIT ; -- init variables and list array
|
---|
17 | N TEMPLATE
|
---|
18 | K ^TMP("TIUF3",$J),^TMP("TIUF3IDX",$J)
|
---|
19 | D CLEAN^VALM10
|
---|
20 | S VALMCNT=0 D DSBOILTX^TIUFD(.VALMCNT)
|
---|
21 | INITX I $D(DTOUT) S VALMQUIT=1
|
---|
22 | Q
|
---|
23 | ;
|
---|
24 | STATUS ; Action Status for Subtemplate X Boilerplate Text
|
---|
25 | N FILEDA,PFILEDA,FIELDS,DTOUT,DIRUT,DIROUT
|
---|
26 | S VALMBCK=""
|
---|
27 | S FILEDA=$P(TIUFINFO,U,2),PFILEDA=+$O(^TIU(8925.1,"AD",FILEDA,0)),FIELDS=";.07;"
|
---|
28 | L +^TIU(8925.1,FILEDA):1 I '$T W !!," Another user is editing this entry.",! H 2 G STATX
|
---|
29 | D ASKFLDS^TIUFLF1(FILEDA,FIELDS,PFILEDA)
|
---|
30 | D NODE0ARR^TIUFLF(FILEDA,.TIUFNOD0) G:$D(DTOUT) STATX
|
---|
31 | STATX ;
|
---|
32 | L -^TIU(8925.1,+$G(FILEDA))
|
---|
33 | I $D(DTOUT) S VALMBCK="Q"
|
---|
34 | I $G(TIUFFULL) S VALMBCK="R" D RESET^TIUFXHLX
|
---|
35 | Q
|
---|
36 | ;
|
---|
37 | EXIT ; -- Exit Code for LM Template X
|
---|
38 | N NEWSTAT,NEWHASBT,CNTCHNG,LINENO
|
---|
39 | I TIUFTMPL="A" D ; Update line if no new status and yes new boil and Type is Title
|
---|
40 | . S NEWSTAT=$S(TIUFNOD0("STATUS")'=TIUFXSTA:1,1:0)
|
---|
41 | . S NEWHASBT=$S(TIUFNOD0("BOILPT")'=TIUFXBT:1,1:0)
|
---|
42 | . I 'NEWSTAT,NEWHASBT,(TIUFNOD0("TYPE")="TITLE") D AUPDATE^TIUFLA1(TIUFNOD0,FILEDA,.CNTCHNG) S:CNTCHNG TIUFVCN1=TIUFVCN1-1 ;doesn't match.
|
---|
43 | . I NEWSTAT!(NEWHASBT&(TIUFNOD0("TYPE")="COMPONENT")) S TIUFREDO=1 ; One new status affects status globally. One new CO Boilerplate Text affects Has Boil globally.
|
---|
44 | ; Update entry itself in TIUFTMPL; entry will be reexpanded when leave EV:
|
---|
45 | I "HC"[TIUFTMPL D LINEUP^TIUFLLM1(.TIUFINFO,TIUFTMPL)
|
---|
46 | K ^TMP("TIUF3",$J),^TMP("TIUFB",$J),^TMP("TIUF3IDX",$J),^TMP("TIUFBIDX",$J)
|
---|
47 | Q
|
---|