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

XMJMSA.m

Go to the documentation of this file.
  1. XMJMSA ;ISC-SF/GMB-Send Anonymous User Suggestion Message ;04/17/2002 10:12
  1. ;;8.0;MailMan;;Jun 28, 2002
  1. ; Replaces ^XMANON (ISC-WASH/CAP)
  1. ; Entry points used by MailMan options (not covered by DBIA):
  1. ; SEND XMSUGGESTION
  1. ; This routine allows a user to send an anonymous message to the
  1. ; SUGGESTION BOX basket of SHARED,MAIL. If this basket doesn't exist,
  1. ; it will be created.
  1. ;
  1. ; MailMan masks (does not record) the actual identity of the sender.
  1. ;
  1. ; To use it, put the XMSUGGESTION option onto the appropriate menu.
  1. ; To stop a particular person from using it, put a 'Reverse/negative
  1. ; Lock' onto the XMSUGGESTION option and assign that key to the
  1. ; person you do not want to be able to use it.
  1. SEND ;
  1. N XMSUBJ,XMABORT,XMFINISH,XMDIR,XMY,XMOPT,XMOX
  1. D SET^XMXSEC2("ES",37305,.XMOPT,.XMOX) ; Edit Subject
  1. D SET^XMXSEC2("ET",37306,.XMOPT,.XMOX) ; Edit Text
  1. D SET^XMXSEC2("T",37334,.XMOPT,.XMOX) ; Transmit now
  1. S XMDIR("A")=$$EZBLD^DIALOG(34067) ; Select Message option:
  1. S XMDIR("B")=XMOX("O","T")_":"_XMOPT("T") ; Transmit now
  1. S XMDIR("??")="@" ; no help screen
  1. S XMABORT=0
  1. ;D WARNING(.XMABORT) Q:XMABORT
  1. D ES Q:XMABORT ; Edit the subject
  1. K ^TMP("XM",$J)
  1. D ET Q:XMABORT ; Edit the text
  1. S XMFINISH=0
  1. F D Q:XMFINISH!XMABORT
  1. . D XMDIR^XMJDIR(.XMDIR,.XMOPT,.XMOX,.XMY,.XMABORT) Q:XMABORT
  1. . D @XMY
  1. K ^TMP("XM",$J)
  1. Q
  1. ES ;
  1. D SUBJ^XMJMS(.XMSUBJ,.XMABORT)
  1. Q
  1. ET ; Edit text
  1. N DIC
  1. S DWPK=1,DWLW=75,DIC="^TMP(""XM"",$J,"
  1. S DIWESUB=XMSUBJ
  1. D EN^DIWE
  1. I '$O(^TMP("XM",$J,0)) S XMABORT=1 Q
  1. Q
  1. T ; Transmit the message
  1. N XMDUZ,DUZ,XMINSTR,XMZ
  1. S XMFINISH=1,(XMDUZ,DUZ)=.6
  1. S XMINSTR("FROM")=$$EZBLD^DIALOG(34665) ; Anonymous
  1. S XMINSTR("SHARE DATE")="3991231"
  1. S XMINSTR("SHARE BSKT")=$$EZBLD^DIALOG(34666) ; SUGGESTION BOX
  1. D CRE8XMZ^XMXSEND(XMSUBJ,.XMZ,1) Q:XMZ<1
  1. W $$EZBLD^DIALOG(34217,XMZ) ; Sending [|1|]...
  1. D MOVEBODY^XMXSEND(XMZ,"^TMP(""XM"",$J)")
  1. D ADDRNSND^XMXSEND(XMDUZ,XMZ,XMDUZ,.XMINSTR)
  1. W !,$$EZBLD^DIALOG(34213) ; Sent
  1. Q
  1. WARNING(XMABORT) ;
  1. ; * * * * * ATTENTION * * * * *
  1. ; Anonymous messages may or may not be totally anonymous.
  1. ; Please check with your local IRM
  1. ; to find out if your facility has methods in place to identify you.
  1. N XMTEXT
  1. W @IOF
  1. D BLD^DIALOG(34667,"","","XMTEXT","F")
  1. D MSG^DIALOG("WM","",79,"","XMTEXT")
  1. W !!
  1. D PAGE^XMXUTIL(.XMABORT)
  1. Q