ITEMS.DEF 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. DEFINITION MODULE Items;
  2. (*
  3. Copyright (C) 1988,1989 Jensen & Partners International
  4. *)
  5. IMPORT Globals;
  6. TYPE
  7. ItemRec = RECORD
  8. INum : ARRAY[0..9] OF CHAR;
  9. Description : ARRAY[0..24] OF CHAR;
  10. PartNum : ARRAY[0..9] OF CHAR;
  11. Mfgr : ARRAY[0..19] OF CHAR;
  12. QOHand,
  13. QOOrder : CARDINAL;
  14. Cost,
  15. Retail : LONGREAL;
  16. Supplier : ARRAY[0..9] OF CHAR;
  17. END; (* ItemRec *)
  18. PROCEDURE MakeKey( keyA, myItemA : ADDRESS );
  19. (**
  20. This procedure makes a key for indexing
  21. **)
  22. PROCEDURE Display( anItem : ItemRec );
  23. (**
  24. This procedure displays the item record on the screen.
  25. **)
  26. PROCEDURE Clear( );
  27. (**
  28. This procedure clears the previous item information.
  29. **)
  30. PROCEDURE Template( );
  31. (**
  32. This procedure un-hides the item display window and displays
  33. the field names.
  34. **)
  35. PROCEDURE Input( VAR anItem : ItemRec; Clear : BOOLEAN );
  36. (**
  37. This procedure inputs the item 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 anItem : ItemRec ) : BOOLEAN ;
  44. (**
  45. The key fields from anItem are checked for data. If they
  46. are filled, that information is used to search. Otherwise,
  47. this procedure asks the user for search information, and then
  48. searches for the given record. If it is found, it is copied to
  49. anItem, and TRUE is returned. If it is not found, FALSE is
  50. returned.
  51. **)
  52. PROCEDURE Close( );
  53. (**
  54. This procedure removes the item display window from the screen.
  55. **)
  56. END Items.