@magic-xpa/engine 4.1100.0-dev4110.2 → 4.1100.0-dev4110.202
Sign up to get free protection for your applications and to get access to all the features.
- package/{esm2020 → esm2022}/index.mjs +188 -188
- package/{esm2020 → esm2022}/magic-xpa-engine.mjs +1 -1
- package/esm2022/src/AccessHelper.mjs +15 -0
- package/esm2022/src/ClientManager.mjs +409 -0
- package/esm2022/src/CommandsProcessorBase.mjs +56 -0
- package/esm2022/src/CommandsProcessorManager.mjs +26 -0
- package/esm2022/src/CommandsTable.mjs +162 -0
- package/esm2022/src/ConstInterface.mjs +517 -0
- package/{esm2020 → esm2022}/src/CurrentClientVersion.mjs +2 -2
- package/esm2022/src/FlowMonitorInterface.mjs +16 -0
- package/esm2022/src/GUIManager.mjs +62 -0
- package/esm2022/src/GlobalCommandsManager.mjs +34 -0
- package/esm2022/src/GuiEventsProcessor.mjs +157 -0
- package/{esm2020 → esm2022}/src/ICommandsTable.mjs +1 -1
- package/esm2022/src/ServerConfig.mjs +122 -0
- package/{esm2020 → esm2022}/src/bridge/IGuiEvent.mjs +19 -19
- package/{esm2020 → esm2022}/src/bridge/MagicBridge.mjs +40 -40
- package/esm2022/src/commands/ClientOriginatedCommandTaskTag.mjs +12 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserLocateDataViewCommand.mjs +8 -8
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserRangeDataviewCommand.mjs +9 -9
- package/{esm2020 → esm2022}/src/commands/ClientToServer/AddUserSortDataViewCommand.mjs +9 -9
- package/{esm2020 → esm2022}/src/commands/ClientToServer/BrowserEscEventCommand.mjs +23 -23
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ClientOriginatedCommand.mjs +14 -14
- package/esm2022/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +60 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ColumnSortEventCommand.mjs +26 -26
- package/esm2022/src/commands/ClientToServer/CommandFactory.mjs +260 -0
- package/esm2022/src/commands/ClientToServer/CommandSerializationHelper.mjs +67 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ComputeEventCommand.mjs +23 -23
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTerminationEventCommand.mjs +20 -20
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ContextTimeoutResetCommand.mjs +19 -19
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ControlItemsRefreshCommand.mjs +8 -8
- package/esm2022/src/commands/ClientToServer/DataViewOutputCommand.mjs +13 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/DataviewCommand.mjs +44 -44
- package/esm2022/src/commands/ClientToServer/EvaluateCommand.mjs +37 -0
- package/esm2022/src/commands/ClientToServer/EventCommand.mjs +40 -0
- package/esm2022/src/commands/ClientToServer/ExecOperCommand.mjs +67 -0
- package/esm2022/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +22 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/GlobalParamsQueryCommand.mjs +10 -10
- package/{esm2020 → esm2022}/src/commands/ClientToServer/ICommandTaskTag.mjs +1 -1
- package/{esm2020 → esm2022}/src/commands/ClientToServer/IndexChangeEventCommand.mjs +21 -21
- package/esm2022/src/commands/ClientToServer/IniputForceWriteCommand.mjs +23 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/NonReversibleExitEventCommand.mjs +23 -23
- package/{esm2020 → esm2022}/src/commands/ClientToServer/QueryCommand.mjs +20 -20
- package/esm2022/src/commands/ClientToServer/RecomputeCommand.mjs +27 -0
- package/esm2022/src/commands/ClientToServer/RefreshEventCommand.mjs +27 -0
- package/esm2022/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +24 -0
- package/esm2022/src/commands/ClientToServer/RollbackEventCommand.mjs +40 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/SelectProgramCommand.mjs +14 -14
- package/{esm2020 → esm2022}/src/commands/ClientToServer/SetTransactionStateDataviewCommand.mjs +9 -9
- package/{esm2020 → esm2022}/src/commands/ClientToServer/SubformOpenEventCommand.mjs +21 -21
- package/esm2022/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +24 -0
- package/esm2022/src/commands/ClientToServer/TransactionCommand.mjs +30 -0
- package/{esm2020 → esm2022}/src/commands/ClientToServer/UnloadCommand.mjs +14 -14
- package/esm2022/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +18 -0
- package/esm2022/src/commands/DataViewCommandBase.mjs +8 -0
- package/{esm2020 → esm2022}/src/commands/IClientCommand.mjs +1 -1
- package/esm2022/src/commands/IClientTargetedCommand.mjs +13 -0
- package/{esm2020 → esm2022}/src/commands/IClientToServerCommandInfo.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/AbortCommand.mjs +65 -0
- package/{esm2020 → esm2022}/src/commands/ServerToClient/AddLocateCommand.mjs +21 -21
- package/esm2022/src/commands/ServerToClient/AddRangeCommand.mjs +62 -0
- package/esm2022/src/commands/ServerToClient/AddSortCommand.mjs +33 -0
- package/esm2022/src/commands/ServerToClient/ClientRefreshCommand.mjs +25 -0
- package/esm2022/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +24 -0
- package/esm2022/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +45 -0
- package/esm2022/src/commands/ServerToClient/OpenURLCommand.mjs +221 -0
- package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetLocateCommand.mjs +14 -14
- package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetRangeCommand.mjs +14 -14
- package/{esm2020 → esm2022}/src/commands/ServerToClient/ResetSortCommand.mjs +14 -14
- package/esm2022/src/commands/ServerToClient/ResultCommand.mjs +37 -0
- package/esm2022/src/commands/ServerToClient/VerifyCommand.mjs +83 -0
- package/esm2022/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +132 -0
- package/{esm2020 → esm2022}/src/communications/IConnectionStateManager.mjs +1 -1
- package/esm2022/src/communications/InteractiveCommunicationsFailureHandler.mjs +15 -0
- package/{esm2020 → esm2022}/src/data/DataSourceIdKey.mjs +2 -2
- package/esm2022/src/data/DataView.mjs +1613 -0
- package/{esm2020 → esm2022}/src/data/DataViewBase.mjs +3 -3
- package/esm2022/src/data/DataviewManager.mjs +28 -0
- package/esm2022/src/data/DataviewManagerBase.mjs +15 -0
- package/esm2022/src/data/DvCache.mjs +67 -0
- package/esm2022/src/data/Field.mjs +646 -0
- package/esm2022/src/data/FieldBase.mjs +15 -0
- package/esm2022/src/data/FieldsTable.mjs +103 -0
- package/{esm2020 → esm2022}/src/data/IRecordsTable.mjs +1 -1
- package/esm2022/src/data/Key.mjs +88 -0
- package/esm2022/src/data/Record.mjs +866 -0
- package/{esm2020 → esm2022}/src/data/RecordOutOfDataViewException.mjs +15 -15
- package/esm2022/src/data/RecordsTable.mjs +267 -0
- package/esm2022/src/data/TaskTransactionManager.mjs +103 -0
- package/esm2022/src/data/XMLBasedDcValuesBuilder.mjs +74 -0
- package/{esm2020 → esm2022}/src/enums.mjs +23 -23
- package/esm2022/src/env/EnvVariablesTable.mjs +340 -0
- package/esm2022/src/env/Environment.mjs +487 -0
- package/{esm2020 → esm2022}/src/env/ILanguageData.mjs +1 -1
- package/esm2022/src/env/LanguageData.mjs +227 -0
- package/esm2022/src/env/MirrorString.mjs +65 -0
- package/esm2022/src/event/ActionManager.mjs +91 -0
- package/esm2022/src/event/Event.mjs +1333 -0
- package/esm2022/src/event/EventHandler.mjs +766 -0
- package/esm2022/src/event/EventHandlerPosition.mjs +204 -0
- package/esm2022/src/event/EventsManager.mjs +2988 -0
- package/{esm2020 → esm2022}/src/event/IEventsManager.mjs +6 -6
- package/esm2022/src/event/RunTimeEvent.mjs +399 -0
- package/{esm2020 → esm2022}/src/event/RunTimeEventBase.mjs +3 -3
- package/esm2022/src/event/UserEventsTable.mjs +47 -0
- package/esm2022/src/exp/ExpTable.mjs +57 -0
- package/esm2022/src/exp/Expression.mjs +200 -0
- package/esm2022/src/exp/ExpressionDict.mjs +727 -0
- package/esm2022/src/exp/ExpressionEvaluator.mjs +4206 -0
- package/esm2022/src/exp/ExpressionLocalJpn.mjs +314 -0
- package/esm2022/src/exp/GlobalParamsTable.mjs +85 -0
- package/esm2022/src/exp/YesNoExp.mjs +36 -0
- package/esm2022/src/gui/CreatedFormVector.mjs +23 -0
- package/esm2022/src/gui/FormsTable.mjs +66 -0
- package/esm2022/src/gui/MgControl.mjs +363 -0
- package/esm2022/src/gui/MgForm.mjs +1181 -0
- package/esm2022/src/http/HttpManager.mjs +97 -0
- package/esm2022/src/http/client/HttpClientAsync.mjs +68 -0
- package/esm2022/src/http/client/HttpClientBase.mjs +132 -0
- package/esm2022/src/http/client/HttpClientEvents.mjs +39 -0
- package/esm2022/src/http/client/HttpClientSync.mjs +42 -0
- package/esm2022/src/http/client/HttpUtility.mjs +84 -0
- package/{esm2020 → esm2022}/src/http/client/ICommunicationsFailureHandler.mjs +1 -1
- package/esm2022/src/remote/AddUserLocateRemoteDataViewCommand.mjs +18 -0
- package/esm2022/src/remote/AddUserRangeRemoteDataViewCommand.mjs +18 -0
- package/esm2022/src/remote/AddUserSortRemoteDataViewCommand.mjs +18 -0
- package/esm2022/src/remote/RemoteCommandsProcessor.mjs +882 -0
- package/esm2022/src/remote/RemoteControlItemsRefreshCommand.mjs +25 -0
- package/esm2022/src/remote/RemoteDataViewCommandBase.mjs +24 -0
- package/esm2022/src/remote/RemoteDataViewCommandFactory.mjs +61 -0
- package/{esm2020 → esm2022}/src/remote/RemoteDataViewCommandUpdateNonModifiable.mjs +15 -15
- package/{esm2020 → esm2022}/src/remote/RemoteDataviewManager.mjs +17 -17
- package/{esm2020 → esm2022}/src/remote/RemoteInitDataViewCommand.mjs +10 -10
- package/esm2022/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +17 -0
- package/{esm2020 → esm2022}/src/remote/ResetUserRangeRemoteDataviewCommand.mjs +12 -12
- package/esm2022/src/remote/ResetUserSortRemoteDataviewCommand.mjs +16 -0
- package/esm2022/src/remote/ServerError.mjs +40 -0
- package/esm2022/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +20 -0
- package/esm2022/src/rt/Argument.mjs +265 -0
- package/esm2022/src/rt/ArgumentsList.mjs +103 -0
- package/esm2022/src/rt/Boundary.mjs +152 -0
- package/esm2022/src/rt/CompMainPrgTable.mjs +63 -0
- package/{esm2020 → esm2022}/src/rt/DataviewHeaderBase.mjs +98 -96
- package/{esm2020 → esm2022}/src/rt/DataviewHeaderFactory.mjs +6 -6
- package/esm2022/src/rt/DataviewHeaders.mjs +53 -0
- package/esm2022/src/rt/DataviewHeadersSaxHandler.mjs +38 -0
- package/esm2022/src/rt/ExecutionStack.mjs +94 -0
- package/{esm2020 → esm2022}/src/rt/ExecutionStackEntry.mjs +17 -17
- package/esm2022/src/rt/HandlersTable.mjs +96 -0
- package/{esm2020 → esm2022}/src/rt/IDataSourceViewDefinition.mjs +1 -1
- package/{esm2020 → esm2022}/src/rt/IDataviewHeader.mjs +1 -1
- package/{esm2020 → esm2022}/src/rt/IResultValue.mjs +1 -1
- package/esm2022/src/rt/LastFocusedManager.mjs +65 -0
- package/esm2022/src/rt/Operation.mjs +735 -0
- package/esm2022/src/rt/OperationTable.mjs +67 -0
- package/esm2022/src/rt/Recompute.mjs +355 -0
- package/esm2022/src/rt/RecomputeTable.mjs +63 -0
- package/esm2022/src/rt/RemoteDataviewHeader.mjs +108 -0
- package/esm2022/src/rt/ResultValue.mjs +10 -0
- package/esm2022/src/rt/TableCache.mjs +177 -0
- package/esm2022/src/rt/TableCacheManager.mjs +67 -0
- package/esm2022/src/rt/Transaction.mjs +53 -0
- package/esm2022/src/security/UserDetails.mjs +71 -0
- package/{esm2020 → esm2022}/src/tasks/IMGDataCollection.mjs +1 -1
- package/esm2022/src/tasks/MGData.mjs +552 -0
- package/esm2022/src/tasks/MGDataCollection.mjs +252 -0
- package/esm2022/src/tasks/RCTimer.mjs +63 -0
- package/esm2022/src/tasks/RemoteTaskService.mjs +45 -0
- package/esm2022/src/tasks/Task.mjs +2498 -0
- package/esm2022/src/tasks/TaskBase.mjs +83 -0
- package/esm2022/src/tasks/TaskServiceBase.mjs +25 -0
- package/esm2022/src/tasks/TasksTable.mjs +80 -0
- package/esm2022/src/tasks/sort/Sort.mjs +5 -0
- package/esm2022/src/tasks/sort/SortCollection.mjs +67 -0
- package/esm2022/src/util/ConstUtils.mjs +14 -0
- package/esm2022/src/util/FlowMonitorQueue.mjs +451 -0
- package/esm2022/src/util/HeapSort.mjs +70 -0
- package/{esm2020 → esm2022}/src/util/IMirrorXML.mjs +1 -1
- package/{esm2020 → esm2022}/src/util/IServerConfig.mjs +1 -1
- package/{esm2020 → esm2022}/src/util/MgBlockingQueue.mjs +1 -1
- package/esm2022/src/util/MgPriorityBlockingQueue.mjs +74 -0
- package/esm2022/src/util/MgPriorityQueue.mjs +66 -0
- package/{esm2020 → esm2022}/src/util/ParamParseResult.mjs +7 -7
- package/esm2022/src/util/PrmMap.mjs +152 -0
- package/esm2022/src/util/ReturnResult.mjs +46 -0
- package/esm2022/src/util/ReturnResultBase.mjs +18 -0
- package/esm2022/src/util/Scrambler.mjs +89 -0
- package/esm2022/src/util/UniqueIDUtils.mjs +13 -0
- package/esm2022/src/util/cookie.service.mjs +92 -0
- package/{fesm2020 → fesm2022}/magic-xpa-engine.mjs +29750 -29694
- package/fesm2022/magic-xpa-engine.mjs.map +1 -0
- package/index.d.ts +187 -187
- package/package.json +8 -14
- package/src/AccessHelper.d.ts +20 -20
- package/src/ClientManager.d.ts +34 -32
- package/src/CommandsProcessorBase.d.ts +23 -23
- package/src/CommandsProcessorManager.d.ts +6 -6
- package/src/CommandsTable.d.ts +22 -22
- package/src/ConstInterface.d.ts +516 -515
- package/src/CurrentClientVersion.d.ts +1 -1
- package/src/FlowMonitorInterface.d.ts +15 -15
- package/src/GUIManager.d.ts +17 -17
- package/src/GlobalCommandsManager.d.ts +17 -17
- package/src/GuiEventsProcessor.d.ts +24 -24
- package/src/ICommandsTable.d.ts +9 -9
- package/src/ServerConfig.d.ts +35 -34
- package/src/bridge/IGuiEvent.d.ts +19 -19
- package/src/bridge/MagicBridge.d.ts +16 -16
- package/src/commands/ClientOriginatedCommandTaskTag.d.ts +8 -8
- package/src/commands/ClientToServer/AddUserLocateDataViewCommand.d.ts +4 -4
- package/src/commands/ClientToServer/AddUserRangeDataviewCommand.d.ts +6 -6
- package/src/commands/ClientToServer/AddUserSortDataViewCommand.d.ts +6 -6
- package/src/commands/ClientToServer/BrowserEscEventCommand.d.ts +8 -8
- package/src/commands/ClientToServer/ClientOriginatedCommand.d.ts +8 -8
- package/src/commands/ClientToServer/ClientOriginatedCommandSerializer.d.ts +6 -6
- package/src/commands/ClientToServer/ColumnSortEventCommand.d.ts +10 -10
- package/src/commands/ClientToServer/CommandFactory.d.ts +64 -64
- package/src/commands/ClientToServer/CommandSerializationHelper.d.ts +20 -20
- package/src/commands/ClientToServer/ComputeEventCommand.d.ts +8 -8
- package/src/commands/ClientToServer/ContextTerminationEventCommand.d.ts +7 -7
- package/src/commands/ClientToServer/ContextTimeoutResetCommand.d.ts +7 -7
- package/src/commands/ClientToServer/ControlItemsRefreshCommand.d.ts +6 -6
- package/src/commands/ClientToServer/DataViewOutputCommand.d.ts +9 -9
- package/src/commands/ClientToServer/DataviewCommand.d.ts +32 -32
- package/src/commands/ClientToServer/EvaluateCommand.d.ts +15 -15
- package/src/commands/ClientToServer/EventCommand.d.ts +15 -15
- package/src/commands/ClientToServer/ExecOperCommand.d.ts +23 -23
- package/src/commands/ClientToServer/FetchDataControlValuesEventCommand.d.ts +8 -8
- package/src/commands/ClientToServer/GlobalParamsQueryCommand.d.ts +5 -5
- package/src/commands/ClientToServer/ICommandTaskTag.d.ts +3 -3
- package/src/commands/ClientToServer/IndexChangeEventCommand.d.ts +8 -8
- package/src/commands/ClientToServer/IniputForceWriteCommand.d.ts +10 -10
- package/src/commands/ClientToServer/NonReversibleExitEventCommand.d.ts +8 -8
- package/src/commands/ClientToServer/QueryCommand.d.ts +8 -8
- package/src/commands/ClientToServer/RecomputeCommand.d.ts +11 -11
- package/src/commands/ClientToServer/RefreshEventCommand.d.ts +12 -12
- package/src/commands/ClientToServer/RefreshScreenEventCommand.d.ts +10 -10
- package/src/commands/ClientToServer/RollbackEventCommand.d.ts +14 -14
- package/src/commands/ClientToServer/SelectProgramCommand.d.ts +6 -6
- package/src/commands/ClientToServer/SetTransactionStateDataviewCommand.d.ts +5 -5
- package/src/commands/ClientToServer/SubformOpenEventCommand.d.ts +8 -8
- package/src/commands/ClientToServer/SubformRefreshEventCommand.d.ts +9 -9
- package/src/commands/ClientToServer/TransactionCommand.d.ts +12 -12
- package/src/commands/ClientToServer/UnloadCommand.d.ts +7 -7
- package/src/commands/ClientToServer/WriteMessageToServerLogCommand.d.ts +6 -6
- package/src/commands/DataViewCommandBase.d.ts +6 -6
- package/src/commands/IClientCommand.d.ts +2 -2
- package/src/commands/IClientTargetedCommand.d.ts +12 -12
- package/src/commands/IClientToServerCommandInfo.d.ts +3 -3
- package/src/commands/ServerToClient/AbortCommand.d.ts +11 -11
- package/src/commands/ServerToClient/AddLocateCommand.d.ts +6 -6
- package/src/commands/ServerToClient/AddRangeCommand.d.ts +10 -10
- package/src/commands/ServerToClient/AddSortCommand.d.ts +9 -9
- package/src/commands/ServerToClient/ClientRefreshCommand.d.ts +7 -7
- package/src/commands/ServerToClient/ClientTargetedCommandBase.d.ts +12 -12
- package/src/commands/ServerToClient/EnhancedVerifyCommand.d.ts +13 -13
- package/src/commands/ServerToClient/OpenURLCommand.d.ts +21 -21
- package/src/commands/ServerToClient/ResetLocateCommand.d.ts +6 -6
- package/src/commands/ServerToClient/ResetRangeCommand.d.ts +6 -6
- package/src/commands/ServerToClient/ResetSortCommand.d.ts +6 -6
- package/src/commands/ServerToClient/ResultCommand.d.ts +10 -10
- package/src/commands/ServerToClient/VerifyCommand.d.ts +17 -17
- package/src/commands/ServerToClient/XMLBasedCommandBuilder.d.ts +11 -11
- package/src/communications/IConnectionStateManager.d.ts +4 -4
- package/src/communications/InteractiveCommunicationsFailureHandler.d.ts +6 -6
- package/src/data/DataSourceIdKey.d.ts +2 -2
- package/src/data/DataView.d.ts +162 -162
- package/src/data/DataViewBase.d.ts +12 -12
- package/src/data/DataviewManager.d.ts +14 -14
- package/src/data/DataviewManagerBase.d.ts +11 -11
- package/src/data/DvCache.d.ts +15 -15
- package/src/data/Field.d.ts +103 -103
- package/src/data/FieldBase.d.ts +23 -23
- package/src/data/FieldsTable.d.ts +27 -27
- package/src/data/IRecordsTable.d.ts +7 -7
- package/src/data/Key.d.ts +15 -15
- package/src/data/Record.d.ts +156 -156
- package/src/data/RecordOutOfDataViewException.d.ts +10 -10
- package/src/data/RecordsTable.d.ts +38 -38
- package/src/data/TaskTransactionManager.d.ts +17 -17
- package/src/data/XMLBasedDcValuesBuilder.d.ts +11 -11
- package/src/enums.d.ts +21 -21
- package/src/env/EnvVariablesTable.d.ts +17 -17
- package/src/env/Environment.d.ts +118 -118
- package/src/env/ILanguageData.d.ts +3 -3
- package/src/env/LanguageData.d.ts +20 -20
- package/src/env/MirrorString.d.ts +15 -15
- package/src/event/ActionManager.d.ts +14 -14
- package/src/event/Event.d.ts +79 -79
- package/src/event/EventHandler.d.ts +66 -66
- package/src/event/EventHandlerPosition.d.ts +25 -25
- package/src/event/EventsManager.d.ts +205 -204
- package/src/event/IEventsManager.d.ts +77 -77
- package/src/event/RunTimeEvent.d.ts +126 -123
- package/src/event/RunTimeEventBase.d.ts +5 -5
- package/src/event/UserEventsTable.d.ts +11 -11
- package/src/exp/ExpTable.d.ts +11 -11
- package/src/exp/Expression.d.ts +37 -37
- package/src/exp/ExpressionDict.d.ts +12 -12
- package/src/exp/ExpressionEvaluator.d.ts +198 -198
- package/src/exp/ExpressionLocalJpn.d.ts +18 -18
- package/src/exp/GlobalParamsTable.d.ts +19 -19
- package/src/exp/YesNoExp.d.ts +9 -9
- package/src/gui/CreatedFormVector.d.ts +10 -10
- package/src/gui/FormsTable.d.ts +15 -15
- package/src/gui/MgControl.d.ts +60 -60
- package/src/gui/MgForm.d.ts +93 -93
- package/src/http/HttpManager.d.ts +25 -25
- package/src/http/client/HttpClientAsync.d.ts +16 -16
- package/src/http/client/HttpClientBase.d.ts +30 -30
- package/src/http/client/HttpClientEvents.d.ts +18 -18
- package/src/http/client/HttpClientSync.d.ts +17 -17
- package/src/http/client/HttpUtility.d.ts +10 -10
- package/src/http/client/ICommunicationsFailureHandler.d.ts +5 -5
- package/src/remote/AddUserLocateRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/AddUserRangeRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/AddUserSortRemoteDataViewCommand.d.ts +8 -8
- package/src/remote/RemoteCommandsProcessor.d.ts +51 -51
- package/src/remote/RemoteControlItemsRefreshCommand.d.ts +8 -8
- package/src/remote/RemoteDataViewCommandBase.d.ts +10 -10
- package/src/remote/RemoteDataViewCommandFactory.d.ts +6 -6
- package/src/remote/RemoteDataViewCommandUpdateNonModifiable.d.ts +8 -8
- package/src/remote/RemoteDataviewManager.d.ts +9 -9
- package/src/remote/RemoteInitDataViewCommand.d.ts +7 -7
- package/src/remote/ResetUserLocateRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ResetUserRangeRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ResetUserSortRemoteDataviewCommand.d.ts +7 -7
- package/src/remote/ServerError.d.ts +16 -16
- package/src/remote/SetTransactionStateRemoteDataViewCommand.d.ts +8 -8
- package/src/rt/Argument.d.ts +36 -36
- package/src/rt/ArgumentsList.d.ts +24 -24
- package/src/rt/Boundary.d.ts +27 -27
- package/src/rt/CompMainPrgTable.d.ts +10 -10
- package/src/rt/DataviewHeaderBase.d.ts +34 -34
- package/src/rt/DataviewHeaderFactory.d.ts +5 -5
- package/src/rt/DataviewHeaders.d.ts +12 -12
- package/src/rt/DataviewHeadersSaxHandler.d.ts +10 -10
- package/src/rt/ExecutionStack.d.ts +22 -22
- package/src/rt/ExecutionStackEntry.d.ts +7 -7
- package/src/rt/HandlersTable.d.ts +19 -19
- package/src/rt/IDataSourceViewDefinition.d.ts +6 -6
- package/src/rt/IDataviewHeader.d.ts +10 -10
- package/src/rt/IResultValue.d.ts +4 -4
- package/src/rt/LastFocusedManager.d.ts +23 -23
- package/src/rt/Operation.d.ts +97 -97
- package/src/rt/OperationTable.d.ts +15 -15
- package/src/rt/Recompute.d.ts +41 -41
- package/src/rt/RecomputeTable.d.ts +9 -9
- package/src/rt/RemoteDataviewHeader.d.ts +14 -14
- package/src/rt/ResultValue.d.ts +7 -7
- package/src/rt/TableCache.d.ts +29 -29
- package/src/rt/TableCacheManager.d.ts +10 -10
- package/src/rt/Transaction.d.ts +23 -23
- package/src/security/UserDetails.d.ts +16 -16
- package/src/tasks/IMGDataCollection.d.ts +26 -26
- package/src/tasks/MGData.d.ts +63 -63
- package/src/tasks/MGDataCollection.d.ts +42 -42
- package/src/tasks/RCTimer.d.ts +13 -13
- package/src/tasks/RemoteTaskService.d.ts +16 -16
- package/src/tasks/Task.d.ts +312 -312
- package/src/tasks/TaskBase.d.ts +123 -123
- package/src/tasks/TaskServiceBase.d.ts +16 -16
- package/src/tasks/TasksTable.d.ts +21 -21
- package/src/tasks/sort/Sort.d.ts +4 -4
- package/src/tasks/sort/SortCollection.d.ts +11 -11
- package/src/util/ConstUtils.d.ts +3 -3
- package/src/util/FlowMonitorQueue.d.ts +70 -70
- package/src/util/HeapSort.d.ts +6 -6
- package/src/util/IMirrorXML.d.ts +6 -6
- package/src/util/IServerConfig.d.ts +11 -11
- package/src/util/MgBlockingQueue.d.ts +5 -5
- package/src/util/MgPriorityBlockingQueue.d.ts +17 -17
- package/src/util/MgPriorityQueue.d.ts +13 -13
- package/src/util/ParamParseResult.d.ts +6 -6
- package/src/util/PrmMap.d.ts +28 -28
- package/src/util/ReturnResult.d.ts +18 -18
- package/src/util/ReturnResultBase.d.ts +11 -11
- package/src/util/Scrambler.d.ts +10 -10
- package/src/util/UniqueIDUtils.d.ts +4 -4
- package/src/util/cookie.service.d.ts +8 -8
- package/esm2020/src/AccessHelper.mjs +0 -9
- package/esm2020/src/ClientManager.mjs +0 -399
- package/esm2020/src/CommandsProcessorBase.mjs +0 -58
- package/esm2020/src/CommandsProcessorManager.mjs +0 -26
- package/esm2020/src/CommandsTable.mjs +0 -162
- package/esm2020/src/ConstInterface.mjs +0 -516
- package/esm2020/src/FlowMonitorInterface.mjs +0 -16
- package/esm2020/src/GUIManager.mjs +0 -62
- package/esm2020/src/GlobalCommandsManager.mjs +0 -34
- package/esm2020/src/GuiEventsProcessor.mjs +0 -154
- package/esm2020/src/ServerConfig.mjs +0 -117
- package/esm2020/src/commands/ClientOriginatedCommandTaskTag.mjs +0 -11
- package/esm2020/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +0 -60
- package/esm2020/src/commands/ClientToServer/CommandFactory.mjs +0 -260
- package/esm2020/src/commands/ClientToServer/CommandSerializationHelper.mjs +0 -69
- package/esm2020/src/commands/ClientToServer/DataViewOutputCommand.mjs +0 -13
- package/esm2020/src/commands/ClientToServer/EvaluateCommand.mjs +0 -36
- package/esm2020/src/commands/ClientToServer/EventCommand.mjs +0 -40
- package/esm2020/src/commands/ClientToServer/ExecOperCommand.mjs +0 -67
- package/esm2020/src/commands/ClientToServer/FetchDataControlValuesEventCommand.mjs +0 -22
- package/esm2020/src/commands/ClientToServer/IniputForceWriteCommand.mjs +0 -23
- package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +0 -27
- package/esm2020/src/commands/ClientToServer/RefreshEventCommand.mjs +0 -27
- package/esm2020/src/commands/ClientToServer/RefreshScreenEventCommand.mjs +0 -24
- package/esm2020/src/commands/ClientToServer/RollbackEventCommand.mjs +0 -39
- package/esm2020/src/commands/ClientToServer/SubformRefreshEventCommand.mjs +0 -24
- package/esm2020/src/commands/ClientToServer/TransactionCommand.mjs +0 -28
- package/esm2020/src/commands/ClientToServer/WriteMessageToServerLogCommand.mjs +0 -18
- package/esm2020/src/commands/DataViewCommandBase.mjs +0 -10
- package/esm2020/src/commands/IClientTargetedCommand.mjs +0 -9
- package/esm2020/src/commands/ServerToClient/AbortCommand.mjs +0 -65
- package/esm2020/src/commands/ServerToClient/AddRangeCommand.mjs +0 -62
- package/esm2020/src/commands/ServerToClient/AddSortCommand.mjs +0 -33
- package/esm2020/src/commands/ServerToClient/ClientRefreshCommand.mjs +0 -25
- package/esm2020/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +0 -27
- package/esm2020/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +0 -45
- package/esm2020/src/commands/ServerToClient/OpenURLCommand.mjs +0 -221
- package/esm2020/src/commands/ServerToClient/ResultCommand.mjs +0 -37
- package/esm2020/src/commands/ServerToClient/VerifyCommand.mjs +0 -83
- package/esm2020/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +0 -132
- package/esm2020/src/communications/InteractiveCommunicationsFailureHandler.mjs +0 -17
- package/esm2020/src/data/DataView.mjs +0 -1610
- package/esm2020/src/data/DataviewManager.mjs +0 -28
- package/esm2020/src/data/DataviewManagerBase.mjs +0 -15
- package/esm2020/src/data/DvCache.mjs +0 -67
- package/esm2020/src/data/Field.mjs +0 -646
- package/esm2020/src/data/FieldBase.mjs +0 -18
- package/esm2020/src/data/FieldsTable.mjs +0 -103
- package/esm2020/src/data/Key.mjs +0 -88
- package/esm2020/src/data/Record.mjs +0 -846
- package/esm2020/src/data/RecordsTable.mjs +0 -267
- package/esm2020/src/data/TaskTransactionManager.mjs +0 -103
- package/esm2020/src/data/XMLBasedDcValuesBuilder.mjs +0 -74
- package/esm2020/src/env/EnvVariablesTable.mjs +0 -340
- package/esm2020/src/env/Environment.mjs +0 -489
- package/esm2020/src/env/LanguageData.mjs +0 -226
- package/esm2020/src/env/MirrorString.mjs +0 -65
- package/esm2020/src/event/ActionManager.mjs +0 -91
- package/esm2020/src/event/Event.mjs +0 -1333
- package/esm2020/src/event/EventHandler.mjs +0 -766
- package/esm2020/src/event/EventHandlerPosition.mjs +0 -204
- package/esm2020/src/event/EventsManager.mjs +0 -2975
- package/esm2020/src/event/RunTimeEvent.mjs +0 -392
- package/esm2020/src/event/UserEventsTable.mjs +0 -47
- package/esm2020/src/exp/ExpTable.mjs +0 -59
- package/esm2020/src/exp/Expression.mjs +0 -200
- package/esm2020/src/exp/ExpressionDict.mjs +0 -727
- package/esm2020/src/exp/ExpressionEvaluator.mjs +0 -4212
- package/esm2020/src/exp/ExpressionLocalJpn.mjs +0 -314
- package/esm2020/src/exp/GlobalParamsTable.mjs +0 -85
- package/esm2020/src/exp/YesNoExp.mjs +0 -36
- package/esm2020/src/gui/CreatedFormVector.mjs +0 -23
- package/esm2020/src/gui/FormsTable.mjs +0 -66
- package/esm2020/src/gui/MgControl.mjs +0 -353
- package/esm2020/src/gui/MgForm.mjs +0 -1181
- package/esm2020/src/http/HttpManager.mjs +0 -97
- package/esm2020/src/http/client/HttpClientAsync.mjs +0 -67
- package/esm2020/src/http/client/HttpClientBase.mjs +0 -132
- package/esm2020/src/http/client/HttpClientEvents.mjs +0 -39
- package/esm2020/src/http/client/HttpClientSync.mjs +0 -42
- package/esm2020/src/http/client/HttpUtility.mjs +0 -84
- package/esm2020/src/remote/AddUserLocateRemoteDataViewCommand.mjs +0 -18
- package/esm2020/src/remote/AddUserRangeRemoteDataViewCommand.mjs +0 -18
- package/esm2020/src/remote/AddUserSortRemoteDataViewCommand.mjs +0 -18
- package/esm2020/src/remote/RemoteCommandsProcessor.mjs +0 -880
- package/esm2020/src/remote/RemoteControlItemsRefreshCommand.mjs +0 -25
- package/esm2020/src/remote/RemoteDataViewCommandBase.mjs +0 -24
- package/esm2020/src/remote/RemoteDataViewCommandFactory.mjs +0 -61
- package/esm2020/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +0 -17
- package/esm2020/src/remote/ResetUserSortRemoteDataviewCommand.mjs +0 -16
- package/esm2020/src/remote/ServerError.mjs +0 -40
- package/esm2020/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +0 -20
- package/esm2020/src/rt/Argument.mjs +0 -265
- package/esm2020/src/rt/ArgumentsList.mjs +0 -103
- package/esm2020/src/rt/Boundary.mjs +0 -152
- package/esm2020/src/rt/CompMainPrgTable.mjs +0 -65
- package/esm2020/src/rt/DataviewHeaders.mjs +0 -53
- package/esm2020/src/rt/DataviewHeadersSaxHandler.mjs +0 -38
- package/esm2020/src/rt/ExecutionStack.mjs +0 -94
- package/esm2020/src/rt/HandlersTable.mjs +0 -96
- package/esm2020/src/rt/LastFocusedManager.mjs +0 -67
- package/esm2020/src/rt/Operation.mjs +0 -735
- package/esm2020/src/rt/OperationTable.mjs +0 -67
- package/esm2020/src/rt/Recompute.mjs +0 -355
- package/esm2020/src/rt/RecomputeTable.mjs +0 -63
- package/esm2020/src/rt/RemoteDataviewHeader.mjs +0 -108
- package/esm2020/src/rt/ResultValue.mjs +0 -12
- package/esm2020/src/rt/TableCache.mjs +0 -177
- package/esm2020/src/rt/TableCacheManager.mjs +0 -67
- package/esm2020/src/rt/Transaction.mjs +0 -53
- package/esm2020/src/security/UserDetails.mjs +0 -71
- package/esm2020/src/tasks/MGData.mjs +0 -552
- package/esm2020/src/tasks/MGDataCollection.mjs +0 -252
- package/esm2020/src/tasks/RCTimer.mjs +0 -63
- package/esm2020/src/tasks/RemoteTaskService.mjs +0 -45
- package/esm2020/src/tasks/Task.mjs +0 -2496
- package/esm2020/src/tasks/TaskBase.mjs +0 -87
- package/esm2020/src/tasks/TaskServiceBase.mjs +0 -25
- package/esm2020/src/tasks/TasksTable.mjs +0 -80
- package/esm2020/src/tasks/sort/Sort.mjs +0 -7
- package/esm2020/src/tasks/sort/SortCollection.mjs +0 -67
- package/esm2020/src/util/ConstUtils.mjs +0 -14
- package/esm2020/src/util/FlowMonitorQueue.mjs +0 -453
- package/esm2020/src/util/HeapSort.mjs +0 -70
- package/esm2020/src/util/MgPriorityBlockingQueue.mjs +0 -74
- package/esm2020/src/util/MgPriorityQueue.mjs +0 -66
- package/esm2020/src/util/PrmMap.mjs +0 -151
- package/esm2020/src/util/ReturnResult.mjs +0 -46
- package/esm2020/src/util/ReturnResultBase.mjs +0 -18
- package/esm2020/src/util/Scrambler.mjs +0 -89
- package/esm2020/src/util/UniqueIDUtils.mjs +0 -12
- package/esm2020/src/util/cookie.service.mjs +0 -92
- package/fesm2015/magic-xpa-engine.mjs +0 -30836
- package/fesm2015/magic-xpa-engine.mjs.map +0 -1
- package/fesm2020/magic-xpa-engine.mjs.map +0 -1
@@ -1,735 +0,0 @@
|
|
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
|
-
constructor() {
|
18
|
-
this._condExp = new YesNoExp(true);
|
19
|
-
this._retainFocus = new YesNoExp(false);
|
20
|
-
this._waitExp = new YesNoExp(false);
|
21
|
-
this._syncData = new YesNoExp(false);
|
22
|
-
this._argList = null;
|
23
|
-
this._blockClose = 0;
|
24
|
-
this._blockEnd = 0;
|
25
|
-
this._buttons = '\0';
|
26
|
-
this._checkByServer = false;
|
27
|
-
this._cmdToServer = null;
|
28
|
-
this._display = 'S';
|
29
|
-
this._errLogAppend = false;
|
30
|
-
this._evtHandler = null;
|
31
|
-
this._execOnServer = false;
|
32
|
-
this._execOnClient = false;
|
33
|
-
this._exp = null;
|
34
|
-
this._field = null;
|
35
|
-
this._image = '\0';
|
36
|
-
this._incremental = false;
|
37
|
-
this._mode = '\0';
|
38
|
-
this._publicName = null;
|
39
|
-
this._returnVal = null;
|
40
|
-
this._rtEvt = null;
|
41
|
-
this._serverId = -1;
|
42
|
-
this.calledTaskDefinitionId = null;
|
43
|
-
this._subformCtrlName = null;
|
44
|
-
this._subtype = '\0';
|
45
|
-
this._task = null;
|
46
|
-
this._text = null;
|
47
|
-
this._title = null;
|
48
|
-
this._titleExp = null;
|
49
|
-
this._type = 0;
|
50
|
-
this._undo = true;
|
51
|
-
this._isRoute = false;
|
52
|
-
this._routerPath = null;
|
53
|
-
this._originalRouterOutletName = null;
|
54
|
-
this._routeParams = null;
|
55
|
-
this.OperCallMode = 0;
|
56
|
-
}
|
57
|
-
get CalledTaskDefinitionId() {
|
58
|
-
return this.calledTaskDefinitionId;
|
59
|
-
}
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3BlcmF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9ydC9PcGVyYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLG9CQUFvQixFQUNwQixLQUFLLEVBQ0wsS0FBSyxFQUVMLE9BQU8sRUFDUCxPQUFPLEVBRVAsTUFBTSxFQUNQLE1BQU0sc0JBQXNCLENBQUM7QUFFOUIsT0FBTyxFQUVMLFNBQVMsRUFDVCxNQUFNLEVBQ04sZ0JBQWdCLEVBQ2hCLHFCQUFxQixFQUNyQixPQUFPLEVBQ1AsZUFBZSxFQUNmLFlBQVksRUFDWixTQUFTLEVBQ1YsTUFBTSxrQkFBa0IsQ0FBQztBQUUxQixPQUFPLEVBQ0wsUUFBUSxFQUVSLFFBQVEsRUFDUixhQUFhLEVBQ2IsTUFBTSxFQUVOLCtCQUErQixFQUMvQixVQUFVLEVBQ1gsTUFBTSxnQkFBZ0IsQ0FBQztBQUV4QixPQUFPLE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TUdfQVRUUl9NT0RFOlxyXG4gICAgICAgICAgdGhpcy5fbW9kZSA9IHZhbHVlU3RyWzBdO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX1NVQlRZUEU6XHJcbiAgICAgICAgICB0aGlzLl9zdWJ0eXBlID0gdmFsdWVTdHJbMF07XHJcbiAgICAgICAgICBpZiAodGhpcy5fdHlwZSA9PT0gQ29uc3RJbnRlcmZhY2UuTUdfT1BFUl9CTE9DSykge1xyXG4gICAgICAgICAgICBpZiAodGhpcy5fc3VidHlwZSA9PT0gJ0UnKVxyXG4gICAgICAgICAgICAgIHRoaXMuX3R5cGUgPSBDb25zdEludGVyZmFjZS5NR19PUEVSX0VMU0U7XHJcbiAgICAgICAgICAgIGVsc2UgaWYgKHRoaXMuX3N1YnR5cGUgPT09ICdMJylcclxuICAgICAgICAgICAgICB0aGlzLl90eXBlID0gQ29uc3RJbnRlcmZhY2UuTUdfT1BFUl9MT09QO1xyXG4gICAgICAgICAgfVxyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX0NMT1NFOlxyXG4gICAgICAgICAgdGhpcy5fYmxvY2tDbG9zZSA9IFhtbFBhcnNlci5nZXRJbnQodmFsdWVTdHIpO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX0VORDpcclxuICAgICAgICAgIHRoaXMuX2Jsb2NrRW5kID0gWG1sUGFyc2VyLmdldEludCh2YWx1ZVN0cik7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX0FUVFJfSE9XOlxyXG4gICAgICAgICAgdGhpcy5faW5jcmVtZW50YWwgPSAodmFsdWVTdHIgPT09IFwiSVwiKTtcclxuICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgIG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YbWxQYXJzZXIudW5lc2NhcGUodmFsdWVTdHIpO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX1RJVExFX0VYUDpcclxuICAgICAgICAgIGV4cElkID0gWG1sUGFyc2VyLmdldEludCh2YWx1ZVN0cik7XHJcbiAgICAgICAgICB0aGlzLl90aXRsZUV4cCA9IHRhc2tSZWYuZ2V0RXhwQnlJZChleHBJZCk7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX0FUVFJfSU1BR0U6XHJcbiAgICAgICAgICB0aGlzLl9pbWFnZSA9IHZhbHVlU3RyWzBdO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX0JVVFRPTlM6XHJcbiAgICAgICAgICB0aGlzLl9idXR0b25zID0gdmFsdWVTdHJbMF07XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX0FUVFJfUkVUVVJOX1ZBTDpcclxuICAgICAgICAgIHRoaXMuX3JldHVyblZhbCA9IE9wZXJhdGlvbi5Jbml0RmllbGQodmFsdWVTdHIsIHRoaXMuX3Rhc2spO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX0VSUl9MT0dfQVBQRU5EOlxyXG4gICAgICAgICAgdGhpcy5fZXJyTG9nQXBwZW5kID0gWG1sUGFyc2VyLmdldEJvb2xlYW4odmFsdWVTdHIpO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19BVFRSX09QRVJfTUVUSE9ETkFNRTpcclxuICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgIGNhc2UgQ29uc3RJbnRlcmZhY2UuTUdfQVRUUl9JU19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fHxcclxuICAgICAgICAgICAgICAgICAgICAgICAgKCFydEV2bnQuZ2V0QXJnTGlzdCgpLmdldEFyZygxKS5za2lwQXJnKCkgJiYgKGF3YWl0IHJ0RXZudC5nZXRBcmdMaXN0KCkuZ2V0QXJnKDEpLmdldFZhbHVlKFN0b3JhZ2VBdHRyaWJ1dGUuQUxQSEEsIDApKS50cmltKCkgPT09IHRoaXMuX29yaWdpbmFsUm91dGVyT3V0bGV0TmFtZSkpKVxyXG4gICAgICAgICAgICAgICAgICAgICAgY2FuUm91dGUgPSB0cnVlO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICBpZiAoIWNhblJvdXRlKVxyXG4gICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgc3ViZm9ybVRhc2sgPSA8VGFzaz5kZXN0U3ViRm9ybS5nZXRTdWJmb3JtVGFzaygpO1xyXG5cclxuICAgICAgICAgICAgICAgIGlmIChzdWJmb3JtVGFzayAhPSBudWxsKSB7XHJcbiAgICAgICAgICAgICAgICAgIGxldCB0ZXJtaW5hdGVUYXNrR3JhY2VmdWxseSA9IHRydWU7XHJcbiAgICAgICAgICAgICAgICAgIGxldCBydEV2bnQgPSBBY2Nlc3NIZWxwZXIuZXZlbnRzTWFuYWdlci5nZXRMYXN0UnRFdmVudCgpO1xyXG4gICAgICAgICAgICAgICAgICBpZiAodGhpcy5faXNSb3V0ZSAmJiBydEV2bnQgIT09IG51bGwgJiYgcnRFdm50LmlzR3VpVHJpZ2dlcmVkRXZlbnQoKSkge1xyXG4gICAgICAgICAgICAgICAgICAgIHRlcm1pbmF0ZVRhc2tHcmFjZWZ1bGx5ID0gZmFsc2U7XHJcbiAgICAgICAgICAgICAgICAgICAgQWNjZXNzSGVscGVyLmV2ZW50c01hbmFnZXIuc2V0U3RvcEV4ZWN1dGlvbih0cnVlLCBDbGVhckV2ZW50c09uU3RvcEV4ZWN1dGlvbi5OT05FKTtcclxuICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICBpZiAoYXdhaXQgc3ViZm9ybVRhc2suZW5kVGFzayh0cnVlLCBmYWxzZSwgIXRlcm1pbmF0ZVRhc2tHcmFjZWZ1bGx5LCB0cnVlKSkge1xyXG4gICAgICAgICAgICAgICAgICAgIGxldCBwYXJlbnRUYXNrOiBUYXNrID0gPFRhc2s+ZGVzdFN1YkZvcm0uZ2V0Rm9ybSgpLmdldFRhc2soKTtcclxuICAgICAgICAgICAgICAgICAgICBwYXJlbnRUYXNrLlRhc2tTZXJ2aWNlLlJlbW92ZVJlY29tcHV0ZXMocGFyZW50VGFzayk7XHJcbiAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgZWxzZVxyXG4gICAgICAgICAgICAgICAgICAvLyBpZiB0aGUgdGFzayBmYWlsZWQgdG8gdGVybWluYXRlLCBkbyBubyBwcm9jZWVkIHRvIGNhbGwgdGhlIG5ldyB0YXNrLlxyXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgaWYgKExhc3RGb2N1c2VkTWFuYWdlci5nZXRMYXN0Rm9jdXNlZENvbnRyb2woKSAhPSBudWxsICYmXHJcbiAgICAgICAgICAgICAgICAgIExhc3RGb2N1c2VkTWFuYWdlci5nZXRMYXN0Rm9jdXNlZENvbnRyb2woKS5pc0Rlc2NlbmRlbnRPZkNvbnRyb2woZGVzdFN1YkZvcm0pKVxyXG4gICAgICAgICAgICAgICAgICB0aGlzLl90YXNrLlJldGFpbkZvY3VzID0gZmFsc2U7XHJcbiAgICAgICAgICAgICAgICBlbHNlIHRoaXMuX3Rhc2suUmV0YWluRm9jdXMgPSBhd2FpdCB0aGlzLl9yZXRhaW5Gb2N1cy5nZXRWYWwoKTtcclxuICAgICAgICAgICAgICB9XHJcblxyXG4gICA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