CLIENT.DEF 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. DEFINITION MODULE Client;
  2. (*
  3. Copyright (C) 1988,1989 Jensen & Partners International
  4. *)
  5. IMPORT Globals;
  6. TYPE
  7. ClientRec = RECORD
  8. CNum : ARRAY[0..9] OF CHAR;
  9. LName : ARRAY[0..14] OF CHAR;
  10. FName : ARRAY[0..9] OF CHAR;
  11. Street : ARRAY[0..24] OF CHAR;
  12. City : ARRAY[0..14] OF CHAR;
  13. State : ARRAY[0..1] OF CHAR;
  14. Zip : ARRAY[0..5] OF CHAR;
  15. Phone : ARRAY[0..12] OF CHAR;
  16. Balance : LONGREAL;
  17. END; (* ClientRec *)
  18. PROCEDURE MakeKey( keyA, myClientA : ADDRESS );
  19. (**
  20. This procedure makes a client key for indexing
  21. **)
  22. PROCEDURE Display( aClient : ClientRec );
  23. (**
  24. This procedure displays the client record on the screen.
  25. **)
  26. PROCEDURE Clear( );
  27. (**
  28. This procedure clears the previous client information.
  29. **)
  30. PROCEDURE Template( );
  31. (**
  32. This procedure un-hides the client display window and displays
  33. the field names.
  34. **)
  35. PROCEDURE Input( VAR aClient : ClientRec; Clear : BOOLEAN );
  36. (**
  37. This procedure inputs the client information from the user.
  38. If Clear is TRUE, then the information is cleared before the
  39. user enters new information. If Clear is FALSE, Display() is
  40. called first to show the current information, and it is then
  41. edited.
  42. **)
  43. PROCEDURE Search( VAR aClient : ClientRec ) : BOOLEAN ;
  44. (**
  45. This procedure asks the user for search information, and then
  46. searches for the given record. If it is found, it is copied to
  47. aClient, and TRUE is returned. If it is not found, FALSE is
  48. returned.
  49. **)
  50. PROCEDURE Close( );
  51. (**
  52. This procedure removes the client display window from the screen.
  53. **)
  54. END Client.