home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
pssst.zip
/
PSPRINTS.PRG
< prev
next >
Wrap
Text File
|
1986-07-16
|
8KB
|
225 lines
* PSPRINTS.PRG
*
* A DBASE II 16BIT COMMAND FILE for printing suspenses, completed jobs,
* and deleted jobs. Includes a look-back which allows selection of a
* period of time, from 1 to 4 years, and prints those completed tasks.
* This should be useful for OER's or inspection planning.
* Utilizes PSPRINTR for the actual work
*
* Version 1
* By LTC Denny Hugg
* ANGSC/DOS Andrews AFB MD 16 Jul 1985
*
* Version 2
* modified by Maj Jim McMurry
* ANGSC/DOSC Truax Field, WI 15 Jun 1986
*
DO WHILE T
ERASE
STORE 'pSSSt ARCHIVE RETRIEVAL SYSTEM' TO heading
DO PSHEADING
STORE chr(95)+chr(95) TO ln
STORE ln+ln+ln+ln+ln TO ln
STORE ln+ln+ln+ln+ln+ln+ln+ln TO ln
STORE 'CURRENT' TO p1
STORE 'COMPLETED' TO p2
STORE 'DELETED' TO p3
STORE 'PAST' TO p4
STORE 'RETURN' TO p5
STORE ' '+p1+' '+p2+' '+p3+' '+p4+' '+p5 TO lin
STORE ' (Suspenses Printed)' TO y1
STORE ' (Printed in Order Archived)' TO y2
STORE ' (Printed in Order Deleted)' TO y3
STORE ' (Years Archived Items)' TO y4
STORE ' (To Jobtrack Menu)' TO y5
STORE '0010223239' TO col
STORE 1 TO c
STORE '1' TO z
STORE '0' TO mcho
STORE t TO screen
@ 22,0 SAY gline
DO WHILE screen
@ 22,79 SAY lin + y&z
@ 23,VAL($(col,c,2)) GET p&z
CLEAR GETS
SET CONSOLE OFF
STORE '0' TO mcho
DO WHILE ' '<>mcho .AND. .NOT. mcho$'DCKM46'
WAIT TO mcho
ENDDO
SET CONSOLE ON
DO CASE
CASE mcho$('CM6')
IF c#9
STORE c+2 TO c
STORE str(val(z)+1,1) TO z
ELSE
STORE 1 TO c
STORE '1' TO z
ENDIF
CASE mcho$('KD4')
IF c>1
STORE c-2 TO c
STORE str(val(z)-1,1) TO z
ELSE
STORE 9 TO c
STORE '5' TO z
ENDIF
CASE mcho = ' '
STORE f TO screen
LOOP
ENDCASE
ENDDO screen
@ 22, 0 SAY gclearline
@ 22,79 SAY gclearline
STORE c TO gc
RELEASE ALL EXCEPT g*
DO CASE
CASE gc=9
RELEASE gc
RELEASE ALL EXCEPT g*
RETURN
CASE gc=1
STORE ' ' TO moutput
@ 22,16 SAY 'Do You Want Output To Screen Or Printer? (S/P) '
DO WHILE moutput <> 'S' .AND. moutput <> 'P'
STORE ' ' TO moutput
@ 22,64 GET moutput PICTURE '!'
READ
ENDDO
@ 22, 0 SAY gclearline
USE &gsusfile INDEX &gsusindex
STORE "@ mline,24 SAY 'S U S P E N S E L I S T I N G'" TO header
STORE 'CURRENT' TO prompt
STORE "@ mline, 0 SAY 'DUE DATE'" TO item1
STORE "@ mline,10 SAY 'SUSPENSE ITEM'" TO item2
STORE "@ mline,66 SAY 'TASKED BY'" TO item3
STORE "@ mline,79 SAY ' '" TO item4
STORE "@ mline, 0 SAY duedate" TO data1
STORE "@ mline,10 SAY descrip" TO data2
STORE "@ mline,66 SAY origin" TO data3
STORE "@ mline,79 SAY ' '" TO data4
STORE "@ 10,28 SAY 'No Suspense Items Stored'" TO nonethere
STORE ' ' TO condition
DO PSPRINTR
CASE gc =3
STORE ' ' TO moutput
@ 22,16 SAY 'Do You Want Output To Screen Or Printer? (S/P) '
DO WHILE moutput <> 'S' .AND. moutput <> 'P'
STORE ' ' TO moutput
@ 22,64 GET moutput PICTURE '!'
READ
ENDDO
@ 22, 0 SAY gclearline
USE &gcomplfile
STORE "@ mline,25 SAY 'A C C O M P L I S H M E N T S'" TO header
STORE 'COMPLETED' TO prompt
STORE "@ mline, 0 SAY 'OPR'" TO item1
STORE "@ mline, 5 SAY 'SUSPENSE ITEM'" TO item2
STORE "@ mline,61 SAY 'DUE DATE'" TO item3
STORE "@ mline,70 SAY 'COMPLETE'" TO item4
STORE "@ mline, 0 SAY opr" TO data1
STORE "@ mline, 5 SAY descrip" TO data2
STORE "@ mline,61 SAY duedate" TO data3
STORE "@ mline,70 SAY c:d:date" TO data4
STORE "@ 10,31 SAY 'No Items Archived'" TO nonethere
STORE ' ' TO condition
DO PSPRINTR
CASE gc=5
STORE ' ' TO moutput
@ 22,16 SAY 'Do You Want Output To Screen Or Printer? (S/P) '
DO WHILE moutput <> 'S' .AND. moutput <> 'P'
STORE ' ' TO moutput
@ 22,64 GET moutput PICTURE '!'
READ
ENDDO
@ 22, 0 SAY gclearline
USE &gdelfile
STORE "@ mline,27 SAY 'D E L E T E D I T E M S'" TO header
STORE 'DELETED' TO prompt
STORE "@ mline, 0 SAY 'OPR'" TO item1
STORE "@ mline, 5 SAY 'DESCRIPTION'" TO item2
STORE "@ mline,61 SAY 'REASON DELETED'" TO item3
STORE "@ mline,79 SAY ' '" TO item4
STORE "@ mline, 0 SAY opr" TO data1
STORE "@ mline, 5 SAY descrip" TO data2
STORE "@ mline,61 SAY reason" TO data3
STORE "@ mline,79 SAY ' '" TO data4
STORE "@ 10,27 SAY 'No Deleted Items Archived'" TO nonethere
STORE ' ' TO condition
DO PSPRINTR
CASE gc=7
ERASE
STORE 1 TO line
STORE 'LOOK - BACK SELECTION' TO prompt
DO PSPROMPT
STORE ' ' TO select
DO WHILE .NOT. select $'1234'
@ 22,21 SAY 'Select Number Of Years To Look (1-4) ';
GET select
READ
IF .NOT. select $'1234'
STORE ' ' TO select
ENDIF
ENDDO
@ 22, 0 SAY gclearline
STORE ' ' TO moutput
@ 22,16 SAY 'Do You Want Output To Screen Or Printer? (S/P) '
DO WHILE moutput <> 'S' .AND. moutput <> 'P'
STORE ' ' TO moutput
@ 22,64 GET moutput PICTURE '!'
READ
ENDDO
@ 22, 0 SAY gclearline
STORE VAL($(gdate,1,2)) -1 TO thisyear
STORE 1 TO loops
STORE VAL(select) TO number
DO WHILE loops <= number
ERASE
STORE gaddstring + 'CM.0' + STR(thisyear,2) TO file
IF .NOT. FILE ('&file')
@ 22, 0 SAY gclearline
@ 10,29 SAY '19' + STR(thisyear,2) + ' Is Not On Record'
STORE 0 TO counter
DO WHILE counter < gdelay
STORE counter + 1 TO counter
ENDDO
STORE thisyear - 1 TO thisyear
STORE loops + 1 TO loops
LOOP
ENDIF
USE &file
STORE "@ mline,20 SAY '1 9 '+$(STR(thisyear,2),1,1)+' ';
+$(STR(thisyear,2),2,1)+' A C C O M P L I S H M E N T S'";
TO header
STORE '1 9 '+$(STR(thisyear,2),1,1)+' ';
+$(STR(thisyear,2),2,1) TO prompt
STORE "@ mline, 0 SAY 'OPR'" TO item1
STORE "@ mline, 5 SAY 'SUSPENSE ITEM'" TO item2
STORE "@ mline,61 SAY 'DUE DATE'" TO item3
STORE "@ mline,70 SAY 'COMPLETE'" TO item4
STORE "@ mline, 0 SAY opr" TO data1
STORE "@ mline, 5 SAY descrip" TO data2
STORE "@ mline,61 SAY duedate" TO data3
STORE "@ mline,70 SAY c:d:date" TO data4
STORE "@ 10,31 SAY 'No Items Archived'" TO nonethere
STORE ' ' TO condition
DO PSPRINTR
STORE thisyear -1 TO thisyear
STORE loops + 1 TO loops
ENDDO
USE
ENDCASE
ENDDO T
* EOF PSPRINTS.PRG
earline
USE &gcomplfile
STORE "@ mline,20 SAY 'A C C O M P L I S H M E N T S'" TO header
STORE 'COMPLETED' TO prompt
STORE "@ mline, 0 SAY 'OPR'" TO item1
STORE "@ mline, 5 SAY 'SUSPENSE ITEM'" TO item2
STORE "@ mline,61 SAY 'DUE DATE'" TO item3
STORE "@ mline,70 SAY 'COMPLETE'" TO item4
STORE "@ mline, 0 SAY opr" TO data1
STORE "@ mline, 5 SAY descrip" TO data2
STORE "@ m