home *** CD-ROM | disk | FTP | other *** search
- DATABASE leads
- GLOBALS "globals.4gl"
-
- MAIN
- {
- The menu program initially displays the Top-Level menu.
- Depending on the user's selection, it then either displays a
- submenu or calls a function or report driver. When a submenu
- is called, it in turn invokes a submenu or calls a function or
- report driver, and so forth.
- }
-
- MENU "TOP-LEVEL"
-
- COMMAND "Contact" "Log information about a contact with a prospect."
- CALL decide(1)
- IF pr_prospect.ref IS NULL THEN CALL prospect(1) END IF
- IF eflag = 0 THEN CALL contact() END IF
- LET eflag = 0
-
- COMMAND "Report" "Run a report."
- MENU "REPORT"
- COMMAND "Mailing-labels" "Generate labels for a prospects mailing."
- CALL rd_label()
- EXIT MENU
- COMMAND "Sales" "Run a report on sales by salesperson by month."
- CALL rd_sales()
- EXIT MENU
- COMMAND "Follow-up" "Run a report on follow-up calls to be made."
- CALL rd_follow()
- EXIT MENU
- COMMAND "Letters" "Generate follow-up letters for contacts."
- CALL rd_letter()
- EXIT MENU
- COMMAND "Exit" "Return to the Top-Level menu."
- EXIT MENU
- END MENU
-
- COMMAND "Update" "Update information about a contact or prospect."
- MENU "UPDATE"
- COMMAND "Contact" "Correct information about a contact."
- CALL qcontact()
- EXIT MENU
- COMMAND "Prospect" "Update information about a prospect."
- CALL decide(2)
- IF pr_prospect.ref IS NOT NULL THEN CALL prospect(2) END IF
- EXIT MENU
- COMMAND "Exit" "Return to the Top-Level menu."
- EXIT MENU
- END MENU
-
- COMMAND "Administration" "Change information about a product or salesperson."
- MENU "ADMINISTRATION"
- COMMAND "Product" "Change information about a product."
- CALL product()
- EXIT MENU
- COMMAND "Salesperson" "Change information about a salesperson."
- MENU "SALESPERSON"
- COMMAND "Add" "Add a new salesperson."
- CALL sperson(1)
- EXIT MENU
- COMMAND "Update" "Update information about a salesperson."
- CALL sperson(2)
- EXIT MENU
- COMMAND "Delete" "Delete an old salesperson."
- CALL sperson(3)
- EXIT MENU
- COMMAND "List" "Display a list of salespeople."
- CALL rd_sperson()
- EXIT MENU
- COMMAND "Exit" "Return to the Top-Level menu."
- EXIT MENU
- END MENU
- EXIT MENU
- COMMAND "Exit" "Return to the Top-Level menu."
- EXIT MENU
- END MENU
- COMMAND "Exit" "Return to the operating system."
- EXIT MENU
- END MENU
- CLEAR SCREEN
- END MAIN
-