source: WorldVistAEHR/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCOSS2.m@ 1141

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

initial load of WorldVistAEHR

File size: 1.9 KB
Line 
1PRCOSS2 ;WISC/DJM-SSO Server Interface to IFCAP ;7/8/94 09:02
2V ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 Q
5EN1 ;CALLED FROM PRCPW MAIN MENU OPTION MENU ENTRY ACTION.
6 ;NOTIFY PPM THAT NEW ENTRIES SHOULD BE ADDED INTO FILE 445 FOR THE WAREHOUSE
7 I $O(^PRCF(423.6,"AD",0))>0 W $C(7),!!!,?3,"There are new GENERIC INVENTORY entries from ISMS SSO transaction to add",!,?3,"to the warehouse inventory." Q
8 Q
9DISP(PRCPZ) ;CALLED FROM ^PRCPEITO.
10 ;DISPLAY ALL ITEMS THAT ARE NOT IN THE WAREHOUSE INVENTORY LIST
11 Q:PRCPZ("DPTYPE")'="W" N HDR,NSN,NSNB,NSNC,SITE,X,X1,X2,Y,Y1,Y2
12 S SITE=+^PRCP(445,PRCP("I"),0),HDR="",X=0 F S X=$O(^PRCF(423.6,"AD",65,X)) Q:X'>0 S X1=^PRCF(423.6,X,1,10000,0) I $P(X1,U,3)=SITE D
13 .S Y=0 F S Y=$O(^PRCF(423.6,X,1,Y)) Q:Y'>0 S Y1=^(Y,0) I $P(Y1,U)="SL" D
14 ..S NSN=$P(Y1,U,2),NSN=$E(NSN,1,4)_"-"_$E(NSN,5,6)_"-"_$E(NSN,7,9)_"-"_$E(NSN,10,99),NSNB=$O(^PRC(441,"BB",NSN,0)),NSNC="" S:NSNB>0 NSNC=^PRC(441,NSNB,0) I NSNB>0 S Y2=$G(^PRCP(445,PRCP("I"),1,NSNB,0)) Q:Y2]""
15 ..D:HDR="" W !,"ITEM #: ",NSNB,?17,"ITEM DESCRIPTION: ",$P(NSNC,U,2) Q
16 ...S X2="New items from SSO transaction to add to Warehouse" W !,?(IOM-$L(X2))\2,X2,! S HDR=1 Q
17 W ! Q
18CHECK(PRCPZ) ;CALLED FROM ^PRCPEITO.
19 ;SINCE ALL THE ITEMS NEED NOT BE ENTERED INTO THE WAREHOUSE INVENTORY
20 ;LIST IN FILE 445, JUST TAKE OFF THE INVENTORY FLAG AND START UP THE
21 ;THIRD PART OF PRCOSSO - CREATE THE REPETITIVE ITEM LIST IN FILE 410.3.
22 Q:PRCPZ("DPTYPE")'="W" N %,D,DA,DI,DIC,DIE,DQ,DR,D0,PRCDA,SITE,X,X1,ZTDTH,ZTIO,ZTRTN,ZTSAVE,ZTSK
23 S SITE=+^PRCP(445,PRCP("I"),0),X=0 F S X=$O(^PRCF(423.6,"AD",65,X)) Q:X'>0 S X1=^PRCF(423.6,X,1,10000,0) I $P(X1,U,3)=SITE D
24 .S PRCDA=X,ZTSAVE("PRCDA")="",ZTSAVE("ZTREQ")="@",ZTRTN="SSO2^PRCOSS6",ZTDTH=$H,ZTIO="" D ^%ZTLOAD L +^PRCF(423.6,PRCDA,0) S DIE="^PRCF(423.6,",DA=PRCDA,DR="4///@;2///^S X=ZTSK" D ^DIE L -^PRCF(423.6,PRCDA,0)
25 .Q
26 Q
Note: See TracBrowser for help on using the repository browser.