Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: FSCQSW

FSCQSW.m

Go to the documentation of this file.
  1. FSCQSW ;SLC/STAFF-NOIS Query Search Word-Processing ;8/8/98 22:10
  1. ;;1.1;NOIS;;Sep 06, 1998
  1. ;
  1. CON ; from FSCQS
  1. I FIELD=59 D PCON Q
  1. N CALL,SUB,SUBNUM
  1. S SUB=$S(FIELD=12:30,FIELD=13:50,FIELD=43:110,FIELD=54:103,FIELD=14:80,1:0) Q:'SUB
  1. S VALUE=$$UP^XLFSTR(VALUE)
  1. I LIST=1!(LIST=0) D Q
  1. .S CALL=0 F S CALL=$O(^TMP("FSC USELIST",$J,CALL)) Q:CALL<1 D
  1. ..S SUBNUM=0 F S SUBNUM=$O(^FSCD("CALL",CALL,SUB,SUBNUM)) Q:SUBNUM<1 I $$UP^XLFSTR($G(^(SUBNUM,0)))[VALUE X ACTION Q
  1. I LIST="" D Q
  1. .S CALL=0 F S CALL=$O(^FSCD("CALL",CALL)) Q:CALL<1 D
  1. ..S SUBNUM=0 F S SUBNUM=$O(^FSCD("CALL",CALL,SUB,SUBNUM)) Q:SUBNUM<1 I $$UP^XLFSTR($G(^(SUBNUM,0)))[VALUE X ACTION Q
  1. Q
  1. ;
  1. NCON ; from FSCQS
  1. I FIELD=59 D PNCON Q
  1. N CALL,OK,SUB,SUBNUM
  1. S SUB=$S(FIELD=12:30,FIELD=13:50,FIELD=43:110,FIELD=54:103,FIELD=14:80,1:0) Q:'SUB
  1. S VALUE=$$UP^XLFSTR(VALUE)
  1. I LIST=1!(LIST=0) D Q
  1. .S CALL=0 F S CALL=$O(^TMP("FSC USELIST",$J,CALL)) Q:CALL<1 D
  1. ..I '$O(^FSCD("CALL",CALL,SUB,0)) Q
  1. ..S (OK,SUBNUM)=0 F S SUBNUM=$O(^FSCD("CALL",CALL,SUB,SUBNUM)) Q:SUBNUM<1 I $$UP^XLFSTR($G(^(SUBNUM,0)))[VALUE S OK=1 Q
  1. ..I 'OK X ACTION
  1. I LIST="" D Q
  1. .S CALL=0 F S CALL=$O(^FSCD("CALL",CALL)) Q:CALL<1 D
  1. ..I '$O(^FSCD("CALL",CALL,SUB,0)) Q
  1. ..S (OK,SUBNUM)=0 F S SUBNUM=$O(^FSCD("CALL",CALL,SUB,SUBNUM)) Q:SUBNUM<1 I $$UP^XLFSTR($G(^(SUBNUM,0)))[VALUE S OK=1 Q
  1. ..I 'OK X ACTION
  1. Q
  1. ;
  1. EX ; from FSCQS
  1. I FIELD=59 D PEX Q
  1. N CALL,SUB
  1. S SUB=$S(FIELD=12:30,FIELD=13:50,FIELD=43:110,FIELD=54:103,FIELD=14:80,1:0) Q:'SUB
  1. I LIST=1!(LIST=0) D Q
  1. .S CALL=0 F S CALL=$O(^TMP("FSC USELIST",$J,CALL)) Q:CALL<1 D
  1. ..I $O(^FSCD("CALL",CALL,SUB,0)) X ACTION
  1. I LIST="" D Q
  1. .S CALL=0 F S CALL=$O(^FSCD("CALL",CALL)) Q:CALL<1 I $O(^(CALL,SUB,0)) X ACTION
  1. Q
  1. ;
  1. NEX ; from FSCQS
  1. I FIELD=59 D PNEX Q
  1. N CALL,SUB
  1. S SUB=$S(FIELD=12:30,FIELD=13:50,FIELD=43:110,FIELD=54:103,FIELD=14:80,1:0) Q:'SUB
  1. I LIST=1!(LIST=0) D Q
  1. .S CALL=0 F S CALL=$O(^TMP("FSC USELIST",$J,CALL)) Q:CALL<1 D
  1. ..I '$O(^FSCD("CALL",CALL,SUB,0)) X ACTION
  1. I LIST="" D Q
  1. .S CALL=0 F S CALL=$O(^FSCD("CALL",CALL)) Q:CALL<1 I '$O(^(CALL,SUB,0)) X ACTION
  1. Q
  1. PCON ;
  1. N CALL,IEN,SUB,SUBNUM
  1. S SUB=2
  1. S VALUE=$$UP^XLFSTR(VALUE)
  1. I LIST=1!(LIST=0) D Q
  1. .S CALL=0 F S CALL=$O(^TMP("FSC USELIST",$J,CALL)) Q:CALL<1 D
  1. ..S IEN=+$G(^FSCD("CALL USER","AUC",DUZ,CALL)) I 'IEN Q
  1. ..S SUBNUM=0 F S SUBNUM=$O(^FSCD("CALL USER",IEN,SUB,SUBNUM)) Q:SUBNUM<1 I $$UP^XLFSTR($G(^(SUBNUM,0)))[VALUE X ACTION Q
  1. I LIST="" D Q
  1. .S CALL=0 F S CALL=$O(^FSCD("CALL USER","AUC",DUZ,CALL)) Q:CALL<1 D
  1. ..S IEN=+$G(^FSCD("CALL USER","AUC",DUZ,CALL)) I 'IEN Q
  1. ..S SUBNUM=0 F S SUBNUM=$O(^FSCD("CALL USER",IEN,SUB,SUBNUM)) Q:SUBNUM<1 I $$UP^XLFSTR($G(^(SUBNUM,0)))[VALUE X ACTION Q
  1. Q
  1. ;
  1. PNCON ;
  1. N CALL,IEN,OK,SUB,SUBNUM
  1. S SUB=2
  1. S VALUE=$$UP^XLFSTR(VALUE)
  1. I LIST=1!(LIST=0) D Q
  1. .S CALL=0 F S CALL=$O(^TMP("FSC USELIST",$J,CALL)) Q:CALL<1 D
  1. ..S IEN=+$G(^FSCD("CALL USER","AUC",DUZ,CALL)) I 'IEN Q
  1. ..I '$O(^FSCD("CALL USER",IEN,SUB,0)) Q
  1. ..S (OK,SUBNUM)=0 F S SUBNUM=$O(^FSCD("CALL USER",IEN,SUB,SUBNUM)) Q:SUBNUM<1 I $$UP^XLFSTR($G(^(SUBNUM,0)))[VALUE S OK=1 Q
  1. ..I 'OK X ACTION
  1. I LIST="" D Q
  1. .S CALL=0 F S CALL=$O(^FSCD("CALL USER","AUC",DUZ,CALL)) Q:CALL<1 D
  1. ..S IEN=+$G(^FSCD("CALL USER","AUC",DUZ,CALL)) I 'IEN Q
  1. ..I '$O(^FSCD("CALL USER",IEN,SUB,0)) Q
  1. ..S (OK,SUBNUM)=0 F S SUBNUM=$O(^FSCD("CALL USER",IEN,SUB,SUBNUM)) Q:SUBNUM<1 I $$UP^XLFSTR($G(^(SUBNUM,0)))[VALUE S OK=1 Q
  1. ..I 'OK X ACTION
  1. Q
  1. ;
  1. PEX ;
  1. N CALL,IEN,SUB
  1. S SUB=2
  1. I LIST=1!(LIST=0) D Q
  1. .S CALL=0 F S CALL=$O(^TMP("FSC USELIST",$J,CALL)) Q:CALL<1 D
  1. ..S IEN=+$G(^FSCD("CALL USER","AUC",DUZ,CALL)) I 'IEN Q
  1. ..I $O(^FSCD("CALL USER",IEN,SUB,0)) X ACTION
  1. I LIST="" D Q
  1. .S CALL=0 F S CALL=$O(^FSCD("CALL USER","AUC",DUZ,CALL)) Q:CALL<1 D
  1. ..S IEN=+$G(^FSCD("CALL USER","AUC",DUZ,CALL)) I 'IEN Q
  1. ..I $O(^FSCD("CALL USER",IEN,SUB,0)) X ACTION
  1. Q
  1. ;
  1. PNEX ;
  1. N CALL,IEN,SUB
  1. S SUB=2
  1. I LIST=1!(LIST=0) D Q
  1. .S CALL=0 F S CALL=$O(^TMP("FSC USELIST",$J,CALL)) Q:CALL<1 D
  1. ..S IEN=+$G(^FSCD("CALL USER","AUC",DUZ,CALL))
  1. ..I '$O(^FSCD("CALL USER",IEN,SUB,0)) X ACTION
  1. I LIST="" D Q
  1. .S CALL=0 F S CALL=$O(^FSCD("CALL USER","AUC",DUZ,CALL)) Q:CALL<1 D
  1. ..S IEN=+$G(^FSCD("CALL USER","AUC",DUZ,CALL))
  1. ..I '$O(^FSCD("CALL USER",IEN,SUB,0)) X ACTION
  1. Q