source: WorldVistAEHR/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCPCRLO.m@ 762

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

initial load of WorldVistAEHR

File size: 2.2 KB
Line 
1PRCPCRLO ;WISC/RFJ-specific item or ik locator report ;01 Sep 93
2 ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 D ^PRCPUSEL Q:'$G(PRCP("I"))
5 N ITEMDA,X
6 K X S X(1)="The Specific Item Or Instrument Kit Locator Report will print which case carts contain a specified item or instrument kit AND which instrument kits contain a specified item."
7 D DISPLAY^PRCPUX2(40,79,.X)
8 S ITEMDA=$$MASTITEM^PRCPUITM("I '$D(^PRCP(445.7,+Y,0))") I 'ITEMDA Q
9 W ! S %ZIS="Q" D ^%ZIS Q:POP I $D(IO("Q")) D D ^%ZTLOAD K IO("Q"),ZTSK D Q Q
10 . S ZTDESC="Specific Item Or Instrument Kit Locator Report",ZTRTN="DQ^PRCPCRLO"
11 . S ZTSAVE("PRCP*")="",ZTSAVE("ITEMDA")="",ZTSAVE("ZTREQ")="@"
12 W !!,"<*> please wait <*>"
13DQ ; queue starts here
14 N %,%I,CCITEM,DATA,IKITEM,ITEMDESC,NOW,PAGE,PRCPFLAG,QTY,SCREEN,UNITS,X,Y
15 S ITEMDESC=$$DESCR^PRCPUX1(PRCP("I"),ITEMDA),QTY=+$P($G(^PRCP(445,PRCP("I"),1,ITEMDA,0)),"^",7),UNITS=$$UNIT^PRCPUX1(PRCP("I"),ITEMDA,"/")
16 D NOW^%DTC S Y=% D DD^%DT S NOW=Y,PAGE=1,SCREEN=$$SCRPAUSE^PRCPUREP U IO D H
17 S CCITEM=0 F S CCITEM=$O(^PRCP(445.7,"AI",ITEMDA,CCITEM)) Q:'CCITEM!($G(PRCPFLAG)) S DATA=$G(^PRCP(445.7,CCITEM,1,ITEMDA,0)) I DATA'="" D
18 . W !,"CC ITEM # ",CCITEM,?20,$E($$DESCR^PRCPUX1(PRCP("I"),CCITEM),1,28),?50,$E($$INVNAME^PRCPUX1(+$P(^PRCP(445.7,CCITEM,0),"^",2)),1,18),?70,$J($P(DATA,"^",2),10)
19 . I $Y>(IOSL-4) D:SCREEN P^PRCPUREP Q:$D(PRCPFLAG) D H
20 I $G(PRCPFLAG) D Q Q
21 S IKITEM=0 F S IKITEM=$O(^PRCP(445.8,"AI",ITEMDA,IKITEM)) Q:'IKITEM!($G(PRCPFLAG)) S DATA=$G(^PRCP(445.8,IKITEM,1,ITEMDA,0)) I DATA'="" D
22 . W !,"IK ITEM # ",IKITEM,?20,$E($$DESCR^PRCPUX1(PRCP("I"),IKITEM),1,28),?50,$E($$INVNAME^PRCPUX1(+$P(^PRCP(445.8,IKITEM,0),"^",2)),1,18),?70,$J($P(DATA,"^",2),10)
23 . I $Y>(IOSL-4) D:SCREEN P^PRCPUREP Q:$D(PRCPFLAG) D H
24 I $G(PRCPFLAG) D Q Q
25 D END^PRCPUREP
26Q D ^%ZISC
27 Q
28 ;
29 ;
30H S %=NOW_" PAGE "_PAGE,PAGE=PAGE+1 I PAGE'=2!(SCREEN) W @IOF
31 W $C(13),"SPECIFIC ITEM OR INSTRUMENT KIT LOCATOR REPORT ",?(80-$L(%)),%
32 S %="",$P(%,"-",81)=""
33 W !?5,"FOR: ",PRCP("IN")
34 W !?4,"ITEM: ",$E(ITEMDESC,1,20),?32,"CURRENT QTY ON-HAND: ",QTY," ",UNITS
35 W !,"CASE CART OR INSTRUMENT KIT",?50,"CREATED BY",?70,$J("QTY NEEDED",10),!,%
36 Q
Note: See TracBrowser for help on using the repository browser.