ENPLS1 ;(WASH ISC)/SAB-DETERMINE PROJECTS ON FYFP ;5/24/95 ;;7.0;ENGINEERING;**23**;Aug 17, 1993 FYFP(ENSN,ENFY,ENFYB,ENFYE,ENDV,ENRET) ; Five Year Facility Plan Projects ; Selects construction and lease projects which are part of the FYFP ; based on station, funding years, division, and status. ; ; required ; ENSN - station number ; ENFY - current year of FYFP (budget year - 1) ; optional ; ENBYB - beginning offset from current year (default 0) ; ENBYE - ending offset from current year (default F) ; ENDV - division screen or * for all (default *) ; ENRET - contains array code(s) to return (default L) ; L return projects by number ; ^TMP($J,"L")=count^current year of FYFP ; ^TMP($J,"L",number)=ien ; Y return projects in fiscal year format ; ^TMP($J,"Y",fiscal year or "F",program,number) ; =ien^a/e this year^const this year ; E return projects with equipment over $250K ; ^TMP($J,"E",program,fiscal year,number)=ien N ENC,ENDA,ENIDX,ENPN,ENPR,ENPY,ENSTAT,ENSTC,ENSTL,ENX,ENY0,ENYR S:$G(ENFYB)="" ENFYB=0 S:$G(ENFYE)="" ENFYE="F" S:$G(ENDV)="" ENDV="*" S:$G(ENRET)="" ENRET="L" I ENRET["L" K ^TMP($J,"L") S ENC=0 I ENRET["Y" K ^TMP($J,"Y") I ENRET["E" K ^TMP($J,"E") Q:$G(ENSN)="" Q:$G(ENFY)="" I ENFYB="F",ENFYE'="F" Q I ENFYE'="F",ENFYB>ENFYE Q ; find current and plan year projects I ENFYB'="F" F ENYR=ENFY+ENFYB:1:ENFY+$S(ENFYE="F":5,1:ENFYE) D . S ENPY=ENYR . S ENSTC=$S(ENFY=ENYR:";6;8;9;10;11;12;13;14;15;",ENFY