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

GECSRSTA.m

Go to the documentation of this file.
  1. GECSRSTA ;WISC/RFJ-stack reports ;22 Dec 93
  1. ;;2.0;GCS;;MAR 14, 1995
  1. N %DT,%I,DIR,DIRUT,GECSCODE,GECSDATE,GECSDESC,GECSEND,GECSFALL,GECSFLAG,GECSSSET,GECSSTAT,GECSSTRT,X,Y
  1. ; ask starting and ending transaction code
  1. F D Q:$G(GECSFLAG)
  1. . W !,"START with TRANSACTION CODE: FIRST// " R X:DTIME I '$T!(X["^") S GECSFLAG=1 Q
  1. . I X["?" W !?2,"Select the starting TRANSACTION CODE. The TRANSACTION CODE is the two",!?2,"character code which identifies the document type." Q
  1. . S GECSSTRT=X,GECSFLAG=1
  1. I '$D(GECSSTRT) Q
  1. K GECSFLAG
  1. F D Q:$G(GECSFLAG)
  1. . W !," END with TRANSACTION CODE: LAST// " R X:DTIME I '$T!(X["^") S GECSFLAG=1 Q
  1. . I X["?" W !?2,"Select the ending TRANSACTION CODE." Q
  1. . I X="" S X="z"
  1. . I GECSSTRT]X W !?4,"Ending TRANSACTION CODE must follow starting TRANSACTION CODE." Q
  1. . S GECSEND=X,GECSFLAG=1
  1. I '$D(GECSEND) Q
  1. ;
  1. ; ask starting created date
  1. S %DT="AEP",%DT("A")="Print documents created after DATE: ",%DT("B")="JAN 1,1993",%DT(0)=-DT W ! D ^%DT Q:Y<1 S GECSDATE=Y
  1. ;
  1. ; ask for status to print
  1. S GECSSSET=$P(^DD(2100.1,3,0),"^",3)_"N:TRANSMITTED WITH NO CONFIRMATION MESSAGE RETURNED"
  1. S DIR(0)="SO^"_GECSSSET,DIR("A")="Select STATUS(ES) to display"
  1. K GECSSTAT
  1. F W ! D ^DIR Q:Y="" D
  1. . I $D(GECSSTAT(Y)) W !?5,"-- previously selected --" Q
  1. . S GECSSTAT(Y)=""
  1. I '$D(GECSSTAT) W !,"A STATUS was not selected !" D Q:'$G(GECSFALL)
  1. . S XP=" Do you want to print ALL stack documents",XH=" Enter YES to print all documents, NO or '^' to exit."
  1. . I $$YN^GECSUTIL(1)=1 S GECSFALL=1
  1. W !!,"SELECTED STATUS(ES) to display:"
  1. I $G(GECSFALL) W " ALL STATUS(ES)"
  1. I '$G(GECSFALL) S Y="" F S Y=$O(GECSSTAT(Y)) Q:Y="" W !?10,$P($P(GECSSSET,Y_":",2),";")
  1. ;
  1. W !!
  1. S XP="Print DESCRIPTION of event" S GECSDESC=$$YN^GECSUTIL(2) Q:'GECSDESC
  1. S XP="Print DOCUMENT code sheets" S GECSCODE=$$YN^GECSUTIL(2) Q:'GECSCODE
  1. W !
  1. S %ZIS="Q" D ^%ZIS Q:POP I $D(IO("Q")) D D ^%ZTLOAD K IO("Q"),ZTSK Q
  1. . S ZTDESC="GCS Stack File Report",ZTRTN="DQ^GECSRST1"
  1. . S ZTSAVE("GECS*")="",ZTSAVE("ZTREQ")="@"
  1. W !!,"<*> please wait <*>"
  1. D DQ^GECSRST1
  1. Q