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

EEOEEXMT.m

Go to the documentation of this file.
  1. EEOEEXMT ;HISC/JWR - TRANSMIT ROUTINE (VERSION 1.0 SITES);11/28/92 12:00
  1. ;;2.0;EEO Complaint Tracking;;Apr 27, 1995
  1. Q:'$D(^TMP("EEOXMT",$J))
  1. D DT^DICRW S SERV=$O(^EEO(789.5,0)),SERV=^EEO(789.5,SERV,0),AEE=+SERV,SERV=$P(^DIC(4.2,$P(SERV,"^",2),0),"^")
  1. S XMSUB=$$SITE^EEOEEXMT_" EEO SERVER MESSAGE"_" DATA"
  1. K CLIENT,CLIENTNO S BEE=0 F S BEE=$O(^DIC(4.2,BEE)) Q:BEE'>0 I $P($G(^(BEE,0)),"^",13)=AEE S CLIENTNO=AEE,CLIENT=$P(^(0),"^") Q
  1. I '$D(CLIENTNO) S CLIENTNO=$O(^EEO(789.5,"B",""))
  1. K XMY S XMY("S.EEO UPLINK SERVER@"_SERV)=""
  1. ;S XMY("G.UPLINK_DATA_SERVER@"_SERV)=""
  1. RES S XMDUZ=DUZ K ^TMP($J)
  1. S VEE=$S(CLIENTNO=$$SITE^EEOEEXMT:AEE,1:CLIENTNO)
  1. S ^TMP($J,1)=$$SITE^EEOEEXMT_"^DATA"_"^"_20,FEE=2
  1. S ^TMP($J,FEE)="&&&&&",EEE=BEE,BEE="",FEE=FEE+1 F S BEE=$O(^TMP("EEOXMT",$J,BEE)) Q:BEE="" S CEE="" F S CEE=$O(^TMP("EEOXMT",$J,BEE,CEE)) Q:CEE="" S DEE="" F S DEE=$O(^TMP("EEOXMT",$J,BEE,CEE,DEE)) Q:DEE="" D
  1. .S EEE="" F S EEE=$O(^TMP("EEOXMT",$J,BEE,CEE,DEE,EEE)) Q:EEE="" S GEE="" F S GEE=$O(^TMP("EEOXMT",$J,BEE,CEE,DEE,EEE,GEE)) Q:GEE="" S DECR=^TMP("EEOXMT",$J,BEE,CEE,DEE,EEE,GEE) D ENCRY
  1. S XMTEXT="^TMP($J," K XMZ D:'$D(XMY("G.UPLINK_DATA_SERVER@"_$P(^DIC(4.2,$P(^XMB(1,1,0),"^",1),0),"^",1))) ^XMD Q:'$D(XMZ)
  1. W " " H 1 W "@"_SERV
  1. K ^TMP($J)
  1. EXIT K ^TMP("EEOXMT",$J),XMDUZ
  1. Q
  1. SITE() ;
  1. Q $P(^DIC(4,$O(^DIC(4,"D",$P(^EEO(789.5,1,0),"^"),"")),99),"^")
  1. FLIP I AEE D @WHAT
  1. Q
  1. HERE I VEE=SITE S OEE=0
  1. Q
  1. SERVNO() Q +^EEO(789.5,$O(^EEO(789.5,0)),0)
  1. LONG K EEOPT S EENOD=DECR,EEOL=$L(EENOD),EEOC="" F EEOC=0:50:250 S X=$E(EENOD,EEOC+1,EEOC+50) Q:X="" D EN^XUSHSHP D
  1. .I $D(EEOPT) S EEOPT=EEOPT_X Q
  1. .I '$D(EEOPT) S EEOPT=X Q
  1. S ^TMP($J,FEE+1)=EEOPT K EEOPT,EEOL,EENOD,EEOC
  1. Q
  1. ENCRY S X1=AEE,X2=FEE
  1. S X=DEE_"^"_BEE_"^"_CEE_"^"_EEE_"^"_GEE
  1. D EN^XUSHSHP S ^TMP($J,FEE)=X
  1. I $L(DECR)<50 S X=DECR,X2=FEE+1 D EN^XUSHSHP S ^TMP($J,FEE+1)=X,FEE=FEE+2 Q
  1. I $L(DECR)'<50 S X2=FEE+1 D LONG S FEE=FEE+2
  1. Q