@magic-xpa/engine 4.801.0-dev481.232 → 4.801.0-dev481.236
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/magic-xpa-engine.umd.js +153 -167
- package/bundles/magic-xpa-engine.umd.js.map +1 -1
- package/bundles/magic-xpa-engine.umd.min.js +1 -1
- package/bundles/magic-xpa-engine.umd.min.js.map +1 -1
- package/esm2015/src/ClientManager.js +2 -2
- package/esm2015/src/CurrentClientVersion.js +2 -2
- package/esm2015/src/GUIManager.js +2 -2
- package/esm2015/src/GuiEventsProcessor.js +5 -5
- package/esm2015/src/commands/ClientToServer/BrowserEscEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/ClientOriginatedCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/ClientOriginatedCommandSerializer.js +3 -3
- package/esm2015/src/commands/ClientToServer/ColumnSortEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/ComputeEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/ContextTerminationEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/ContextTimeoutResetCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/DataviewCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/EvaluateCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/EventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/ExecOperCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/FetchDataControlValuesEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/IndexChangeEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/IniputForceWriteCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/NonReversibleExitEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/QueryCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/RecomputeCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/RefreshEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/RefreshScreenEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/RollbackEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/SubformOpenEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/SubformRefreshEventCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/TransactionCommand.js +2 -2
- package/esm2015/src/commands/ClientToServer/WriteMessageToServerLogCommand.js +2 -2
- package/esm2015/src/data/DataView.js +2 -2
- package/esm2015/src/data/Field.js +2 -2
- package/esm2015/src/data/Record.js +4 -4
- package/esm2015/src/data/RecordsTable.js +2 -2
- package/esm2015/src/data/TaskTransactionManager.js +2 -2
- package/esm2015/src/data/XMLBasedDcValuesBuilder.js +3 -3
- package/esm2015/src/env/Environment.js +1 -7
- package/esm2015/src/event/Event.js +6 -14
- package/esm2015/src/event/EventsManager.js +32 -32
- package/esm2015/src/event/IEventsManager.js +1 -1
- package/esm2015/src/event/RunTimeEvent.js +7 -7
- package/esm2015/src/exp/ExpressionEvaluator.js +21 -21
- package/esm2015/src/exp/ExpressionLocalJpn.js +3 -3
- package/esm2015/src/gui/MgControl.js +1 -1
- package/esm2015/src/gui/MgForm.js +9 -9
- package/esm2015/src/http/client/HttpClientAsync.js +4 -4
- package/esm2015/src/http/client/HttpClientBase.js +4 -4
- package/esm2015/src/http/client/HttpClientSync.js +3 -3
- package/esm2015/src/remote/RemoteCommandsProcessor.js +7 -8
- package/esm2015/src/rt/Boundary.js +4 -4
- package/esm2015/src/rt/DataviewHeaderBase.js +1 -1
- package/esm2015/src/rt/DataviewHeaderFactory.js +2 -2
- package/esm2015/src/rt/DataviewHeadersSaxHandler.js +2 -2
- package/esm2015/src/rt/Operation.js +5 -5
- package/esm2015/src/rt/RemoteDataviewHeader.js +6 -6
- package/esm2015/src/rt/Transaction.js +2 -2
- package/esm2015/src/tasks/MGDataCollection.js +3 -3
- package/esm2015/src/tasks/RemoteTaskService.js +3 -3
- package/esm2015/src/tasks/Task.js +9 -9
- package/esm2015/src/tasks/TaskServiceBase.js +1 -1
- package/esm2015/src/tasks/sort/SortCollection.js +4 -4
- package/esm2015/src/util/FlowMonitorQueue.js +2 -2
- package/esm2015/src/util/Process.js +2 -2
- package/esm2015/src/util/ReturnResult.js +3 -3
- package/fesm2015/magic-xpa-engine.js +153 -167
- package/fesm2015/magic-xpa-engine.js.map +1 -1
- package/package.json +4 -4
- package/src/GuiEventsProcessor.d.ts +1 -1
- package/src/commands/ClientToServer/BrowserEscEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/ClientOriginatedCommand.d.ts +1 -2
- package/src/commands/ClientToServer/ColumnSortEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/ComputeEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/ContextTerminationEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/ContextTimeoutResetCommand.d.ts +1 -2
- package/src/commands/ClientToServer/DataviewCommand.d.ts +1 -2
- package/src/commands/ClientToServer/EvaluateCommand.d.ts +1 -2
- package/src/commands/ClientToServer/EventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/ExecOperCommand.d.ts +1 -2
- package/src/commands/ClientToServer/FetchDataControlValuesEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/IndexChangeEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/IniputForceWriteCommand.d.ts +1 -2
- package/src/commands/ClientToServer/NonReversibleExitEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/QueryCommand.d.ts +1 -2
- package/src/commands/ClientToServer/RecomputeCommand.d.ts +1 -2
- package/src/commands/ClientToServer/RefreshEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/RefreshScreenEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/RollbackEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/SubformOpenEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/SubformRefreshEventCommand.d.ts +1 -2
- package/src/commands/ClientToServer/TransactionCommand.d.ts +1 -2
- package/src/commands/ClientToServer/WriteMessageToServerLogCommand.d.ts +1 -2
- package/src/data/RecordsTable.d.ts +1 -2
- package/src/data/XMLBasedDcValuesBuilder.d.ts +1 -1
- package/src/env/Environment.d.ts +0 -3
- package/src/event/Event.d.ts +0 -3
- package/src/event/EventsManager.d.ts +7 -8
- package/src/event/IEventsManager.d.ts +5 -6
- package/src/exp/ExpressionEvaluator.d.ts +2 -2
- package/src/exp/ExpressionLocalJpn.d.ts +2 -2
- package/src/gui/MgForm.d.ts +4 -4
- package/src/http/client/HttpClientAsync.d.ts +2 -2
- package/src/http/client/HttpClientBase.d.ts +2 -2
- package/src/http/client/HttpClientSync.d.ts +2 -2
- package/src/remote/RemoteCommandsProcessor.d.ts +1 -1
- package/src/rt/DataviewHeaderBase.d.ts +1 -1
- package/src/rt/DataviewHeaderFactory.d.ts +1 -1
- package/src/rt/Operation.d.ts +1 -1
- package/src/rt/RemoteDataviewHeader.d.ts +1 -2
- package/src/rt/Transaction.d.ts +1 -1
- package/src/tasks/RemoteTaskService.d.ts +2 -3
- package/src/tasks/Task.d.ts +1 -1
- package/src/tasks/TaskServiceBase.d.ts +2 -4
- package/src/tasks/sort/SortCollection.d.ts +2 -3
- package/src/util/FlowMonitorQueue.d.ts +1 -1
- package/src/util/Process.d.ts +1 -1
|
@@ -768,7 +768,7 @@ class ClientOriginatedCommand {
|
|
|
768
768
|
get ShouldSerializeRecords() {
|
|
769
769
|
return true;
|
|
770
770
|
}
|
|
771
|
-
SerializeCommandData(
|
|
771
|
+
SerializeCommandData() {
|
|
772
772
|
return null;
|
|
773
773
|
}
|
|
774
774
|
SerializeDataAfterCommand() {
|
|
@@ -872,7 +872,7 @@ class EventCommand extends ClientOriginatedCommandTaskTag {
|
|
|
872
872
|
return false;
|
|
873
873
|
return true;
|
|
874
874
|
}
|
|
875
|
-
SerializeCommandData(
|
|
875
|
+
SerializeCommandData() {
|
|
876
876
|
let helper = new CommandSerializationHelper();
|
|
877
877
|
helper.SerializeTaskTag(this.TaskTag);
|
|
878
878
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -894,7 +894,7 @@ class RollbackEventCommand extends EventCommand {
|
|
|
894
894
|
super(InternalInterface.MG_ACT_ROLLBACK);
|
|
895
895
|
this.Rollback = RollbackEventCommand_RollbackType.NONE;
|
|
896
896
|
}
|
|
897
|
-
SerializeCommandData(
|
|
897
|
+
SerializeCommandData() {
|
|
898
898
|
let helper = new CommandSerializationHelper();
|
|
899
899
|
helper.SerializeTaskTag(this.TaskTag);
|
|
900
900
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -2002,7 +2002,7 @@ class MgPriorityQueue {
|
|
|
2002
2002
|
MgPriorityQueue.DEFAULT_INITIAL_CAPACITY = 11;
|
|
2003
2003
|
|
|
2004
2004
|
class Event {
|
|
2005
|
-
constructor(
|
|
2005
|
+
constructor() {
|
|
2006
2006
|
this.Exp = null;
|
|
2007
2007
|
this._forceExit = ForceExit.None;
|
|
2008
2008
|
this.kbdItm = null;
|
|
@@ -2027,12 +2027,7 @@ class Event {
|
|
|
2027
2027
|
this.PublicName = null;
|
|
2028
2028
|
this.UserEvt = null;
|
|
2029
2029
|
this.UserEvtTaskTag = null;
|
|
2030
|
-
|
|
2031
|
-
this.constructor_0();
|
|
2032
|
-
else if (arguments.length === 1 && (evtOrAType === null || evtOrAType instanceof Event))
|
|
2033
|
-
this.constructor_1(evtOrAType);
|
|
2034
|
-
else
|
|
2035
|
-
this.constructor_4(evtOrAType);
|
|
2030
|
+
this.constructor_0();
|
|
2036
2031
|
}
|
|
2037
2032
|
constructor_0() {
|
|
2038
2033
|
this.InternalEvent = Int32.MinValue;
|
|
@@ -2050,9 +2045,6 @@ class Event {
|
|
|
2050
2045
|
this._userEvtIdx = evt._userEvtIdx;
|
|
2051
2046
|
this._timestamp = 0;
|
|
2052
2047
|
}
|
|
2053
|
-
constructor_4(aType) {
|
|
2054
|
-
this.setType(aType);
|
|
2055
|
-
}
|
|
2056
2048
|
get ForceExit() {
|
|
2057
2049
|
return this._forceExit;
|
|
2058
2050
|
}
|
|
@@ -2160,7 +2152,7 @@ class Event {
|
|
|
2160
2152
|
if (comma > -1) {
|
|
2161
2153
|
let ueTaskId = userValue.substr(0, comma);
|
|
2162
2154
|
if (taskRef !== null)
|
|
2163
|
-
ueTaskId = taskRef.TaskService.GetEventTaskId(
|
|
2155
|
+
ueTaskId = taskRef.TaskService.GetEventTaskId(ueTaskId);
|
|
2164
2156
|
let ueTask = AccessHelper.mgDataTable.GetTaskByID(ueTaskId);
|
|
2165
2157
|
let ueIdx = XmlParser.getInt(userValue.substr(comma + 1));
|
|
2166
2158
|
if (ueTask !== null) {
|
|
@@ -2247,7 +2239,7 @@ class Event {
|
|
|
2247
2239
|
bEqual = (name1 === name2);
|
|
2248
2240
|
}
|
|
2249
2241
|
else if (this._type === ConstInterface.EVENT_TYPE_INTERNAL && evt._type === ConstInterface.EVENT_TYPE_SYSTEM) {
|
|
2250
|
-
if (LastFocusedManager.Instance.getCurrTask() !== null && (AccessHelper.eventsManager.getMatchingAction(
|
|
2242
|
+
if (LastFocusedManager.Instance.getCurrTask() !== null && (AccessHelper.eventsManager.getMatchingAction(evt.getKbdItm())) === this.getInternalCode())
|
|
2251
2243
|
bEqual = true;
|
|
2252
2244
|
}
|
|
2253
2245
|
else if (this._type === ConstInterface.EVENT_TYPE_USER && evt._type !== ConstInterface.EVENT_TYPE_USER) {
|
|
@@ -3257,7 +3249,7 @@ class Event {
|
|
|
3257
3249
|
if (currType === StorageAttribute.ALPHA) {
|
|
3258
3250
|
try {
|
|
3259
3251
|
pic = PIC.buildPicture(newType, currValue, fld.getTask().getCompIdx(), true);
|
|
3260
|
-
this._paramVals[paramNum] = DisplayConvertor.Instance.disp2mg(currValue,
|
|
3252
|
+
this._paramVals[paramNum] = DisplayConvertor.Instance.disp2mg(currValue, pic, fld.getTask().getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
|
|
3261
3253
|
sameType = true;
|
|
3262
3254
|
}
|
|
3263
3255
|
catch (exception) {
|
|
@@ -3578,12 +3570,12 @@ class RunTimeEvent extends RunTimeEventBase {
|
|
|
3578
3570
|
else if (arguments.length === 3 && (taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt === null || taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt instanceof MgControlBase) && (ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask === null || ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask instanceof List) && (ignoreSpecifiedControlOrGuiTriggeredEventOrLineOrXOrControlOrActivatedFromMDIFrame === null || ignoreSpecifiedControlOrGuiTriggeredEventOrLineOrXOrControlOrActivatedFromMDIFrame.constructor === Boolean))
|
|
3579
3571
|
this.constructor_14(taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt, ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask, ignoreSpecifiedControlOrGuiTriggeredEventOrLineOrXOrControlOrActivatedFromMDIFrame);
|
|
3580
3572
|
else if (arguments.length === 3 && (taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt === null || taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt instanceof MgControlBase) && (ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask === null || ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask.constructor === Number) && (ignoreSpecifiedControlOrGuiTriggeredEventOrLineOrXOrControlOrActivatedFromMDIFrame === null || ignoreSpecifiedControlOrGuiTriggeredEventOrLineOrXOrControlOrActivatedFromMDIFrame.constructor === Number))
|
|
3581
|
-
this.constructor_15(taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt, ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask
|
|
3573
|
+
this.constructor_15(taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt, ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask);
|
|
3582
3574
|
else if (arguments.length === 6)
|
|
3583
|
-
this.constructor_16(taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt
|
|
3575
|
+
this.constructor_16(taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt);
|
|
3584
3576
|
else if (arguments.length === 2 && (taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt === null || taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt instanceof Event) && (ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask === null || ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask instanceof RunTimeEvent)) {
|
|
3585
3577
|
super.constructor_1(taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt);
|
|
3586
|
-
this.constructor_17(
|
|
3578
|
+
this.constructor_17(ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask);
|
|
3587
3579
|
}
|
|
3588
3580
|
else if (arguments.length === 1 && taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt instanceof RunTimeEvent)
|
|
3589
3581
|
Object.assign(this, taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt);
|
|
@@ -3654,14 +3646,14 @@ class RunTimeEvent extends RunTimeEventBase {
|
|
|
3654
3646
|
this.constructor_8(ctrlRef, guiTriggeredEvent);
|
|
3655
3647
|
this._controlsList = controlsList;
|
|
3656
3648
|
}
|
|
3657
|
-
constructor_15(ctrlRef, direction
|
|
3649
|
+
constructor_15(ctrlRef, direction) {
|
|
3658
3650
|
this.constructor_8(ctrlRef, true);
|
|
3659
3651
|
this._direction = direction;
|
|
3660
3652
|
}
|
|
3661
|
-
constructor_16(ctrlRef
|
|
3653
|
+
constructor_16(ctrlRef) {
|
|
3662
3654
|
this.constructor_8(ctrlRef, true);
|
|
3663
3655
|
}
|
|
3664
|
-
constructor_17(
|
|
3656
|
+
constructor_17(rtEvt) {
|
|
3665
3657
|
this._taskTag = rtEvt._taskTag;
|
|
3666
3658
|
this._task = rtEvt._task;
|
|
3667
3659
|
this.Control = rtEvt.Control;
|
|
@@ -3969,7 +3961,7 @@ class FlowMonitorQueue {
|
|
|
3969
3961
|
FlowMonitorQueue._instance = new FlowMonitorQueue();
|
|
3970
3962
|
return FlowMonitorQueue._instance;
|
|
3971
3963
|
}
|
|
3972
|
-
addTaskCngMode(
|
|
3964
|
+
addTaskCngMode(newTaskMode, taskInfo) {
|
|
3973
3965
|
let info = "Task Mode Change - ";
|
|
3974
3966
|
if (this._enabled && this._isTask) {
|
|
3975
3967
|
let activityItem = new ActivityItem(this, FlowMonitorQueue.ACT_TASK, FlowMonitorInterface.FLWMTR_CHNG_MODE);
|
|
@@ -4498,7 +4490,7 @@ class ExecOperCommand extends ClientOriginatedCommandTaskTag {
|
|
|
4498
4490
|
get CommandTypeAttribute() {
|
|
4499
4491
|
return ConstInterface.MG_ATTR_VAL_EXEC_OPER;
|
|
4500
4492
|
}
|
|
4501
|
-
SerializeCommandData(
|
|
4493
|
+
SerializeCommandData() {
|
|
4502
4494
|
let helper = new CommandSerializationHelper();
|
|
4503
4495
|
let execStackExists = this.ExecutionStack !== null && !this.ExecutionStack.empty();
|
|
4504
4496
|
helper.SerializeTaskTag(this.TaskTag);
|
|
@@ -4777,7 +4769,7 @@ class HttpClientBase {
|
|
|
4777
4769
|
ExecuteHttpRequest(urlString, requestContent, useCache, httpMethod, contentFromServer) {
|
|
4778
4770
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4779
4771
|
let httpResponse = null;
|
|
4780
|
-
this.prepareRequest(
|
|
4772
|
+
this.prepareRequest();
|
|
4781
4773
|
let httpCommunicationTimeoutMS = HttpClientEvents.GetHttpCommunicationTimeout();
|
|
4782
4774
|
let clientID = HttpClientEvents.GetGlobalUniqueSessionID();
|
|
4783
4775
|
let executionAttempts = 0;
|
|
@@ -4806,14 +4798,14 @@ class HttpClientBase {
|
|
|
4806
4798
|
}
|
|
4807
4799
|
let requestTime = Misc.getSystemMilliseconds();
|
|
4808
4800
|
this.LogRequestInfo(!isNullOrUndefined(requestContent) ? requestContent.length : 0, requestTime, false);
|
|
4809
|
-
httpResponse = yield this.sendRequestToServer(httpMethod, urlString, httpHeaders, requestContent, contentFromServer
|
|
4801
|
+
httpResponse = yield this.sendRequestToServer(httpMethod, urlString, httpHeaders, requestContent, contentFromServer);
|
|
4810
4802
|
this.logResponse(httpResponse, clientID, urlString, contentFromServer, timeBeforeRequest);
|
|
4811
4803
|
this.LogRequestInfo(!isNullOrUndefined(requestContent) ? requestContent.length : 0, Misc.getSystemMilliseconds() - requestTime, true);
|
|
4812
4804
|
break;
|
|
4813
4805
|
}
|
|
4814
4806
|
catch (ex) {
|
|
4815
4807
|
if (Logger.Instance.LogLevel === Logger_LogLevels.Basic)
|
|
4816
|
-
Logger.Instance.WriteBasicErrorToLog(
|
|
4808
|
+
Logger.Instance.WriteBasicErrorToLog();
|
|
4817
4809
|
else
|
|
4818
4810
|
Logger.Instance.WriteWarningToLog(ex);
|
|
4819
4811
|
this.handleHttpErrorException(ex, urlString);
|
|
@@ -4865,7 +4857,7 @@ class HttpClientSync extends HttpClientBase {
|
|
|
4865
4857
|
this.httpRequest = null;
|
|
4866
4858
|
this.headers = new Headers();
|
|
4867
4859
|
}
|
|
4868
|
-
prepareRequest(
|
|
4860
|
+
prepareRequest() {
|
|
4869
4861
|
}
|
|
4870
4862
|
addHeaders(urlString, useCache, httpHeaders, clientID) {
|
|
4871
4863
|
if (!urlString.startsWith("/")) {
|
|
@@ -4876,7 +4868,7 @@ class HttpClientSync extends HttpClientBase {
|
|
|
4876
4868
|
}
|
|
4877
4869
|
return httpHeaders;
|
|
4878
4870
|
}
|
|
4879
|
-
sendRequestToServer(httpMethod, urlString, httpHeaders, requestContent, contentFromServer
|
|
4871
|
+
sendRequestToServer(httpMethod, urlString, httpHeaders, requestContent, contentFromServer) {
|
|
4880
4872
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4881
4873
|
yield fetch(urlString, { method: 'POST', headers: this.headers, body: requestContent, keepalive: true });
|
|
4882
4874
|
return NString.Empty;
|
|
@@ -4906,7 +4898,7 @@ class HttpClientAsync extends HttpClientBase {
|
|
|
4906
4898
|
super();
|
|
4907
4899
|
this.httpClient = httpClient;
|
|
4908
4900
|
}
|
|
4909
|
-
prepareRequest(
|
|
4901
|
+
prepareRequest() {
|
|
4910
4902
|
}
|
|
4911
4903
|
addHeaders(urlString, useCache, httpHeaders, clientID) {
|
|
4912
4904
|
if (!urlString.startsWith("/"))
|
|
@@ -4915,7 +4907,7 @@ class HttpClientAsync extends HttpClientBase {
|
|
|
4915
4907
|
httpHeaders = httpHeaders.append("Cache-Control", 'no-cache');
|
|
4916
4908
|
return httpHeaders;
|
|
4917
4909
|
}
|
|
4918
|
-
sendRequestToServer(httpMethod, urlString, httpHeaders, requestContent, contentFromServer
|
|
4910
|
+
sendRequestToServer(httpMethod, urlString, httpHeaders, requestContent, contentFromServer) {
|
|
4919
4911
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4920
4912
|
let httpResponse = yield this.httpClient.request(RequestMethod[httpMethod], urlString, { headers: httpHeaders, responseType: "text", observe: "response", body: requestContent }).toPromise();
|
|
4921
4913
|
contentFromServer.value = httpResponse.body;
|
|
@@ -4932,7 +4924,7 @@ class HttpClientAsync extends HttpClientBase {
|
|
|
4932
4924
|
if (ex instanceof HttpErrorResponse) {
|
|
4933
4925
|
let statusCode = ex['status'];
|
|
4934
4926
|
if (statusCode === 404 || statusCode === 403)
|
|
4935
|
-
throw new WebException(new Error("bad URL: " + urlString + " - StatusCode = " + statusCode)
|
|
4927
|
+
throw new WebException(new Error("bad URL: " + urlString + " - StatusCode = " + statusCode));
|
|
4936
4928
|
}
|
|
4937
4929
|
}
|
|
4938
4930
|
shouldRetry(httpCommunicationTimeoutMS, urlString, communicationsFailureHandler, ex, startTimeRef) {
|
|
@@ -5380,11 +5372,11 @@ class MGDataCollection {
|
|
|
5380
5372
|
}
|
|
5381
5373
|
GetMainProgByCtlIdx(contextIDOrCtlIdx, ctlIdx) {
|
|
5382
5374
|
if (arguments.length === 2)
|
|
5383
|
-
return this.GetMainProgByCtlIdx_0(
|
|
5375
|
+
return this.GetMainProgByCtlIdx_0(ctlIdx);
|
|
5384
5376
|
else
|
|
5385
5377
|
return this.GetMainProgByCtlIdx_1(contextIDOrCtlIdx);
|
|
5386
5378
|
}
|
|
5387
|
-
GetMainProgByCtlIdx_0(
|
|
5379
|
+
GetMainProgByCtlIdx_0(ctlIdx) {
|
|
5388
5380
|
let task = null;
|
|
5389
5381
|
for (let i = 0; i < this.getSize() && task == null; i++) {
|
|
5390
5382
|
let mgd = this.getMGData(i);
|
|
@@ -6065,7 +6057,7 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
6065
6057
|
if (requestedURL.startsWith("/"))
|
|
6066
6058
|
requestedURL = ServerConfig.Instance.getProtocol() + "://" + ServerConfig.Instance.getServer() + requestedURL;
|
|
6067
6059
|
var spinnerTimer = timer(50, 50);
|
|
6068
|
-
var spinnerTimerSubscription = spinnerTimer.subscribe(
|
|
6060
|
+
var spinnerTimerSubscription = spinnerTimer.subscribe(() => {
|
|
6069
6061
|
AccessHelper.eventsManager.CheckAndShowSpinner(true);
|
|
6070
6062
|
});
|
|
6071
6063
|
let isError = new RefParam(false);
|
|
@@ -6094,7 +6086,7 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
6094
6086
|
return responseStr;
|
|
6095
6087
|
});
|
|
6096
6088
|
}
|
|
6097
|
-
ClientActivated(
|
|
6089
|
+
ClientActivated() {
|
|
6098
6090
|
}
|
|
6099
6091
|
BuildUrlSuffix(hasContent, isInitialCall) {
|
|
6100
6092
|
let prefix = ConstInterface.RC_INDICATION + ConstInterface.RC_TOKEN_CTX_ID + RuntimeContextBase.Instance.ContextID;
|
|
@@ -6156,7 +6148,7 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
6156
6148
|
HttpClientEvents.GetSessionCounter_Event = this.GetSessionCounter.bind(this);
|
|
6157
6149
|
HttpClientEvents.CheckAndSetSessionCounter_Event = this.CheckAndSetSessionCounter.bind(this);
|
|
6158
6150
|
HttpClientEvents.ComputeAndLogRequestInfo_Event = this.ComputeAndLogRequestInfo.bind(this);
|
|
6159
|
-
AccessHelper.eventsManager.SpinnerStopped.subscribe(clientBusyTime => this.ClientActivated(
|
|
6151
|
+
AccessHelper.eventsManager.SpinnerStopped.subscribe(clientBusyTime => this.ClientActivated());
|
|
6160
6152
|
}
|
|
6161
6153
|
ComputeAndLogRequestInfo(contentLength, roundTrip, isLoggingResponse) {
|
|
6162
6154
|
if (!isNullOrUndefined(this._requestInfo.serverCallAt)) {
|
|
@@ -6732,7 +6724,7 @@ class GUIManager {
|
|
|
6732
6724
|
abort_0(form) {
|
|
6733
6725
|
if (form !== null) {
|
|
6734
6726
|
let mainProgByCtlIdx = AccessHelper.mgDataTable.GetMainProgByCtlIdx(-1, form.getTask().getCtlIdx());
|
|
6735
|
-
Manager.Abort(form
|
|
6727
|
+
Manager.Abort(form);
|
|
6736
6728
|
}
|
|
6737
6729
|
}
|
|
6738
6730
|
abort_1() {
|
|
@@ -6878,7 +6870,7 @@ class ExpressionLocalJpn {
|
|
|
6878
6870
|
strbufZenkaku = null;
|
|
6879
6871
|
return strRet;
|
|
6880
6872
|
}
|
|
6881
|
-
eval_op_zimeread(
|
|
6873
|
+
eval_op_zimeread() {
|
|
6882
6874
|
let strRet = null;
|
|
6883
6875
|
let utilImeJpn = Manager.UtilImeJpn;
|
|
6884
6876
|
if (utilImeJpn !== null)
|
|
@@ -7840,7 +7832,7 @@ class DataviewCommand extends ClientOriginatedCommandTaskTag {
|
|
|
7840
7832
|
get CommandTypeAttribute() {
|
|
7841
7833
|
throw new NotImplementedException();
|
|
7842
7834
|
}
|
|
7843
|
-
SerializeCommandData(
|
|
7835
|
+
SerializeCommandData() {
|
|
7844
7836
|
Debug.Assert(false, "Dataview commands need not be serialized");
|
|
7845
7837
|
return null;
|
|
7846
7838
|
}
|
|
@@ -8092,7 +8084,7 @@ class RefreshEventCommand extends EventCommand {
|
|
|
8092
8084
|
this.CurrentRecordRow = 0;
|
|
8093
8085
|
this.IsInternalRefresh = false;
|
|
8094
8086
|
}
|
|
8095
|
-
SerializeCommandData(
|
|
8087
|
+
SerializeCommandData() {
|
|
8096
8088
|
let helper = new CommandSerializationHelper();
|
|
8097
8089
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8098
8090
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8124,7 +8116,7 @@ class FetchDataControlValuesEventCommand extends EventCommand {
|
|
|
8124
8116
|
super(InternalInterface.MG_ACT_FETCH_DATA_CONTROL_VALUES);
|
|
8125
8117
|
this.ControlName = null;
|
|
8126
8118
|
}
|
|
8127
|
-
SerializeCommandData(
|
|
8119
|
+
SerializeCommandData() {
|
|
8128
8120
|
let helper = new CommandSerializationHelper();
|
|
8129
8121
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8130
8122
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8141,7 +8133,7 @@ class WriteMessageToServerLogCommand extends EventCommand {
|
|
|
8141
8133
|
super(InternalInterface.MG_ACT_WRITE_ERROR_TO_SERVER_LOG);
|
|
8142
8134
|
this.ErrorMessage = null;
|
|
8143
8135
|
}
|
|
8144
|
-
SerializeCommandData(
|
|
8136
|
+
SerializeCommandData() {
|
|
8145
8137
|
let helper = new CommandSerializationHelper();
|
|
8146
8138
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8147
8139
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8156,7 +8148,7 @@ class SubformRefreshEventCommand extends RefreshEventCommand {
|
|
|
8156
8148
|
this.SubformTaskTag = null;
|
|
8157
8149
|
this.ExplicitSubformRefresh = false;
|
|
8158
8150
|
}
|
|
8159
|
-
SerializeCommandData(
|
|
8151
|
+
SerializeCommandData() {
|
|
8160
8152
|
let helper = new CommandSerializationHelper();
|
|
8161
8153
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8162
8154
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8174,7 +8166,7 @@ class BrowserEscEventCommand extends EventCommand {
|
|
|
8174
8166
|
super(InternalInterface.MG_ACT_BROWSER_ESC);
|
|
8175
8167
|
this.CloseSubformOnly = false;
|
|
8176
8168
|
}
|
|
8177
|
-
SerializeCommandData(
|
|
8169
|
+
SerializeCommandData() {
|
|
8178
8170
|
let helper = new CommandSerializationHelper();
|
|
8179
8171
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8180
8172
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8192,7 +8184,7 @@ class IndexChangeEventCommand extends EventCommand {
|
|
|
8192
8184
|
super(InternalInterface.MG_ACT_INDEX_CHANGE);
|
|
8193
8185
|
this.KeyIndex = 0;
|
|
8194
8186
|
}
|
|
8195
|
-
SerializeCommandData(
|
|
8187
|
+
SerializeCommandData() {
|
|
8196
8188
|
let helper = new CommandSerializationHelper();
|
|
8197
8189
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8198
8190
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8211,7 +8203,7 @@ class ColumnSortEventCommand extends EventCommand {
|
|
|
8211
8203
|
this.DitIdx = 0;
|
|
8212
8204
|
this.Direction = 0;
|
|
8213
8205
|
}
|
|
8214
|
-
SerializeCommandData(
|
|
8206
|
+
SerializeCommandData() {
|
|
8215
8207
|
let helper = new CommandSerializationHelper();
|
|
8216
8208
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8217
8209
|
helper.SerializeFldId(this.FldId);
|
|
@@ -8231,7 +8223,7 @@ class RefreshScreenEventCommand extends EventCommand {
|
|
|
8231
8223
|
this.TopRecIdx = 0;
|
|
8232
8224
|
this.RefreshMode = 0;
|
|
8233
8225
|
}
|
|
8234
|
-
SerializeCommandData(
|
|
8226
|
+
SerializeCommandData() {
|
|
8235
8227
|
let helper = new CommandSerializationHelper();
|
|
8236
8228
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8237
8229
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8249,7 +8241,7 @@ class SubformOpenEventCommand extends EventCommand {
|
|
|
8249
8241
|
super(InternalInterface.MG_ACT_SUBFORM_OPEN);
|
|
8250
8242
|
this.DitIdx = 0;
|
|
8251
8243
|
}
|
|
8252
|
-
SerializeCommandData(
|
|
8244
|
+
SerializeCommandData() {
|
|
8253
8245
|
let helper = new CommandSerializationHelper();
|
|
8254
8246
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8255
8247
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8266,7 +8258,7 @@ class ComputeEventCommand extends EventCommand {
|
|
|
8266
8258
|
super(InternalInterface.MG_ACT_COMPUTE);
|
|
8267
8259
|
this.Subforms = false;
|
|
8268
8260
|
}
|
|
8269
|
-
SerializeCommandData(
|
|
8261
|
+
SerializeCommandData() {
|
|
8270
8262
|
let helper = new CommandSerializationHelper();
|
|
8271
8263
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8272
8264
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8284,7 +8276,7 @@ class NonReversibleExitEventCommand extends EventCommand {
|
|
|
8284
8276
|
super(InternalInterface.MG_ACT_EXIT);
|
|
8285
8277
|
this.CloseSubformOnly = false;
|
|
8286
8278
|
}
|
|
8287
|
-
SerializeCommandData(
|
|
8279
|
+
SerializeCommandData() {
|
|
8288
8280
|
let helper = new CommandSerializationHelper();
|
|
8289
8281
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8290
8282
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8307,7 +8299,7 @@ class RecomputeCommand extends ClientOriginatedCommandTaskTag {
|
|
|
8307
8299
|
get CommandTypeAttribute() {
|
|
8308
8300
|
return ConstInterface.MG_ATTR_VAL_RECOMP;
|
|
8309
8301
|
}
|
|
8310
|
-
SerializeCommandData(
|
|
8302
|
+
SerializeCommandData() {
|
|
8311
8303
|
let helper = new CommandSerializationHelper();
|
|
8312
8304
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8313
8305
|
helper.SerializeFldId(this.FldId);
|
|
@@ -8329,7 +8321,7 @@ class TransactionCommand extends ClientOriginatedCommandTaskTag {
|
|
|
8329
8321
|
get CommandTypeAttribute() {
|
|
8330
8322
|
return ConstInterface.MG_ATTR_VAL_TRANS;
|
|
8331
8323
|
}
|
|
8332
|
-
SerializeCommandData(
|
|
8324
|
+
SerializeCommandData() {
|
|
8333
8325
|
let helper = new CommandSerializationHelper();
|
|
8334
8326
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8335
8327
|
helper.SerializeAttribute(ConstInterface.MG_ATTR_OPER, this.Oper);
|
|
@@ -8368,7 +8360,7 @@ class EvaluateCommand extends ClientOriginatedCommandTaskTag {
|
|
|
8368
8360
|
get CommandTypeAttribute() {
|
|
8369
8361
|
return ConstInterface.MG_ATTR_VAL_EVAL;
|
|
8370
8362
|
}
|
|
8371
|
-
SerializeCommandData(
|
|
8363
|
+
SerializeCommandData() {
|
|
8372
8364
|
let helper = new CommandSerializationHelper();
|
|
8373
8365
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8374
8366
|
helper.SerializeAttribute(ConstInterface.MG_ATTR_EXP_IDX, this.ExpIdx);
|
|
@@ -8394,7 +8386,7 @@ class QueryCommand extends ClientOriginatedCommand {
|
|
|
8394
8386
|
get ShouldSerializeRecords() {
|
|
8395
8387
|
return false;
|
|
8396
8388
|
}
|
|
8397
|
-
SerializeCommandData(
|
|
8389
|
+
SerializeCommandData() {
|
|
8398
8390
|
let message = new StringBuilder();
|
|
8399
8391
|
message.Append(" " + ConstInterface.MG_ATTR_VAL_QUERY_TYPE + "=\"");
|
|
8400
8392
|
message.Append(this.SerializeQueryCommandData());
|
|
@@ -8425,7 +8417,7 @@ class IniputForceWriteCommand extends ClientOriginatedCommand {
|
|
|
8425
8417
|
get ShouldSerializeRecords() {
|
|
8426
8418
|
return false;
|
|
8427
8419
|
}
|
|
8428
|
-
SerializeCommandData(
|
|
8420
|
+
SerializeCommandData() {
|
|
8429
8421
|
return " " + ConstInterface.MG_ATTR_VAL_INIPUT_PARAM + "=\"" + XmlParser.escape(this.Text) + "\"";
|
|
8430
8422
|
}
|
|
8431
8423
|
getCommandInfo() {
|
|
@@ -8437,7 +8429,7 @@ class ContextTerminationEventCommand extends EventCommand {
|
|
|
8437
8429
|
constructor() {
|
|
8438
8430
|
super(InternalInterface.MG_ACT_CONTEXT_TERMINATION);
|
|
8439
8431
|
}
|
|
8440
|
-
SerializeCommandData(
|
|
8432
|
+
SerializeCommandData() {
|
|
8441
8433
|
let helper = new CommandSerializationHelper();
|
|
8442
8434
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8443
8435
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
@@ -8453,7 +8445,7 @@ class ContextTimeoutResetCommand extends EventCommand {
|
|
|
8453
8445
|
constructor() {
|
|
8454
8446
|
super(InternalInterface.MG_ACT_CONTEXT_TIMEOUT_RESET);
|
|
8455
8447
|
}
|
|
8456
|
-
SerializeCommandData(
|
|
8448
|
+
SerializeCommandData() {
|
|
8457
8449
|
let helper = new CommandSerializationHelper();
|
|
8458
8450
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
8459
8451
|
helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT, "1");
|
|
@@ -8939,18 +8931,12 @@ class Environment {
|
|
|
8939
8931
|
get Language() {
|
|
8940
8932
|
return this._language;
|
|
8941
8933
|
}
|
|
8942
|
-
set SpecialNumpadPlusChar(value) {
|
|
8943
|
-
}
|
|
8944
8934
|
get SpecialNumpadPlusChar() {
|
|
8945
8935
|
return true;
|
|
8946
8936
|
}
|
|
8947
|
-
set SpecialRestoreMaximizedForm(value) {
|
|
8948
|
-
}
|
|
8949
8937
|
get SpecialRestoreMaximizedForm() {
|
|
8950
8938
|
return false;
|
|
8951
8939
|
}
|
|
8952
|
-
set SpecialIgnoreBGinModify(value) {
|
|
8953
|
-
}
|
|
8954
8940
|
get SpecialIgnoreBGinModify() {
|
|
8955
8941
|
return false;
|
|
8956
8942
|
}
|
|
@@ -9988,7 +9974,7 @@ class Operation {
|
|
|
9988
9974
|
}
|
|
9989
9975
|
if (yield subformTask.endTask(true, false, !terminateTaskGracefully, true)) {
|
|
9990
9976
|
let parentTask = destSubForm.getForm().getTask();
|
|
9991
|
-
parentTask.TaskService.RemoveRecomputes(parentTask
|
|
9977
|
+
parentTask.TaskService.RemoveRecomputes(parentTask);
|
|
9992
9978
|
}
|
|
9993
9979
|
else
|
|
9994
9980
|
break;
|
|
@@ -10015,9 +10001,9 @@ class Operation {
|
|
|
10015
10001
|
});
|
|
10016
10002
|
}
|
|
10017
10003
|
operCallParallel() {
|
|
10018
|
-
Operation.callParallel(
|
|
10004
|
+
Operation.callParallel();
|
|
10019
10005
|
}
|
|
10020
|
-
static callParallel(
|
|
10006
|
+
static callParallel() {
|
|
10021
10007
|
}
|
|
10022
10008
|
getCondVal() {
|
|
10023
10009
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -10047,7 +10033,7 @@ class Operation {
|
|
|
10047
10033
|
if (this._display === ConstInterface.DISPLAY_STATUS) {
|
|
10048
10034
|
if (!NString.IsNullOrEmpty(textToDisplay)) {
|
|
10049
10035
|
FlowMonitorQueue.Instance.addFlowVerifyInfo(textToDisplay, this._task.GetTaskDetails());
|
|
10050
|
-
this._task.GetContextTask().WriteToMessagePane(textToDisplay
|
|
10036
|
+
this._task.GetContextTask().WriteToMessagePane(textToDisplay);
|
|
10051
10037
|
}
|
|
10052
10038
|
}
|
|
10053
10039
|
else {
|
|
@@ -11121,7 +11107,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
11121
11107
|
val1 = valStack.pop();
|
|
11122
11108
|
resVal.Attr = StorageAttribute.BOOLEAN;
|
|
11123
11109
|
try {
|
|
11124
|
-
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2
|
|
11110
|
+
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2) === 0);
|
|
11125
11111
|
}
|
|
11126
11112
|
catch (nullValueException) {
|
|
11127
11113
|
if (nullValueException instanceof NullValueException) {
|
|
@@ -11137,7 +11123,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
11137
11123
|
val1 = valStack.pop();
|
|
11138
11124
|
resVal.Attr = StorageAttribute.BOOLEAN;
|
|
11139
11125
|
try {
|
|
11140
|
-
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2
|
|
11126
|
+
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2) !== 0);
|
|
11141
11127
|
}
|
|
11142
11128
|
catch (nullValueException) {
|
|
11143
11129
|
if (nullValueException instanceof NullValueException) {
|
|
@@ -11152,7 +11138,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
11152
11138
|
val1 = valStack.pop();
|
|
11153
11139
|
resVal.Attr = StorageAttribute.BOOLEAN;
|
|
11154
11140
|
try {
|
|
11155
|
-
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2
|
|
11141
|
+
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2) <= 0);
|
|
11156
11142
|
}
|
|
11157
11143
|
catch (nullValueException) {
|
|
11158
11144
|
if (nullValueException instanceof NullValueException) {
|
|
@@ -11167,7 +11153,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
11167
11153
|
val1 = valStack.pop();
|
|
11168
11154
|
resVal.Attr = StorageAttribute.BOOLEAN;
|
|
11169
11155
|
try {
|
|
11170
|
-
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2
|
|
11156
|
+
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2) < 0);
|
|
11171
11157
|
}
|
|
11172
11158
|
catch (nullValueException) {
|
|
11173
11159
|
if (nullValueException instanceof NullValueException) {
|
|
@@ -11182,7 +11168,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
11182
11168
|
val1 = valStack.pop();
|
|
11183
11169
|
resVal.Attr = StorageAttribute.BOOLEAN;
|
|
11184
11170
|
try {
|
|
11185
|
-
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2
|
|
11171
|
+
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2) >= 0);
|
|
11186
11172
|
}
|
|
11187
11173
|
catch (nullValueException) {
|
|
11188
11174
|
if (nullValueException instanceof NullValueException) {
|
|
@@ -11197,7 +11183,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
11197
11183
|
val1 = valStack.pop();
|
|
11198
11184
|
resVal.Attr = StorageAttribute.BOOLEAN;
|
|
11199
11185
|
try {
|
|
11200
|
-
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2
|
|
11186
|
+
resVal.BoolVal = (ExpressionEvaluator.val_cmp_any(val1, val2) > 0);
|
|
11201
11187
|
}
|
|
11202
11188
|
catch (nullValueException) {
|
|
11203
11189
|
if (nullValueException instanceof NullValueException) {
|
|
@@ -11694,11 +11680,11 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
11694
11680
|
for (j = 1; j < nArgs; j++) {
|
|
11695
11681
|
val1 = valStack.pop();
|
|
11696
11682
|
if (opCode === ExpressionInterface.EXP_OP_MIN) {
|
|
11697
|
-
if (ExpressionEvaluator.val_cmp_any(val1, resVal
|
|
11683
|
+
if (ExpressionEvaluator.val_cmp_any(val1, resVal) < 0)
|
|
11698
11684
|
this.val_cpy(val1, resVal);
|
|
11699
11685
|
}
|
|
11700
11686
|
else {
|
|
11701
|
-
if (ExpressionEvaluator.val_cmp_any(val1, resVal
|
|
11687
|
+
if (ExpressionEvaluator.val_cmp_any(val1, resVal) > 0)
|
|
11702
11688
|
this.val_cpy(val1, resVal);
|
|
11703
11689
|
}
|
|
11704
11690
|
}
|
|
@@ -11889,7 +11875,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
11889
11875
|
break;
|
|
11890
11876
|
case ExpressionInterface.EXP_OP_DELAY:
|
|
11891
11877
|
val1 = valStack.pop();
|
|
11892
|
-
this.eval_op_delay(
|
|
11878
|
+
this.eval_op_delay();
|
|
11893
11879
|
resVal.Attr = StorageAttribute.BOOLEAN;
|
|
11894
11880
|
resVal.BoolVal = true;
|
|
11895
11881
|
break;
|
|
@@ -11978,7 +11964,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
11978
11964
|
case ExpressionInterface.EXP_OP_ROLLBACK:
|
|
11979
11965
|
val2 = valStack.pop();
|
|
11980
11966
|
val1 = valStack.pop();
|
|
11981
|
-
yield this.eval_op_rollback(resVal
|
|
11967
|
+
yield this.eval_op_rollback(resVal);
|
|
11982
11968
|
break;
|
|
11983
11969
|
case ExpressionInterface.EXP_OP_VARSET:
|
|
11984
11970
|
val2 = valStack.pop();
|
|
@@ -12033,7 +12019,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
12033
12019
|
val1 = Exp_params[j];
|
|
12034
12020
|
let valueMatched;
|
|
12035
12021
|
try {
|
|
12036
|
-
valueMatched = (ExpressionEvaluator.val_cmp_any(val1, resVal
|
|
12022
|
+
valueMatched = (ExpressionEvaluator.val_cmp_any(val1, resVal) === 0);
|
|
12037
12023
|
}
|
|
12038
12024
|
catch (nullValueException) {
|
|
12039
12025
|
if (nullValueException instanceof NullValueException) {
|
|
@@ -12162,7 +12148,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
12162
12148
|
if (this._expressionLocalJpn == null)
|
|
12163
12149
|
resVal.StrVal = val1.StrVal;
|
|
12164
12150
|
else {
|
|
12165
|
-
resVal.StrVal = this._expressionLocalJpn.eval_op_zimeread(
|
|
12151
|
+
resVal.StrVal = this._expressionLocalJpn.eval_op_zimeread();
|
|
12166
12152
|
if (resVal.StrVal == null)
|
|
12167
12153
|
resVal.StrVal = '';
|
|
12168
12154
|
}
|
|
@@ -12231,7 +12217,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
12231
12217
|
Exp_params[nArgs - 1 - j] = valStack.pop();
|
|
12232
12218
|
try {
|
|
12233
12219
|
for (j = 1; j < nArgs; j++) {
|
|
12234
|
-
if (ExpressionEvaluator.val_cmp_any(Exp_params[0], Exp_params[j]
|
|
12220
|
+
if (ExpressionEvaluator.val_cmp_any(Exp_params[0], Exp_params[j]) === 0) {
|
|
12235
12221
|
resVal.BoolVal = true;
|
|
12236
12222
|
break;
|
|
12237
12223
|
}
|
|
@@ -12527,7 +12513,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
12527
12513
|
return expVal.Attr === StorageAttribute.BOOLEAN && !expVal.BoolVal;
|
|
12528
12514
|
});
|
|
12529
12515
|
}
|
|
12530
|
-
static val_cmp_any(val1, val2
|
|
12516
|
+
static val_cmp_any(val1, val2) {
|
|
12531
12517
|
let retval = 0;
|
|
12532
12518
|
let attr1 = val1.Attr;
|
|
12533
12519
|
let attr2 = val2.Attr;
|
|
@@ -12632,9 +12618,9 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
12632
12618
|
resVal.BoolVal = false;
|
|
12633
12619
|
resVal.Attr = StorageAttribute.BOOLEAN;
|
|
12634
12620
|
try {
|
|
12635
|
-
if (ExpressionEvaluator.val_cmp_any(val1, val2
|
|
12621
|
+
if (ExpressionEvaluator.val_cmp_any(val1, val2) >= 0) {
|
|
12636
12622
|
val2 = val3;
|
|
12637
|
-
if (ExpressionEvaluator.val_cmp_any(val1, val2
|
|
12623
|
+
if (ExpressionEvaluator.val_cmp_any(val1, val2) <= 0)
|
|
12638
12624
|
resVal.BoolVal = true;
|
|
12639
12625
|
}
|
|
12640
12626
|
}
|
|
@@ -13294,7 +13280,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
13294
13280
|
let dow = val1.NUM_2_ULONG();
|
|
13295
13281
|
resVal.StrVal = displayConvertor.to_a(resVal.StrVal, 10, dow, format, this.ExpTask.getCompIdx());
|
|
13296
13282
|
}
|
|
13297
|
-
eval_op_delay(
|
|
13283
|
+
eval_op_delay() {
|
|
13298
13284
|
}
|
|
13299
13285
|
eval_op_idle(resVal) {
|
|
13300
13286
|
let n = 0;
|
|
@@ -14031,7 +14017,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
14031
14017
|
yield fld.updateDisplay();
|
|
14032
14018
|
});
|
|
14033
14019
|
}
|
|
14034
|
-
eval_op_rollback(resVal
|
|
14020
|
+
eval_op_rollback(resVal) {
|
|
14035
14021
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14036
14022
|
let task = this.ExpTask.GetContextTask() || this.ExpTask;
|
|
14037
14023
|
yield AccessHelper.eventsManager.handleInternalEventWithTask(task, InternalInterface.MG_ACT_ROLLBACK);
|
|
@@ -14253,7 +14239,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
14253
14239
|
try {
|
|
14254
14240
|
a = new ExpVal(aDataType, aIsNull, aVal);
|
|
14255
14241
|
b = new ExpVal(bDataType, bIsNull, bVal);
|
|
14256
|
-
result = (ExpressionEvaluator.val_cmp_any(a, b
|
|
14242
|
+
result = (ExpressionEvaluator.val_cmp_any(a, b) === 0);
|
|
14257
14243
|
}
|
|
14258
14244
|
catch (nullValueException) {
|
|
14259
14245
|
if (nullValueException instanceof NullValueException) {
|
|
@@ -14881,7 +14867,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
|
14881
14867
|
}
|
|
14882
14868
|
return attr;
|
|
14883
14869
|
}
|
|
14884
|
-
GetTopMostForms(
|
|
14870
|
+
GetTopMostForms() {
|
|
14885
14871
|
return AccessHelper.mgDataTable.GetTopMostForms();
|
|
14886
14872
|
}
|
|
14887
14873
|
HandleControlGoto(ctrlTask, ctrl, rowNo) {
|
|
@@ -15374,7 +15360,7 @@ class Record {
|
|
|
15374
15360
|
try {
|
|
15375
15361
|
let first = new ExpVal(currFld.getType(), false, this.GetFieldValue(currFldId));
|
|
15376
15362
|
let second = new ExpVal(currFld.getType(), false, compTo.GetFieldValue(currFldId));
|
|
15377
|
-
res = ExpressionEvaluator.val_cmp_any(first, second
|
|
15363
|
+
res = ExpressionEvaluator.val_cmp_any(first, second);
|
|
15378
15364
|
if (res !== 0)
|
|
15379
15365
|
break;
|
|
15380
15366
|
}
|
|
@@ -15533,11 +15519,11 @@ class Record {
|
|
|
15533
15519
|
}
|
|
15534
15520
|
fillFieldsData(fldValInBytesOrFldsVal, recFlags, isCurrRec) {
|
|
15535
15521
|
if (isNullOrUndefined(isCurrRec))
|
|
15536
|
-
this.fillFieldsData_0(
|
|
15522
|
+
this.fillFieldsData_0();
|
|
15537
15523
|
else
|
|
15538
15524
|
this.fillFieldsData_1(fldValInBytesOrFldsVal, recFlags, isCurrRec);
|
|
15539
15525
|
}
|
|
15540
|
-
fillFieldsData_0(
|
|
15526
|
+
fillFieldsData_0() {
|
|
15541
15527
|
}
|
|
15542
15528
|
fillFieldsData_1(fldsVal, recFlags, isCurrRec) {
|
|
15543
15529
|
let val = null;
|
|
@@ -16251,7 +16237,7 @@ class RecordsTable {
|
|
|
16251
16237
|
else
|
|
16252
16238
|
this.addRec(record);
|
|
16253
16239
|
}
|
|
16254
|
-
buildXML(
|
|
16240
|
+
buildXML(message, skipCurrRec, currRecId) {
|
|
16255
16241
|
for (let i = 0; i < this._records.length; i = i + 1) {
|
|
16256
16242
|
let record = this._records.get_Item(i);
|
|
16257
16243
|
if (!record.SendToServer || (skipCurrRec && record.getId() === currRecId))
|
|
@@ -16929,7 +16915,7 @@ class Boundary {
|
|
|
16929
16915
|
if (this.hasMinExp()) {
|
|
16930
16916
|
if (!this._minExpVal.IsNull && !cmpVal.IsNull) {
|
|
16931
16917
|
try {
|
|
16932
|
-
if (ExpressionEvaluator.val_cmp_any(cmpVal, this._minExpVal
|
|
16918
|
+
if (ExpressionEvaluator.val_cmp_any(cmpVal, this._minExpVal) < 0)
|
|
16933
16919
|
res = false;
|
|
16934
16920
|
}
|
|
16935
16921
|
catch (exception) {
|
|
@@ -16948,7 +16934,7 @@ class Boundary {
|
|
|
16948
16934
|
if (this.hasMaxExp() && res) {
|
|
16949
16935
|
if (!this._maxExpVal.IsNull && !cmpVal.IsNull) {
|
|
16950
16936
|
try {
|
|
16951
|
-
if (ExpressionEvaluator.val_cmp_any(cmpVal, this._maxExpVal
|
|
16937
|
+
if (ExpressionEvaluator.val_cmp_any(cmpVal, this._maxExpVal) > 0)
|
|
16952
16938
|
res = false;
|
|
16953
16939
|
}
|
|
16954
16940
|
catch (exception) {
|
|
@@ -17037,7 +17023,7 @@ class Field extends FieldBase {
|
|
|
17037
17023
|
}
|
|
17038
17024
|
this._dataview = dataview;
|
|
17039
17025
|
this._linkExp = new YesNoExp(false);
|
|
17040
|
-
FieldDef._default_date = DisplayConvertor.Instance.disp2mg(PICInterface.DEFAULT_DATE,
|
|
17026
|
+
FieldDef._default_date = DisplayConvertor.Instance.disp2mg(PICInterface.DEFAULT_DATE, new PIC("6", StorageAttribute.NUMERIC, super.getTask().getCompIdx()), super.getTask().getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
|
|
17041
17027
|
}
|
|
17042
17028
|
get VirAsReal() {
|
|
17043
17029
|
return this._virAsReal;
|
|
@@ -17798,7 +17784,7 @@ class XMLBasedDcValuesBuilder extends DcValuesBuilderBase {
|
|
|
17798
17784
|
let tag = this.parser.getXMLsubstring(endContext);
|
|
17799
17785
|
this.parser.add2CurrIndex(tag.indexOf(ConstInterface.MG_TAG_DC_VALS) + ConstInterface.MG_TAG_DC_VALS.length);
|
|
17800
17786
|
let tokensVector = XmlParser.getTokens(this.parser.getXMLsubstring(endContext), XMLConstants.XML_ATTR_DELIM);
|
|
17801
|
-
this.dcv = this.CreateDcValues(
|
|
17787
|
+
this.dcv = this.CreateDcValues();
|
|
17802
17788
|
this.InitDCValues(this.dcv, tokensVector);
|
|
17803
17789
|
}
|
|
17804
17790
|
return this.dcv;
|
|
@@ -18581,7 +18567,7 @@ class DataView extends DataViewBase {
|
|
|
18581
18567
|
let skipCurrRec = false;
|
|
18582
18568
|
if (this.CurrRec != null && this._modifiedRecordsTab.getRecord(this.CurrRec.getId()) != null)
|
|
18583
18569
|
skipCurrRec = AccessHelper.eventsManager.isForceExitPreRecordUpdate(this.getTask());
|
|
18584
|
-
this._modifiedRecordsTab.buildXML(
|
|
18570
|
+
this._modifiedRecordsTab.buildXML(message, skipCurrRec, this.CurrRec.getId());
|
|
18585
18571
|
if (this._original != null)
|
|
18586
18572
|
this._original.clearMode();
|
|
18587
18573
|
for (let i = this._modifiedRecordsTab.getSize() - 1; i >= 0; i--) {
|
|
@@ -19641,7 +19627,7 @@ class ReturnResult extends ReturnResultBase {
|
|
|
19641
19627
|
else if (arguments.length === 0)
|
|
19642
19628
|
this.constructor_01();
|
|
19643
19629
|
else if (arguments.length === 2)
|
|
19644
|
-
this.constructor_02(errorDescriptionCodeOrErrorDescriptionOrInnerResult
|
|
19630
|
+
this.constructor_02(errorDescriptionCodeOrErrorDescriptionOrInnerResult);
|
|
19645
19631
|
else
|
|
19646
19632
|
this.constructor_03(errorDescriptionCodeOrErrorDescriptionOrInnerResult);
|
|
19647
19633
|
}
|
|
@@ -19660,7 +19646,7 @@ class ReturnResult extends ReturnResultBase {
|
|
|
19660
19646
|
this.success = true;
|
|
19661
19647
|
this.ErrorId = "";
|
|
19662
19648
|
}
|
|
19663
|
-
constructor_02(errorDescription
|
|
19649
|
+
constructor_02(errorDescription) {
|
|
19664
19650
|
this.success = false;
|
|
19665
19651
|
this.errorDescription = errorDescription;
|
|
19666
19652
|
}
|
|
@@ -19702,7 +19688,7 @@ class TaskServiceBase {
|
|
|
19702
19688
|
}
|
|
19703
19689
|
|
|
19704
19690
|
class Transaction {
|
|
19705
|
-
constructor(task, setTransId
|
|
19691
|
+
constructor(task, setTransId) {
|
|
19706
19692
|
this._transId = null;
|
|
19707
19693
|
this._afterTransRetry = ConstInterface.RECOVERY_NONE;
|
|
19708
19694
|
this._transBegin = '\0';
|
|
@@ -19846,7 +19832,7 @@ class TaskTransactionManager {
|
|
|
19846
19832
|
HandelTransactionErrorHandlingsRetry(transBegin) {
|
|
19847
19833
|
let task = this.task;
|
|
19848
19834
|
if (task.Transaction === null && transBegin[0] === ConstInterface.TRANS_NONE) {
|
|
19849
|
-
task.TransactionErrorHandlingsRetry = new Transaction(task, task.getTaskTag()
|
|
19835
|
+
task.TransactionErrorHandlingsRetry = new Transaction(task, task.getTaskTag());
|
|
19850
19836
|
task.TransactionErrorHandlingsRetry.setTransBegin(ConstInterface.TRANS_RECORD_PREFIX);
|
|
19851
19837
|
transBegin[0] = ConstInterface.TRANS_RECORD_PREFIX;
|
|
19852
19838
|
}
|
|
@@ -20169,11 +20155,11 @@ class SortCollection {
|
|
|
20169
20155
|
this._sortTab = null;
|
|
20170
20156
|
this._sortTab = new List();
|
|
20171
20157
|
}
|
|
20172
|
-
fillData(
|
|
20173
|
-
while (this.initInnerObjects(parser, parser.getNextTag()
|
|
20158
|
+
fillData(parser) {
|
|
20159
|
+
while (this.initInnerObjects(parser, parser.getNextTag())) {
|
|
20174
20160
|
}
|
|
20175
20161
|
}
|
|
20176
|
-
initInnerObjects(parser, foundTagName
|
|
20162
|
+
initInnerObjects(parser, foundTagName) {
|
|
20177
20163
|
if (foundTagName === null)
|
|
20178
20164
|
return false;
|
|
20179
20165
|
switch (foundTagName) {
|
|
@@ -20512,7 +20498,7 @@ class MgForm extends MgFormBase {
|
|
|
20512
20498
|
let doRecordSuffix = true;
|
|
20513
20499
|
let refdoRecordSuffix = new RefParam(doRecordSuffix);
|
|
20514
20500
|
if (!(yield AccessHelper.eventsManager.DoTaskLevelRecordSuffix(this._task, refdoRecordSuffix)))
|
|
20515
|
-
yield AccessHelper.eventsManager.DoTaskLevelRecordPrefix(this._task
|
|
20501
|
+
yield AccessHelper.eventsManager.DoTaskLevelRecordPrefix(this._task);
|
|
20516
20502
|
doRecordSuffix = refdoRecordSuffix.value;
|
|
20517
20503
|
}
|
|
20518
20504
|
}
|
|
@@ -20588,7 +20574,7 @@ class MgForm extends MgFormBase {
|
|
|
20588
20574
|
}
|
|
20589
20575
|
});
|
|
20590
20576
|
}
|
|
20591
|
-
addRec(doSuffix,
|
|
20577
|
+
addRec(doSuffix, isCrelineAbove) {
|
|
20592
20578
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20593
20579
|
let newLine = 1;
|
|
20594
20580
|
let currLine = -1;
|
|
@@ -20647,7 +20633,7 @@ class MgForm extends MgFormBase {
|
|
|
20647
20633
|
yield this.GetDataview().removeCurrRec();
|
|
20648
20634
|
if (this.GetDataview().isEmpty() && !this._task.IsTryingToStop) {
|
|
20649
20635
|
if (this._task.DataView.isEmptyDataview()) {
|
|
20650
|
-
yield this.addRec(false,
|
|
20636
|
+
yield this.addRec(false, false);
|
|
20651
20637
|
}
|
|
20652
20638
|
else {
|
|
20653
20639
|
if (yield this._task.checkProp(PropInterface.PROP_TYPE_ALLOW_CREATE, true)) {
|
|
@@ -20941,7 +20927,7 @@ class MgForm extends MgFormBase {
|
|
|
20941
20927
|
}
|
|
20942
20928
|
}
|
|
20943
20929
|
}
|
|
20944
|
-
setRowData(desiredTopIndex, sendAll
|
|
20930
|
+
setRowData(desiredTopIndex, sendAll) {
|
|
20945
20931
|
const _super = Object.create(null, {
|
|
20946
20932
|
refreshControls: { get: () => super.refreshControls },
|
|
20947
20933
|
SelectRow: { get: () => super.SelectRow }
|
|
@@ -21073,7 +21059,7 @@ class MgForm extends MgFormBase {
|
|
|
21073
21059
|
if (this.GetDataview().getTopRecIdx() !== newTopIndex || this._topIndexUpdated) {
|
|
21074
21060
|
this.GetDataview().setTopRecIdx(newTopIndex);
|
|
21075
21061
|
this.SetTableTopIndex();
|
|
21076
|
-
yield this.setRowData(Int32.MinValue, false
|
|
21062
|
+
yield this.setRowData(Int32.MinValue, false);
|
|
21077
21063
|
this._topIndexUpdated = false;
|
|
21078
21064
|
}
|
|
21079
21065
|
}
|
|
@@ -21358,7 +21344,7 @@ class MgForm extends MgFormBase {
|
|
|
21358
21344
|
}
|
|
21359
21345
|
InsertTableItems(idx, count) {
|
|
21360
21346
|
if (this._tableMgControl != null) {
|
|
21361
|
-
this.Rows.InsertRange(
|
|
21347
|
+
this.Rows.InsertRange(new Array(count));
|
|
21362
21348
|
this.InsertTableChildrenArrays(idx, count);
|
|
21363
21349
|
this._lastRowSent = -1;
|
|
21364
21350
|
}
|
|
@@ -21445,7 +21431,7 @@ class MgForm extends MgFormBase {
|
|
|
21445
21431
|
super.createForm();
|
|
21446
21432
|
MgForm.CreatedForms.add(this);
|
|
21447
21433
|
}
|
|
21448
|
-
UpdateStatusBar(
|
|
21434
|
+
UpdateStatusBar() {
|
|
21449
21435
|
}
|
|
21450
21436
|
initInnerObjects(foundTagName) {
|
|
21451
21437
|
if (foundTagName === null)
|
|
@@ -21517,7 +21503,7 @@ class MgForm extends MgFormBase {
|
|
|
21517
21503
|
let recPosOnPage = this.GetDataview().RecordsBeforeCurrentView % this._rowsInPage;
|
|
21518
21504
|
if (recPosOnPage > 0 && this.DisplayLine === 0) {
|
|
21519
21505
|
let lastFocusedVal = { guiMgControl: this.getTableCtrl(), Line: recPosOnPage, Val: "" };
|
|
21520
|
-
yield this.setRowData(-recPosOnPage, false
|
|
21506
|
+
yield this.setRowData(-recPosOnPage, false);
|
|
21521
21507
|
}
|
|
21522
21508
|
}
|
|
21523
21509
|
});
|
|
@@ -21550,7 +21536,7 @@ class RemoteTaskService extends TaskServiceBase {
|
|
|
21550
21536
|
}
|
|
21551
21537
|
return result;
|
|
21552
21538
|
}
|
|
21553
|
-
GetEventTaskId(
|
|
21539
|
+
GetEventTaskId(originalTaskId) {
|
|
21554
21540
|
return originalTaskId;
|
|
21555
21541
|
}
|
|
21556
21542
|
ShouldEvaluatePropertyLocally(propId) {
|
|
@@ -21559,7 +21545,7 @@ class RemoteTaskService extends TaskServiceBase {
|
|
|
21559
21545
|
InitTaskPrefixExecutedFlag(task) {
|
|
21560
21546
|
task.TaskPrefixExecuted = true;
|
|
21561
21547
|
}
|
|
21562
|
-
RemoveRecomputes(parentTask
|
|
21548
|
+
RemoveRecomputes(parentTask) {
|
|
21563
21549
|
parentTask.DataView.GetFieldsTab().resetRecomp();
|
|
21564
21550
|
}
|
|
21565
21551
|
GetOwnerTransactionTask(task) {
|
|
@@ -22012,14 +21998,14 @@ class RemoteDataviewHeader extends DataviewHeaderBase {
|
|
|
22012
21998
|
yield this._table.SortTable(this._keyIdx, this._dir);
|
|
22013
21999
|
let res = this._table.Fetch(this.Loc);
|
|
22014
22000
|
if (res == null)
|
|
22015
|
-
yield this.initRec(curRec,
|
|
22001
|
+
yield this.initRec(curRec, false);
|
|
22016
22002
|
else {
|
|
22017
22003
|
ret = true;
|
|
22018
22004
|
yield this.copyLinkFldToRec(curRec, lnkFlds, res, true);
|
|
22019
22005
|
}
|
|
22020
22006
|
}
|
|
22021
22007
|
else
|
|
22022
|
-
yield this.initRec(curRec,
|
|
22008
|
+
yield this.initRec(curRec, false);
|
|
22023
22009
|
return ret;
|
|
22024
22010
|
});
|
|
22025
22011
|
}
|
|
@@ -22032,10 +22018,10 @@ class RemoteDataviewHeader extends DataviewHeaderBase {
|
|
|
22032
22018
|
curRec.clearFlag(curFld.getId(), Record.FLAG_INVALID);
|
|
22033
22019
|
curFld.invalidate(true, false);
|
|
22034
22020
|
}
|
|
22035
|
-
yield this.SetReturnValue(
|
|
22021
|
+
yield this.SetReturnValue(ret, true);
|
|
22036
22022
|
});
|
|
22037
22023
|
}
|
|
22038
|
-
initRec(currRec,
|
|
22024
|
+
initRec(currRec, ret) {
|
|
22039
22025
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22040
22026
|
this._lastFetchRecPos = "#";
|
|
22041
22027
|
yield this.InitLinkFields(currRec);
|
|
@@ -22049,7 +22035,7 @@ class RemoteDataviewHeader extends DataviewHeaderBase {
|
|
|
22049
22035
|
getLastFetchedDbPos() {
|
|
22050
22036
|
return this._lastFetchRecPos;
|
|
22051
22037
|
}
|
|
22052
|
-
SetReturnValue(
|
|
22038
|
+
SetReturnValue(ret, recompute) {
|
|
22053
22039
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22054
22040
|
let returnField = this.ReturnField;
|
|
22055
22041
|
if (returnField !== null) {
|
|
@@ -22071,7 +22057,7 @@ class RemoteDataviewHeader extends DataviewHeaderBase {
|
|
|
22071
22057
|
}
|
|
22072
22058
|
|
|
22073
22059
|
class DataviewHeaderFactory {
|
|
22074
|
-
CreateDataviewHeaders(task
|
|
22060
|
+
CreateDataviewHeaders(task) {
|
|
22075
22061
|
return new RemoteDataviewHeader(task);
|
|
22076
22062
|
}
|
|
22077
22063
|
}
|
|
@@ -22096,7 +22082,7 @@ class DataviewHeadersSaxHandler {
|
|
|
22096
22082
|
let link = links[i]['$'];
|
|
22097
22083
|
if (!isNullOrUndefined(link[ConstInterface.MG_ATTR_TABLE_INDEX])) {
|
|
22098
22084
|
let tableIndex = +link[ConstInterface.MG_ATTR_TABLE_INDEX];
|
|
22099
|
-
let dataviewHeader = this._dataviewHeadersFactory.CreateDataviewHeaders(this._task
|
|
22085
|
+
let dataviewHeader = this._dataviewHeadersFactory.CreateDataviewHeaders(this._task);
|
|
22100
22086
|
let attributes = new Dictionary();
|
|
22101
22087
|
for (let key in link) {
|
|
22102
22088
|
if (key !== ConstInterface.MG_ATTR_TABLE_INDEX) {
|
|
@@ -23860,12 +23846,12 @@ class Task extends TaskBase {
|
|
|
23860
23846
|
}
|
|
23861
23847
|
FillTaskTables(taskTablesData) {
|
|
23862
23848
|
if (arguments.length === 1) {
|
|
23863
|
-
this.FillTaskTables_0(
|
|
23849
|
+
this.FillTaskTables_0();
|
|
23864
23850
|
return;
|
|
23865
23851
|
}
|
|
23866
23852
|
this.FillTaskTables_1();
|
|
23867
23853
|
}
|
|
23868
|
-
FillTaskTables_0(
|
|
23854
|
+
FillTaskTables_0() {
|
|
23869
23855
|
}
|
|
23870
23856
|
fillAttributes() {
|
|
23871
23857
|
let parser = RuntimeContextBase.Instance.Parser;
|
|
@@ -23997,7 +23983,7 @@ class Task extends TaskBase {
|
|
|
23997
23983
|
break;
|
|
23998
23984
|
case ConstInterface.MG_TAG_SORTS:
|
|
23999
23985
|
this.RuntimeSorts = new SortCollection();
|
|
24000
|
-
this.RuntimeSorts.fillData(
|
|
23986
|
+
this.RuntimeSorts.fillData(parser);
|
|
24001
23987
|
break;
|
|
24002
23988
|
case ConstInterface.MG_TAG_TASK_TABLES:
|
|
24003
23989
|
this.FillTaskTables();
|
|
@@ -24090,7 +24076,7 @@ class Task extends TaskBase {
|
|
|
24090
24076
|
}
|
|
24091
24077
|
return result;
|
|
24092
24078
|
}
|
|
24093
|
-
CalculateExpression(expId, resType, length
|
|
24079
|
+
CalculateExpression(expId, resType, length) {
|
|
24094
24080
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24095
24081
|
let result = null;
|
|
24096
24082
|
if (expId > 0) {
|
|
@@ -25555,7 +25541,7 @@ class Task extends TaskBase {
|
|
|
25555
25541
|
}
|
|
25556
25542
|
this.DataviewManager.RemoteDataviewManager.Transaction = (isFind ?
|
|
25557
25543
|
transTask.DataviewManager.RemoteDataviewManager.Transaction :
|
|
25558
|
-
new Transaction(this, transId
|
|
25544
|
+
new Transaction(this, transId));
|
|
25559
25545
|
}
|
|
25560
25546
|
setTransOwnerTask() {
|
|
25561
25547
|
this.Transaction.setOwnerTask(this);
|
|
@@ -25985,7 +25971,7 @@ class Task extends TaskBase {
|
|
|
25985
25971
|
let taskToVerifyOn = this.GetContextTask();
|
|
25986
25972
|
if (taskToVerifyOn.getForm() == null)
|
|
25987
25973
|
taskToVerifyOn = LastFocusedManager.Instance.getLastFocusedTask();
|
|
25988
|
-
taskToVerifyOn.WriteToMessagePane(text
|
|
25974
|
+
taskToVerifyOn.WriteToMessagePane(text);
|
|
25989
25975
|
}
|
|
25990
25976
|
isTableWithAbsolutesScrollbar() {
|
|
25991
25977
|
let isTableWithAbsolutesScrollbar = false;
|
|
@@ -26084,7 +26070,7 @@ class Task extends TaskBase {
|
|
|
26084
26070
|
let canExecuteEvents = true;
|
|
26085
26071
|
if (nonInteractiveTaskAlreadyExecuted !== null && nonInteractiveTaskAlreadyExecuted.isStarted()) {
|
|
26086
26072
|
resetAllowEvents = true;
|
|
26087
|
-
AccessHelper.eventsManager.setNonInteractiveAllowEvents(yield nonInteractiveTaskAlreadyExecuted.isAllowEvents()
|
|
26073
|
+
AccessHelper.eventsManager.setNonInteractiveAllowEvents(yield nonInteractiveTaskAlreadyExecuted.isAllowEvents());
|
|
26088
26074
|
canExecuteEvents = yield nonInteractiveTaskAlreadyExecuted.isAllowEvents();
|
|
26089
26075
|
}
|
|
26090
26076
|
if (LastFocusedManager.Instance.getLastFocusedTask() !== null && canExecuteEvents) {
|
|
@@ -27081,7 +27067,7 @@ class EventsManager {
|
|
|
27081
27067
|
yield this.commonHandler(rtEvt);
|
|
27082
27068
|
}
|
|
27083
27069
|
if (!endTaskError) {
|
|
27084
|
-
yield this.commonHandlerAfter(rtEvt, bRcBefore
|
|
27070
|
+
yield this.commonHandlerAfter(rtEvt, bRcBefore);
|
|
27085
27071
|
}
|
|
27086
27072
|
if (forceExitDone && this._isHandlingForceExit) {
|
|
27087
27073
|
this._isHandlingForceExit = false;
|
|
@@ -27202,7 +27188,7 @@ class EventsManager {
|
|
|
27202
27188
|
this._initialized = true;
|
|
27203
27189
|
}
|
|
27204
27190
|
addInternalEventWithItaskAndCode(itask, code) {
|
|
27205
|
-
this.addGuiTriggeredEventWithTaskAndCodeAndOnMultiMark(itask, code
|
|
27191
|
+
this.addGuiTriggeredEventWithTaskAndCodeAndOnMultiMark(itask, code);
|
|
27206
27192
|
}
|
|
27207
27193
|
addInternalEventWithCtrlAndCode(ctrl, code) {
|
|
27208
27194
|
let rtEvt = new RunTimeEvent(ctrl);
|
|
@@ -27220,13 +27206,13 @@ class EventsManager {
|
|
|
27220
27206
|
rtEvt.setPriority(priority);
|
|
27221
27207
|
this.addToTail(rtEvt);
|
|
27222
27208
|
}
|
|
27223
|
-
addGuiTriggeredEventWithTaskAndCodeAndOnMultiMark(itask, code
|
|
27209
|
+
addGuiTriggeredEventWithTaskAndCodeAndOnMultiMark(itask, code) {
|
|
27224
27210
|
let task = itask;
|
|
27225
27211
|
let rtEvt = new RunTimeEvent(task);
|
|
27226
27212
|
rtEvt.setInternal(code);
|
|
27227
27213
|
this.addToTail(rtEvt);
|
|
27228
27214
|
}
|
|
27229
|
-
addGuiTriggeredEventWithCtrlAndCodeAndLineAndModifier(ctrl, code, line
|
|
27215
|
+
addGuiTriggeredEventWithCtrlAndCodeAndLineAndModifier(ctrl, code, line) {
|
|
27230
27216
|
let rtEvt = new RunTimeEvent(ctrl, line, false);
|
|
27231
27217
|
rtEvt.setInternal(code);
|
|
27232
27218
|
this.addToTail(rtEvt);
|
|
@@ -27314,7 +27300,7 @@ class EventsManager {
|
|
|
27314
27300
|
rtEvt.setInternal(code);
|
|
27315
27301
|
this.addToTail(rtEvt);
|
|
27316
27302
|
}
|
|
27317
|
-
addGuiTriggeredEventTaskAndCodeAndRaisedBy(task, code
|
|
27303
|
+
addGuiTriggeredEventTaskAndCodeAndRaisedBy(task, code) {
|
|
27318
27304
|
this.addGuiTriggeredEventWithTaskAndCode(task, code);
|
|
27319
27305
|
}
|
|
27320
27306
|
getEvent() {
|
|
@@ -27399,7 +27385,7 @@ class EventsManager {
|
|
|
27399
27385
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27400
27386
|
let task = taskBase;
|
|
27401
27387
|
let savedAllowEvents = this.getAllowEvents();
|
|
27402
|
-
this.setNonInteractiveAllowEvents(yield task.isAllowEvents()
|
|
27388
|
+
this.setNonInteractiveAllowEvents(yield task.isAllowEvents());
|
|
27403
27389
|
this.pushNewExecStacks();
|
|
27404
27390
|
while (!mgData.IsAborting) {
|
|
27405
27391
|
if (task.getMode() === Constants.TASK_MODE_DELETE)
|
|
@@ -27706,7 +27692,7 @@ class EventsManager {
|
|
|
27706
27692
|
if (!(yield ctrl.checkPropWithLine(PropInterface.PROP_TYPE_ENABLED, true, line))) {
|
|
27707
27693
|
return;
|
|
27708
27694
|
}
|
|
27709
|
-
let canGotoCtrl = this.canGoToControl(ctrl,
|
|
27695
|
+
let canGotoCtrl = this.canGoToControl(ctrl, true);
|
|
27710
27696
|
let StopFocus = ctrl.isFocusedStopExecution();
|
|
27711
27697
|
let returnToCtrl = MgControl.ReturnToCtrl;
|
|
27712
27698
|
if ((!canGotoCtrl || ((this._stopExecution || StopFocus) && returnToCtrl !== ctrl)) && returnToCtrl !== null) {
|
|
@@ -27767,7 +27753,7 @@ class EventsManager {
|
|
|
27767
27753
|
currTask = prevTask;
|
|
27768
27754
|
else
|
|
27769
27755
|
currTask = ctrl.getForm().getTask();
|
|
27770
|
-
let canGotoCtrl = this.canGoToControl(ctrl,
|
|
27756
|
+
let canGotoCtrl = this.canGoToControl(ctrl, onClick);
|
|
27771
27757
|
if (canGotoCtrl) {
|
|
27772
27758
|
if (this.guiPendingEvent != null)
|
|
27773
27759
|
return;
|
|
@@ -27860,7 +27846,7 @@ class EventsManager {
|
|
|
27860
27846
|
}
|
|
27861
27847
|
});
|
|
27862
27848
|
}
|
|
27863
|
-
canGoToControl(ctrl,
|
|
27849
|
+
canGoToControl(ctrl, onClick) {
|
|
27864
27850
|
if (onClick && (ctrl.Type === MgControlType.CTRL_TYPE_SUBFORM || ctrl.Type === MgControlType.CTRL_TYPE_BROWSER))
|
|
27865
27851
|
return false;
|
|
27866
27852
|
let canGotoCtrl = true;
|
|
@@ -27925,7 +27911,7 @@ class EventsManager {
|
|
|
27925
27911
|
handleRowDataCurPage(table, desiredTopIndex, sendAll, lastFocusedVal) {
|
|
27926
27912
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27927
27913
|
let form = table.getForm();
|
|
27928
|
-
yield form.setRowData(desiredTopIndex, sendAll
|
|
27914
|
+
yield form.setRowData(desiredTopIndex, sendAll);
|
|
27929
27915
|
});
|
|
27930
27916
|
}
|
|
27931
27917
|
handleTransferDataToGui(ctrl) {
|
|
@@ -28055,7 +28041,7 @@ class EventsManager {
|
|
|
28055
28041
|
if (task.getEnableZoomHandler() || ctrl.useZoomHandler())
|
|
28056
28042
|
task.ActionManager.enable(InternalInterface.MG_ACT_ZOOM, true);
|
|
28057
28043
|
if (ctrl.isTextControl() || ctrl.isChoiceControl())
|
|
28058
|
-
ctrl.SetKeyboardLanguage(
|
|
28044
|
+
ctrl.SetKeyboardLanguage();
|
|
28059
28045
|
if (ctrl.Type === MgControlType.CTRL_TYPE_BUTTON)
|
|
28060
28046
|
task.ActionManager.enable(InternalInterface.MG_ACT_BUTTON, true);
|
|
28061
28047
|
yield task.setCreateDeleteActsEnableState();
|
|
@@ -28078,7 +28064,7 @@ class EventsManager {
|
|
|
28078
28064
|
if (task.isAborting())
|
|
28079
28065
|
return false;
|
|
28080
28066
|
if (evt.getType() === ConstInterface.EVENT_TYPE_SYSTEM) {
|
|
28081
|
-
let actId = this.getMatchingAction(
|
|
28067
|
+
let actId = this.getMatchingAction(evt.getKbdItm());
|
|
28082
28068
|
if (actId !== 0 && evt.Control !== null) {
|
|
28083
28069
|
evt = new RunTimeEvent(evt, evt);
|
|
28084
28070
|
evt.setInternal(actId);
|
|
@@ -28412,7 +28398,7 @@ class EventsManager {
|
|
|
28412
28398
|
yield subformTask.endTask(true, false, false, true);
|
|
28413
28399
|
this.popNewExecStacks();
|
|
28414
28400
|
if (!this._stopExecution) {
|
|
28415
|
-
parentTask.TaskService.RemoveRecomputes(parentTask
|
|
28401
|
+
parentTask.TaskService.RemoveRecomputes(parentTask);
|
|
28416
28402
|
yield subformTask.stop();
|
|
28417
28403
|
subformCtrl.resetSubformTask();
|
|
28418
28404
|
yield CommandsProcessorManager.GetCommandsProcessor().Execute(CommandsProcessorBase_SendingInstruction.TASKS_AND_COMMANDS);
|
|
@@ -28454,7 +28440,7 @@ class EventsManager {
|
|
|
28454
28440
|
return shouldReturn;
|
|
28455
28441
|
});
|
|
28456
28442
|
}
|
|
28457
|
-
DoTaskLevelRecordPrefix(task
|
|
28443
|
+
DoTaskLevelRecordPrefix(task) {
|
|
28458
28444
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28459
28445
|
if (!this.GetStopExecutionFlag()) {
|
|
28460
28446
|
yield this.handleInternalEventWithTask(task, InternalInterface.MG_ACT_REC_PREFIX);
|
|
@@ -28478,7 +28464,7 @@ class EventsManager {
|
|
|
28478
28464
|
try {
|
|
28479
28465
|
this.pushRtEvent(evt);
|
|
28480
28466
|
if (evt.getType() === ConstInterface.EVENT_TYPE_SYSTEM) {
|
|
28481
|
-
let actId = this.getMatchingAction(
|
|
28467
|
+
let actId = this.getMatchingAction(evt.getKbdItm());
|
|
28482
28468
|
if (actId !== 0) {
|
|
28483
28469
|
evt = new RunTimeEvent(evt, evt);
|
|
28484
28470
|
evt.setInternal(actId);
|
|
@@ -28592,13 +28578,13 @@ class EventsManager {
|
|
|
28592
28578
|
}
|
|
28593
28579
|
break;
|
|
28594
28580
|
case InternalInterface.MG_ACT_DELLINE:
|
|
28595
|
-
if (yield this.HandleActionDelline(
|
|
28581
|
+
if (yield this.HandleActionDelline(task, dv, rec, false))
|
|
28596
28582
|
return;
|
|
28597
28583
|
break;
|
|
28598
28584
|
case InternalInterface.MG_ACT_CRELINE:
|
|
28599
28585
|
case InternalInterface.MG_ACT_CRELINE_ABOVE:
|
|
28600
28586
|
if (task.DataView.isEmptyDataview()) {
|
|
28601
|
-
yield this.gotoCreateMode(task
|
|
28587
|
+
yield this.gotoCreateMode(task);
|
|
28602
28588
|
break;
|
|
28603
28589
|
}
|
|
28604
28590
|
if (task.getInCreateLine())
|
|
@@ -28636,9 +28622,9 @@ class EventsManager {
|
|
|
28636
28622
|
let parentId = 0;
|
|
28637
28623
|
let prevLine = 0;
|
|
28638
28624
|
if ((task.getMode() !== Constants.TASK_MODE_CREATE) || !task.ConfirmUpdateNo)
|
|
28639
|
-
yield form.addRec(doSuffix,
|
|
28625
|
+
yield form.addRec(doSuffix, intEvtCode == InternalInterface.MG_ACT_CRELINE_ABOVE ? true : false);
|
|
28640
28626
|
}
|
|
28641
|
-
yield this.DoTaskLevelRecordPrefix(task
|
|
28627
|
+
yield this.DoTaskLevelRecordPrefix(task);
|
|
28642
28628
|
yield this.HandleActEnterRowEditing(task);
|
|
28643
28629
|
}
|
|
28644
28630
|
finally {
|
|
@@ -28657,7 +28643,7 @@ class EventsManager {
|
|
|
28657
28643
|
case InternalInterface.MG_ACT_RTO_CREATE:
|
|
28658
28644
|
if (task.getMode() === Constants.TASK_MODE_CREATE ||
|
|
28659
28645
|
(yield (task.getProp(PropInterface.PROP_TYPE_ALLOW_OPTION)).getValueBoolean())) {
|
|
28660
|
-
yield this.gotoCreateMode(task
|
|
28646
|
+
yield this.gotoCreateMode(task);
|
|
28661
28647
|
}
|
|
28662
28648
|
break;
|
|
28663
28649
|
case InternalInterface.MG_ACT_RTO_QUERY:
|
|
@@ -28902,7 +28888,7 @@ class EventsManager {
|
|
|
28902
28888
|
HandleActEnterRowEditing(task) {
|
|
28903
28889
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28904
28890
|
if (task.getMode() === Constants.TASK_MODE_QUERY)
|
|
28905
|
-
task.WriteToMessagePane(`Cannot enter Row Editing when in Query Mode
|
|
28891
|
+
task.WriteToMessagePane(`Cannot enter Row Editing when in Query Mode.`);
|
|
28906
28892
|
else {
|
|
28907
28893
|
let myform = task.getForm();
|
|
28908
28894
|
yield myform.startRowEditing(myform.DisplayLine);
|
|
@@ -28917,7 +28903,7 @@ class EventsManager {
|
|
|
28917
28903
|
}
|
|
28918
28904
|
OpenSubform(task, subformControl) {
|
|
28919
28905
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28920
|
-
task.TaskService.RemoveRecomputes(task
|
|
28906
|
+
task.TaskService.RemoveRecomputes(task);
|
|
28921
28907
|
let cmd = CommandFactory.CreateSubformOpenCommand(task.getTaskTag(), subformControl.getDitIdx());
|
|
28922
28908
|
task.getMGData().CmdsToServer.Add(cmd);
|
|
28923
28909
|
yield Task.CommandsProcessor.Execute(CommandsProcessorBase_SendingInstruction.TASKS_AND_COMMANDS);
|
|
@@ -29000,7 +28986,7 @@ class EventsManager {
|
|
|
29000
28986
|
}
|
|
29001
28987
|
});
|
|
29002
28988
|
}
|
|
29003
|
-
HandleActionDelline(
|
|
28989
|
+
HandleActionDelline(task, dv, rec, nonInteractiveDelete) {
|
|
29004
28990
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29005
28991
|
let lastParkedCtrl;
|
|
29006
28992
|
let myform = task.getForm();
|
|
@@ -29174,7 +29160,7 @@ class EventsManager {
|
|
|
29174
29160
|
}
|
|
29175
29161
|
});
|
|
29176
29162
|
}
|
|
29177
|
-
gotoCreateMode(task
|
|
29163
|
+
gotoCreateMode(task) {
|
|
29178
29164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29179
29165
|
let cmd;
|
|
29180
29166
|
yield task.enableModes();
|
|
@@ -29193,7 +29179,7 @@ class EventsManager {
|
|
|
29193
29179
|
}
|
|
29194
29180
|
});
|
|
29195
29181
|
}
|
|
29196
|
-
commonHandlerAfter(evt, rcBefore
|
|
29182
|
+
commonHandlerAfter(evt, rcBefore) {
|
|
29197
29183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29198
29184
|
let task = evt.getTask();
|
|
29199
29185
|
let dv;
|
|
@@ -29264,7 +29250,7 @@ class EventsManager {
|
|
|
29264
29250
|
if (rec.realModified() &&
|
|
29265
29251
|
!Environment.Instance.allowUpdateInQueryMode(task.getCompIdx())) {
|
|
29266
29252
|
yield dv.cancelEdit(EventsManager.REAL_ONLY, false);
|
|
29267
|
-
task.WriteToMessagePanebyMsgId(MsgInterface.RT_STR_UPDATE_IN_QUERY
|
|
29253
|
+
task.WriteToMessagePanebyMsgId(MsgInterface.RT_STR_UPDATE_IN_QUERY);
|
|
29268
29254
|
yield task.getForm().RefreshDisplay(Constants.TASK_REFRESH_CURR_REC);
|
|
29269
29255
|
}
|
|
29270
29256
|
}
|
|
@@ -29291,7 +29277,7 @@ class EventsManager {
|
|
|
29291
29277
|
yield ctrl.getField().updateDisplay();
|
|
29292
29278
|
task.setLastParkedCtrl(ctrl);
|
|
29293
29279
|
RuntimeContextBase.Instance.CurrentClickedCtrl = null;
|
|
29294
|
-
yield ctrl.SetFocus(ctrl, ctrl.getDisplayLine(false), true
|
|
29280
|
+
yield ctrl.SetFocus(ctrl, ctrl.getDisplayLine(false), true);
|
|
29295
29281
|
this.setStopExecutionCtrl(null);
|
|
29296
29282
|
MgControl.ReturnToCtrl = ctrl;
|
|
29297
29283
|
task.InCtrlPrefix = false;
|
|
@@ -29305,7 +29291,7 @@ class EventsManager {
|
|
|
29305
29291
|
case InternalInterface.MG_ACT_CTRL_SUFFIX:
|
|
29306
29292
|
if (!this.GetStopExecutionFlag()) {
|
|
29307
29293
|
if (ctrl.isChoiceControl()) {
|
|
29308
|
-
ctrl.SetKeyboardLanguage(
|
|
29294
|
+
ctrl.SetKeyboardLanguage();
|
|
29309
29295
|
}
|
|
29310
29296
|
if (ctrl.Type === MgControlType.CTRL_TYPE_BUTTON)
|
|
29311
29297
|
task.ActionManager.enable(InternalInterface.MG_ACT_BUTTON, false);
|
|
@@ -29353,7 +29339,7 @@ class EventsManager {
|
|
|
29353
29339
|
if (task.DataView.isEmptyDataview())
|
|
29354
29340
|
(task).setExecEndTask();
|
|
29355
29341
|
else
|
|
29356
|
-
yield this.HandleActionDelline(
|
|
29342
|
+
yield this.HandleActionDelline(task, dv, rec, true);
|
|
29357
29343
|
if (task.getExecEndTask())
|
|
29358
29344
|
yield task.endTask(true, false, false);
|
|
29359
29345
|
break;
|
|
@@ -29636,7 +29622,7 @@ class EventsManager {
|
|
|
29636
29622
|
GetEventTime() {
|
|
29637
29623
|
return this._eventsQueue.GetTime();
|
|
29638
29624
|
}
|
|
29639
|
-
getMatchingAction(
|
|
29625
|
+
getMatchingAction(kbItm) {
|
|
29640
29626
|
let act = 0;
|
|
29641
29627
|
if (kbItm == null)
|
|
29642
29628
|
return act;
|
|
@@ -29714,7 +29700,7 @@ class EventsManager {
|
|
|
29714
29700
|
setAllowEvents(AllowEvents) {
|
|
29715
29701
|
this._allowEvents = AllowEvents;
|
|
29716
29702
|
}
|
|
29717
|
-
setNonInteractiveAllowEvents(AllowEvents
|
|
29703
|
+
setNonInteractiveAllowEvents(AllowEvents) {
|
|
29718
29704
|
if (AllowEvents)
|
|
29719
29705
|
this._allowEvents = EventsAllowedType.NON_INTERACTIVE;
|
|
29720
29706
|
else
|
|
@@ -30051,9 +30037,9 @@ class GuiEventsProcessor extends EventsProcessor {
|
|
|
30051
30037
|
EventsManager.Instance.addToTail(rtEvt);
|
|
30052
30038
|
}
|
|
30053
30039
|
}
|
|
30054
|
-
processKeyDown(guiMgForm, guiMgCtrl, modifier, keyCode, start, end, text, isActChar, suggestedValue,
|
|
30040
|
+
processKeyDown(guiMgForm, guiMgCtrl, modifier, keyCode, start, end, text, isActChar, suggestedValue, handled) {
|
|
30055
30041
|
LastFocusedManager.Instance.LastActionTime = Misc.getSystemMilliseconds();
|
|
30056
|
-
return super.processKeyDown(guiMgForm, guiMgCtrl, modifier, keyCode, start, end, text, isActChar, suggestedValue,
|
|
30042
|
+
return super.processKeyDown(guiMgForm, guiMgCtrl, modifier, keyCode, start, end, text, isActChar, suggestedValue, handled);
|
|
30057
30043
|
}
|
|
30058
30044
|
static peekEndOfWork() {
|
|
30059
30045
|
return EventsManager.Instance.getEndOfWork();
|
|
@@ -30064,10 +30050,10 @@ class GuiEventsProcessor extends EventsProcessor {
|
|
|
30064
30050
|
static GetRuntimeContext(contextID) {
|
|
30065
30051
|
return RuntimeContextBase.Instance;
|
|
30066
30052
|
}
|
|
30067
|
-
static SaveLastClickedControlName(
|
|
30053
|
+
static SaveLastClickedControlName(ctrlName) {
|
|
30068
30054
|
RuntimeContextBase.Instance.LastClickedCtrlName = ctrlName;
|
|
30069
30055
|
}
|
|
30070
|
-
static SaveLastClickInfo(
|
|
30056
|
+
static SaveLastClickInfo(controlName, X, Y, offsetX, offsetY, LastClickCoordinatesAreInPixels) {
|
|
30071
30057
|
RuntimeContextBase.Instance.SaveLastClickInfo(controlName, X, Y, offsetX, offsetY, LastClickCoordinatesAreInPixels);
|
|
30072
30058
|
}
|
|
30073
30059
|
static ProcessPress(guiMgForm, guiMgCtrl, line) {
|
|
@@ -30807,7 +30793,7 @@ class ClientOriginatedCommandSerializer {
|
|
|
30807
30793
|
message.Append(XMLConstants.START_TAG + ConstInterface.MG_TAG_COMMAND);
|
|
30808
30794
|
message.Append(" " + XMLConstants.MG_ATTR_TYPE + "=\"" + cmd.CommandTypeAttribute + "\"");
|
|
30809
30795
|
let refHasChildElements = new RefParam(hasChildElements);
|
|
30810
|
-
message.Append(cmd.SerializeCommandData(
|
|
30796
|
+
message.Append(cmd.SerializeCommandData());
|
|
30811
30797
|
hasChildElements = refHasChildElements.value;
|
|
30812
30798
|
if (cmd.ShouldSerializeRecords)
|
|
30813
30799
|
message.Append(ClientOriginatedCommandSerializer.SerializeRecords(currMGData));
|
|
@@ -31009,7 +30995,7 @@ class CommandsTable {
|
|
|
31009
30995
|
}
|
|
31010
30996
|
}
|
|
31011
30997
|
|
|
31012
|
-
let CurrentClientVersion = '4.801.0-dev481.
|
|
30998
|
+
let CurrentClientVersion = '4.801.0-dev481.236';
|
|
31013
30999
|
|
|
31014
31000
|
class ClientManager {
|
|
31015
31001
|
constructor() {
|
|
@@ -31242,7 +31228,7 @@ class ClientManager {
|
|
|
31242
31228
|
console.log("Magic Web Client. " + versionString);
|
|
31243
31229
|
HttpManager.GetInstance().HttpCommunicationTimeoutMS = ServerConfig.Instance.GetFirstHttpRequestTimeout();
|
|
31244
31230
|
EventsManager.Instance.Init();
|
|
31245
|
-
Logger.Instance.Initialize(RemoteCommandsProcessor.GetInstance().parseLogLevel(ServerConfig.Instance.getInternalLogLevel()),
|
|
31231
|
+
Logger.Instance.Initialize(RemoteCommandsProcessor.GetInstance().parseLogLevel(ServerConfig.Instance.getInternalLogLevel()), false);
|
|
31246
31232
|
let mgd = new MGData(new CommandsTable(), new CommandsTable(), 0, null, false);
|
|
31247
31233
|
yield MGDataCollection.Instance.addMGData(mgd, 0, true);
|
|
31248
31234
|
yield ClientManager.Instance.WorkThreadExecution();
|
|
@@ -31468,7 +31454,7 @@ class MenusDeserializer {
|
|
|
31468
31454
|
}
|
|
31469
31455
|
|
|
31470
31456
|
class Process {
|
|
31471
|
-
static StartCurrentExecutable(
|
|
31457
|
+
static StartCurrentExecutable() {
|
|
31472
31458
|
throw new NotImplementedException();
|
|
31473
31459
|
}
|
|
31474
31460
|
}
|