source: FOIAVistA/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCPCROC.m@ 1572

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

initial load of FOIAVistA 6/30/08 version

File size: 2.0 KB
Line 
1PRCPCROC ;WISC/RFJ-operation code case cart link 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 ALLCARTS,X
6 K X S X(1)="The Operation Code-Case Cart Link Report will print a list of selected case carts displaying the operation codes linked to the case cart."
7 D DISPLAY^PRCPUX2(40,79,.X)
8 D CASECART^PRCPCRU1
9 I '$O(^TMP($J,"PRCPCARTS",0)),'$D(ALLCARTS) Q
10 W ! S %ZIS="Q" D ^%ZIS Q:POP I $D(IO("Q")) D D ^%ZTLOAD K IO("Q"),ZTSK D Q Q
11 . S ZTDESC="Operation Code-Case Cart Link Report",ZTRTN="DQ^PRCPCROC"
12 . S ZTSAVE("PRCP*")="",ZTSAVE("ALLCARTS")="",ZTSAVE("^TMP($J,""PRCPCARTS"",")="",ZTSAVE("ZTREQ")="@"
13 W !!,"<*> please wait <*>"
14DQ ; queue starts here
15 N %I,CCDATA,CCITEM,CCNAME,DATA,NOW,ONHAND,OPCODE,PAGE,PRCPFLAG,PRCPINNM,PRCPINPT,SCREEN,X,Y
16 D NOW^%DTC S Y=% D DD^%DT S NOW=Y,PAGE=1,SCREEN=$$SCRPAUSE^PRCPUREP U IO D H
17 I $D(ALLCARTS) S CCITEM=0 F S CCITEM=$O(^PRCP(445.7,CCITEM)) Q:'CCITEM!($G(PRCPFLAG)) D PRINT
18 ;
19 I '$D(ALLCARTS) S CCITEM=0 F S CCITEM=$O(^TMP($J,"PRCPCARTS",CCITEM)) Q:'CCITEM D PRINT
20 I '$G(PRCPFLAG) D END^PRCPUREP
21Q D ^%ZISC K ^TMP($J,"PRCPCARTS")
22 Q
23 ;
24 ;
25PRINT ; print a case cart operation code link
26 I $Y>(IOSL-6) D:SCREEN P^PRCPUREP Q:$D(PRCPFLAG) D H
27 S CCDATA=$G(^PRCP(445.7,CCITEM,0))
28 S PRCPINPT=+$P(CCDATA,"^",2),PRCPINNM=$$INVNAME^PRCPUX1(PRCPINPT)
29 S CCNAME=$$DESCR^PRCPUX1(PRCPINPT,CCITEM)
30 S ONHAND=$P($G(^PRCP(445,PRCPINPT,1,CCITEM,0)),"^",7)
31 W !!,$E(CCNAME,1,30),?32,CCITEM,?40,$E(PRCPINNM,1,20),?70,$J(ONHAND,10)
32 S OPCODE=0 F S OPCODE=$O(^PRCP(445.7,CCITEM,3,OPCODE)) Q:'OPCODE!($G(PRCPFLAG)) S DATA=$G(^(OPCODE,0)) D
33 . W !?5,OPCODE,?12,$P($$ICPT^PRCPCUT1(OPCODE),"^",2)
34 . I $Y>(IOSL-4) D:SCREEN P^PRCPUREP Q:$D(PRCPFLAG) D H
35 Q
36 ;
37 ;
38H S %=NOW_" PAGE "_PAGE,PAGE=PAGE+1 I PAGE'=2!(SCREEN) W @IOF
39 W $C(13),"OPERATION CODE-CASE CART LINK REPORT",?(80-$L(%)),%
40 S %="",$P(%,"-",81)=""
41 W !,"DESCRIPTION",?32,"MI#",?40,"ORDER FROM INV PT",?70,$J("QTY ONHAND",10),!,%
42 Q
Note: See TracBrowser for help on using the repository browser.