source: FOIAVistA/trunk/r/NURSING_SERVICE-NUR/NURA5B.m@ 1154

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

initial load of FOIAVistA 6/30/08 version

File size: 1.2 KB
Line 
1NURA5B ;HIRMFO/PC,RM,JH,MD,FT-INDIVIDUAL SALARY REPORTS ;5/7/96 10:57
2 ;;4.0;NURSING SERVICE;;Apr 25, 1997
3 Q:'$D(^DIC(213.9,1,"OFF")) Q:$P(^DIC(213.9,1,"OFF"),"^",1)=1
4 W !
5 S (NUROUT,NURQUEUE)=0
6 D EN1^NURSAUTL G QUIT:NUROUT
7 S DIC("S")="I +$$EN6^NURSUT3($G(Y))"
8 D EN3^NURSAGP1 G QUIT:NUROUT
9 W ! S ZTRTN="START^NURA5B" D EN7^NURSUT0 G:POP!($D(ZTSK)) QUIT
10START ;
11 K ^TMP($J)
12 U IO S (NURPAGE,NURSW1,NUROUT)=0 D HEADER,PRINT
13QUIT K ^TMP($J) D CLOSE^NURSUT1,^NURAKILL
14 Q
15 ; DETAIL LINE PRINT ROUTINE
16PRINT I $D(^NURSF(210,N1,0)) D WRITE Q
17 E W !?5," NO RECORD FOUND FOR THIS EMPLOYEE " Q
18WRITE I ($Y>(IOSL-6)) D HEADER Q:NUROUT
19 S NURSW1=1
20 W:N2'="" !,$E($P(^VA(200,N2,0),"^",1),1,20)
21 I $D(^NURSF(210,N1,7)) S NDATA=^(7) I $D(^NURSF(211.1,+NDATA,0)) S NDATA(1)=^(0) W:$P(NDATA(1),"^")'="" ?40,$P(NDATA(1),"^")
22 S DA=N1,NURSAL=+$$EN12^NURSUT0(DA) W:+$G(NURSAL) ?61,$J(NURSAL,6,2)
23 Q
24HEADER I 'NURQUEUE,$E(IOST)="C",NURSW1 D ENDPG^NURSUT1 Q:NUROUT
25 S NURPAGE=NURPAGE+1 W:$E(IOST)="C"!(NURPAGE>1) @IOF
26 W !!,"NURSING SERVICE STAFF SALARIES" S X="T" D ^%DT D:+Y D^DIQ W ?44,Y,?59,"PAGE: ",NURPAGE
27 W !!,?40,"GRADE/STEP",?61,"GRADE/STEP" W !,"NAME",?40,"CODE",?61,"SALARY" W !,$$REPEAT^XLFSTR("-",80)
28 W ! Q
Note: See TracBrowser for help on using the repository browser.