home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
PAY1PERS.ARC
/
PERSPAY1.PRG
< prev
next >
Wrap
Text File
|
1987-01-15
|
2KB
|
93 lines
* MAIN PROGRAM PERSPAY1.PRG
* WRITTEN BY MARTIN J. MICHAELSON
* LAST UPDATE 01/15/87
* VERSION 2.6
* dBASE III PLUS v1.1
*
* This is the main driver for the your - PAYROLL SYSTEM
SET PROC TO
CLEAR
CLEAR ALL
SET COLOR TO GR+/B,
@ 10, 18 SAY "EMPLOYEE / PAYROLL MENU LOADING"
SET ESCAPE OFF
SET BELL OFF
SET TALK OFF
SET INTENSITY ON
SELECT 1
USE PAY_PERS INDEX PERSONS,EMPNO,DEPT
SELECT 3
USE PAY_YTD INDEX EMPNMYTD
PUBLIC choice,choice2,string,qtr
DO WHILE .T.
DO PAYMENU
store ' ' to choice
@ 22,37 get choice
read
DO CASE
CASE choice = '1'
do PAYemps
CASE choice = '2'
select 1
pack
CASE choice = '3'
do newqtr
CASE choice = '4'
DO wages
CASE choice = '5'
CLEAR
STORE SPACE(8) TO WEEKEND
@ 4,08 SAY "REPORT FOR WEEK ENDING:" GET WEEKEND ;
PICTURE '99/99/99'
READ
SELECT 2
SET PRINT ON
REPORT FORM PAYWEEK FOR WEEK_END = "&WEEKEND" NOEJECT
SET PRINT OFF
CASE choice = '6'
DO QTRLY
CASE choice = '7'
SELECT 3
SELECT 1
SET INDEX TO DEPT,EMPNO
SET RELATION TO EMP_NMBR INTO C
REPORT FORM YTD TO PRINT NOEJECT PLAIN
CASE choice = '8'
DO W2FORM
CASE choice = '9'
CLEAR
@ 0,0 SAY "TYPE `RESUME' TO GO TO MAIN MENU"
SUSPEND
LOOP
CASE choice = '0'
text
PAYROLL SYSTEM CLOSING MENU
1 - Quit to dBASE III
2 - Quit to DOS
3 - Return to Program
Press < 1, 2, or 3 >
endtext
STORE 0 TO choice2
@ 15,43 GET choice2 PICTURE "9" RANGE 0,3
READ
DO CASE
CASE choice2 = 1
CLEAR
CLEAR ALL
CANCEL
CASE choice2 = 2
CLOSE DATA
SET DEFA TO C:
DO EXIT
ENDCASE
OTHERWISE
@ 23,10 SAY "Not a Menu Option... Try Again."
STORE 1 TO time
DO WHILE time <15
STORE 1+time TO time
ENDDO
ENDCASE
ENDDO