source: WorldVistAEHR/trunk/r/ENGINEERING-EN/ENPRP.m@ 1361

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

initial load of WorldVistAEHR

File size: 1.8 KB
Line 
1ENPRP ;(WIRMFO)/DH/SAB-Project Progress Reports ;6/11/97
2 ;;7.0;ENGINEERING;**18,28**;Aug 17, 1993
3SINGLE ; Print one project (current reports only)
4 S DIC="^ENG(""PROJ"",",DIC(0)="AEQM" D ^DIC K DIC G:Y'>0 SINGLEX
5 S ENDA=+Y
6 S DIR(0)="S^1:FIRST PAGE;2:SECOND PAGE;B:BOTH PAGES"
7 S DIR("A")="PRINT WHICH PAGES:",DIR("B")="B"
8 D ^DIR K DIR G:$D(DIRUT) SINGLEX
9 S ENOPT=Y
10 S %ZIS="QM" D ^%ZIS G:POP SINGLEX
11 I $D(IO("Q")) D G SINGLEX
12 . S ZTDESC="Print Project Report (10-0051)",ZTRTN="SINGLEQ^ENPRP"
13 . S ZTSAVE("ENDA")="",ZTSAVE("ENOPT")=""
14 . D ^%ZTLOAD,HOME^%ZIS K ZTSK
15SINGLEQ ; Queued entry point for Display one project
16 U IO
17 S X="IOINLOW;IOINHI;IOINORM" D ENDR^%ZISS
18 S (END,ENPG)=0 S ENDT=$$FMTE^XLFDT($$NOW^XLFDT)
19 D ^ENPRP1
20 W IOINORM
21 D ^%ZISC
22 D KILL^%ZISS
23 I $D(ZTQUEUED) S ZTREQ="@" Q
24 I $E(IOST,1,2)="C-" G SINGLE
25SINGLEX ; Exit for Display one project
26 K DIROUT,DIRUT,DTOUT,DUOUT,X,Y
27 K END,ENDA,ENDT,ENOPT,ENPG
28 Q
29 ;
30ALL ;Print all projects (current reports)
31 S DIR(0)="S^1:FIRST PAGE;2:SECOND PAGE;B:BOTH PAGES"
32 S DIR("A")="PRINT WHICH PAGES:",DIR("B")="B"
33 D ^DIR K DIR G:$D(DIRUT) ALLX
34 S ENOPT=Y
35 S %ZIS="QM" D ^%ZIS Q:POP
36 I $D(IO("Q")) D G ALLX
37 . S ZTDESC="Print All Project Reports (10-0051)",ZTRTN="ALLQ^ENPRP"
38 . S ZTSAVE("ENOPT")=""
39 . D ^%ZTLOAD,HOME^%ZIS K ZTSK Q
40ALLQ ; Queued entry point for Display all projects
41 U IO
42 S X="IOINLOW;IOINHI;IOINORM" D ENDR^%ZISS
43 S (END,ENPG)=0 S ENDT=$$FMTE^XLFDT($$NOW^XLFDT)
44 S ENPN="" F S ENPN=$O(^ENG("PROJ","B",ENPN)) Q:ENPN="" D Q:END
45 . S ENDA=0 F S ENDA=$O(^ENG("PROJ","B",ENPN,ENDA)) Q:'ENDA D:$P($G(^ENG("PROJ",ENDA,0)),U,5)="Y" ^ENPRP1 Q:END
46 W IOINORM
47 I 'END,$E(IOST,1,2)="C-" S DIR(0)="E" D ^DIR K DIR
48 D ^%ZISC
49 D KILL^%ZISS
50 I $D(ZTQUEUED) S ZTREQ="@" Q
51ALLX ; Exit for Display all projects
52 K DIROUT,DIRUT,DTOUT,DUOUT,X,Y
53 K END,ENDA,ENDT,ENOPT,ENPG
54 Q
55 ;
56 ;ENPRP
Note: See TracBrowser for help on using the repository browser.