source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/OCXSEND7.m@ 771

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

revised back to 6/30/08 version

File size: 3.6 KB
Line 
1OCXSEND7 ;SLC/RJS,CLA - BUILD RULE TRANSPORTER ROUTINES (Build Library Routine 3) ;1/31/01 11:07
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32,96,105**;Dec 17,1997
3 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
4 ;
5EN() ;
6 ;
7 N R,LINE,TEXT,NOW,RUCI,XCM
8 S NOW=$$NOW^OCXSEND3,RUCI=$$NETNAME^OCXSEND
9 F LINE=1:1:999 S TEXT=$P($T(TEXT+LINE),";",2,999) Q:TEXT S TEXT=$P(TEXT,";",2,999) S R(LINE,0)=$$CONV^OCXSEND3(TEXT)
10 ;
11 M ^TMP("OCXSEND",$J,"RTN")=R
12 ;
13 S DIE="^TMP(""OCXSEND"","_$J_",""RTN"",",XCN=0,X=$$RNAME^OCXSEND3(3,1)
14 W !,X X ^%ZOSF("SAVE") W " ... ",XCM," Lines filed" K ^TMP("OCXSEND",$J,"RTN")
15 ;
16 Q XCM
17 ;
18TEXT ;
19 ;;|$$RNAME^OCXSEND3(3,1)| ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE |OCXPATCH| ;|NOW|
20 ;;|OCXLIN2|
21 ;;|OCXLIN3|
22 ;; ;
23 ;;S ;
24 ;; ; Multiple Utilities
25 ;; Q
26 ;; ;
27 ;;ADDMULT(OCXCREF,OCXDD,OCXFLD) ;
28 ;; ;
29 ;; ;
30 ;; N QUIT,OCXDA,OCXGREF,OCXNAME,DDPATH,INDEX
31 ;; ;
32 ;; S DDPATH=$P($P($$APPEND($$APPEND(OCXCREF,OCXDD),OCXFLD),"(",2),")",1)
33 ;; F INDEX=1:1:$L(DDPATH,",") S OCXDA($L(DDPATH,",")-INDEX)=+$P($P(DDPATH,",",INDEX),":",2)
34 ;; S OCXDA=$G(OCXDA(0)) K OCXDA(0)
35 ;; ;
36 ;; Q:(OCXFLAG["D") 0
37 ;; I (OCXFLAG["A") S QUIT=$$READ("Y"," Do you want to add a local '"_$$FILENAME^OCXSENDD(+OCXFLD)_"' multiple ?","YES") Q:'QUIT (QUIT[U)
38 ;; ;
39 ;; S OCXGREF=$$GETREF^|$$RNAME^OCXSEND3(2,1)|(+OCXFLD,.OCXDA,1)
40 ;; D CREATE($$APPEND(OCXCREF,OCXDD),OCXFLD,.OCXDA,1)
41 ;; ;
42 ;; Q 0
43 ;; ;
44 ;;DELMULT(OCXCREF,OCXDD) ;
45 ;; ;
46 ;; N QUIT,OCXGREF,DA,INDEX,DDPATH
47 ;; ;
48 ;; Q:(OCXFLAG["D") 0
49 ;; I (OCXFLAG["A") S QUIT=$$READ("Y"," Do you want to delete the local '"_$$FILENAME^OCXSENDD(+OCXDD)_"' multiple ?","YES") Q:'QUIT (QUIT[U)
50 ;; ;
51 ;; S DDPATH=$P($P($$APPEND(OCXCREF,OCXDD),"(",2),")",1)
52 ;; F INDEX=1:1:$L(DDPATH,",") S DA($L(DDPATH,",")-INDEX)=+$P($P(DDPATH,",",INDEX),":",2)
53 ;; S DA=$G(DA(0)) K DA(0)
54 ;; S OCXGREF=$$GETREF^|$$RNAME^OCXSEND3(2,1)|(+OCXDD,.DA,1)
55 ;; ;
56 ;; D DIE^|$$RNAME^OCXSEND3(2,1)|(+OCXDD,OCXGREF,.01,"@",.DA,$L(DDPATH,",")-1)
57 ;; K @OCXCREF@(OCXDD) W !!," deleted..."
58 ;; ;
59 ;; Q 0
60 ;; ;
61 ;;CREATE(OCXCREF,OCXDD,OCXDA,OCXLVL) ;
62 ;; ;
63 ;; N OCXFLD,OCXGREF
64 ;; ;
65 ;; S OCXGREF=$$GETREF^|$$RNAME^OCXSEND3(2,1)|(+OCXDD,.OCXDA,OCXLVL) Q:'$L(OCXGREF) S:'OCXDA OCXDA=$O(@(OCXGREF_"""@"")"),-1)+1
66 ;; ;
67 ;; I '$D(@(OCXGREF_"0)")) S @(OCXGREF_"0)")=U_$$FILEHDR^OCXSENDD(+OCXDD)_U_U
68 ;; ;
69 ;; S OCXFLD=0 F S OCXFLD=$O(@OCXCREF@(OCXDD,OCXFLD)) Q:'OCXFLD Q:(OCXFLD[":") I '$$EXFLD^|$$RNAME^OCXSEND3(1,1)|(+OCXDD,OCXFLD) D
70 ;; .I $L($G(@OCXCREF@(OCXDD,OCXFLD,"E"))) D DIE^|$$RNAME^OCXSEND3(2,1)|(OCXDD,OCXGREF,OCXFLD,@OCXCREF@(OCXDD,OCXFLD,"E"),.OCXDA,OCXLVL)
71 ;; ;
72 ;; D PUSH(.OCXDA)
73 ;; S OCXFLD="" F S OCXFLD=$O(@OCXCREF@(OCXDD,OCXFLD)) Q:'$L(OCXFLD) I (OCXFLD[":") D
74 ;; .S OCXDA=$P(OCXFLD,":",2) W ! D CREATE($$APPEND(OCXCREF,OCXDD),OCXFLD,.OCXDA,OCXLVL+1)
75 ;; D POP(.OCXDA)
76 ;; Q
77 ;; ;
78 ;;PUSH(OCXDA) ;
79 ;; N OCXSUB S OCXSUB="" F S OCXSUB=$O(OCXDA(OCXSUB),-1) Q:'OCXSUB S OCXDA(OCXSUB+1)=OCXDA(OCXSUB)
80 ;; S OCXDA(1)=OCXDA,OCXDA=0
81 ;; Q
82 ;; ;
83 ;;POP(OCXDA) ;
84 ;; N OCXSUB S OCXSUB="" F S OCXSUB=$O(OCXDA(OCXSUB)) Q:'OCXSUB S OCXDA(OCXSUB)=$G(OCXDA(OCXSUB+1))
85 ;; S OCXDA=OCXDA(1) K OCXDA($O(OCXDA(""),-1))
86 ;; Q
87 ;; ;
88 ;;APPEND(ARRAY,OCXSUB) ;
89 ;; S:'(OCXSUB=+OCXSUB) OCXSUB=""""_OCXSUB_""""
90 ;; Q:'(ARRAY["(") ARRAY_"("_OCXSUB_")"
91 ;; Q $E(ARRAY,1,$L(ARRAY)-1)_","_OCXSUB_")"
92 ;; ;
93 ;;READ(OCXZ0,OCXZA,OCXZB,OCXZL) ;
94 ;; N OCXLINE,DIR,DTOUT,DUOUT,DIRUT,DIROUT
95 ;; Q:'$L($G(OCXZ0)) U
96 ;; S DIR(0)=OCXZ0
97 ;; S:$L($G(OCXZA)) DIR("A")=OCXZA
98 ;; S:$L($G(OCXZB)) DIR("B")=OCXZB
99 ;; F OCXLINE=1:1:($G(OCXZL)-1) W !
100 ;; D ^DIR
101 ;; I $D(DTOUT)!$D(DUOUT)!$D(DIRUT)!$D(DIROUT) Q U
102 ;; Q Y
103 ;; ;
104 ;;PAUSE() W " Press Enter " R X:DTIME W ! Q (X[U)
105 ;; ;
106 ;;$
107 ;1;
108 ;
Note: See TracBrowser for help on using the repository browser.