source: FOIAVistA/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGEN408T.m@ 1169

Last change on this file since 1169 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 2.6 KB
Line 
1DGEN408T ;ALB/SCK - IVMB SEED THE HEC WITH MPI POST INSTALL ; 5/1/02 12:58pm
2 ;;5.3;Registration;**408**;Aug 13,1993
3 Q
4 ;
5EN ; Main entry point to populate the IVMB HEC MPI NOTIFICATION mail
6 ; group. This routine is run as the post-install routine to patch
7 ; DG*5.3*408
8 ;
9 N X,Y,DIR,DIRUT,DUOUT,MGIEN,DIC
10 ;
11 W !!,?11,"*** SETUP MEMBERS OF HEC MPI NOTIFICATION MAIL GROUP ***",!!
12 S DIC=3.8
13 S DIC(0)="MZ"
14 S X="IVMB HEC MPI NOTIFICATION"
15 D ^DIC K DIC
16 I '(+Y>0) D Q
17 . W !!?5,*7,"Apparently the IVMB HEC MPI NOTIFICATION mail group was not"
18 . W !?5,"created or set up correctly by the DG*5.3*408 patch installation."
19 . W !?5,"You will need to either create this mail group, or contact Cutomer"
20 . W !?5,"Service for assistance."
21 ;
22 S MGIEN=+Y
23 ;
24 D LOCAL(MGIEN)
25 ;
26 W !
27 S DIR(0)="YAO",DIR("B")="NO"
28 S DIR("A")="Do you wish to enter any remote members? "
29 S DIR("?",1)="Enter 'Yes' to add remote members to the mail group"
30 S DIR("?")="Enter 'No' or Press the ENTER key to quit"
31 D ^DIR K DIR
32 Q:'Y!($D(DIRUT))!($D(DUOUT))
33 W !
34 ;
35 D REMOTE
36 ;
37 Q
38 ;
39LOCAL(MGIEN) ; Add local members to mail group
40 N I,ABORT,XMY
41 ;
42 F I=1:1 Q:$G(ABORT) D
43 . S DIR(0)="POA^200:EMZ"
44 . S DIR("A")="Select member to add to mail group: "
45 . S DIR("?",1)="Select a member to add to the IVMB HEC MPI NOTIFICATION mail group"
46 . S DIR("?")="as a local member."
47 . D ^DIR K DIR
48 . I $D(DIRUT)!($D(DUOUT)) S ABORT=1 Q
49 . S XMY(+Y)=""
50 . ;
51 . S DIR(0)="YA",DIR("B")="NO"
52 . S DIR("A")="Add another member? "
53 . S DIR("?")="'Yes' to add another local member, 'No' for no more entries"
54 . D ^DIR K DIR
55 . Q:$D(DIRUT)!($D(DUOUT))
56 . S:'Y ABORT=1
57 ;
58 I $$MG^XMBGRP(MGIEN,"","","",.XMY,"",0)
59 ;
60 Q
61 ;
62REMOTE ; Add remote members to mail group
63 N I,ABORT,ZFDA,CNT,ZMSG,I1
64 ;
65 S CNT=2
66 F I=1:1 Q:$G(ABORT) D
67 . S DIR(0)="FOA"
68 . S DIR("A")="Enter a remote address: "
69 . S DIR("?",1)="Enter a remote address (name@domain) or local device (D.device) or"
70 . S DIR("?",2)="local server (S.device). This is free text, validated remote address"
71 . S DIR("?")="or local device or server"
72 . D ^DIR K DIR
73 . I $D(DIRUT)!($D(DUOUT)) S ABORT=1 Q
74 . S ZFDA(3.812,"+"_CNT_",?1,",.01)=Y
75 . S CNT=CNT+1
76 . ;
77 . S DIR(0)="YA",DIR("B")="NO"
78 . S DIR("A")="Add another remote member? "
79 . S DIR("?")="'Yes' to add another remote member, 'No' for no more entries."
80 . D ^DIR K DIR
81 . Q:$D(DIRUT)!($D(DUOUT))
82 . S:'Y ABORT=1
83 S ZFDA(3.8,"?1,",.01)="IVMB HEC MPI NOTIFICATION"
84 D UPDATE^DIE("","ZFDA","","ZMSG")
85 ;
86 I $D(ZMSG) D
87 . S I=0
88 . F S I=$O(ZMSG("DIERR",I)) Q:'I D
89 . . W !!?3,"Error: "_ZMSG("DIERR",I)
90 . . S I1=0
91 . . F S I1=$O(ZMSG("DIERR",I,"TEXT",I1)) Q:'I1 D
92 . . . W !?3,ZMSG("DIERR",I,"TEXT",I1)
93 ;
94 Q
Note: See TracBrowser for help on using the repository browser.