@magic-xpa/engine 4.1100.0-dev4110.26 → 4.1100.0-dev4110.260

Sign up to get free protection for your applications and to get access to all the features.
Files changed (491) hide show
  1. package/{esm2020 → esm2022}/index.mjs +188 -188
  2. package/{esm2020 → esm2022}/magic-xpa-engine.mjs +1 -1
  3. package/esm2022/src/AccessHelper.mjs +15 -0
  4. package/esm2022/src/ClientManager.mjs +418 -0
  5. package/esm2022/src/CommandsProcessorBase.mjs +56 -0
  6. package/{esm2020 → esm2022}/src/CommandsProcessorManager.mjs +25 -25
  7. package/esm2022/src/CommandsTable.mjs +162 -0
  8. package/esm2022/src/ConstInterface.mjs +517 -0
  9. package/{esm2020 → esm2022}/src/CurrentClientVersion.mjs +2 -2
  10. package/esm2022/src/FlowMonitorInterface.mjs +16 -0
  11. package/esm2022/src/GUIManager.mjs +62 -0
  12. package/esm2022/src/GlobalCommandsManager.mjs +34 -0
  13. package/esm2022/src/GuiEventsProcessor.mjs +156 -0
  14. package/{esm2020 → esm2022}/src/ICommandsTable.mjs +1 -1
  15. package/esm2022/src/ServerConfig.mjs +122 -0
  16. package/{esm2020 → esm2022}/src/bridge/IGuiEvent.mjs +19 -19
  17. package/esm2022/src/bridge/MagicBridge.mjs +41 -0
  18. package/esm2022/src/commands/ClientOriginatedCommandTaskTag.mjs +12 -0
  19. package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserLocateDataViewCommand.mjs +8 -8
  20. package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserRangeDataviewCommand.mjs +9 -9
  21. package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserSortDataViewCommand.mjs +9 -9
  22. package/esm2022/src/commands/ClientToServer/BrowserEscEventCommand.mjs +26 -0
  23. package/{esm2020 → esm2022}/src/commands/ClientToServer/ClientOriginatedCommand.mjs +14 -14
  24. package/{esm2020 → esm2022}/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +59 -59
  25. package/esm2022/src/commands/ClientToServer/ColumnSortEventCommand.mjs +29 -0
  26. package/esm2022/src/commands/ClientToServer/CommandFactory.mjs +261 -0
  27. package/esm2022/src/commands/ClientToServer/CommandSerializationHelper.mjs +67 -0
  28. package/esm2022/src/commands/ClientToServer/ComputeEventCommand.mjs +26 -0
  29. package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTerminationEventCommand.mjs +24 -21
  30. package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTimeoutResetCommand.mjs +23 -20
  31. package/{esm2020 → esm2022}/src/commands/ClientToServer/ControlItemsRefreshCommand.mjs +8 -8
  32. package/esm2022/src/commands/ClientToServer/DataViewOutputCommand.mjs +13 -0
  33. package/{esm2020 → esm2022}/src/commands/ClientToServer/DataviewCommand.mjs +44 -44
  34. package/esm2022/src/commands/ClientToServer/EvaluateCommand.mjs +40 -0
  35. package/{esm2020 → esm2022}/src/commands/ClientToServer/EventCommand.mjs +43 -40
  36. package/esm2022/src/commands/ClientToServer/ExecOperCommand.mjs +70 -0
  37. package/esm2022/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +25 -0
  38. package/{esm2020 → esm2022}/src/commands/ClientToServer/GlobalParamsQueryCommand.mjs +10 -10
  39. package/{esm2020 → esm2022}/src/commands/ClientToServer/ICommandTaskTag.mjs +1 -1
  40. package/esm2022/src/commands/ClientToServer/IndexChangeEventCommand.mjs +24 -0
  41. package/esm2022/src/commands/ClientToServer/IniputForceWriteCommand.mjs +26 -0
  42. package/{esm2020 → esm2022}/src/commands/ClientToServer/NonReversibleExitEventCommand.mjs +26 -23
  43. package/{esm2020 → esm2022}/src/commands/ClientToServer/QueryCommand.mjs +20 -20
  44. package/esm2022/src/commands/ClientToServer/RecomputeCommand.mjs +30 -0
  45. package/esm2022/src/commands/ClientToServer/RefreshEventCommand.mjs +30 -0
  46. package/esm2022/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +27 -0
  47. package/esm2022/src/commands/ClientToServer/RollbackEventCommand.mjs +43 -0
  48. package/esm2022/src/commands/ClientToServer/SelectProgramCommand.mjs +19 -0
  49. package/{esm2020 → esm2022}/src/commands/ClientToServer/SetTransactionStateDataviewCommand.mjs +9 -9
  50. package/esm2022/src/commands/ClientToServer/SubformOpenEventCommand.mjs +24 -0
  51. package/esm2022/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +27 -0
  52. package/esm2022/src/commands/ClientToServer/TransactionCommand.mjs +34 -0
  53. package/{esm2020 → esm2022}/src/commands/ClientToServer/UnloadCommand.mjs +18 -15
  54. package/esm2022/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +18 -0
  55. package/esm2022/src/commands/DataViewCommandBase.mjs +8 -0
  56. package/{esm2020 → esm2022}/src/commands/IClientCommand.mjs +1 -1
  57. package/esm2022/src/commands/IClientTargetedCommand.mjs +13 -0
  58. package/{esm2020 → esm2022}/src/commands/IClientToServerCommandInfo.mjs +2 -2
  59. package/esm2022/src/commands/ServerToClient/AbortCommand.mjs +65 -0
  60. package/{esm2020 → esm2022}/src/commands/ServerToClient/AddLocateCommand.mjs +21 -21
  61. package/{esm2020 → esm2022}/src/commands/ServerToClient/AddRangeCommand.mjs +62 -62
  62. package/{esm2020 → esm2022}/src/commands/ServerToClient/AddSortCommand.mjs +33 -33
  63. package/esm2022/src/commands/ServerToClient/ClientRefreshCommand.mjs +25 -0
  64. package/esm2022/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +24 -0
  65. package/esm2022/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +45 -0
  66. package/esm2022/src/commands/ServerToClient/OpenURLCommand.mjs +221 -0
  67. package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetLocateCommand.mjs +14 -14
  68. package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetRangeCommand.mjs +14 -14
  69. package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetSortCommand.mjs +14 -14
  70. package/esm2022/src/commands/ServerToClient/ResultCommand.mjs +37 -0
  71. package/esm2022/src/commands/ServerToClient/VerifyCommand.mjs +83 -0
  72. package/{esm2020 → esm2022}/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +132 -132
  73. package/{esm2020 → esm2022}/src/communications/IConnectionStateManager.mjs +1 -1
  74. package/esm2022/src/communications/InteractiveCommunicationsFailureHandler.mjs +15 -0
  75. package/{esm2020 → esm2022}/src/data/DataSourceIdKey.mjs +2 -2
  76. package/esm2022/src/data/DataView.mjs +1613 -0
  77. package/{esm2020 → esm2022}/src/data/DataViewBase.mjs +3 -3
  78. package/esm2022/src/data/DataviewManager.mjs +28 -0
  79. package/esm2022/src/data/DataviewManagerBase.mjs +15 -0
  80. package/esm2022/src/data/DvCache.mjs +67 -0
  81. package/esm2022/src/data/Field.mjs +646 -0
  82. package/esm2022/src/data/FieldBase.mjs +15 -0
  83. package/esm2022/src/data/FieldsTable.mjs +103 -0
  84. package/{esm2020 → esm2022}/src/data/IRecordsTable.mjs +1 -1
  85. package/{esm2020 → esm2022}/src/data/Key.mjs +88 -88
  86. package/esm2022/src/data/Record.mjs +880 -0
  87. package/{esm2020 → esm2022}/src/data/RecordOutOfDataViewException.mjs +15 -15
  88. package/esm2022/src/data/RecordsTable.mjs +267 -0
  89. package/{esm2020 → esm2022}/src/data/TaskTransactionManager.mjs +107 -103
  90. package/{esm2020 → esm2022}/src/data/XMLBasedDcValuesBuilder.mjs +74 -74
  91. package/{esm2020 → esm2022}/src/enums.mjs +23 -23
  92. package/esm2022/src/env/EnvVariablesTable.mjs +340 -0
  93. package/esm2022/src/env/Environment.mjs +487 -0
  94. package/{esm2020 → esm2022}/src/env/ILanguageData.mjs +1 -1
  95. package/esm2022/src/env/LanguageData.mjs +227 -0
  96. package/{esm2020 → esm2022}/src/env/MirrorString.mjs +65 -65
  97. package/esm2022/src/event/ActionManager.mjs +91 -0
  98. package/esm2022/src/event/Event.mjs +1333 -0
  99. package/esm2022/src/event/EventHandler.mjs +766 -0
  100. package/esm2022/src/event/EventHandlerPosition.mjs +204 -0
  101. package/esm2022/src/event/EventsManager.mjs +2988 -0
  102. package/{esm2020 → esm2022}/src/event/IEventsManager.mjs +6 -6
  103. package/esm2022/src/event/RunTimeEvent.mjs +399 -0
  104. package/{esm2020 → esm2022}/src/event/RunTimeEventBase.mjs +3 -3
  105. package/esm2022/src/event/UserEventsTable.mjs +47 -0
  106. package/esm2022/src/exp/ExpTable.mjs +57 -0
  107. package/esm2022/src/exp/Expression.mjs +200 -0
  108. package/esm2022/src/exp/ExpressionDict.mjs +727 -0
  109. package/esm2022/src/exp/ExpressionEvaluator.mjs +4206 -0
  110. package/esm2022/src/exp/ExpressionLocalJpn.mjs +314 -0
  111. package/{esm2020 → esm2022}/src/exp/GlobalParamsTable.mjs +85 -85
  112. package/esm2022/src/exp/YesNoExp.mjs +36 -0
  113. package/esm2022/src/gui/CreatedFormVector.mjs +23 -0
  114. package/esm2022/src/gui/FormsTable.mjs +66 -0
  115. package/esm2022/src/gui/MgControl.mjs +363 -0
  116. package/esm2022/src/gui/MgForm.mjs +1224 -0
  117. package/esm2022/src/http/HttpManager.mjs +97 -0
  118. package/esm2022/src/http/client/HttpClientAsync.mjs +68 -0
  119. package/{esm2020 → esm2022}/src/http/client/HttpClientBase.mjs +132 -132
  120. package/esm2022/src/http/client/HttpClientEvents.mjs +39 -0
  121. package/esm2022/src/http/client/HttpClientSync.mjs +42 -0
  122. package/esm2022/src/http/client/HttpUtility.mjs +84 -0
  123. package/{esm2020 → esm2022}/src/http/client/ICommunicationsFailureHandler.mjs +1 -1
  124. package/{esm2020 → esm2022}/src/remote/AddUserLocateRemoteDataViewCommand.mjs +18 -18
  125. package/{esm2020 → esm2022}/src/remote/AddUserRangeRemoteDataViewCommand.mjs +18 -18
  126. package/{esm2020 → esm2022}/src/remote/AddUserSortRemoteDataViewCommand.mjs +18 -18
  127. package/esm2022/src/remote/RemoteCommandsProcessor.mjs +883 -0
  128. package/{esm2020 → esm2022}/src/remote/RemoteControlItemsRefreshCommand.mjs +25 -25
  129. package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandBase.mjs +24 -24
  130. package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandFactory.mjs +60 -60
  131. package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandUpdateNonModifiable.mjs +15 -15
  132. package/{esm2020 → esm2022}/src/remote/RemoteDataviewManager.mjs +17 -17
  133. package/{esm2020 → esm2022}/src/remote/RemoteInitDataViewCommand.mjs +10 -10
  134. package/{esm2020 → esm2022}/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +16 -16
  135. package/{esm2020 → esm2022}/src/remote/ResetUserRangeRemoteDataviewCommand.mjs +12 -12
  136. package/{esm2020 → esm2022}/src/remote/ResetUserSortRemoteDataviewCommand.mjs +15 -15
  137. package/esm2022/src/remote/ServerError.mjs +40 -0
  138. package/{esm2020 → esm2022}/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +19 -19
  139. package/esm2022/src/rt/Argument.mjs +265 -0
  140. package/esm2022/src/rt/ArgumentsList.mjs +103 -0
  141. package/esm2022/src/rt/Boundary.mjs +152 -0
  142. package/esm2022/src/rt/CompMainPrgTable.mjs +63 -0
  143. package/esm2022/src/rt/DataviewHeaderBase.mjs +98 -0
  144. package/{esm2020 → esm2022}/src/rt/DataviewHeaderFactory.mjs +6 -6
  145. package/esm2022/src/rt/DataviewHeaders.mjs +53 -0
  146. package/{esm2020 → esm2022}/src/rt/DataviewHeadersSaxHandler.mjs +38 -38
  147. package/{esm2020 → esm2022}/src/rt/ExecutionStack.mjs +94 -94
  148. package/{esm2020 → esm2022}/src/rt/ExecutionStackEntry.mjs +17 -17
  149. package/{esm2020 → esm2022}/src/rt/HandlersTable.mjs +96 -96
  150. package/{esm2020 → esm2022}/src/rt/IDataSourceViewDefinition.mjs +1 -1
  151. package/{esm2020 → esm2022}/src/rt/IDataviewHeader.mjs +1 -1
  152. package/{esm2020 → esm2022}/src/rt/IResultValue.mjs +1 -1
  153. package/esm2022/src/rt/LastFocusedManager.mjs +65 -0
  154. package/esm2022/src/rt/Operation.mjs +735 -0
  155. package/esm2022/src/rt/OperationTable.mjs +67 -0
  156. package/esm2022/src/rt/Recompute.mjs +355 -0
  157. package/{esm2020 → esm2022}/src/rt/RecomputeTable.mjs +62 -62
  158. package/{esm2020 → esm2022}/src/rt/RemoteDataviewHeader.mjs +108 -108
  159. package/esm2022/src/rt/ResultValue.mjs +10 -0
  160. package/esm2022/src/rt/TableCache.mjs +177 -0
  161. package/esm2022/src/rt/TableCacheManager.mjs +67 -0
  162. package/esm2022/src/rt/Transaction.mjs +53 -0
  163. package/esm2022/src/security/UserDetails.mjs +71 -0
  164. package/{esm2020 → esm2022}/src/tasks/IMGDataCollection.mjs +1 -1
  165. package/esm2022/src/tasks/MGData.mjs +552 -0
  166. package/esm2022/src/tasks/MGDataCollection.mjs +252 -0
  167. package/esm2022/src/tasks/RCTimer.mjs +63 -0
  168. package/{esm2020 → esm2022}/src/tasks/RemoteTaskService.mjs +44 -44
  169. package/esm2022/src/tasks/Task.mjs +2499 -0
  170. package/esm2022/src/tasks/TaskBase.mjs +83 -0
  171. package/{esm2020 → esm2022}/src/tasks/TaskServiceBase.mjs +24 -24
  172. package/esm2022/src/tasks/TasksTable.mjs +80 -0
  173. package/esm2022/src/tasks/sort/Sort.mjs +5 -0
  174. package/{esm2020 → esm2022}/src/tasks/sort/SortCollection.mjs +67 -67
  175. package/{esm2020 → esm2022}/src/util/ConstUtils.mjs +13 -13
  176. package/esm2022/src/util/FlowMonitorQueue.mjs +451 -0
  177. package/{esm2020 → esm2022}/src/util/HeapSort.mjs +69 -69
  178. package/{esm2020 → esm2022}/src/util/IMirrorXML.mjs +1 -1
  179. package/{esm2020 → esm2022}/src/util/IServerConfig.mjs +1 -1
  180. package/{esm2020 → esm2022}/src/util/MgBlockingQueue.mjs +1 -1
  181. package/esm2022/src/util/MgPriorityBlockingQueue.mjs +74 -0
  182. package/esm2022/src/util/MgPriorityQueue.mjs +66 -0
  183. package/{esm2020 → esm2022}/src/util/ParamParseResult.mjs +7 -7
  184. package/esm2022/src/util/PrmMap.mjs +152 -0
  185. package/esm2022/src/util/ReturnResult.mjs +46 -0
  186. package/esm2022/src/util/ReturnResultBase.mjs +18 -0
  187. package/esm2022/src/util/Scrambler.mjs +89 -0
  188. package/esm2022/src/util/UniqueIDUtils.mjs +13 -0
  189. package/{esm2020 → esm2022}/src/util/cookie.service.mjs +91 -91
  190. package/{fesm2020 → fesm2022}/magic-xpa-engine.mjs +29885 -29693
  191. package/fesm2022/magic-xpa-engine.mjs.map +1 -0
  192. package/index.d.ts +187 -187
  193. package/package.json +8 -14
  194. package/src/AccessHelper.d.ts +20 -20
  195. package/src/ClientManager.d.ts +35 -32
  196. package/src/CommandsProcessorBase.d.ts +23 -23
  197. package/src/CommandsProcessorManager.d.ts +6 -6
  198. package/src/CommandsTable.d.ts +22 -22
  199. package/src/ConstInterface.d.ts +516 -515
  200. package/src/CurrentClientVersion.d.ts +1 -1
  201. package/src/FlowMonitorInterface.d.ts +15 -15
  202. package/src/GUIManager.d.ts +17 -17
  203. package/src/GlobalCommandsManager.d.ts +17 -17
  204. package/src/GuiEventsProcessor.d.ts +24 -24
  205. package/src/ICommandsTable.d.ts +9 -9
  206. package/src/ServerConfig.d.ts +35 -34
  207. package/src/bridge/IGuiEvent.d.ts +19 -19
  208. package/src/bridge/MagicBridge.d.ts +16 -16
  209. package/src/commands/ClientOriginatedCommandTaskTag.d.ts +8 -8
  210. package/src/commands/ClientToServer/AddUserLocateDataViewCommand.d.ts +4 -4
  211. package/src/commands/ClientToServer/AddUserRangeDataviewCommand.d.ts +6 -6
  212. package/src/commands/ClientToServer/AddUserSortDataViewCommand.d.ts +6 -6
  213. package/src/commands/ClientToServer/BrowserEscEventCommand.d.ts +9 -8
  214. package/src/commands/ClientToServer/ClientOriginatedCommand.d.ts +8 -8
  215. package/src/commands/ClientToServer/ClientOriginatedCommandSerializer.d.ts +6 -6
  216. package/src/commands/ClientToServer/ColumnSortEventCommand.d.ts +11 -10
  217. package/src/commands/ClientToServer/CommandFactory.d.ts +64 -64
  218. package/src/commands/ClientToServer/CommandSerializationHelper.d.ts +20 -20
  219. package/src/commands/ClientToServer/ComputeEventCommand.d.ts +9 -8
  220. package/src/commands/ClientToServer/ContextTerminationEventCommand.d.ts +8 -7
  221. package/src/commands/ClientToServer/ContextTimeoutResetCommand.d.ts +8 -7
  222. package/src/commands/ClientToServer/ControlItemsRefreshCommand.d.ts +6 -6
  223. package/src/commands/ClientToServer/DataViewOutputCommand.d.ts +9 -9
  224. package/src/commands/ClientToServer/DataviewCommand.d.ts +32 -32
  225. package/src/commands/ClientToServer/EvaluateCommand.d.ts +16 -15
  226. package/src/commands/ClientToServer/EventCommand.d.ts +16 -15
  227. package/src/commands/ClientToServer/ExecOperCommand.d.ts +24 -23
  228. package/src/commands/ClientToServer/FetchDataControlValuesEventCommand.d.ts +9 -8
  229. package/src/commands/ClientToServer/GlobalParamsQueryCommand.d.ts +5 -5
  230. package/src/commands/ClientToServer/ICommandTaskTag.d.ts +3 -3
  231. package/src/commands/ClientToServer/IndexChangeEventCommand.d.ts +9 -8
  232. package/src/commands/ClientToServer/IniputForceWriteCommand.d.ts +11 -10
  233. package/src/commands/ClientToServer/NonReversibleExitEventCommand.d.ts +9 -8
  234. package/src/commands/ClientToServer/QueryCommand.d.ts +8 -8
  235. package/src/commands/ClientToServer/RecomputeCommand.d.ts +12 -11
  236. package/src/commands/ClientToServer/RefreshEventCommand.d.ts +13 -12
  237. package/src/commands/ClientToServer/RefreshScreenEventCommand.d.ts +11 -10
  238. package/src/commands/ClientToServer/RollbackEventCommand.d.ts +15 -14
  239. package/src/commands/ClientToServer/SelectProgramCommand.d.ts +7 -6
  240. package/src/commands/ClientToServer/SetTransactionStateDataviewCommand.d.ts +5 -5
  241. package/src/commands/ClientToServer/SubformOpenEventCommand.d.ts +9 -8
  242. package/src/commands/ClientToServer/SubformRefreshEventCommand.d.ts +10 -9
  243. package/src/commands/ClientToServer/TransactionCommand.d.ts +14 -12
  244. package/src/commands/ClientToServer/UnloadCommand.d.ts +8 -7
  245. package/src/commands/ClientToServer/WriteMessageToServerLogCommand.d.ts +6 -6
  246. package/src/commands/DataViewCommandBase.d.ts +6 -6
  247. package/src/commands/IClientCommand.d.ts +2 -2
  248. package/src/commands/IClientTargetedCommand.d.ts +12 -12
  249. package/src/commands/IClientToServerCommandInfo.d.ts +4 -3
  250. package/src/commands/ServerToClient/AbortCommand.d.ts +11 -11
  251. package/src/commands/ServerToClient/AddLocateCommand.d.ts +6 -6
  252. package/src/commands/ServerToClient/AddRangeCommand.d.ts +10 -10
  253. package/src/commands/ServerToClient/AddSortCommand.d.ts +9 -9
  254. package/src/commands/ServerToClient/ClientRefreshCommand.d.ts +7 -7
  255. package/src/commands/ServerToClient/ClientTargetedCommandBase.d.ts +12 -12
  256. package/src/commands/ServerToClient/EnhancedVerifyCommand.d.ts +13 -13
  257. package/src/commands/ServerToClient/OpenURLCommand.d.ts +21 -21
  258. package/src/commands/ServerToClient/ResetLocateCommand.d.ts +6 -6
  259. package/src/commands/ServerToClient/ResetRangeCommand.d.ts +6 -6
  260. package/src/commands/ServerToClient/ResetSortCommand.d.ts +6 -6
  261. package/src/commands/ServerToClient/ResultCommand.d.ts +10 -10
  262. package/src/commands/ServerToClient/VerifyCommand.d.ts +17 -17
  263. package/src/commands/ServerToClient/XMLBasedCommandBuilder.d.ts +11 -11
  264. package/src/communications/IConnectionStateManager.d.ts +4 -4
  265. package/src/communications/InteractiveCommunicationsFailureHandler.d.ts +6 -6
  266. package/src/data/DataSourceIdKey.d.ts +2 -2
  267. package/src/data/DataView.d.ts +162 -162
  268. package/src/data/DataViewBase.d.ts +12 -12
  269. package/src/data/DataviewManager.d.ts +14 -14
  270. package/src/data/DataviewManagerBase.d.ts +11 -11
  271. package/src/data/DvCache.d.ts +15 -15
  272. package/src/data/Field.d.ts +103 -103
  273. package/src/data/FieldBase.d.ts +23 -23
  274. package/src/data/FieldsTable.d.ts +27 -27
  275. package/src/data/IRecordsTable.d.ts +7 -7
  276. package/src/data/Key.d.ts +15 -15
  277. package/src/data/Record.d.ts +157 -156
  278. package/src/data/RecordOutOfDataViewException.d.ts +10 -10
  279. package/src/data/RecordsTable.d.ts +38 -38
  280. package/src/data/TaskTransactionManager.d.ts +17 -17
  281. package/src/data/XMLBasedDcValuesBuilder.d.ts +11 -11
  282. package/src/enums.d.ts +21 -21
  283. package/src/env/EnvVariablesTable.d.ts +17 -17
  284. package/src/env/Environment.d.ts +118 -118
  285. package/src/env/ILanguageData.d.ts +3 -3
  286. package/src/env/LanguageData.d.ts +20 -20
  287. package/src/env/MirrorString.d.ts +15 -15
  288. package/src/event/ActionManager.d.ts +14 -14
  289. package/src/event/Event.d.ts +79 -79
  290. package/src/event/EventHandler.d.ts +66 -66
  291. package/src/event/EventHandlerPosition.d.ts +25 -25
  292. package/src/event/EventsManager.d.ts +205 -204
  293. package/src/event/IEventsManager.d.ts +77 -77
  294. package/src/event/RunTimeEvent.d.ts +126 -123
  295. package/src/event/RunTimeEventBase.d.ts +5 -5
  296. package/src/event/UserEventsTable.d.ts +11 -11
  297. package/src/exp/ExpTable.d.ts +11 -11
  298. package/src/exp/Expression.d.ts +37 -37
  299. package/src/exp/ExpressionDict.d.ts +12 -12
  300. package/src/exp/ExpressionEvaluator.d.ts +198 -198
  301. package/src/exp/ExpressionLocalJpn.d.ts +18 -18
  302. package/src/exp/GlobalParamsTable.d.ts +19 -19
  303. package/src/exp/YesNoExp.d.ts +9 -9
  304. package/src/gui/CreatedFormVector.d.ts +10 -10
  305. package/src/gui/FormsTable.d.ts +15 -15
  306. package/src/gui/MgControl.d.ts +60 -60
  307. package/src/gui/MgForm.d.ts +96 -93
  308. package/src/http/HttpManager.d.ts +25 -25
  309. package/src/http/client/HttpClientAsync.d.ts +16 -16
  310. package/src/http/client/HttpClientBase.d.ts +30 -30
  311. package/src/http/client/HttpClientEvents.d.ts +18 -18
  312. package/src/http/client/HttpClientSync.d.ts +17 -17
  313. package/src/http/client/HttpUtility.d.ts +10 -10
  314. package/src/http/client/ICommunicationsFailureHandler.d.ts +5 -5
  315. package/src/remote/AddUserLocateRemoteDataViewCommand.d.ts +8 -8
  316. package/src/remote/AddUserRangeRemoteDataViewCommand.d.ts +8 -8
  317. package/src/remote/AddUserSortRemoteDataViewCommand.d.ts +8 -8
  318. package/src/remote/RemoteCommandsProcessor.d.ts +51 -51
  319. package/src/remote/RemoteControlItemsRefreshCommand.d.ts +8 -8
  320. package/src/remote/RemoteDataViewCommandBase.d.ts +10 -10
  321. package/src/remote/RemoteDataViewCommandFactory.d.ts +6 -6
  322. package/src/remote/RemoteDataViewCommandUpdateNonModifiable.d.ts +8 -8
  323. package/src/remote/RemoteDataviewManager.d.ts +9 -9
  324. package/src/remote/RemoteInitDataViewCommand.d.ts +7 -7
  325. package/src/remote/ResetUserLocateRemoteDataviewCommand.d.ts +7 -7
  326. package/src/remote/ResetUserRangeRemoteDataviewCommand.d.ts +7 -7
  327. package/src/remote/ResetUserSortRemoteDataviewCommand.d.ts +7 -7
  328. package/src/remote/ServerError.d.ts +16 -16
  329. package/src/remote/SetTransactionStateRemoteDataViewCommand.d.ts +8 -8
  330. package/src/rt/Argument.d.ts +36 -36
  331. package/src/rt/ArgumentsList.d.ts +24 -24
  332. package/src/rt/Boundary.d.ts +27 -27
  333. package/src/rt/CompMainPrgTable.d.ts +10 -10
  334. package/src/rt/DataviewHeaderBase.d.ts +34 -34
  335. package/src/rt/DataviewHeaderFactory.d.ts +5 -5
  336. package/src/rt/DataviewHeaders.d.ts +12 -12
  337. package/src/rt/DataviewHeadersSaxHandler.d.ts +10 -10
  338. package/src/rt/ExecutionStack.d.ts +22 -22
  339. package/src/rt/ExecutionStackEntry.d.ts +7 -7
  340. package/src/rt/HandlersTable.d.ts +19 -19
  341. package/src/rt/IDataSourceViewDefinition.d.ts +6 -6
  342. package/src/rt/IDataviewHeader.d.ts +10 -10
  343. package/src/rt/IResultValue.d.ts +4 -4
  344. package/src/rt/LastFocusedManager.d.ts +23 -23
  345. package/src/rt/Operation.d.ts +97 -97
  346. package/src/rt/OperationTable.d.ts +15 -15
  347. package/src/rt/Recompute.d.ts +41 -41
  348. package/src/rt/RecomputeTable.d.ts +9 -9
  349. package/src/rt/RemoteDataviewHeader.d.ts +14 -14
  350. package/src/rt/ResultValue.d.ts +7 -7
  351. package/src/rt/TableCache.d.ts +29 -29
  352. package/src/rt/TableCacheManager.d.ts +10 -10
  353. package/src/rt/Transaction.d.ts +23 -23
  354. package/src/security/UserDetails.d.ts +16 -16
  355. package/src/tasks/IMGDataCollection.d.ts +26 -26
  356. package/src/tasks/MGData.d.ts +63 -63
  357. package/src/tasks/MGDataCollection.d.ts +42 -42
  358. package/src/tasks/RCTimer.d.ts +13 -13
  359. package/src/tasks/RemoteTaskService.d.ts +16 -16
  360. package/src/tasks/Task.d.ts +312 -312
  361. package/src/tasks/TaskBase.d.ts +123 -123
  362. package/src/tasks/TaskServiceBase.d.ts +16 -16
  363. package/src/tasks/TasksTable.d.ts +21 -21
  364. package/src/tasks/sort/Sort.d.ts +4 -4
  365. package/src/tasks/sort/SortCollection.d.ts +11 -11
  366. package/src/util/ConstUtils.d.ts +3 -3
  367. package/src/util/FlowMonitorQueue.d.ts +70 -70
  368. package/src/util/HeapSort.d.ts +6 -6
  369. package/src/util/IMirrorXML.d.ts +6 -6
  370. package/src/util/IServerConfig.d.ts +11 -11
  371. package/src/util/MgBlockingQueue.d.ts +5 -5
  372. package/src/util/MgPriorityBlockingQueue.d.ts +17 -17
  373. package/src/util/MgPriorityQueue.d.ts +13 -13
  374. package/src/util/ParamParseResult.d.ts +6 -6
  375. package/src/util/PrmMap.d.ts +28 -28
  376. package/src/util/ReturnResult.d.ts +18 -18
  377. package/src/util/ReturnResultBase.d.ts +11 -11
  378. package/src/util/Scrambler.d.ts +10 -10
  379. package/src/util/UniqueIDUtils.d.ts +4 -4
  380. package/src/util/cookie.service.d.ts +8 -8
  381. package/esm2020/src/AccessHelper.mjs +0 -9
  382. package/esm2020/src/ClientManager.mjs +0 -399
  383. package/esm2020/src/CommandsProcessorBase.mjs +0 -58
  384. package/esm2020/src/CommandsTable.mjs +0 -162
  385. package/esm2020/src/ConstInterface.mjs +0 -516
  386. package/esm2020/src/FlowMonitorInterface.mjs +0 -16
  387. package/esm2020/src/GUIManager.mjs +0 -62
  388. package/esm2020/src/GlobalCommandsManager.mjs +0 -34
  389. package/esm2020/src/GuiEventsProcessor.mjs +0 -154
  390. package/esm2020/src/ServerConfig.mjs +0 -117
  391. package/esm2020/src/bridge/MagicBridge.mjs +0 -41
  392. package/esm2020/src/commands/ClientOriginatedCommandTaskTag.mjs +0 -11
  393. package/esm2020/src/commands/ClientToServer/BrowserEscEventCommand.mjs +0 -23
  394. package/esm2020/src/commands/ClientToServer/ColumnSortEventCommand.mjs +0 -26
  395. package/esm2020/src/commands/ClientToServer/CommandFactory.mjs +0 -260
  396. package/esm2020/src/commands/ClientToServer/CommandSerializationHelper.mjs +0 -69
  397. package/esm2020/src/commands/ClientToServer/ComputeEventCommand.mjs +0 -23
  398. package/esm2020/src/commands/ClientToServer/DataViewOutputCommand.mjs +0 -13
  399. package/esm2020/src/commands/ClientToServer/EvaluateCommand.mjs +0 -36
  400. package/esm2020/src/commands/ClientToServer/ExecOperCommand.mjs +0 -67
  401. package/esm2020/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +0 -22
  402. package/esm2020/src/commands/ClientToServer/IndexChangeEventCommand.mjs +0 -21
  403. package/esm2020/src/commands/ClientToServer/IniputForceWriteCommand.mjs +0 -23
  404. package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +0 -27
  405. package/esm2020/src/commands/ClientToServer/RefreshEventCommand.mjs +0 -27
  406. package/esm2020/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +0 -24
  407. package/esm2020/src/commands/ClientToServer/RollbackEventCommand.mjs +0 -39
  408. package/esm2020/src/commands/ClientToServer/SelectProgramCommand.mjs +0 -15
  409. package/esm2020/src/commands/ClientToServer/SubformOpenEventCommand.mjs +0 -21
  410. package/esm2020/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +0 -24
  411. package/esm2020/src/commands/ClientToServer/TransactionCommand.mjs +0 -28
  412. package/esm2020/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +0 -18
  413. package/esm2020/src/commands/DataViewCommandBase.mjs +0 -10
  414. package/esm2020/src/commands/IClientTargetedCommand.mjs +0 -9
  415. package/esm2020/src/commands/ServerToClient/AbortCommand.mjs +0 -65
  416. package/esm2020/src/commands/ServerToClient/ClientRefreshCommand.mjs +0 -25
  417. package/esm2020/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +0 -27
  418. package/esm2020/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +0 -45
  419. package/esm2020/src/commands/ServerToClient/OpenURLCommand.mjs +0 -221
  420. package/esm2020/src/commands/ServerToClient/ResultCommand.mjs +0 -37
  421. package/esm2020/src/commands/ServerToClient/VerifyCommand.mjs +0 -83
  422. package/esm2020/src/communications/InteractiveCommunicationsFailureHandler.mjs +0 -17
  423. package/esm2020/src/data/DataView.mjs +0 -1610
  424. package/esm2020/src/data/DataviewManager.mjs +0 -28
  425. package/esm2020/src/data/DataviewManagerBase.mjs +0 -15
  426. package/esm2020/src/data/DvCache.mjs +0 -67
  427. package/esm2020/src/data/Field.mjs +0 -646
  428. package/esm2020/src/data/FieldBase.mjs +0 -18
  429. package/esm2020/src/data/FieldsTable.mjs +0 -103
  430. package/esm2020/src/data/Record.mjs +0 -846
  431. package/esm2020/src/data/RecordsTable.mjs +0 -267
  432. package/esm2020/src/env/EnvVariablesTable.mjs +0 -340
  433. package/esm2020/src/env/Environment.mjs +0 -489
  434. package/esm2020/src/env/LanguageData.mjs +0 -226
  435. package/esm2020/src/event/ActionManager.mjs +0 -91
  436. package/esm2020/src/event/Event.mjs +0 -1333
  437. package/esm2020/src/event/EventHandler.mjs +0 -766
  438. package/esm2020/src/event/EventHandlerPosition.mjs +0 -204
  439. package/esm2020/src/event/EventsManager.mjs +0 -2975
  440. package/esm2020/src/event/RunTimeEvent.mjs +0 -392
  441. package/esm2020/src/event/UserEventsTable.mjs +0 -47
  442. package/esm2020/src/exp/ExpTable.mjs +0 -59
  443. package/esm2020/src/exp/Expression.mjs +0 -200
  444. package/esm2020/src/exp/ExpressionDict.mjs +0 -727
  445. package/esm2020/src/exp/ExpressionEvaluator.mjs +0 -4212
  446. package/esm2020/src/exp/ExpressionLocalJpn.mjs +0 -314
  447. package/esm2020/src/exp/YesNoExp.mjs +0 -36
  448. package/esm2020/src/gui/CreatedFormVector.mjs +0 -23
  449. package/esm2020/src/gui/FormsTable.mjs +0 -66
  450. package/esm2020/src/gui/MgControl.mjs +0 -353
  451. package/esm2020/src/gui/MgForm.mjs +0 -1181
  452. package/esm2020/src/http/HttpManager.mjs +0 -97
  453. package/esm2020/src/http/client/HttpClientAsync.mjs +0 -67
  454. package/esm2020/src/http/client/HttpClientEvents.mjs +0 -39
  455. package/esm2020/src/http/client/HttpClientSync.mjs +0 -42
  456. package/esm2020/src/http/client/HttpUtility.mjs +0 -84
  457. package/esm2020/src/remote/RemoteCommandsProcessor.mjs +0 -880
  458. package/esm2020/src/remote/ServerError.mjs +0 -40
  459. package/esm2020/src/rt/Argument.mjs +0 -265
  460. package/esm2020/src/rt/ArgumentsList.mjs +0 -103
  461. package/esm2020/src/rt/Boundary.mjs +0 -152
  462. package/esm2020/src/rt/CompMainPrgTable.mjs +0 -65
  463. package/esm2020/src/rt/DataviewHeaderBase.mjs +0 -96
  464. package/esm2020/src/rt/DataviewHeaders.mjs +0 -53
  465. package/esm2020/src/rt/LastFocusedManager.mjs +0 -67
  466. package/esm2020/src/rt/Operation.mjs +0 -735
  467. package/esm2020/src/rt/OperationTable.mjs +0 -67
  468. package/esm2020/src/rt/Recompute.mjs +0 -355
  469. package/esm2020/src/rt/ResultValue.mjs +0 -12
  470. package/esm2020/src/rt/TableCache.mjs +0 -177
  471. package/esm2020/src/rt/TableCacheManager.mjs +0 -67
  472. package/esm2020/src/rt/Transaction.mjs +0 -53
  473. package/esm2020/src/security/UserDetails.mjs +0 -71
  474. package/esm2020/src/tasks/MGData.mjs +0 -552
  475. package/esm2020/src/tasks/MGDataCollection.mjs +0 -252
  476. package/esm2020/src/tasks/RCTimer.mjs +0 -63
  477. package/esm2020/src/tasks/Task.mjs +0 -2495
  478. package/esm2020/src/tasks/TaskBase.mjs +0 -87
  479. package/esm2020/src/tasks/TasksTable.mjs +0 -80
  480. package/esm2020/src/tasks/sort/Sort.mjs +0 -7
  481. package/esm2020/src/util/FlowMonitorQueue.mjs +0 -453
  482. package/esm2020/src/util/MgPriorityBlockingQueue.mjs +0 -74
  483. package/esm2020/src/util/MgPriorityQueue.mjs +0 -66
  484. package/esm2020/src/util/PrmMap.mjs +0 -151
  485. package/esm2020/src/util/ReturnResult.mjs +0 -46
  486. package/esm2020/src/util/ReturnResultBase.mjs +0 -18
  487. package/esm2020/src/util/Scrambler.mjs +0 -89
  488. package/esm2020/src/util/UniqueIDUtils.mjs +0 -12
  489. package/fesm2015/magic-xpa-engine.mjs +0 -30835
  490. package/fesm2015/magic-xpa-engine.mjs.map +0 -1
  491. package/fesm2020/magic-xpa-engine.mjs.map +0 -1
@@ -0,0 +1,735 @@
1
+ import { ApplicationException, Debug, Int32, NNumber, NString, Thread } from '@magic-xpa/mscorelib';
2
+ import { Constants, Logger, StorageAttribute, StorageAttributeCheck, StrUtil, UtilStrByteMode, XMLConstants, XmlParser } from '@magic-xpa/utils';
3
+ import { Commands, NUM_TYPE, PropInterface, Styles, TaskDefinitionIdTableSaxHandler, VectorType } from '@magic-xpa/gui';
4
+ import { YesNoExp } from '../exp/YesNoExp';
5
+ import { ArgumentsList } from './ArgumentsList';
6
+ import { RunTimeEvent } from '../event/RunTimeEvent';
7
+ import { CommandFactory } from '../commands/ClientToServer/CommandFactory';
8
+ import { FlowMonitorQueue } from '../util/FlowMonitorQueue';
9
+ import { ExecOperCommand } from '../commands/ClientToServer/ExecOperCommand';
10
+ import { ConstInterface } from '../ConstInterface';
11
+ import { FlowMonitorInterface } from '../FlowMonitorInterface';
12
+ import { LanguageData } from '../env/LanguageData';
13
+ import { LastFocusedManager } from './LastFocusedManager';
14
+ import { AccessHelper, ClearEventsOnStopExecution } from '../AccessHelper';
15
+ import { GUIManager } from '../GUIManager';
16
+ export class Operation {
17
+ _condExp = new YesNoExp(true);
18
+ _retainFocus = new YesNoExp(false);
19
+ _waitExp = new YesNoExp(false);
20
+ _syncData = new YesNoExp(false);
21
+ _argList = null;
22
+ _blockClose = 0;
23
+ _blockEnd = 0;
24
+ _buttons = '\0';
25
+ _checkByServer = false;
26
+ _cmdToServer = null;
27
+ _display = 'S';
28
+ _errLogAppend = false;
29
+ _evtHandler = null;
30
+ _execOnServer = false;
31
+ _execOnClient = false;
32
+ _exp = null;
33
+ _field = null;
34
+ _image = '\0';
35
+ _incremental = false;
36
+ _mode = '\0';
37
+ _publicName = null;
38
+ _returnVal = null;
39
+ _rtEvt = null;
40
+ _serverId = -1;
41
+ calledTaskDefinitionId = null;
42
+ _subformCtrlName = null;
43
+ _subtype = '\0';
44
+ _task = null;
45
+ _text = null;
46
+ _title = null;
47
+ _titleExp = null;
48
+ _type = 0;
49
+ _undo = true;
50
+ _isRoute = false;
51
+ _routerPath = null;
52
+ _originalRouterOutletName = null;
53
+ _routeParams = null;
54
+ constructor() {
55
+ }
56
+ get CalledTaskDefinitionId() {
57
+ return this.calledTaskDefinitionId;
58
+ }
59
+ OperCallMode;
60
+ set Task(value) {
61
+ this._task = value;
62
+ }
63
+ get Task() {
64
+ return this._task;
65
+ }
66
+ async Immediate() {
67
+ return await this._waitExp.getVal();
68
+ }
69
+ fillData(taskRef, evtHandler, parser) {
70
+ this._task = taskRef;
71
+ this._evtHandler = evtHandler;
72
+ while (this.initInnerObjects(parser, parser.getNextTag(), taskRef)) {
73
+ }
74
+ }
75
+ initInnerObjects(parser, foundTagName, taskRef) {
76
+ if (foundTagName === null)
77
+ return false;
78
+ if (foundTagName === ConstInterface.MG_TAG_EVENT) {
79
+ this._rtEvt = new RunTimeEvent(taskRef);
80
+ this._rtEvt.fillData(parser, taskRef);
81
+ }
82
+ else if (foundTagName === ConstInterface.MG_TAG_OPER) {
83
+ this.fillAttributes(parser, taskRef);
84
+ }
85
+ else if (foundTagName === "/" + ConstInterface.MG_TAG_OPER) {
86
+ parser.setCurrIndex2EndOfTag();
87
+ return false;
88
+ }
89
+ else if (foundTagName === XMLConstants.MG_TAG_TASKDEFINITIONID_ENTRY) {
90
+ this.InitTaskDefinitionID(parser);
91
+ }
92
+ else {
93
+ Logger.Instance.WriteExceptionToLogWithMsg("There is no such tag in Operation. Insert else if to Operation.initInnerObjects for " + foundTagName);
94
+ return false;
95
+ }
96
+ return true;
97
+ }
98
+ fillAttributes(parser, taskRef) {
99
+ let tokensVector;
100
+ let endContext = parser.getXMLdata().indexOf(XMLConstants.TAG_CLOSE, parser.getCurrIndex());
101
+ if (endContext !== -1 && endContext < parser.getXMLdata().length) {
102
+ let tag = parser.getXMLsubstring(endContext);
103
+ parser.add2CurrIndex(tag.indexOf(ConstInterface.MG_TAG_OPER) + ConstInterface.MG_TAG_OPER.length);
104
+ tokensVector = XmlParser.getTokens(parser.getXMLsubstring(endContext), XMLConstants.XML_ATTR_DELIM);
105
+ this.initElements(tokensVector, taskRef);
106
+ parser.setCurrIndex(endContext + XMLConstants.TAG_CLOSE.length);
107
+ return;
108
+ }
109
+ Logger.Instance.WriteExceptionToLogWithMsg("in Command.FillData() out of string bounds");
110
+ }
111
+ initElements(tokensVector, taskRef) {
112
+ let attribute, valueStr;
113
+ let expId;
114
+ for (let j = 0; j < tokensVector.length; j += 2) {
115
+ attribute = (tokensVector.get_Item(j));
116
+ valueStr = (tokensVector.get_Item(j + 1));
117
+ switch (attribute) {
118
+ case XMLConstants.MG_ATTR_TYPE:
119
+ this._type = XmlParser.getInt(valueStr);
120
+ break;
121
+ case ConstInterface.MG_ATTR_FLD:
122
+ this._field = Operation.InitField(valueStr, this._task);
123
+ break;
124
+ case XMLConstants.MG_ATTR_EXP:
125
+ expId = XmlParser.getInt(valueStr);
126
+ this._exp = taskRef.getExpById(expId);
127
+ break;
128
+ case ConstInterface.MG_ATTR_TEXT:
129
+ this._text = XmlParser.unescape(valueStr);
130
+ break;
131
+ case ConstInterface.MG_ATTR_MODE:
132
+ this._mode = valueStr[0];
133
+ break;
134
+ case ConstInterface.MG_ATTR_SUBTYPE:
135
+ this._subtype = valueStr[0];
136
+ if (this._type === ConstInterface.MG_OPER_BLOCK) {
137
+ if (this._subtype === 'E')
138
+ this._type = ConstInterface.MG_OPER_ELSE;
139
+ else if (this._subtype === 'L')
140
+ this._type = ConstInterface.MG_OPER_LOOP;
141
+ }
142
+ break;
143
+ case ConstInterface.MG_ATTR_CLOSE:
144
+ this._blockClose = XmlParser.getInt(valueStr);
145
+ break;
146
+ case ConstInterface.MG_ATTR_END:
147
+ this._blockEnd = XmlParser.getInt(valueStr);
148
+ break;
149
+ case ConstInterface.MG_ATTR_HOW:
150
+ this._incremental = (valueStr === "I");
151
+ break;
152
+ case ConstInterface.MG_ATTR_UNDO:
153
+ if (valueStr[0] === 'N')
154
+ this._undo = false;
155
+ else if (valueStr[0] === 'Y')
156
+ this._undo = true;
157
+ else
158
+ Logger.Instance.WriteExceptionToLogWithMsg("in Operation.initElements(): No such value to the MG_ATTR_UNDO for " + valueStr);
159
+ break;
160
+ case ConstInterface.MG_ATTR_DISPLAY:
161
+ this._display = valueStr[0];
162
+ break;
163
+ case ConstInterface.MG_ATTR_WAIT:
164
+ this._waitExp.setVal(taskRef, valueStr);
165
+ break;
166
+ case ConstInterface.MG_ATTR_RETAIN_FOCUS:
167
+ this._retainFocus.setVal(taskRef, valueStr);
168
+ break;
169
+ case ConstInterface.MG_ATTR_SYNC_DATA:
170
+ this._syncData.setVal(taskRef, valueStr);
171
+ break;
172
+ case ConstInterface.MG_ATTR_SHOW:
173
+ break;
174
+ case ConstInterface.MG_ATTR_CND:
175
+ this._condExp.setVal(taskRef, valueStr);
176
+ break;
177
+ case ConstInterface.MG_ATTR_ARGLIST:
178
+ this._argList = new ArgumentsList();
179
+ this._argList.fillList(valueStr, this._task);
180
+ break;
181
+ case ConstInterface.MG_ATTR_REFRESHON:
182
+ this._argList.RefreshOnString = valueStr.Trim();
183
+ break;
184
+ case ConstInterface.MG_ATTR_SERVER_ID:
185
+ this._serverId = XmlParser.getInt(valueStr);
186
+ break;
187
+ case ConstInterface.MG_ATTR_OPER_CALLMODE:
188
+ this.OperCallMode = valueStr[0];
189
+ break;
190
+ case ConstInterface.MG_ATTR_SUBFORM_CTRL:
191
+ this._subformCtrlName = XmlParser.unescape(valueStr);
192
+ break;
193
+ case ConstInterface.MG_ATTR_CHECK_BY_SERVER:
194
+ this._checkByServer = XmlParser.getBoolean(valueStr);
195
+ break;
196
+ case ConstInterface.MG_ATTR_PUBLIC:
197
+ this._publicName = valueStr;
198
+ break;
199
+ case ConstInterface.MG_ATTR_PRG_DESCRIPTION:
200
+ break;
201
+ case ConstInterface.MG_ATTR_CPY_GLB_PRMS:
202
+ break;
203
+ case ConstInterface.MG_ATTR_EXEC_ON_SERVER:
204
+ this._execOnServer = XmlParser.getBoolean(valueStr);
205
+ break;
206
+ case ConstInterface.MG_ATTR_EXEC_ON_CLIENT:
207
+ this._execOnClient = XmlParser.getBoolean(valueStr);
208
+ break;
209
+ case ConstInterface.MG_ATTR_TITLE:
210
+ this._title = XmlParser.unescape(valueStr);
211
+ break;
212
+ case ConstInterface.MG_ATTR_TITLE_EXP:
213
+ expId = XmlParser.getInt(valueStr);
214
+ this._titleExp = taskRef.getExpById(expId);
215
+ break;
216
+ case ConstInterface.MG_ATTR_IMAGE:
217
+ this._image = valueStr[0];
218
+ break;
219
+ case ConstInterface.MG_ATTR_BUTTONS:
220
+ this._buttons = valueStr[0];
221
+ break;
222
+ case ConstInterface.MG_ATTR_RETURN_VAL:
223
+ this._returnVal = Operation.InitField(valueStr, this._task);
224
+ break;
225
+ case ConstInterface.MG_ATTR_ERR_LOG_APPEND:
226
+ this._errLogAppend = XmlParser.getBoolean(valueStr);
227
+ break;
228
+ case ConstInterface.MG_ATTR_OPER_METHODNAME:
229
+ break;
230
+ case ConstInterface.MG_ATTR_IS_GUI_THREAD_EXECUTION:
231
+ break;
232
+ case ConstInterface.MG_ATTR_IS_ROUTE:
233
+ this._isRoute = XmlParser.getBoolean(valueStr);
234
+ break;
235
+ case XMLConstants.MG_ATTR_ROUTER_PATH:
236
+ this._routerPath = XmlParser.unescape(valueStr);
237
+ break;
238
+ default:
239
+ Logger.Instance.WriteExceptionToLogWithMsg("There is no such tag in Operation class. Insert case to Operation.initElements for " + attribute);
240
+ break;
241
+ }
242
+ }
243
+ if (this._serverId > -1)
244
+ this._cmdToServer = CommandFactory.CreateExecOperCommand(this._task.getTaskTag(), "" + this._evtHandler.getId(), this._serverId, Int32.MinValue, null);
245
+ if (this._isRoute) {
246
+ this._originalRouterOutletName = this._subformCtrlName !== null ? this._subformCtrlName : "";
247
+ if (this._subformCtrlName == null) {
248
+ let defaultRouterOutlet = this._task.getForm().DefaultRouterOutlet;
249
+ this._subformCtrlName = defaultRouterOutlet !== null ? defaultRouterOutlet.Name : "";
250
+ }
251
+ }
252
+ }
253
+ InitTaskDefinitionID(parser) {
254
+ let xmlBuffer = parser.ReadToEndOfCurrentElement();
255
+ let taskDefinitionIdTableSaxHandler = new TaskDefinitionIdTableSaxHandler(this.SetTaskDefinitionId);
256
+ taskDefinitionIdTableSaxHandler.parse(xmlBuffer);
257
+ }
258
+ SetTaskDefinitionId(taskDefinitionId) {
259
+ this.calledTaskDefinitionId = taskDefinitionId;
260
+ }
261
+ static InitField(valueStr, task) {
262
+ let TaskField = XmlParser.getTokens(valueStr, ',');
263
+ if (TaskField.length === 2) {
264
+ let parent = NNumber.Parse(TaskField.get_Item(0));
265
+ let fldID = NNumber.Parse(TaskField.get_Item(1));
266
+ let field = task.getFieldDef(parent, fldID);
267
+ return field;
268
+ }
269
+ Logger.Instance.WriteExceptionToLogWithMsg(NString.Format("Unknown field: '{0}'", valueStr));
270
+ return null;
271
+ }
272
+ async execute(returnedFromServer) {
273
+ let lastRtEvent = AccessHelper.eventsManager.getLastRtEvent();
274
+ let mprgCreator = null;
275
+ let flowMonitor = FlowMonitorQueue.Instance;
276
+ if (lastRtEvent !== null)
277
+ mprgCreator = lastRtEvent.getMainPrgCreator();
278
+ if (returnedFromServer ||
279
+ (!returnedFromServer && (this._type !== ConstInterface.MG_OPER_SERVER || !this._condExp.isServerExp()))) {
280
+ if (!await this.canExecute()) {
281
+ if (this._type !== ConstInterface.MG_OPER_LOOP)
282
+ await flowMonitor.addFlowFieldOperation(this, false, this._task.GetTaskDetails());
283
+ return false;
284
+ }
285
+ }
286
+ if (this._type !== ConstInterface.MG_OPER_LOOP && this._type !== ConstInterface.MG_OPER_ENDBLOCK)
287
+ await flowMonitor.addFlowFieldOperation(this, true, this._task.GetTaskDetails());
288
+ try {
289
+ switch (this._type) {
290
+ case ConstInterface.MG_OPER_VERIFY:
291
+ return await this.operVerify();
292
+ case ConstInterface.MG_OPER_BLOCK:
293
+ return this.operBlock();
294
+ case ConstInterface.MG_OPER_LOOP:
295
+ if (!this.getExecOnServer())
296
+ return this.operBlock();
297
+ else {
298
+ await this.operServer(mprgCreator);
299
+ break;
300
+ }
301
+ case ConstInterface.MG_OPER_ELSE:
302
+ return this.operElse();
303
+ case ConstInterface.MG_OPER_EVALUATE:
304
+ await this.operEvaluate();
305
+ break;
306
+ case ConstInterface.MG_OPER_UPDATE:
307
+ await this.operUpdate(mprgCreator);
308
+ break;
309
+ case ConstInterface.MG_OPER_RAISE_EVENT:
310
+ await this.operRaiseEvent(mprgCreator, returnedFromServer);
311
+ break;
312
+ case ConstInterface.MG_OPER_SERVER:
313
+ await this.operServer(mprgCreator);
314
+ break;
315
+ case ConstInterface.MG_OPER_CALL:
316
+ if (this._publicName != null) {
317
+ this.operCallParallel();
318
+ }
319
+ else if (this._subformCtrlName == null)
320
+ await this.operCall(mprgCreator);
321
+ else {
322
+ let subformTask;
323
+ let isEndProg = true;
324
+ if (this._checkByServer) {
325
+ if (!(this._cmdToServer instanceof ExecOperCommand))
326
+ Debug.Assert(false);
327
+ let command = this._cmdToServer;
328
+ command.CheckOnly = true;
329
+ await this.operCall(mprgCreator);
330
+ command.CheckOnly = false;
331
+ if (AccessHelper.eventsManager.getNextOperIdx(this, true) > -1)
332
+ isEndProg = false;
333
+ }
334
+ if (isEndProg) {
335
+ let destSubForm = this._task.getForm().getSubFormCtrlByName(this._subformCtrlName);
336
+ if (this._isRoute && (destSubForm === null || !destSubForm.IsRouterOutlet()))
337
+ return false;
338
+ if (destSubForm != null) {
339
+ if (this._isRoute) {
340
+ let canRoute = false;
341
+ let rtEvnt = AccessHelper.eventsManager.getLastRtEvent();
342
+ if (rtEvnt !== null) {
343
+ this._routeParams = rtEvnt.getRouteParamList();
344
+ if ((await rtEvnt.getArgList().getArg(0).getValue(StorageAttribute.ALPHA, 0)).trim() === this._routerPath &&
345
+ ((rtEvnt.getArgList().getArg(1).skipArg() && destSubForm === this._task.getForm().DefaultRouterOutlet) ||
346
+ (!rtEvnt.getArgList().getArg(1).skipArg() && (await rtEvnt.getArgList().getArg(1).getValue(StorageAttribute.ALPHA, 0)).trim() === this._originalRouterOutletName)))
347
+ canRoute = true;
348
+ if (!canRoute)
349
+ return false;
350
+ }
351
+ }
352
+ subformTask = destSubForm.getSubformTask();
353
+ if (subformTask != null) {
354
+ let terminateTaskGracefully = true;
355
+ let rtEvnt = AccessHelper.eventsManager.getLastRtEvent();
356
+ if (this._isRoute && rtEvnt !== null && rtEvnt.isGuiTriggeredEvent()) {
357
+ terminateTaskGracefully = false;
358
+ AccessHelper.eventsManager.setStopExecution(true, ClearEventsOnStopExecution.NONE);
359
+ }
360
+ if (await subformTask.endTask(true, false, !terminateTaskGracefully, true)) {
361
+ let parentTask = destSubForm.getForm().getTask();
362
+ parentTask.TaskService.RemoveRecomputes(parentTask);
363
+ }
364
+ else
365
+ break;
366
+ }
367
+ if (LastFocusedManager.getLastFocusedControl() != null &&
368
+ LastFocusedManager.getLastFocusedControl().isDescendentOfControl(destSubForm))
369
+ this._task.RetainFocus = false;
370
+ else
371
+ this._task.RetainFocus = await this._retainFocus.getVal();
372
+ }
373
+ await this.operCall(mprgCreator);
374
+ }
375
+ }
376
+ return this._isRoute;
377
+ default:
378
+ Logger.Instance.WriteExceptionToLogWithMsg("There is no such type of operation " + this._type);
379
+ break;
380
+ }
381
+ }
382
+ catch (ex) {
383
+ throw ex;
384
+ }
385
+ return true;
386
+ }
387
+ operCallParallel() {
388
+ Operation.callParallel();
389
+ }
390
+ static callParallel() {
391
+ }
392
+ async getCondVal() {
393
+ return await this._condExp.getVal();
394
+ }
395
+ getType() {
396
+ return this._type;
397
+ }
398
+ getRouteParams() {
399
+ return this._routeParams;
400
+ }
401
+ getServerId() {
402
+ return this._serverId;
403
+ }
404
+ async operVerify() {
405
+ let isError = (this._mode === ConstInterface.FLW_VERIFY_MODE_ERROR);
406
+ let textToDisplay = this._exp === null ? this._text : await this._exp.evaluateWithResultTypeAndLength(StorageAttribute.UNICODE, 255);
407
+ let titleToDisplay = this._titleExp === null ? this._title : await this._titleExp.evaluateWithResultTypeAndLength(StorageAttribute.UNICODE, 255);
408
+ textToDisplay = textToDisplay === null ? "" : StrUtil.rtrim(textToDisplay);
409
+ titleToDisplay = titleToDisplay === null ? "" : StrUtil.rtrim(titleToDisplay);
410
+ if (this._errLogAppend) {
411
+ let prgDescription = this._task.GetContextTask().GetComputedProperty(PropInterface.PROP_TYPE_NAME).GetComputedValue();
412
+ Logger.Instance.WriteExceptionToLogWithMsg(textToDisplay + ", program : " + prgDescription);
413
+ }
414
+ if (this._display === ConstInterface.DISPLAY_STATUS) {
415
+ if (!NString.IsNullOrEmpty(textToDisplay)) {
416
+ FlowMonitorQueue.Instance.addFlowVerifyInfo(textToDisplay, this._task.GetTaskDetails());
417
+ this._task.GetContextTask().WriteToMessagePane(textToDisplay);
418
+ }
419
+ }
420
+ else {
421
+ if (!NString.IsNullOrEmpty(textToDisplay)) {
422
+ let mlsTransTextToDisplay = LanguageData.Instance.translate(textToDisplay);
423
+ let mlsTransTitleToDisplay = LanguageData.Instance.translate(titleToDisplay);
424
+ let verifyMode = Operation.getButtons(this._buttons);
425
+ verifyMode = verifyMode || Operation.getImage(this._image);
426
+ verifyMode = verifyMode;
427
+ if (UtilStrByteMode.isLocaleDefLangJPN()) {
428
+ let delimPos = mlsTransTextToDisplay.indexOf('|');
429
+ if (0 <= delimPos && delimPos < mlsTransTextToDisplay.length) {
430
+ mlsTransTitleToDisplay = mlsTransTextToDisplay.substr(delimPos + 1);
431
+ mlsTransTextToDisplay = mlsTransTextToDisplay.substr(0, delimPos);
432
+ }
433
+ }
434
+ let mgForm = null;
435
+ if (!this._task.GetContextTask().getMGData().IsAborting)
436
+ mgForm = this._task.GetContextTask().getTopMostForm();
437
+ if (mgForm == null && LastFocusedManager.Instance.getLastFocusedTask() != null)
438
+ mgForm = LastFocusedManager.Instance.getLastFocusedTask().getTopMostForm();
439
+ if (mgForm != null) {
440
+ mgForm.RefreshUI();
441
+ Commands.invoke();
442
+ await Thread.Sleep(10);
443
+ }
444
+ let returnValue = await GUIManager.Instance.MessageBox(mlsTransTitleToDisplay, mlsTransTextToDisplay, verifyMode);
445
+ await Operation.setoperVerifyReturnValue(returnValue, this._returnVal);
446
+ }
447
+ }
448
+ return isError;
449
+ }
450
+ static getButtons(buttonsID) {
451
+ let tmpbuttons = 0;
452
+ switch (buttonsID) {
453
+ case ConstInterface.BUTTONS_OK:
454
+ tmpbuttons = Styles.MSGBOX_BUTTON_OK;
455
+ break;
456
+ case ConstInterface.BUTTONS_OK_CANCEL:
457
+ tmpbuttons = Styles.MSGBOX_BUTTON_OK_CANCEL;
458
+ break;
459
+ case ConstInterface.BUTTONS_ABORT_RETRY_IGNORE:
460
+ tmpbuttons = Styles.MSGBOX_BUTTON_ABORT_RETRY_IGNORE;
461
+ break;
462
+ case ConstInterface.BUTTONS_YES_NO_CANCEL:
463
+ tmpbuttons = Styles.MSGBOX_BUTTON_YES_NO_CANCEL;
464
+ break;
465
+ case ConstInterface.BUTTONS_YES_NO:
466
+ tmpbuttons = Styles.MSGBOX_BUTTON_YES_NO;
467
+ break;
468
+ case ConstInterface.BUTTONS_RETRY_CANCEL:
469
+ tmpbuttons = Styles.MSGBOX_BUTTON_RETRY_CANCEL;
470
+ break;
471
+ default:
472
+ break;
473
+ }
474
+ return tmpbuttons;
475
+ }
476
+ static getImage(imageID) {
477
+ let tmpImage = 0;
478
+ switch (imageID) {
479
+ case ConstInterface.IMAGE_EXCLAMATION:
480
+ tmpImage = Styles.MSGBOX_ICON_EXCLAMATION;
481
+ break;
482
+ case ConstInterface.IMAGE_CRITICAL:
483
+ tmpImage = Styles.MSGBOX_ICON_ERROR;
484
+ break;
485
+ case ConstInterface.IMAGE_QUESTION:
486
+ tmpImage = Styles.MSGBOX_ICON_QUESTION;
487
+ break;
488
+ case ConstInterface.IMAGE_INFORMATION:
489
+ tmpImage = Styles.MSGBOX_ICON_INFORMATION;
490
+ break;
491
+ default:
492
+ break;
493
+ }
494
+ return tmpImage;
495
+ }
496
+ static async setoperVerifyReturnValue(returnValue, returnVal) {
497
+ if (returnVal !== null) {
498
+ let retValueNum = new NUM_TYPE();
499
+ retValueNum.NUM_4_LONG(returnValue);
500
+ let returnValueStr = retValueNum.toXMLrecord();
501
+ await returnVal.setValueAndStartRecompute(returnValueStr, false, true, true, false);
502
+ await returnVal.updateDisplay();
503
+ }
504
+ }
505
+ operBlock() {
506
+ return true;
507
+ }
508
+ operElse() {
509
+ return true;
510
+ }
511
+ async operEvaluate() {
512
+ let result = '\0';
513
+ if (this._field !== null) {
514
+ result = await this._exp.evaluateWithResultTypeAndLength(this._field.getType(), this._field.getSize());
515
+ await this._field.setValueAndStartRecompute(result, result === null, true, true, false);
516
+ await this._field.updateDisplay();
517
+ }
518
+ else
519
+ result = await this._exp.evaluateWithResultTypeAndLength(StorageAttribute.BOOLEAN, 0);
520
+ }
521
+ async operUpdate(mprgCreator) {
522
+ let result, oldVal, newVal, fieldVal;
523
+ let setRecordUpdated;
524
+ let recompute;
525
+ let nOld, nNew, nResult;
526
+ let flowMonitor = FlowMonitorQueue.Instance;
527
+ flowMonitor.addFlowOperationUpdate(FlowMonitorInterface.FLWMTR_START, this._task.GetTaskDetails());
528
+ if (!this._field.DbModifiable && (this._task.getMode() !== Constants.TASK_MODE_CREATE)) {
529
+ if (!await this.CanModify(mprgCreator))
530
+ return;
531
+ }
532
+ let fieldType = this._field.getType();
533
+ if (this._incremental) {
534
+ if (!this._field.IsLinkField) {
535
+ fieldVal = this._field.getValue(true);
536
+ nResult = (fieldVal != null
537
+ ? new NUM_TYPE(fieldVal)
538
+ : null);
539
+ if (this._task.getMode() !== Constants.TASK_MODE_CREATE) {
540
+ this._task.setEvalOldValues(true);
541
+ oldVal = (this._field.isNull()
542
+ ? this._field.getMagicDefaultValue()
543
+ : await this._exp.evaluateWithResultTypeAndLength(fieldType, this._field.getSize()));
544
+ this._task.setEvalOldValues(false);
545
+ nOld = new NUM_TYPE(oldVal);
546
+ nResult = NUM_TYPE.sub(nResult, nOld);
547
+ }
548
+ if (this._task.getMode() !== Constants.TASK_MODE_DELETE) {
549
+ newVal = await this._exp.evaluateWithResultTypeAndLength(fieldType, this._field.getSize());
550
+ if (newVal != null) {
551
+ nNew = new NUM_TYPE(newVal);
552
+ nResult = NUM_TYPE.add(nResult, nNew);
553
+ }
554
+ else
555
+ nNew = nResult = null;
556
+ }
557
+ if (nResult != null)
558
+ result = nResult.toXMLrecord();
559
+ else
560
+ result = this._field.getMagicDefaultValue();
561
+ }
562
+ else {
563
+ await this.operServer(mprgCreator);
564
+ return;
565
+ }
566
+ }
567
+ else
568
+ result = await this._exp.evaluateWithResultTypeAndLength(fieldType, this._field.getSize());
569
+ if (fieldType === StorageAttribute.BLOB_VECTOR)
570
+ if (result != null)
571
+ result = Operation.operUpdateVectors(this._field, result);
572
+ recompute = (this._field.getTask() === this._task);
573
+ setRecordUpdated = (!recompute || !this._undo);
574
+ await this._field.setValueAndStartRecompute(result, result == null, true, setRecordUpdated, false);
575
+ if (!this._undo)
576
+ this._field.setUpdated();
577
+ this._field.setModified();
578
+ await this._field.updateDisplay();
579
+ flowMonitor.addFlowOperationUpdate(FlowMonitorInterface.FLWMTR_END, this._task.GetTaskDetails());
580
+ }
581
+ async CanModify(mprgCreator) {
582
+ let execOperCommand = ((this._cmdToServer instanceof ExecOperCommand) ? this._cmdToServer : null);
583
+ execOperCommand.Operation = this;
584
+ execOperCommand.MprgCreator = mprgCreator;
585
+ return (await this.Task.DataviewManager.Execute(this._cmdToServer)).Success;
586
+ }
587
+ static operUpdateVectors(field, vec) {
588
+ let result = null;
589
+ if (field.getType() === StorageAttribute.BLOB_VECTOR) {
590
+ let cellsAttr = VectorType.getCellsAttr(vec);
591
+ let cellsType = field.getCellsType();
592
+ if (StorageAttributeCheck.isTheSameType(cellsAttr, cellsType)) {
593
+ let newVec = new VectorType(vec);
594
+ newVec.adjustToFit(field);
595
+ return newVec.toString();
596
+ }
597
+ return result;
598
+ }
599
+ throw new ApplicationException("in operUpdateVectors " + field.getName() + " is not of type vector");
600
+ }
601
+ async operRaiseEvent(mprgCreator, returnedFromServer) {
602
+ let immediate = await this.Immediate();
603
+ let aRtEvt = this._rtEvt.replicate();
604
+ await aRtEvt.setPublicName();
605
+ aRtEvt.setImmediate(immediate);
606
+ aRtEvt.setMainPrgCreator(null);
607
+ if (immediate) {
608
+ aRtEvt.setCtrl(this._task.getLastParkedCtrl());
609
+ aRtEvt.setArgList(this._argList);
610
+ if (aRtEvt.getTask().isMainProg())
611
+ aRtEvt.setMainPrgCreator(mprgCreator);
612
+ AccessHelper.eventsManager.checkAndSaveRouteEventIfCtxRemovedFromSrvr(aRtEvt);
613
+ AccessHelper.eventsManager.pushExecStack(this._task.getTaskTag(), this._evtHandler.getId().toString(), this._serverId);
614
+ await AccessHelper.eventsManager.handleEvent(aRtEvt, returnedFromServer);
615
+ AccessHelper.eventsManager.popExecStack();
616
+ }
617
+ else {
618
+ let arglist = new ArgumentsList();
619
+ await arglist.Initialize(this._argList);
620
+ aRtEvt.setArgList(arglist);
621
+ aRtEvt.setTask(null);
622
+ AccessHelper.eventsManager.addToTail(aRtEvt);
623
+ AccessHelper.eventsManager.checkAndSaveRouteEventIfCtxRemovedFromSrvr(aRtEvt);
624
+ }
625
+ }
626
+ async operCall(mprgCreator) {
627
+ await this.operServer(mprgCreator);
628
+ }
629
+ async operServer(mprgCreator) {
630
+ let command = ((this._cmdToServer instanceof ExecOperCommand) ? this._cmdToServer : null);
631
+ Debug.Assert(command !== null);
632
+ if (this._task.isMainProg())
633
+ command.MprgCreator = mprgCreator;
634
+ else
635
+ command.MprgCreator = null;
636
+ command.SetExecutionStack(AccessHelper.eventsManager.getExecStack());
637
+ command.Operation = this;
638
+ await AccessHelper.mgDataTable.execRequestWithSubformRecordCycle(this._task.getMGData().CmdsToServer, this._cmdToServer, null);
639
+ }
640
+ getBlockEnd() {
641
+ return this._blockEnd;
642
+ }
643
+ setBlockEnd(val) {
644
+ this._blockEnd = val;
645
+ }
646
+ getBlockClose() {
647
+ return this._blockClose;
648
+ }
649
+ setBlockClose(val) {
650
+ this._blockClose = val;
651
+ }
652
+ getTaskTag() {
653
+ return this._task.getTaskTag();
654
+ }
655
+ getHandlerId() {
656
+ return this._evtHandler.getId().toString();
657
+ }
658
+ getEventHandler() {
659
+ return this._evtHandler;
660
+ }
661
+ getExecOnServer() {
662
+ return this._execOnServer;
663
+ }
664
+ setExecOnServer(val) {
665
+ this._execOnServer = val;
666
+ }
667
+ getExecOnClient() {
668
+ return this._execOnClient;
669
+ }
670
+ async canExecute() {
671
+ return await this.getCondVal();
672
+ }
673
+ async AddFlowDescription(buffer) {
674
+ switch (this._type) {
675
+ case ConstInterface.MG_OPER_VERIFY:
676
+ buffer.Append("Verify: ");
677
+ if (this._exp == null)
678
+ buffer.Append(this._text);
679
+ else
680
+ buffer.Append("Exp #").Append(this._exp.getId());
681
+ break;
682
+ case ConstInterface.MG_OPER_BLOCK:
683
+ buffer.Append("Block If");
684
+ break;
685
+ case ConstInterface.MG_OPER_LOOP:
686
+ buffer.Append("Block Loop");
687
+ break;
688
+ case ConstInterface.MG_OPER_ELSE:
689
+ buffer.Append("Block Else");
690
+ break;
691
+ case ConstInterface.MG_OPER_EVALUATE:
692
+ buffer.Append("Evaluate Exp #").Append(this._exp.getId());
693
+ break;
694
+ case ConstInterface.MG_OPER_UPDATE:
695
+ buffer.AppendFormat("Update {0} with Exp #{1}", this._field.getVarName(), this._exp.getId());
696
+ break;
697
+ case ConstInterface.MG_OPER_ENDBLOCK:
698
+ buffer.Append("End Block");
699
+ break;
700
+ case ConstInterface.MG_OPER_USR_EXIT:
701
+ buffer.Append("Invoke OS");
702
+ break;
703
+ case ConstInterface.MG_OPER_RAISE_EVENT:
704
+ buffer.Append("Raise Event:");
705
+ this._rtEvt.AppendDescription(buffer);
706
+ buffer.AppendFormat(" (Wait={0})", (await this.Immediate() ? 'Y' : 'N'));
707
+ break;
708
+ case ConstInterface.MG_OPER_SERVER:
709
+ buffer.Append("Run server-side operation");
710
+ break;
711
+ case ConstInterface.MG_OPER_CALL:
712
+ buffer.Append("Call program");
713
+ break;
714
+ default:
715
+ buffer.AppendFormat("<<Unknown Operation Code {0}>>", this._type);
716
+ break;
717
+ }
718
+ }
719
+ GetArgList() {
720
+ return this._argList;
721
+ }
722
+ GetReturnValueField() {
723
+ return this._field;
724
+ }
725
+ GetSubformControlName() {
726
+ return this._subformCtrlName;
727
+ }
728
+ toString() {
729
+ return NString.Format("Executing operation number {0}", this._serverId + 1);
730
+ }
731
+ GetRuntimeEvent() {
732
+ return this._rtEvt;
733
+ }
734
+ }
735
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3BlcmF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9yd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xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX0VYRUNfT05fU0VSVkVSOlxyXG4gICAgICAgICAgdGhpcy5fZXhlY09uU2VydmVyID0gWG1sUGFyc2VyLmdldEJvb2xlYW4odmFsdWVTdHIpO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX0VYRUNfT05fQ0xJRU5UOlxyXG4gICAgICAgICAgdGhpcy5fZXhlY09uQ2xpZW50ID0gWG1sUGFyc2VyLmdldEJvb2xlYW4odmFsdWVTdHIpO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX1RJVExFOlxyXG4gICAgICAgICAgdGhpcy5fdGl0bGUgPSBYbWxQYXJzZXIudW5lc2NhcGUodmFsdWVTdHIpO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX1RJVExFX0VYUDpcclxuICAgICAgICAgIGV4cElkID0gWG1sUGFyc2VyLmdldEludCh2YWx1ZVN0cik7XHJcbiAgICAgICAgICB0aGlzLl90aXRsZUV4cCA9IHRhc2tSZWYuZ2V0RXhwQnlJZChleHBJZCk7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX0FUVFJfSU1BR0U6XHJcbiAgICAgICAgICB0aGlzLl9pbWFnZSA9IHZhbHVlU3RyWzBdO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX0JVVFRPTlM6XHJcbiAgICAgICAgICB0aGlzLl9idXR0b25zID0gdmFsdWVTdHJbMF07XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX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ICAgICAgICAgICAgICBpZiAocnRFdm50ICE9PSBudWxsKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fcm91dGVQYXJhbXMgPSBydEV2bnQuZ2V0Um91dGVQYXJhbUxpc3QoKTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKChhd2FpdCBydEV2bnQuZ2V0QXJnTGlzdCgpLmdldEFyZygwKS5nZXRWYWx1ZShTdG9yYWdlQXR0cmlidXRlLkFMUEhBLCAwKSkudHJpbSgpID09PSB0aGlzLl9yb3V0ZXJQYXRoICYmXHJcbiAgICAgICAgICAgICAgICAgICAgICAoKHJ0RXZudC5nZXRBcmdMaXN0KCkuZ2V0QXJnKDEpLnNraXBBcmcoKSAmJiBkZXN0U3ViRm9ybSA9PT0gdGhpcy5fdGFzay5nZXRGb3JtKCkuRGVmYXVsdFJvdXRlck91dGxldCkgfHxcclxuICAgICAgICAgICAgICAgICAgICAgICAgKCFydEV2bnQuZ2V0QXJnTGlzdCgpLmdldEFyZygxKS5za2lwQXJnKCkgJiYgKGF3YWl0IHJ0RXZudC5nZXRBcmdMaXN0KCkuZ2V0QXJnKDEpLmdldFZhbHVlKFN0b3JhZ2VBdHRyaWJ1dGUuQUxQSEEsIDApKS50cmltKCkgPT09IHRoaXMuX29yaWdpbmFsUm91dGVyT3V0bGV0TmFtZSkpKVxyXG4gICAgICAgICAgICAgICAgICAgICAgY2FuUm91dGUgPSB0cnVlO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICBpZiAoIWNhblJvdXRlKVxyXG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgc3ViZm9ybVRhc2sgPSA8VGFzaz5kZXN0U3ViRm9ybS5nZXRTdWJmb3JtVGFzaygpO1xyXG5cclxuICAgICAgICAgICAgICAgIGlmIChzdWJmb3JtVGFzayAhPSB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