PMIRPT.LST 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. Listing:
  2. 1 IMPLEMENTATION MODULE PMIRpt;
  3. 2 (*
  4. 3 * ModBase
  5. 4 * Release 3.0
  6. 5 * (c) Copyright 1986 - 1991 PMI
  7. 6 * P.O. Box 8402
  8. 7 * Green Bay Wi 53308
  9. 8 * All Rights Reserved
  10. 9 * by Ed Ross
  11. 10 *)
  12. 11
  13. 12 FROM PMIGlobals IMPORT Config,PMIScreens;
  14. 13 FROM NumTypes IMPORT Real8;
  15. 14 FROM Numbers IMPORT Max;
  16. 15 FROM PosUtils IMPORT Equal;
  17. 16 FROM StrEdit IMPORT CrunchBlanks,DeleteRightJustified,Append,CAPstr,DeleteChar;
  18. 17 FROM M2Strings IMPORT Length;
  19. 18 FROM LateLetters IMPORT CreateLateLetters,ProduceLateLetters;
  20. 19 FROM LowLevel IMPORT Fill;
  21. 20 FROM StringIO IMPORT PrintMessage,ErrorMessage,WriteEol,WriteStr;
  22. 21 FROM SmartScreen IMPORT ClearScreen;
  23. 22 FROM ScrnUtl1 IMPORT FieldNum;
  24. 23 FROM ScrnUtl2 IMPORT CloseDisplayFrame;
  25. 24 FROM VWindows IMPORT ClearPart, CurrentWindow, SetCursorHeight;
  26. 25 FROM ScrnTypes IMPORT DisplayFrame,InitDisplayFrame,AFrameName;
  27. 26 FROM FramePainter IMPORT ShowDisplayFrame,RedrawField;
  28. 27 FROM InputManager IMPORT ControlFrame;
  29. 28 FROM FrameManager IMPORT EraseFrame;
  30. 29 FROM Prompts IMPORT Prompt,PromptStr,PromptNum;
  31. 30 FROM SYSTEM IMPORT ADR,SIZE,ADDRESS;
  32. 31 FROM ControlUtils IMPORT ControlSeparately, LoadFrameList,Control,ChangeField;
  33. 32 FROM DspFiles IMPORT OpenDisplayFile,ReadDisplayFrame;
  34. 33 FROM HandleIO IMPORT FileExists,OpenFile,CloseHandle;
  35. 34 FROM GenLists IMPORT GenList, NewList,ListLength,GetElmt,
  36. 35 GetElmtAdr,DisposeList;
  37. 36 FROM ListUtils IMPORT PrintList,TextFileToList;
  38. 37 FROM InvReports IMPORT InvHistory,InvOutstanding,InvOutByDate;
  39. 38 FROM CustReports IMPORT CustMailLabels,CustValue;
  40. 39 FROM IvyReports IMPORT TotalInventory,ReorderInventory;
  41. 40 FROM SalesReps IMPORT CreateEditSalesReps,ProduceCommissions;
  42. 41 PROCEDURE ControlReports();
  43. 42
  44. 43 VAR
  45. 44 DF : DisplayFrame;
  46. 45 NxtFrame : AFrameName;
  47. 46 BEGIN
  48. 47 InitDisplayFrame(DF,CurrentWindow);
  49. ***** ^ not supported yet
  50. ***** ^ not supported yet
  51. ***** ^ not supported yet
  52. 48 ReadDisplayFrame(PMIScreens,DF,'Reports');
  53. ***** ^ not supported yet
  54. ***** ^ not supported yet
  55. ***** ^ not supported yet
  56. ***** ^ not supported yet
  57. 49 REPEAT
  58. 50 ClearScreen();
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. 51 ShowDisplayFrame(DF,0,0,0,0);
  62. ***** ^ not supported yet
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. 52 ControlFrame(DF,1,'',FALSE,NxtFrame);
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. ***** ^ not supported yet
  69. 53 IF Equal(NxtFrame,'Invtry1')
  70. ***** ^ not supported yet
  71. ***** ^ not supported yet
  72. ***** ^ not supported yet
  73. 54 THEN TotalInventory();
  74. ***** ^ not supported yet
  75. ***** ^ not supported yet
  76. 55 ELSIF Equal(NxtFrame,'Invtry2')
  77. ***** ^ not supported yet
  78. ***** ^ not supported yet
  79. ***** ^ not supported yet
  80. 56 THEN ReorderInventory();
  81. ***** ^ not supported yet
  82. ***** ^ not supported yet
  83. 57 ELSIF Equal(NxtFrame,'InvHist')
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. ***** ^ not supported yet
  87. 58 THEN InvHistory();
  88. ***** ^ not supported yet
  89. ***** ^ not supported yet
  90. 59 ELSIF Equal(NxtFrame,'InvOut')
  91. ***** ^ not supported yet
  92. ***** ^ not supported yet
  93. ***** ^ not supported yet
  94. 60 THEN InvOutstanding();
  95. ***** ^ not supported yet
  96. ***** ^ not supported yet
  97. 61 ELSIF Equal(NxtFrame,'InvLateCust')
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. ***** ^ not supported yet
  101. 62 THEN
  102. 63 ELSIF Equal(NxtFrame,'InvLateDate')
  103. ***** ^ not supported yet
  104. ***** ^ not supported yet
  105. ***** ^ not supported yet
  106. 64 THEN InvOutByDate();
  107. ***** ^ not supported yet
  108. ***** ^ not supported yet
  109. 65 ELSIF Equal(NxtFrame,'LateLtrMake')
  110. ***** ^ not supported yet
  111. ***** ^ not supported yet
  112. ***** ^ not supported yet
  113. 66 THEN CreateLateLetters();
  114. ***** ^ not supported yet
  115. ***** ^ not supported yet
  116. 67 ELSIF Equal(NxtFrame,'LateLtrProd')
  117. ***** ^ not supported yet
  118. ***** ^ not supported yet
  119. ***** ^ not supported yet
  120. 68 THEN ProduceLateLetters();
  121. ***** ^ not supported yet
  122. ***** ^ not supported yet
  123. 69 ELSIF Equal(NxtFrame,'CustMail')
  124. ***** ^ not supported yet
  125. ***** ^ not supported yet
  126. ***** ^ not supported yet
  127. 70 THEN CustMailLabels();
  128. ***** ^ not supported yet
  129. ***** ^ not supported yet
  130. 71 ELSIF Equal(NxtFrame,'CustValue')
  131. ***** ^ not supported yet
  132. ***** ^ not supported yet
  133. ***** ^ not supported yet
  134. 72 THEN CustValue();
  135. ***** ^ not supported yet
  136. ***** ^ not supported yet
  137. 73 ELSIF Equal(NxtFrame,'SalesReps1')
  138. ***** ^ not supported yet
  139. ***** ^ not supported yet
  140. ***** ^ not supported yet
  141. 74 THEN CreateEditSalesReps();
  142. ***** ^ not supported yet
  143. ***** ^ not supported yet
  144. 75 ELSIF Equal(NxtFrame,'SalesReps2')
  145. ***** ^ not supported yet
  146. ***** ^ not supported yet
  147. ***** ^ not supported yet
  148. 76 THEN ProduceCommissions();
  149. ***** ^ not supported yet
  150. ***** ^ not supported yet
  151. 77 ELSIF Equal(NxtFrame,'GasOut')
  152. ***** ^ not supported yet
  153. ***** ^ not supported yet
  154. ***** ^ not supported yet
  155. 78 THEN
  156. 79 ELSIF Equal(NxtFrame,'GasHist')
  157. ***** ^ not supported yet
  158. ***** ^ not supported yet
  159. ***** ^ not supported yet
  160. 80 THEN
  161. 81 END;
  162. 82 UNTIL Equal(NxtFrame,'Exit');
  163. ***** ^ not supported yet
  164. ***** ^ not supported yet
  165. ***** ^ not supported yet
  166. 83 CloseDisplayFrame(DF);
  167. ***** ^ not supported yet
  168. ***** ^ not supported yet
  169. 84 END ControlReports;
  170. ***** ^ not supported yet
  171. 85
  172. 86
  173. 87
  174. 88
  175. 89
  176. 90
  177. 91
  178. 92 END PMIRpt.
  179. ***** ^ not supported yet
  180. 86 errors