home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / sigm / vol198 / main.bld < prev    next >
Encoding:
Text File  |  1985-02-10  |  7.1 KB  |  231 lines

  1. * DATE 08/26/84  16:11
  2. * main command program of database
  3. IF moveit
  4.  REST from move additive
  5.  FIND &linker
  6.  RELE linker
  7.  STOR t TO keepitup
  8.  STOR f TO moveit
  9. ENDI
  10. * set up screen
  11. STOR t TO first
  12. * set up the loop
  13. DO WHIL t
  14. * if first time this trip
  15.  IF first
  16.   ERAS
  17.   STOR '<A>dd, <B>ackward, <D>elete/Recall, <E>dit, <F>orward, <H>elp' TO prompt1
  18.   STOR '<P>rint, <S>earch, <T>enant records or <Q>uit to main menu' TO prompt2
  19.   STOR 'Main Building Database Menu' TO mode
  20. * show the current record
  21.   @ 0,26 SAY mode
  22.   @ 1, 0 SAY " -------------------------------------------------"
  23.   @ 1,50 SAY "-----------------------------"
  24.   @ 3, 1 SAY "Address:"
  25.   @ 3,55 SAY "Code:"
  26.   @ 4, 4 SAY "City:"
  27.   @ 4,37 SAY "State:"
  28.   @ 4,56 SAY "Zip:"
  29.   @ 6, 1 SAY "Manager:"
  30.   @ 6,54 SAY "Phone:"
  31.   @ 7, 4 SAY "Type:"
  32.   @ 7,44 SAY "Number of Units:"
  33.   @ 9, 0 SAY "Acquired:"
  34.   @ 9,45 SAY "Purchase Price:"
  35.   @ 11,28 SAY "Send Rental Payments To:"
  36.   @ 12,00 SAY "Company:"
  37.   @ 12,54 SAY "Phone:"
  38.   @ 13,01 SAY "Street:"
  39.   @ 14,03 SAY "City:"
  40.   @ 15,00 SAY "Chks To:"
  41.   @ 17, 2 SAY "Notes:"
  42.   @ 18,52 SAY "Updated:"
  43.   @ 19, 0 SAY " -------------------------------------------------"
  44.   @ 19,50 SAY "-----------------------------"
  45.   @ 20, 4 SAY prompt1
  46.   @ 21, 4 SAY prompt2
  47.  ENDI first
  48.  STOR f TO first
  49.  STOR '?' TO command
  50. * find out if the current record is marked for deletion
  51.  IF *
  52.   STOR 'Deleted' TO deleted
  53.  ELSE
  54.   STOR '       ' TO deleted
  55.  ENDI *
  56. * show the current record, and find out what to do next
  57.  @ 0, 0 SAY deleted
  58.  @ 3,10 SAY baddr
  59.  @ 3,61 SAY bcode
  60.  @ 4,10 SAY $(bcity,1,20)
  61.  @ 4,44 SAY $(bcity,21,2)
  62.  @ 4,61 SAY $(bcity,23,5)
  63.  @ 6,10 SAY $(bdata,1,25)
  64.  @ 6,61 SAY $(bdata,26,13)
  65.  @ 7,10 SAY $(bdata,39,2)
  66.  @ 7,61 SAY $(bdata,41,3)
  67.  @ 9,10 SAY $(bdata,44,8)
  68.  @ 9,61 SAY bprice USING '$99,999,999.99'
  69.  @ 12,10 SAY remit
  70.  @ 12,61 SAY phone
  71.  @ 13,10 SAY remitad
  72.  @ 14,10 SAY remitc
  73.  @ 15,10 SAY checks
  74.  @ 17,10 SAY bnotes
  75.  @ 18,61 SAY bupdate
  76.  @ 22,41 SAY "WHAT NEXT ?"
  77.  @ 22,60 GET command PICTURE '!'
  78.  READ
  79. * perform selected function
  80.  DO CASE
  81.  CASE command = 'A'
  82.   DO ADD.bld
  83.  CASE (command = 'B' .OR. command = ',' )
  84. * move backwards one record
  85.   SKIP -1
  86.  CASE command = 'D'
  87. * switch the current record from deleted to recalled
  88.   IF *
  89.    RECA
  90.   ELSE
  91.    DELE
  92.   ENDI *
  93.  CASE command = 'E'
  94.   SET console OFF
  95.   RECA
  96.   STOR # TO rec:number
  97.   SET INDEX TO
  98.   IF rec:number=0
  99.    GO 1
  100.   ELSE
  101.    GO rec:number
  102.   ENDI rec:number=0
  103.   SET console ON
  104.   RELE rec:number
  105.   DO EDIT.bld
  106.  CASE (command = 'F' .OR. command = '.' )
  107. * move forward one record
  108.   SKIP
  109.  CASE (command = 'H' .OR. command = '?' )
  110. * display a screen full of instructions
  111.   STOR t TO first
  112.   ERAS
  113. TEXT
  114.  
  115.  
  116.  
  117.          M A I N   B U I L D I N G   M E N U   H E L P   F I L E
  118.  
  119.        Welcome to the SIG/M PROPERTY MANAGER Building File  Data Base.
  120.     I am here to help you and you can call me anytime by just entering
  121.     a ? mark at any place where this program asks for a command.
  122.  
  123.     When you go back to the screen you will see two lines -  on top of     
  124.     the first line it says 'Main Building Database Menu' - thus,   the
  125.     program always tells you where you are!
  126.  
  127.     Between the two lines  we have the information you or someone else
  128.     entered into the computer.  This information tells you all about a  
  129.     particular building.
  130.  
  131.  
  132.  
  133.                If you press any key I will tell you more.
  134.  
  135.  
  136. ENDT
  137.   SET CONSOLE OFF
  138.   WAIT
  139.   SET CONSOLE ON
  140.   ERAS
  141. TEXT
  142.  
  143.    This is a multiple data base - by that I mean - you can have one screen of
  144. information about the building and another screen of information about any of 
  145. the tenants in that building.  To find the first tenant for the building  you
  146. are looking at hit 'T' for tenant information.    The transition is not quite
  147. immediate, because the program takes the time to find the first individual in
  148. the building that you have on the screen.
  149.  
  150. The information on screen in clear, so let's look below the line.  This shows
  151. what you can do.  To look at the next record -  hit 'F' (or a period).  To go
  152. back one record - hit 'B' (or a comma). To delete a record hit 'D' and a sign
  153. will appear at the upper right corner.  To remove the delete - hit 'D' again.
  154. Don't worry  -   you cannot accidentally delete a record just by hitting 'D'.  
  155. You must run another program on the Maintenance Menu (purge) to delete.
  156.  
  157. To find a file - hit 'S' for search.  To edit an entry hit 'E'  (although you
  158. usually would search for a file - and Edit from the search menu.) To add more
  159. records you hit 'A'. Once in add  you can enter new buildings and the tenants
  160. connected with that building.  If you already have the building data in  this
  161. program the menu gives you the option to add only tenants.                 
  162.  
  163.                       Please hit any key for the next screen 
  164. ENDT
  165.   SET CONSOLE OFF
  166.   WAIT
  167.   SET CONSOLE ON
  168.   ERAS
  169. TEXT
  170.  
  171. We suggest that you enter all units for the property first time around, even if
  172. they are vacant. (Put in the last rental for the property) If you leave a blank
  173. for the tenant name - the unit will appear on the vacancy list.                
  174.                                                                 
  175. To do property connected reports, such as rent bills, tenant labels,  vacancy 
  176. lists or delinquency lists, hit 'R' for Reports. 'M' for Maintanance allows 
  177. you to do housekeeping chores, etc.  See the specific help menus as well as 
  178. the menus themselves for more information.                                     
  179.                                                                                
  180. Please don't forget that at any menu '?' brings on a help menu and 'Q' quits
  181. to the prior menu.
  182.  
  183.    -------------------------------------------------------------------------
  184.    WHATEVER YOU DO  -  NEVER SHUT OFF THE MACHINE OR REMOVE A DISK UNTIL YOU 
  185.    FIRST RETURN TO THE MAIN MENU AND THEN QUIT TO THE OPERATING SYSTEM.       
  186.  
  187.    IF you ever get a SYNTAX error and hitting ENTER does not solve the prob-
  188.    lem, then just hit ESCAPE and type QUIT. Then just start all over again.
  189.    -------------------------------------------------------------------------
  190.                                                                               
  191.              Please hit any key to get back to the data base
  192. ENDT
  193.   SET CONSOLE OFF
  194.   WAIT
  195.   SET CONSOLE ON
  196.   ERAS
  197.  CASE command = 'P'
  198.   DO PRINT.bld
  199.  CASE command = 'Q'
  200. * prevent sign-off message
  201.   STOR t TO keepitup
  202.   STOR 0 TO box
  203.   RETU
  204.  CASE command = 'T'
  205.   STOR '000' to tno
  206.   @ 20,00
  207.   @ 21,00
  208.   @ 22,00
  209.   @ 21,04 SAY 'Enter tenant number (or leave at 000 for first tenant) '
  210.   @ 21,63 GET tno PICTURE '999'
  211.   READ
  212.   IF tno = '000'
  213.    STOR bcode TO linker
  214.   ELSE
  215.    STOR bcode + tno TO linker
  216.   ENDI tno
  217.   SAVE to move
  218.   STOR 4 TO box
  219.   STOR t TO keepitup
  220.   RETU
  221.  CASE command = 'S'
  222.   RELE ALL
  223.   STOR bcode to linker
  224.   SAVE TO move
  225.   STOR 5 TO box
  226.   STOR t TO keepitup
  227.   RETU
  228.  ENDC
  229. * loop back again
  230. ENDD WHILE t
  231.