@magic-xpa/engine 4.1100.0-dev4110.20 → 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 -29693
- 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 -2495
- 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 -30835
- package/fesm2015/magic-xpa-engine.mjs.map +0 -1
- 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3BlcmF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZW5naW5lL3NyYy9ydC9PcGVyYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLG9CQUFvQixFQUNwQixLQUFLLEVBQ0wsS0FBSyxFQUVMLE9BQU8sRUFDUCxPQUFPLEVBRVAsTUFBTSxFQUNQLE1BQU0sc0JBQXNCLENBQUM7QUFFOUIsT0FBTyxFQUVMLFNBQVMsRUFDVCxNQUFNLEVBQ04sZ0JBQWdCLEVBQ2hCLHFCQUFxQixFQUNyQixPQUFPLEVBQ1AsZUFBZSxFQUNmLFlBQVksRUFDWixTQUFTLEVBQ1YsTUFBTSxrQkFBa0IsQ0FBQztBQUUxQixPQUFPLEVBQ0wsUUFBUSxFQUVSLFFBQVEsRUFDUixhQUFhLEVBQ2IsTUFBTSxFQUVOLCtCQUErQixFQUMvQixVQUFVLEVBQ1gsTUFBTSxnQkFBZ0IsQ0FBQztBQUV4QixPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUF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vZiB0aGUgbG9vcCBhdCBFdmVudEhhbmRsZXI6OmV4ZWN1dGVcclxuICAgICAgYXdhaXQgZmxvd01vbml0b3IuYWRkRmxvd0ZpZWxkT3BlcmF0aW9uKHRoaXMsIHRydWUsIHRoaXMuX3Rhc2suR2V0VGFza0RldGFpbHMoKSk7XHJcblxyXG4gICAgdHJ5IHtcclxuICAgICAgc3dpdGNoICh0aGlzLl90eXBlKSB7XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19PUEVSX1ZFUklGWTpcclxuICAgICAgICAgIHJldHVybiBhd2FpdCB0aGlzLm9wZXJWZXJpZnkoKTtcclxuICAgICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX09QRVJfQkxPQ0s6XHJcbiAgICAgICAgICByZXR1cm4gdGhpcy5vcGVyQmxvY2soKTtcclxuICAgICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX09QRVJfTE9PUDpcclxuICAgICAgICAgIGlmICghdGhpcy5nZXRFeGVjT25TZXJ2ZXIoKSlcclxuICAgICAgICAgICAgcmV0dXJuIHRoaXMub3BlckJsb2NrKCk7XHJcbiAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgYXdhaXQgdGhpcy5vcGVyU2VydmVyKG1wcmdDcmVhdG9yKTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5NR19PUEVSX0VMU0U6XHJcbiAgICAgICAgICByZXR1cm4gdGhpcy5vcGVyRWxzZSgpO1xyXG4gICAgICAgIGNhc2UgQ29uc3RJbnRlcmZhY2UuTUdfT1BFUl9FVkFMVUFURTpcclxuICAgICAgICAgIGF3YWl0IHRoaXMub3BlckV2YWx1YXRlKCk7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICBjYXNlIENvbnN0SW50ZXJmYWNlLk1HX09QRVJfVVBEQVRFOlxyXG4gICAgICAgICAgYXdhaXQgdG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AgICAgICAgICAgaWYgKCFjYW5Sb3V0ZSlcclxuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIHN1YmZvcm1UYXNrID0gPFRhc2s+ZGVzdFN1YkZvcm0uZ2V0U3ViZm9ybVRhc2soKTtcclxuXHJcbiAgICAgICAgICAgICAgICBpZiAoc3ViZm9ybVRhc2sgIT0gbnVsbCkge1xyXG4gICAgICAgICAgICAgICAgICBsZXQgdGVybWluYXRlVGFza0dyYWNlZnVsbHkgPSB0cnVlO1xyXG4gICAgICAgICAgICAgICAgICBsZXQgcnRFdm50ID0gQWNjZXNzSGVscGVyLmV2ZW50c01hbmFnZXIuZ2V0TGFzdFJ0RXZlbnQoKTtcclxuICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuX2lzUm91dGUgJiYgcnRFdm50ICE9PSBudWxsICYmIHJ0RXZudC5pc0d1aVRyaWdnZXJlZEV2ZW50KCkpIHtcclxuICAgICAgICAgICAgICAgICAgICB0ZXJtaW5hdGVUYXNrR3JhY2VmdWxseSA9IGZhbHNlO1xyXG4gICAgICAgICAgICAgICAgICAgIEFjY2Vzc0hlbHBlci5ldmVudHNNYW5hZ2VyLnNldFN0b3BFeGVjdXRpb24odHJ1ZSwgQ2xlYXJFdmVudHNPblN0b3BFeGVjdXRpb24uTk9ORSk7XHJcbiAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgaWYgKGF3YWl0IHN1YmZvcm1UYXNrLmVuZFRhc2sodHJ1ZSwgZmFsc2UsICF0ZXJtaW5hdGVUYXNrR3JhY2VmdWxseSwgdHJ1ZSkpIHtcclxuICAgICAgICAgICAgICAgICAgICBsZXQgcGFyZW50VGFzazogVGFzayA9IDxUYXNrPmRlc3RTdWJGb3JtLmdldEZvcm0oKS5nZXRUYXNrKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgcGFyZW50VGFzay5UYXNrU2VydmljZS5SZW1vdmVSZWNvbXB1dGVzKHBhcmVudFRhc2spO1xyXG4gICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgIGVsc2VcclxuICAgICAgICAgICAgICAgICAgLy8gaWYgdGhlIHRhc2sgZmFpbGVkIHRvIHRlcm1pbmF0ZSwgZG8gbm8gcHJvY2VlZCB0byBjYWxsIHRoZSBuZXcgdGFzay5cclxuICAgICAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIGlmIChMYXN0Rm9jdXNlZE1hbmFnZXIuZ2V0TGFzdEZvY3VzZWRDb250cm9sKCkgIT0gbnVsbCAmJlxyXG4gICAgICAgICAgICAgICAgICBMYXN0Rm9jdXNlZE1hbmFnZXIuZ2V0TGFzdEZvY3VzZWRDb250cm9sKCkuaXNEZXNjZW5kZW50T2ZDb250cm9sKGRlc3RTdWJGb3JtKSlcclxuICAgICAgICAgICAgICAgICAgdGhpcy5fdGFzay5SZXRhaW5Gb2N1cyA9IGZhbHNlO1xyXG4gICAgICAgICAgICAgICAgZWxzZSB0aGlzLl90YXNrLlJldGFpbkZvY3VzID0gYXdhaXQgdGhpcy5fcmV0YWluRm9jdXMuZ2V0VmFsKCk7XHJcbiAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICBhd2FpdCB0aGlzLm9wZXJDYWxsKG1wcmdDcmVhdG9yKTtcclxuXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH1cclxuICAgICAgICAgIC8vIENhbGwgb3BlcmF0aW9uIHNob3VsZCByZXR1cm4gd2hldGhlciBpdCBleGVjdXRlZCBhIENhbGwgUm91dGUgb3Igbm90LlxyXG4gICAgICAgICAgLy8gVGhpcyBpcyBuZWVkZWQgYnkgdGhlIGNhbGxlciBiZWNhdXNlLCBpdCBoYXMgdG8gc3RvcCBleGVjdXRpbmcgc3Vic2VxdWVudFx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1dHRvbnMgPSBTdHlsZXMuTVNHQk9YX0JVVFRPTl9SRVRSWV9DQU5DRUw7XHJcbiAgICAgICAgYnJlYWs7XHJcbiAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgYnJlYWs7XHJcbiAgICB9XHJcbiAgICByZXR1cm4gdG1wYnV0dG9ucztcclxuICB9XHJcblxyXG4gIC8vLyA8c3VtbWFyeT5cclxuICAvLy8gICByZXR1cm5zIGNvZGUgYXNzaWduZWQgdG8gY29ycmVzcG9uZGluZyBpbWFnZUlEXHJcbiAgLy8vIDwvc3VtbWFyeT5cclxuICBwdWJsaWMgc3RhdGljIGdldEltYWdlKGltYWdlSUQ6IHN0cmluZyk6IG51bWJlciB7XHJcbiAgICBsZXQgdG1wSW1hZ2U6IG51bWJlciA9IDA7XHJcbiAgICBzd2l0Y2ggKGltYWdlSUQpIHtcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5JTUFHRV9FWENMQU1BVElPTjpcclxuICAgICAgICB0bXBJbWFnZSA9IFN0eWxlcy5NU0dCT1hfSUNPTl9FWENMQU1BVElPTjtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5JTUFHRV9DUklUSUNBTDpcclxuICAgICAgICB0bXBJbWFnZSA9IFN0eWxlcy5NU0dCT1hfSUNPTl9FUlJPUjtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5JTUFHRV9RVUVTVElPTjpcclxuICAgICAgICB0bXBJbWFnZSA9IFN0eWxlcy5NU0dCT1hfSUNPTl9RVUVTVElPTjtcclxuICAgICAgICBicmVhaztcclxuICAgICAgY2FzZSBDb25zdEludGVyZmFjZS5JTUFHRV9JTkZPUk1BVElPTjpcclxuICAgICAgICB0bXBJbWFnZSA9IFN0eWxlcy5NU0dCT1hfSUNPTl9JTkZPUk1BVElPTjtcclxuICAgICAgICBicmVhaztcclxuICAgICAgZGVmYXVsdDpcclxuICAgICAgICBic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