@magic-xpa/engine 4.900.0 → 4.901.0-ang15
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/esm2020/src/ClientManager.mjs +47 -11
- package/esm2020/src/CurrentClientVersion.mjs +2 -2
- package/esm2020/src/commands/ClientToServer/DataviewCommand.mjs +6 -6
- package/esm2020/src/commands/ClientToServer/EvaluateCommand.mjs +4 -4
- package/esm2020/src/commands/ClientToServer/EventCommand.mjs +8 -8
- package/esm2020/src/commands/ClientToServer/ExecOperCommand.mjs +4 -4
- package/esm2020/src/commands/ClientToServer/IniputForceWriteCommand.mjs +5 -5
- package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +7 -7
- package/esm2020/src/commands/ClientToServer/TransactionCommand.mjs +6 -6
- package/esm2020/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +8 -8
- package/esm2020/src/commands/ServerToClient/ResultCommand.mjs +7 -7
- package/esm2020/src/data/DataView.mjs +34 -34
- package/esm2020/src/data/DataviewManager.mjs +7 -7
- package/esm2020/src/data/Record.mjs +10 -10
- package/esm2020/src/data/TaskTransactionManager.mjs +4 -4
- package/esm2020/src/data/XMLBasedDcValuesBuilder.mjs +5 -5
- package/esm2020/src/env/Environment.mjs +7 -7
- package/esm2020/src/event/RunTimeEvent.mjs +16 -16
- package/esm2020/src/gui/FormsTable.mjs +8 -8
- package/esm2020/src/gui/MgControl.mjs +10 -10
- package/esm2020/src/gui/MgForm.mjs +4 -22
- package/esm2020/src/http/HttpManager.mjs +8 -8
- package/esm2020/src/remote/RemoteCommandsProcessor.mjs +22 -22
- package/esm2020/src/rt/DataviewHeaderBase.mjs +16 -16
- package/esm2020/src/security/UserDetails.mjs +12 -12
- package/esm2020/src/tasks/MGData.mjs +4 -4
- package/esm2020/src/tasks/RCTimer.mjs +10 -10
- package/esm2020/src/tasks/Task.mjs +42 -42
- package/esm2020/src/util/PrmMap.mjs +5 -5
- package/esm2020/src/util/ReturnResult.mjs +7 -7
- package/fesm2015/magic-xpa-engine.mjs +304 -290
- package/fesm2015/magic-xpa-engine.mjs.map +1 -1
- package/fesm2020/magic-xpa-engine.mjs +304 -286
- package/fesm2020/magic-xpa-engine.mjs.map +1 -1
- package/package.json +6 -6
- package/src/ClientManager.d.ts +1 -0
- package/src/gui/MgForm.d.ts +1 -3
- package/magic-xpa-engine.d.ts +0 -2
|
@@ -641,13 +641,6 @@ class CommandSerializationHelper {
|
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
class EventCommand extends ClientOriginatedCommandTaskTag {
|
|
644
|
-
constructor(magicEvent) {
|
|
645
|
-
super();
|
|
646
|
-
this.TaskTag = null;
|
|
647
|
-
this.MagicEvent = 0;
|
|
648
|
-
this.ClientRecId = 0;
|
|
649
|
-
this.MagicEvent = magicEvent;
|
|
650
|
-
}
|
|
651
644
|
get CommandTypeAttribute() {
|
|
652
645
|
return ConstInterface.MG_ATTR_VAL_EVENT;
|
|
653
646
|
}
|
|
@@ -663,6 +656,13 @@ class EventCommand extends ClientOriginatedCommandTaskTag {
|
|
|
663
656
|
return false;
|
|
664
657
|
return true;
|
|
665
658
|
}
|
|
659
|
+
constructor(magicEvent) {
|
|
660
|
+
super();
|
|
661
|
+
this.TaskTag = null;
|
|
662
|
+
this.MagicEvent = 0;
|
|
663
|
+
this.ClientRecId = 0;
|
|
664
|
+
this.MagicEvent = magicEvent;
|
|
665
|
+
}
|
|
666
666
|
SerializeCommandData() {
|
|
667
667
|
let helper = new CommandSerializationHelper();
|
|
668
668
|
helper.SerializeTaskTag(this.TaskTag);
|
|
@@ -1172,15 +1172,6 @@ class OpeningTaskDetails {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
|
|
1174
1174
|
class MgControl extends MgControlBase {
|
|
1175
|
-
constructor(type, taskOrParentMgForm, parentControlOrParentControlIdx) {
|
|
1176
|
-
if (arguments.length === 0)
|
|
1177
|
-
super();
|
|
1178
|
-
else if (arguments.length === 3 && (type === null || type.constructor === Number) && (taskOrParentMgForm === null || taskOrParentMgForm instanceof TaskBase) && (parentControlOrParentControlIdx === null || parentControlOrParentControlIdx.constructor === Number))
|
|
1179
|
-
super(type, taskOrParentMgForm.getForm(), parentControlOrParentControlIdx);
|
|
1180
|
-
else
|
|
1181
|
-
super(type, taskOrParentMgForm, parentControlOrParentControlIdx);
|
|
1182
|
-
this.initialize();
|
|
1183
|
-
}
|
|
1184
1175
|
initialize() {
|
|
1185
1176
|
this._focusedStopExecution = false;
|
|
1186
1177
|
this._inControlSuffix = false;
|
|
@@ -1193,6 +1184,15 @@ class MgControl extends MgControlBase {
|
|
|
1193
1184
|
this.HasZoomHandler = false;
|
|
1194
1185
|
this.ArgList = null;
|
|
1195
1186
|
}
|
|
1187
|
+
constructor(type, taskOrParentMgForm, parentControlOrParentControlIdx) {
|
|
1188
|
+
if (arguments.length === 0)
|
|
1189
|
+
super();
|
|
1190
|
+
else if (arguments.length === 3 && (type === null || type.constructor === Number) && (taskOrParentMgForm === null || taskOrParentMgForm instanceof TaskBase) && (parentControlOrParentControlIdx === null || parentControlOrParentControlIdx.constructor === Number))
|
|
1191
|
+
super(type, taskOrParentMgForm.getForm(), parentControlOrParentControlIdx);
|
|
1192
|
+
else
|
|
1193
|
+
super(type, taskOrParentMgForm, parentControlOrParentControlIdx);
|
|
1194
|
+
this.initialize();
|
|
1195
|
+
}
|
|
1196
1196
|
GetVarIndex() {
|
|
1197
1197
|
return super.getForm().getTask().DataView.Dvcount + this.veeIndx;
|
|
1198
1198
|
}
|
|
@@ -3125,6 +3125,21 @@ class MgPriorityBlockingQueue {
|
|
|
3125
3125
|
}
|
|
3126
3126
|
|
|
3127
3127
|
class RunTimeEvent extends RunTimeEventBase {
|
|
3128
|
+
set Control(value) {
|
|
3129
|
+
this._ctrl = value;
|
|
3130
|
+
}
|
|
3131
|
+
set DisplayLine(value) {
|
|
3132
|
+
this._displayLine = value;
|
|
3133
|
+
}
|
|
3134
|
+
get Control() {
|
|
3135
|
+
return this._ctrl;
|
|
3136
|
+
}
|
|
3137
|
+
get ControlsList() {
|
|
3138
|
+
return this._controlsList;
|
|
3139
|
+
}
|
|
3140
|
+
get Direction() {
|
|
3141
|
+
return this._direction;
|
|
3142
|
+
}
|
|
3128
3143
|
constructor(taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt, ctrlRefOrGuiTriggeredEventOrLineOrControlsListOrDirectionOrColumnHeaderOrRtEvtOrCurrentTask, ignoreSpecifiedControlOrGuiTriggeredEventOrLineOrXOrControlOrActivatedFromMDIFrame, yOrCtlIdx, width, height) {
|
|
3129
3144
|
super();
|
|
3130
3145
|
this._controlsList = null;
|
|
@@ -3186,21 +3201,6 @@ class RunTimeEvent extends RunTimeEventBase {
|
|
|
3186
3201
|
else if (arguments.length === 1 && taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt instanceof RunTimeEvent)
|
|
3187
3202
|
Object.assign(this, taskRefOrCtrlRefOrTaskrefOrFldRefOrEvt);
|
|
3188
3203
|
}
|
|
3189
|
-
set Control(value) {
|
|
3190
|
-
this._ctrl = value;
|
|
3191
|
-
}
|
|
3192
|
-
set DisplayLine(value) {
|
|
3193
|
-
this._displayLine = value;
|
|
3194
|
-
}
|
|
3195
|
-
get Control() {
|
|
3196
|
-
return this._ctrl;
|
|
3197
|
-
}
|
|
3198
|
-
get ControlsList() {
|
|
3199
|
-
return this._controlsList;
|
|
3200
|
-
}
|
|
3201
|
-
get Direction() {
|
|
3202
|
-
return this._direction;
|
|
3203
|
-
}
|
|
3204
3204
|
constructor_5(taskRef) {
|
|
3205
3205
|
this.init(taskRef);
|
|
3206
3206
|
}
|
|
@@ -3870,6 +3870,15 @@ class TimerObjectCollection {
|
|
|
3870
3870
|
}
|
|
3871
3871
|
TimerObjectCollection.MgDataToTimerObjList = new Dictionary();
|
|
3872
3872
|
class RCTimer extends MgTimer {
|
|
3873
|
+
get TimerIntervalMiliSeconds() {
|
|
3874
|
+
return this._timerIntervalMilliSeconds;
|
|
3875
|
+
}
|
|
3876
|
+
set IsIdleTimer(value) {
|
|
3877
|
+
this._isIdle = value;
|
|
3878
|
+
}
|
|
3879
|
+
get IsIdleTimer() {
|
|
3880
|
+
return this._isIdle;
|
|
3881
|
+
}
|
|
3873
3882
|
constructor(mgData, milliseconds, isIdle) {
|
|
3874
3883
|
super(milliseconds);
|
|
3875
3884
|
this._mgData = null;
|
|
@@ -3881,15 +3890,6 @@ class RCTimer extends MgTimer {
|
|
|
3881
3890
|
TimerObjectCollection.MgDataToTimerObjList.Add(mgDataId, new List());
|
|
3882
3891
|
TimerObjectCollection.MgDataToTimerObjList.get_Item(mgDataId).push(this);
|
|
3883
3892
|
}
|
|
3884
|
-
get TimerIntervalMiliSeconds() {
|
|
3885
|
-
return this._timerIntervalMilliSeconds;
|
|
3886
|
-
}
|
|
3887
|
-
set IsIdleTimer(value) {
|
|
3888
|
-
this._isIdle = value;
|
|
3889
|
-
}
|
|
3890
|
-
get IsIdleTimer() {
|
|
3891
|
-
return this._isIdle;
|
|
3892
|
-
}
|
|
3893
3893
|
GetMgdata() {
|
|
3894
3894
|
return this._mgData;
|
|
3895
3895
|
}
|
|
@@ -4035,6 +4035,9 @@ class ExecutionStack {
|
|
|
4035
4035
|
}
|
|
4036
4036
|
|
|
4037
4037
|
class ExecOperCommand extends ClientOriginatedCommandTaskTag {
|
|
4038
|
+
get CommandTypeAttribute() {
|
|
4039
|
+
return ConstInterface.MG_ATTR_VAL_EXEC_OPER;
|
|
4040
|
+
}
|
|
4038
4041
|
constructor() {
|
|
4039
4042
|
super();
|
|
4040
4043
|
this.ExecutionStack = null;
|
|
@@ -4048,9 +4051,6 @@ class ExecOperCommand extends ClientOriginatedCommandTaskTag {
|
|
|
4048
4051
|
this.CheckOnly = false;
|
|
4049
4052
|
this.DitIdx = Int32.MinValue;
|
|
4050
4053
|
}
|
|
4051
|
-
get CommandTypeAttribute() {
|
|
4052
|
-
return ConstInterface.MG_ATTR_VAL_EXEC_OPER;
|
|
4053
|
-
}
|
|
4054
4054
|
SerializeCommandData() {
|
|
4055
4055
|
let helper = new CommandSerializationHelper();
|
|
4056
4056
|
let execStackExists = this.ExecutionStack !== null && !this.ExecutionStack.empty();
|
|
@@ -4505,13 +4505,6 @@ class HttpClientAsync extends HttpClientBase {
|
|
|
4505
4505
|
}
|
|
4506
4506
|
|
|
4507
4507
|
class HttpManager {
|
|
4508
|
-
constructor() {
|
|
4509
|
-
this._httpCommunicationTimeoutMS = HttpManager.DEFAULT_HTTP_COMMUNICATION_TIMEOUT;
|
|
4510
|
-
this._httpClientAsync = null;
|
|
4511
|
-
this._isAbortingMagicEngine = false;
|
|
4512
|
-
this._httpClientAsync = new HttpClientAsync(HttpManager._nativeHttpClient);
|
|
4513
|
-
this.RegisterBasicDelegates();
|
|
4514
|
-
}
|
|
4515
4508
|
getHttpClient() {
|
|
4516
4509
|
if (this.IsAbortingMagicEngine)
|
|
4517
4510
|
return new HttpClientSync();
|
|
@@ -4531,6 +4524,13 @@ class HttpManager {
|
|
|
4531
4524
|
}
|
|
4532
4525
|
get IsAbortingMagicEngine() { return this._isAbortingMagicEngine; }
|
|
4533
4526
|
set IsAbortingMagicEngine(isAbortingMagicEngine) { this._isAbortingMagicEngine = isAbortingMagicEngine; }
|
|
4527
|
+
constructor() {
|
|
4528
|
+
this._httpCommunicationTimeoutMS = HttpManager.DEFAULT_HTTP_COMMUNICATION_TIMEOUT;
|
|
4529
|
+
this._httpClientAsync = null;
|
|
4530
|
+
this._isAbortingMagicEngine = false;
|
|
4531
|
+
this._httpClientAsync = new HttpClientAsync(HttpManager._nativeHttpClient);
|
|
4532
|
+
this.RegisterBasicDelegates();
|
|
4533
|
+
}
|
|
4534
4534
|
RegisterBasicDelegates() {
|
|
4535
4535
|
HttpClientEvents.GetHttpCommunicationTimeout_Event = this.GetHttpCommunicationTimeoutMS.bind(this);
|
|
4536
4536
|
}
|
|
@@ -5076,6 +5076,12 @@ var RequestStatus;
|
|
|
5076
5076
|
RequestStatus[RequestStatus["Abort"] = 2] = "Abort";
|
|
5077
5077
|
})(RequestStatus || (RequestStatus = {}));
|
|
5078
5078
|
class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
5079
|
+
static GetInstance() {
|
|
5080
|
+
if (RemoteCommandsProcessor._instance === null) {
|
|
5081
|
+
RemoteCommandsProcessor._instance = new RemoteCommandsProcessor();
|
|
5082
|
+
}
|
|
5083
|
+
return RemoteCommandsProcessor._instance;
|
|
5084
|
+
}
|
|
5079
5085
|
constructor() {
|
|
5080
5086
|
super();
|
|
5081
5087
|
this._lastRequestTime = 0;
|
|
@@ -5086,12 +5092,6 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
5086
5092
|
HttpManager.GetInstance();
|
|
5087
5093
|
this.RegisterDelegates();
|
|
5088
5094
|
}
|
|
5089
|
-
static GetInstance() {
|
|
5090
|
-
if (RemoteCommandsProcessor._instance === null) {
|
|
5091
|
-
RemoteCommandsProcessor._instance = new RemoteCommandsProcessor();
|
|
5092
|
-
}
|
|
5093
|
-
return RemoteCommandsProcessor._instance;
|
|
5094
|
-
}
|
|
5095
5095
|
CheckAndSetSessionCounter(newSessionCounter) {
|
|
5096
5096
|
if (newSessionCounter === ConstInterface.SESSION_COUNTER_CLOSE_CTX_INDICATION) {
|
|
5097
5097
|
Debug.Assert(this.GetSessionCounter() === ConstInterface.SESSION_COUNTER_CLOSE_CTX_INDICATION);
|
|
@@ -5731,21 +5731,6 @@ RemoteCommandsProcessor.InitialUrl = null;
|
|
|
5731
5731
|
RemoteCommandsProcessor.WEB_COMMUNICATION_PROTOCOL_VERSION = "14002";
|
|
5732
5732
|
RemoteCommandsProcessor._shouldScrambleAndUnscrambleMessages = false;
|
|
5733
5733
|
class HandshakeResponse {
|
|
5734
|
-
constructor(responseXML) {
|
|
5735
|
-
this._scrambleMessages = true;
|
|
5736
|
-
this._contextId = null;
|
|
5737
|
-
this._privateSessionId = null;
|
|
5738
|
-
this._inputPassword = false;
|
|
5739
|
-
this._httpTimeout = 0;
|
|
5740
|
-
this._systemLogin = null;
|
|
5741
|
-
this._maxInternalLogLevel = null;
|
|
5742
|
-
try {
|
|
5743
|
-
JSON_Utils.JSONFromXML(responseXML, this.FillFromJSON.bind(this));
|
|
5744
|
-
}
|
|
5745
|
-
catch (ex) {
|
|
5746
|
-
Logger.Instance.WriteExceptionToLog(ex, responseXML);
|
|
5747
|
-
}
|
|
5748
|
-
}
|
|
5749
5734
|
get ScrambleMessages() {
|
|
5750
5735
|
return this._scrambleMessages;
|
|
5751
5736
|
}
|
|
@@ -5767,6 +5752,21 @@ class HandshakeResponse {
|
|
|
5767
5752
|
get MaxInternalLogLevel() {
|
|
5768
5753
|
return this._maxInternalLogLevel;
|
|
5769
5754
|
}
|
|
5755
|
+
constructor(responseXML) {
|
|
5756
|
+
this._scrambleMessages = true;
|
|
5757
|
+
this._contextId = null;
|
|
5758
|
+
this._privateSessionId = null;
|
|
5759
|
+
this._inputPassword = false;
|
|
5760
|
+
this._httpTimeout = 0;
|
|
5761
|
+
this._systemLogin = null;
|
|
5762
|
+
this._maxInternalLogLevel = null;
|
|
5763
|
+
try {
|
|
5764
|
+
JSON_Utils.JSONFromXML(responseXML, this.FillFromJSON.bind(this));
|
|
5765
|
+
}
|
|
5766
|
+
catch (ex) {
|
|
5767
|
+
Logger.Instance.WriteExceptionToLog(ex, responseXML);
|
|
5768
|
+
}
|
|
5769
|
+
}
|
|
5770
5770
|
FillFromJSON(error, result) {
|
|
5771
5771
|
if (error != null) {
|
|
5772
5772
|
throw error;
|
|
@@ -7289,11 +7289,6 @@ var DataViewCommandType;
|
|
|
7289
7289
|
DataViewCommandType[DataViewCommandType["SQLExecute"] = 20] = "SQLExecute";
|
|
7290
7290
|
})(DataViewCommandType || (DataViewCommandType = {}));
|
|
7291
7291
|
class DataviewCommand extends ClientOriginatedCommandTaskTag {
|
|
7292
|
-
constructor() {
|
|
7293
|
-
super();
|
|
7294
|
-
this.CommandType = 0;
|
|
7295
|
-
this.TaskTag = null;
|
|
7296
|
-
}
|
|
7297
7292
|
get CommandTypeAttribute() {
|
|
7298
7293
|
throw new NotImplementedException();
|
|
7299
7294
|
}
|
|
@@ -7304,6 +7299,11 @@ class DataviewCommand extends ClientOriginatedCommandTaskTag {
|
|
|
7304
7299
|
get ShouldSerialize() {
|
|
7305
7300
|
return false;
|
|
7306
7301
|
}
|
|
7302
|
+
constructor() {
|
|
7303
|
+
super();
|
|
7304
|
+
this.CommandType = 0;
|
|
7305
|
+
this.TaskTag = null;
|
|
7306
|
+
}
|
|
7307
7307
|
}
|
|
7308
7308
|
|
|
7309
7309
|
class EventHandlerPosition {
|
|
@@ -7721,12 +7721,6 @@ class NonReversibleExitEventCommand extends EventCommand {
|
|
|
7721
7721
|
}
|
|
7722
7722
|
|
|
7723
7723
|
class RecomputeCommand extends ClientOriginatedCommandTaskTag {
|
|
7724
|
-
constructor() {
|
|
7725
|
-
super();
|
|
7726
|
-
this.TaskTag = null;
|
|
7727
|
-
this.FldId = 0;
|
|
7728
|
-
this.IgnoreSubformRecompute = false;
|
|
7729
|
-
}
|
|
7730
7724
|
get CommandTypeAttribute() {
|
|
7731
7725
|
return ConstInterface.MG_ATTR_VAL_RECOMP;
|
|
7732
7726
|
}
|
|
@@ -7738,17 +7732,18 @@ class RecomputeCommand extends ClientOriginatedCommandTaskTag {
|
|
|
7738
7732
|
helper.SerializeAttribute(ConstInterface.MG_ATTR_IGNORE_SUBFORM_RECOMPUTE, '1');
|
|
7739
7733
|
return helper.GetString();
|
|
7740
7734
|
}
|
|
7735
|
+
constructor() {
|
|
7736
|
+
super();
|
|
7737
|
+
this.TaskTag = null;
|
|
7738
|
+
this.FldId = 0;
|
|
7739
|
+
this.IgnoreSubformRecompute = false;
|
|
7740
|
+
}
|
|
7741
7741
|
getCommandInfo() {
|
|
7742
7742
|
return NString.Format('[{0} in {1} for Field {2}]', this.CommandTypeAttribute.charAt(0).toUpperCase() + this.CommandTypeAttribute.substr(1, this.CommandTypeAttribute.length), this.Task.getTaskInfo(), this.Task.getFieldDef(this.FldId).getName());
|
|
7743
7743
|
}
|
|
7744
7744
|
}
|
|
7745
7745
|
|
|
7746
7746
|
class TransactionCommand extends ClientOriginatedCommandTaskTag {
|
|
7747
|
-
constructor() {
|
|
7748
|
-
super();
|
|
7749
|
-
this.TaskTag = null;
|
|
7750
|
-
this.ReversibleExit = false;
|
|
7751
|
-
}
|
|
7752
7747
|
get CommandTypeAttribute() {
|
|
7753
7748
|
return ConstInterface.MG_ATTR_VAL_TRANS;
|
|
7754
7749
|
}
|
|
@@ -7762,6 +7757,11 @@ class TransactionCommand extends ClientOriginatedCommandTaskTag {
|
|
|
7762
7757
|
helper.SerializeAttribute(ConstInterface.MG_ATTR_TRANS_LEVEL, this.Level);
|
|
7763
7758
|
return helper.GetString();
|
|
7764
7759
|
}
|
|
7760
|
+
constructor() {
|
|
7761
|
+
super();
|
|
7762
|
+
this.TaskTag = null;
|
|
7763
|
+
this.ReversibleExit = false;
|
|
7764
|
+
}
|
|
7765
7765
|
getCommandInfo() {
|
|
7766
7766
|
return NString.Format('[{0} in {1}]', this.Oper === 'C' ? 'Commit Transaction' : 'Abort Transaction', this.Task.getTaskInfo());
|
|
7767
7767
|
}
|
|
@@ -7780,6 +7780,9 @@ class UnloadCommand extends ClientOriginatedCommand {
|
|
|
7780
7780
|
}
|
|
7781
7781
|
|
|
7782
7782
|
class EvaluateCommand extends ClientOriginatedCommandTaskTag {
|
|
7783
|
+
get CommandTypeAttribute() {
|
|
7784
|
+
return ConstInterface.MG_ATTR_VAL_EVAL;
|
|
7785
|
+
}
|
|
7783
7786
|
constructor() {
|
|
7784
7787
|
super();
|
|
7785
7788
|
this.TaskTag = null;
|
|
@@ -7788,9 +7791,6 @@ class EvaluateCommand extends ClientOriginatedCommandTaskTag {
|
|
|
7788
7791
|
this.MprgCreator = null;
|
|
7789
7792
|
this.LengthExpVal = Int32.MinValue;
|
|
7790
7793
|
}
|
|
7791
|
-
get CommandTypeAttribute() {
|
|
7792
|
-
return ConstInterface.MG_ATTR_VAL_EVAL;
|
|
7793
|
-
}
|
|
7794
7794
|
SerializeCommandData() {
|
|
7795
7795
|
let helper = new CommandSerializationHelper();
|
|
7796
7796
|
helper.SerializeTaskTag(this.TaskTag);
|
|
@@ -7838,10 +7838,6 @@ class GlobalParamsQueryCommand extends QueryCommand {
|
|
|
7838
7838
|
}
|
|
7839
7839
|
|
|
7840
7840
|
class IniputForceWriteCommand extends ClientOriginatedCommand {
|
|
7841
|
-
constructor() {
|
|
7842
|
-
super();
|
|
7843
|
-
this.Text = null;
|
|
7844
|
-
}
|
|
7845
7841
|
get CommandTypeAttribute() {
|
|
7846
7842
|
return ConstInterface.MG_ATTR_VAL_INIPUT_FORCE_WRITE;
|
|
7847
7843
|
}
|
|
@@ -7851,6 +7847,10 @@ class IniputForceWriteCommand extends ClientOriginatedCommand {
|
|
|
7851
7847
|
SerializeCommandData() {
|
|
7852
7848
|
return " " + ConstInterface.MG_ATTR_VAL_INIPUT_PARAM + "=\"" + XmlParser.escape(this.Text) + "\"";
|
|
7853
7849
|
}
|
|
7850
|
+
constructor() {
|
|
7851
|
+
super();
|
|
7852
|
+
this.Text = null;
|
|
7853
|
+
}
|
|
7854
7854
|
getCommandInfo() {
|
|
7855
7855
|
return NString.Format('[{0} with {1}] ', this.CommandTypeAttribute, this.Text);
|
|
7856
7856
|
}
|
|
@@ -8139,10 +8139,6 @@ var ParamParseResult;
|
|
|
8139
8139
|
})(ParamParseResult || (ParamParseResult = {}));
|
|
8140
8140
|
|
|
8141
8141
|
class PrmMap {
|
|
8142
|
-
constructor() {
|
|
8143
|
-
this.values = null;
|
|
8144
|
-
this.values = new Dictionary();
|
|
8145
|
-
}
|
|
8146
8142
|
getvalue(s) {
|
|
8147
8143
|
if (this.values.ContainsKey(s))
|
|
8148
8144
|
return this.values.get_Item(s);
|
|
@@ -8155,6 +8151,10 @@ class PrmMap {
|
|
|
8155
8151
|
remove(s) {
|
|
8156
8152
|
this.values.Remove(s);
|
|
8157
8153
|
}
|
|
8154
|
+
constructor() {
|
|
8155
|
+
this.values = null;
|
|
8156
|
+
this.values = new Dictionary();
|
|
8157
|
+
}
|
|
8158
8158
|
}
|
|
8159
8159
|
class MirrorPrmMap extends PrmMap {
|
|
8160
8160
|
constructor(type) {
|
|
@@ -8736,6 +8736,12 @@ class Environment {
|
|
|
8736
8736
|
}
|
|
8737
8737
|
Environment.Instance = new Environment();
|
|
8738
8738
|
class EnvironmentDetails {
|
|
8739
|
+
set UpdateInQueryMode(value) {
|
|
8740
|
+
this._updateInQueryMode = value;
|
|
8741
|
+
}
|
|
8742
|
+
set CreateInModifyMode(value) {
|
|
8743
|
+
this._createInModifyMode = value;
|
|
8744
|
+
}
|
|
8739
8745
|
constructor() {
|
|
8740
8746
|
this._createInModifyMode = false;
|
|
8741
8747
|
this._updateInQueryMode = false;
|
|
@@ -8746,12 +8752,6 @@ class EnvironmentDetails {
|
|
|
8746
8752
|
this.ProjDir = null;
|
|
8747
8753
|
this.CompIdx = 0;
|
|
8748
8754
|
}
|
|
8749
|
-
set UpdateInQueryMode(value) {
|
|
8750
|
-
this._updateInQueryMode = value;
|
|
8751
|
-
}
|
|
8752
|
-
set CreateInModifyMode(value) {
|
|
8753
|
-
this._createInModifyMode = value;
|
|
8754
|
-
}
|
|
8755
8755
|
allowUpdateInQueryMode() {
|
|
8756
8756
|
return this._updateInQueryMode;
|
|
8757
8757
|
}
|
|
@@ -8839,17 +8839,6 @@ class GlobalParams extends MirrorPrmMap {
|
|
|
8839
8839
|
GlobalParams.Instance = new GlobalParams();
|
|
8840
8840
|
|
|
8841
8841
|
class UserDetails {
|
|
8842
|
-
constructor() {
|
|
8843
|
-
this.UserName = null;
|
|
8844
|
-
this.UserID = null;
|
|
8845
|
-
this.UserInfo = null;
|
|
8846
|
-
this.Password = null;
|
|
8847
|
-
this.IsLoggedIn = false;
|
|
8848
|
-
this.UserName = NString.Empty;
|
|
8849
|
-
this.UserInfo = NString.Empty;
|
|
8850
|
-
this.IsLoggedIn = false;
|
|
8851
|
-
this.setUserID(NString.Empty);
|
|
8852
|
-
}
|
|
8853
8842
|
setIsLoggedIn(value) {
|
|
8854
8843
|
this.IsLoggedIn = value;
|
|
8855
8844
|
}
|
|
@@ -8869,6 +8858,17 @@ class UserDetails {
|
|
|
8869
8858
|
UserDetails._instance = new UserDetails();
|
|
8870
8859
|
return UserDetails._instance;
|
|
8871
8860
|
}
|
|
8861
|
+
constructor() {
|
|
8862
|
+
this.UserName = null;
|
|
8863
|
+
this.UserID = null;
|
|
8864
|
+
this.UserInfo = null;
|
|
8865
|
+
this.Password = null;
|
|
8866
|
+
this.IsLoggedIn = false;
|
|
8867
|
+
this.UserName = NString.Empty;
|
|
8868
|
+
this.UserInfo = NString.Empty;
|
|
8869
|
+
this.IsLoggedIn = false;
|
|
8870
|
+
this.setUserID(NString.Empty);
|
|
8871
|
+
}
|
|
8872
8872
|
fillData(parser) {
|
|
8873
8873
|
let tokensVector;
|
|
8874
8874
|
let endContext = parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, parser.getCurrIndex());
|
|
@@ -14482,6 +14482,12 @@ class DataViewBase extends GuiDataViewBase {
|
|
|
14482
14482
|
}
|
|
14483
14483
|
|
|
14484
14484
|
class Record {
|
|
14485
|
+
get InCompute() {
|
|
14486
|
+
return this._inCompute;
|
|
14487
|
+
}
|
|
14488
|
+
get InRecompute() {
|
|
14489
|
+
return this._inRecompute;
|
|
14490
|
+
}
|
|
14485
14491
|
constructor(dvOrTableCacheOrCIdOrRecord, dataview) {
|
|
14486
14492
|
this._id = Int32.MinValue;
|
|
14487
14493
|
this.dbViewRowIdx = 0;
|
|
@@ -14499,12 +14505,6 @@ class Record {
|
|
|
14499
14505
|
else
|
|
14500
14506
|
this.constructor_1(dvOrTableCacheOrCIdOrRecord, dataview);
|
|
14501
14507
|
}
|
|
14502
|
-
get InCompute() {
|
|
14503
|
-
return this._inCompute;
|
|
14504
|
-
}
|
|
14505
|
-
get InRecompute() {
|
|
14506
|
-
return this._inRecompute;
|
|
14507
|
-
}
|
|
14508
14508
|
constructor_0(dvOrTableCache) {
|
|
14509
14509
|
if (dvOrTableCache instanceof DataViewBase)
|
|
14510
14510
|
this._dataview = dvOrTableCache;
|
|
@@ -15300,14 +15300,14 @@ Record.FLAG_MODIFIED_ATLEAST_ONCE = (0x40);
|
|
|
15300
15300
|
Record.INCREASE = true;
|
|
15301
15301
|
Record.DECREASE = false;
|
|
15302
15302
|
class DcValuesReference extends ObjectReferenceBase {
|
|
15303
|
+
get DcValues() {
|
|
15304
|
+
return this.Referent;
|
|
15305
|
+
}
|
|
15303
15306
|
constructor(controlId, referencedDcValues) {
|
|
15304
15307
|
super(referencedDcValues);
|
|
15305
15308
|
this.ditIdx = 0;
|
|
15306
15309
|
this.ditIdx = controlId;
|
|
15307
15310
|
}
|
|
15308
|
-
get DcValues() {
|
|
15309
|
-
return this.Referent;
|
|
15310
|
-
}
|
|
15311
15311
|
Clone() {
|
|
15312
15312
|
return new DcValuesReference(this.ditIdx, this.Referent);
|
|
15313
15313
|
}
|
|
@@ -15583,21 +15583,6 @@ class RecordsTable {
|
|
|
15583
15583
|
RecordsTable.REC_NOT_FOUND = -1;
|
|
15584
15584
|
|
|
15585
15585
|
class DataviewHeaderBase {
|
|
15586
|
-
constructor(task) {
|
|
15587
|
-
this._cond = null;
|
|
15588
|
-
this._task = null;
|
|
15589
|
-
this.Loc = null;
|
|
15590
|
-
this._dir = '\0';
|
|
15591
|
-
this._id = 0;
|
|
15592
|
-
this._keyIdx = 0;
|
|
15593
|
-
this._retVal = null;
|
|
15594
|
-
this.returnfield = null;
|
|
15595
|
-
this.LinkStartAfterField = 0;
|
|
15596
|
-
this.KeyExpression = 0;
|
|
15597
|
-
this._task = task;
|
|
15598
|
-
this._keyIdx = -1;
|
|
15599
|
-
this._cond = new YesNoExp(true);
|
|
15600
|
-
}
|
|
15601
15586
|
get ReturnField() {
|
|
15602
15587
|
if (this.returnfield === null && this._retVal !== null)
|
|
15603
15588
|
this.returnfield = this.Task.getFieldByValueStr(this._retVal);
|
|
@@ -15618,6 +15603,21 @@ class DataviewHeaderBase {
|
|
|
15618
15603
|
get LinkEvaluateCondition() {
|
|
15619
15604
|
return this._linkEvalCondition;
|
|
15620
15605
|
}
|
|
15606
|
+
constructor(task) {
|
|
15607
|
+
this._cond = null;
|
|
15608
|
+
this._task = null;
|
|
15609
|
+
this.Loc = null;
|
|
15610
|
+
this._dir = '\0';
|
|
15611
|
+
this._id = 0;
|
|
15612
|
+
this._keyIdx = 0;
|
|
15613
|
+
this._retVal = null;
|
|
15614
|
+
this.returnfield = null;
|
|
15615
|
+
this.LinkStartAfterField = 0;
|
|
15616
|
+
this.KeyExpression = 0;
|
|
15617
|
+
this._task = task;
|
|
15618
|
+
this._keyIdx = -1;
|
|
15619
|
+
this._cond = new YesNoExp(true);
|
|
15620
|
+
}
|
|
15621
15621
|
SetAttributes(attributes) {
|
|
15622
15622
|
let keys = attributes.Keys;
|
|
15623
15623
|
keys.forEach((text) => {
|
|
@@ -16908,16 +16908,16 @@ class RecordOutOfDataViewException extends ApplicationException {
|
|
|
16908
16908
|
}
|
|
16909
16909
|
|
|
16910
16910
|
class XMLBasedDcValuesBuilder extends DcValuesBuilderBase {
|
|
16911
|
+
set SerializedDCVals(value) {
|
|
16912
|
+
this.parser.setXMLdata(value);
|
|
16913
|
+
this.parser.setCurrIndex(0);
|
|
16914
|
+
}
|
|
16911
16915
|
constructor() {
|
|
16912
16916
|
super();
|
|
16913
16917
|
this.dcv = null;
|
|
16914
16918
|
this.parser = null;
|
|
16915
16919
|
this.parser = new XmlParser();
|
|
16916
16920
|
}
|
|
16917
|
-
set SerializedDCVals(value) {
|
|
16918
|
-
this.parser.setXMLdata(value);
|
|
16919
|
-
this.parser.setCurrIndex(0);
|
|
16920
|
-
}
|
|
16921
16921
|
Build() {
|
|
16922
16922
|
this.dcv = null;
|
|
16923
16923
|
let endContext = this.parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, this.parser.getCurrIndex());
|
|
@@ -16997,6 +16997,39 @@ const RECOVERY_ACT_NONE = 'N';
|
|
|
16997
16997
|
const TRANS_STAT_CLOSED = 'C';
|
|
16998
16998
|
const TRANS_STAT_OPENED = 'O';
|
|
16999
16999
|
class DataView extends DataViewBase {
|
|
17000
|
+
set InsertAt(value) {
|
|
17001
|
+
this._insertAt = value;
|
|
17002
|
+
}
|
|
17003
|
+
get InsertAt() {
|
|
17004
|
+
return this._insertAt;
|
|
17005
|
+
}
|
|
17006
|
+
get CurrRec() {
|
|
17007
|
+
return this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER;
|
|
17008
|
+
}
|
|
17009
|
+
set CurrRec(value) {
|
|
17010
|
+
if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null && value === null) {
|
|
17011
|
+
this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.resetDcValueId();
|
|
17012
|
+
}
|
|
17013
|
+
this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER = value;
|
|
17014
|
+
if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null) {
|
|
17015
|
+
this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.SetDcValueId();
|
|
17016
|
+
}
|
|
17017
|
+
}
|
|
17018
|
+
get FlushUpdates() {
|
|
17019
|
+
return this._flushUpdates;
|
|
17020
|
+
}
|
|
17021
|
+
get HasMainTable() {
|
|
17022
|
+
return this._hasMainTable;
|
|
17023
|
+
}
|
|
17024
|
+
get CurrentRecId() {
|
|
17025
|
+
return this._currRecId;
|
|
17026
|
+
}
|
|
17027
|
+
get FirstRecord() {
|
|
17028
|
+
return this._recordsTab.getRecByIdx(0);
|
|
17029
|
+
}
|
|
17030
|
+
get LastRecord() {
|
|
17031
|
+
return this._recordsTab.getRecByIdx(this._recordsTab.getSize() - 1);
|
|
17032
|
+
}
|
|
17000
17033
|
constructor(taskOrDataView) {
|
|
17001
17034
|
super();
|
|
17002
17035
|
this._cacheLruTimeStamp = 0;
|
|
@@ -17048,39 +17081,6 @@ class DataView extends DataViewBase {
|
|
|
17048
17081
|
Object.assign(this, taskOrDataView);
|
|
17049
17082
|
}
|
|
17050
17083
|
}
|
|
17051
|
-
set InsertAt(value) {
|
|
17052
|
-
this._insertAt = value;
|
|
17053
|
-
}
|
|
17054
|
-
get InsertAt() {
|
|
17055
|
-
return this._insertAt;
|
|
17056
|
-
}
|
|
17057
|
-
get CurrRec() {
|
|
17058
|
-
return this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER;
|
|
17059
|
-
}
|
|
17060
|
-
set CurrRec(value) {
|
|
17061
|
-
if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null && value === null) {
|
|
17062
|
-
this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.resetDcValueId();
|
|
17063
|
-
}
|
|
17064
|
-
this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER = value;
|
|
17065
|
-
if (this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER !== null) {
|
|
17066
|
-
this._currRec_DO_NOT_USE_DIRECTLY_USE_SETTER_GETTER.SetDcValueId();
|
|
17067
|
-
}
|
|
17068
|
-
}
|
|
17069
|
-
get FlushUpdates() {
|
|
17070
|
-
return this._flushUpdates;
|
|
17071
|
-
}
|
|
17072
|
-
get HasMainTable() {
|
|
17073
|
-
return this._hasMainTable;
|
|
17074
|
-
}
|
|
17075
|
-
get CurrentRecId() {
|
|
17076
|
-
return this._currRecId;
|
|
17077
|
-
}
|
|
17078
|
-
get FirstRecord() {
|
|
17079
|
-
return this._recordsTab.getRecByIdx(0);
|
|
17080
|
-
}
|
|
17081
|
-
get LastRecord() {
|
|
17082
|
-
return this._recordsTab.getRecByIdx(this._recordsTab.getSize() - 1);
|
|
17083
|
-
}
|
|
17084
17084
|
Init() {
|
|
17085
17085
|
this.init();
|
|
17086
17086
|
}
|
|
@@ -18653,6 +18653,12 @@ class ReturnResultBase {
|
|
|
18653
18653
|
}
|
|
18654
18654
|
|
|
18655
18655
|
class ReturnResult extends ReturnResultBase {
|
|
18656
|
+
get Success() {
|
|
18657
|
+
return this.success;
|
|
18658
|
+
}
|
|
18659
|
+
get ErrorDescription() {
|
|
18660
|
+
return this.errorDescription;
|
|
18661
|
+
}
|
|
18656
18662
|
constructor(errorDescriptionCodeOrErrorDescriptionOrInnerResult, innerResult) {
|
|
18657
18663
|
super();
|
|
18658
18664
|
this.errorDescription = null;
|
|
@@ -18667,12 +18673,6 @@ class ReturnResult extends ReturnResultBase {
|
|
|
18667
18673
|
else
|
|
18668
18674
|
this.constructor_03(errorDescriptionCodeOrErrorDescriptionOrInnerResult);
|
|
18669
18675
|
}
|
|
18670
|
-
get Success() {
|
|
18671
|
-
return this.success;
|
|
18672
|
-
}
|
|
18673
|
-
get ErrorDescription() {
|
|
18674
|
-
return this.errorDescription;
|
|
18675
|
-
}
|
|
18676
18676
|
constructor_00(errorDescriptionCode) {
|
|
18677
18677
|
this.success = false;
|
|
18678
18678
|
this.ErrorId = errorDescriptionCode;
|
|
@@ -18772,13 +18772,13 @@ class Transaction {
|
|
|
18772
18772
|
}
|
|
18773
18773
|
|
|
18774
18774
|
class TaskTransactionManager {
|
|
18775
|
+
get isClosingTopmostTask() {
|
|
18776
|
+
return MGDataCollection.Instance.StartupMgData.getFirstTask().InEndTask;
|
|
18777
|
+
}
|
|
18775
18778
|
constructor(task) {
|
|
18776
18779
|
this.task = null;
|
|
18777
18780
|
this.task = task;
|
|
18778
18781
|
}
|
|
18779
|
-
get isClosingTopmostTask() {
|
|
18780
|
-
return MGDataCollection.Instance.StartupMgData.getFirstTask().InEndTask;
|
|
18781
|
-
}
|
|
18782
18782
|
AllowTransaction(transBegin, forLocal) {
|
|
18783
18783
|
let result;
|
|
18784
18784
|
if (forLocal)
|
|
@@ -19122,12 +19122,6 @@ class RemoteDataviewManager extends DataviewManagerBase {
|
|
|
19122
19122
|
}
|
|
19123
19123
|
|
|
19124
19124
|
class DataviewManager extends DataviewManagerBase {
|
|
19125
|
-
constructor(task) {
|
|
19126
|
-
super(task);
|
|
19127
|
-
this.RemoteDataviewManager = null;
|
|
19128
|
-
this.HasRemoteData = true;
|
|
19129
|
-
this.RemoteDataviewManager = new RemoteDataviewManager(task);
|
|
19130
|
-
}
|
|
19131
19125
|
get TaskService() {
|
|
19132
19126
|
return this.Task.TaskService;
|
|
19133
19127
|
}
|
|
@@ -19142,6 +19136,12 @@ class DataviewManager extends DataviewManagerBase {
|
|
|
19142
19136
|
get VirtualDataviewManager() {
|
|
19143
19137
|
return this.TaskService.GetDataviewManagerForVirtuals(this.Task);
|
|
19144
19138
|
}
|
|
19139
|
+
constructor(task) {
|
|
19140
|
+
super(task);
|
|
19141
|
+
this.RemoteDataviewManager = null;
|
|
19142
|
+
this.HasRemoteData = true;
|
|
19143
|
+
this.RemoteDataviewManager = new RemoteDataviewManager(task);
|
|
19144
|
+
}
|
|
19145
19145
|
async Execute(command) {
|
|
19146
19146
|
return await this.CurrentDataviewManager.Execute(command);
|
|
19147
19147
|
}
|
|
@@ -19273,18 +19273,8 @@ class MgForm extends MgFormBase {
|
|
|
19273
19273
|
dv = this._task.DataView;
|
|
19274
19274
|
return (dv);
|
|
19275
19275
|
}
|
|
19276
|
-
async moveInView(unit, direction
|
|
19277
|
-
if (isNullOrUndefined(returnToCtrl))
|
|
19278
|
-
await this.moveInView_0(unit, direction);
|
|
19279
|
-
else
|
|
19280
|
-
await this.moveInView_1(unit, direction, returnToCtrl);
|
|
19281
|
-
}
|
|
19282
|
-
async moveInView_0(unit, direction) {
|
|
19283
|
-
await this.moveInView(unit, direction, true);
|
|
19284
|
-
}
|
|
19285
|
-
async moveInView_1(unit, direction, returnToCtrl) {
|
|
19276
|
+
async moveInView(unit, direction) {
|
|
19286
19277
|
let oldRecId = Int32.MinValue;
|
|
19287
|
-
let lastParkedCtrl;
|
|
19288
19278
|
let currRec = this.GetDataview().getCurrRec();
|
|
19289
19279
|
let oldTaskMode = ' ';
|
|
19290
19280
|
let returnToVisibleLine = false;
|
|
@@ -19415,6 +19405,7 @@ class MgForm extends MgFormBase {
|
|
|
19415
19405
|
try {
|
|
19416
19406
|
await this.RefreshDisplay(Constants.TASK_REFRESH_FORM);
|
|
19417
19407
|
await this.setCurrRowByDisplayLine(this.GetDataview().getTopRecIdx() + this.getLastValidRow(), false, true);
|
|
19408
|
+
visibleLine = this.getLastValidRow();
|
|
19418
19409
|
}
|
|
19419
19410
|
catch (Exception) {
|
|
19420
19411
|
}
|
|
@@ -19538,15 +19529,6 @@ class MgForm extends MgFormBase {
|
|
|
19538
19529
|
else
|
|
19539
19530
|
this.SetTableTopIndex();
|
|
19540
19531
|
await AccessHelper.eventsManager.handleInternalEventWithTask(this._task, InternalInterface.MG_ACT_REC_PREFIX);
|
|
19541
|
-
if (returnToCtrl) {
|
|
19542
|
-
lastParkedCtrl = this._task.getLastParkedCtrl();
|
|
19543
|
-
if (lastParkedCtrl != null) {
|
|
19544
|
-
let cursorMoved = await lastParkedCtrl.invoke();
|
|
19545
|
-
if (!cursorMoved) {
|
|
19546
|
-
await AccessHelper.eventsManager.HandleNonParkableControls(this._task);
|
|
19547
|
-
}
|
|
19548
|
-
}
|
|
19549
|
-
}
|
|
19550
19532
|
}
|
|
19551
19533
|
catch (e) {
|
|
19552
19534
|
if (e instanceof RecordOutOfDataViewException) {
|
|
@@ -22282,13 +22264,6 @@ class UserEventsTable {
|
|
|
22282
22264
|
}
|
|
22283
22265
|
|
|
22284
22266
|
class FormsTable {
|
|
22285
|
-
constructor(task, parentForm) {
|
|
22286
|
-
this._task = null;
|
|
22287
|
-
this._parentForm = null;
|
|
22288
|
-
this._formsStringXml = null;
|
|
22289
|
-
this._task = task;
|
|
22290
|
-
this._parentForm = parentForm;
|
|
22291
|
-
}
|
|
22292
22267
|
get Count() {
|
|
22293
22268
|
return this._formsStringXml.length;
|
|
22294
22269
|
}
|
|
@@ -22297,6 +22272,13 @@ class FormsTable {
|
|
|
22297
22272
|
return this._formsStringXml.get_Item(formDisplayIndex - 1);
|
|
22298
22273
|
return null;
|
|
22299
22274
|
}
|
|
22275
|
+
constructor(task, parentForm) {
|
|
22276
|
+
this._task = null;
|
|
22277
|
+
this._parentForm = null;
|
|
22278
|
+
this._formsStringXml = null;
|
|
22279
|
+
this._task = task;
|
|
22280
|
+
this._parentForm = parentForm;
|
|
22281
|
+
}
|
|
22300
22282
|
async fillData() {
|
|
22301
22283
|
this._formsStringXml = new List();
|
|
22302
22284
|
let parser = Manager.GetCurrentRuntimeContext().Parser;
|
|
@@ -22486,6 +22468,47 @@ var Task_Direction;
|
|
|
22486
22468
|
Task_Direction[Task_Direction["FORE"] = 1] = "FORE";
|
|
22487
22469
|
})(Task_Direction || (Task_Direction = {}));
|
|
22488
22470
|
class Task extends TaskBase {
|
|
22471
|
+
get ParentTask() {
|
|
22472
|
+
return this._parentTask;
|
|
22473
|
+
}
|
|
22474
|
+
set TryingToCommit(value) {
|
|
22475
|
+
this._tryingToCommit = value;
|
|
22476
|
+
}
|
|
22477
|
+
get TryingToCommit() {
|
|
22478
|
+
return this._tryingToCommit;
|
|
22479
|
+
}
|
|
22480
|
+
get TaskService() {
|
|
22481
|
+
if (this._taskService == null)
|
|
22482
|
+
this._taskService = new RemoteTaskService();
|
|
22483
|
+
return this._taskService;
|
|
22484
|
+
}
|
|
22485
|
+
static get CommandsProcessor() {
|
|
22486
|
+
return CommandsProcessorManager.GetCommandsProcessor();
|
|
22487
|
+
}
|
|
22488
|
+
get LogicalStudioParentTask() {
|
|
22489
|
+
if (this.StudioParentTask === null && !super.isMainProg()) {
|
|
22490
|
+
return GuiDataCollection.MGDataTable.GetMainProgByCtlIdx(this.ContextID, this._ctlIdx);
|
|
22491
|
+
}
|
|
22492
|
+
return this.StudioParentTask;
|
|
22493
|
+
}
|
|
22494
|
+
get KnownToServer() {
|
|
22495
|
+
return this._knownToServer;
|
|
22496
|
+
}
|
|
22497
|
+
set Transaction(value) {
|
|
22498
|
+
this.DataviewManager.CurrentDataviewManager.Transaction = value;
|
|
22499
|
+
}
|
|
22500
|
+
get Transaction() {
|
|
22501
|
+
return this.DataviewManager.CurrentDataviewManager.Transaction;
|
|
22502
|
+
}
|
|
22503
|
+
get TaskDefinitionId() {
|
|
22504
|
+
if (this.taskDefinitionId === null) {
|
|
22505
|
+
this.taskDefinitionId = new TaskDefinitionId(this._ctlIdx, this.ProgramIsn, this.TaskIsn, this._isPrg);
|
|
22506
|
+
}
|
|
22507
|
+
return this.taskDefinitionId;
|
|
22508
|
+
}
|
|
22509
|
+
static get IsBlockingBatch() {
|
|
22510
|
+
return false;
|
|
22511
|
+
}
|
|
22489
22512
|
constructor(parent) {
|
|
22490
22513
|
super();
|
|
22491
22514
|
this._dvCache = null;
|
|
@@ -22554,47 +22577,6 @@ class Task extends TaskBase {
|
|
|
22554
22577
|
}
|
|
22555
22578
|
this.constructor_1(parent);
|
|
22556
22579
|
}
|
|
22557
|
-
get ParentTask() {
|
|
22558
|
-
return this._parentTask;
|
|
22559
|
-
}
|
|
22560
|
-
set TryingToCommit(value) {
|
|
22561
|
-
this._tryingToCommit = value;
|
|
22562
|
-
}
|
|
22563
|
-
get TryingToCommit() {
|
|
22564
|
-
return this._tryingToCommit;
|
|
22565
|
-
}
|
|
22566
|
-
get TaskService() {
|
|
22567
|
-
if (this._taskService == null)
|
|
22568
|
-
this._taskService = new RemoteTaskService();
|
|
22569
|
-
return this._taskService;
|
|
22570
|
-
}
|
|
22571
|
-
static get CommandsProcessor() {
|
|
22572
|
-
return CommandsProcessorManager.GetCommandsProcessor();
|
|
22573
|
-
}
|
|
22574
|
-
get LogicalStudioParentTask() {
|
|
22575
|
-
if (this.StudioParentTask === null && !super.isMainProg()) {
|
|
22576
|
-
return GuiDataCollection.MGDataTable.GetMainProgByCtlIdx(this.ContextID, this._ctlIdx);
|
|
22577
|
-
}
|
|
22578
|
-
return this.StudioParentTask;
|
|
22579
|
-
}
|
|
22580
|
-
get KnownToServer() {
|
|
22581
|
-
return this._knownToServer;
|
|
22582
|
-
}
|
|
22583
|
-
set Transaction(value) {
|
|
22584
|
-
this.DataviewManager.CurrentDataviewManager.Transaction = value;
|
|
22585
|
-
}
|
|
22586
|
-
get Transaction() {
|
|
22587
|
-
return this.DataviewManager.CurrentDataviewManager.Transaction;
|
|
22588
|
-
}
|
|
22589
|
-
get TaskDefinitionId() {
|
|
22590
|
-
if (this.taskDefinitionId === null) {
|
|
22591
|
-
this.taskDefinitionId = new TaskDefinitionId(this._ctlIdx, this.ProgramIsn, this.TaskIsn, this._isPrg);
|
|
22592
|
-
}
|
|
22593
|
-
return this.taskDefinitionId;
|
|
22594
|
-
}
|
|
22595
|
-
static get IsBlockingBatch() {
|
|
22596
|
-
return false;
|
|
22597
|
-
}
|
|
22598
22580
|
constructor_0() {
|
|
22599
22581
|
this.ActionManager = new ActionManager();
|
|
22600
22582
|
this.DataView = new DataView(this);
|
|
@@ -24991,6 +24973,9 @@ class CompMainPrgTable {
|
|
|
24991
24973
|
}
|
|
24992
24974
|
|
|
24993
24975
|
class MGData {
|
|
24976
|
+
get ForceModal() {
|
|
24977
|
+
return this.forceModal;
|
|
24978
|
+
}
|
|
24994
24979
|
constructor(toClient, toServer, id, parent, isModal, forceModal) {
|
|
24995
24980
|
this._expHandlers = null;
|
|
24996
24981
|
this._id = 0;
|
|
@@ -25011,9 +24996,6 @@ class MGData {
|
|
|
25011
24996
|
else
|
|
25012
24997
|
this.constructor_1(id, parent, isModal, forceModal);
|
|
25013
24998
|
}
|
|
25014
|
-
get ForceModal() {
|
|
25015
|
-
return this.forceModal;
|
|
25016
|
-
}
|
|
25017
24999
|
constructor_0(id, parent, isModal) {
|
|
25018
25000
|
this._timerHandlers = new HandlersTable();
|
|
25019
25001
|
this._expHandlers = new HandlersTable();
|
|
@@ -29015,13 +28997,6 @@ class VerifyCommand extends ClientTargetedCommandBase {
|
|
|
29015
28997
|
}
|
|
29016
28998
|
|
|
29017
28999
|
class EnhancedVerifyCommand extends VerifyCommand {
|
|
29018
|
-
constructor() {
|
|
29019
|
-
super();
|
|
29020
|
-
this._buttonsID = '\0';
|
|
29021
|
-
this._image = '\0';
|
|
29022
|
-
this._returnValStr = null;
|
|
29023
|
-
this._returnVal = null;
|
|
29024
|
-
}
|
|
29025
29000
|
async ProcessMessageBoxResponse(task, returnValue) {
|
|
29026
29001
|
if (task !== null)
|
|
29027
29002
|
await Operation.setoperVerifyReturnValue(returnValue, this._returnVal);
|
|
@@ -29052,6 +29027,13 @@ class EnhancedVerifyCommand extends VerifyCommand {
|
|
|
29052
29027
|
break;
|
|
29053
29028
|
}
|
|
29054
29029
|
}
|
|
29030
|
+
constructor() {
|
|
29031
|
+
super();
|
|
29032
|
+
this._buttonsID = '\0';
|
|
29033
|
+
this._image = '\0';
|
|
29034
|
+
this._returnValStr = null;
|
|
29035
|
+
this._returnVal = null;
|
|
29036
|
+
}
|
|
29055
29037
|
}
|
|
29056
29038
|
|
|
29057
29039
|
class ResetRangeCommand extends ClientTargetedCommandBase {
|
|
@@ -29148,12 +29130,6 @@ class ResetLocateCommand extends ClientTargetedCommandBase {
|
|
|
29148
29130
|
}
|
|
29149
29131
|
|
|
29150
29132
|
class ResultCommand extends ClientTargetedCommandBase {
|
|
29151
|
-
constructor() {
|
|
29152
|
-
super();
|
|
29153
|
-
this._isNull = false;
|
|
29154
|
-
this._attr = StorageAttribute.NONE;
|
|
29155
|
-
this._val = null;
|
|
29156
|
-
}
|
|
29157
29133
|
async Execute(res) {
|
|
29158
29134
|
if (this._isNull)
|
|
29159
29135
|
res.SetResultValue(null, StorageAttribute.NONE);
|
|
@@ -29179,6 +29155,12 @@ class ResultCommand extends ClientTargetedCommandBase {
|
|
|
29179
29155
|
break;
|
|
29180
29156
|
}
|
|
29181
29157
|
}
|
|
29158
|
+
constructor() {
|
|
29159
|
+
super();
|
|
29160
|
+
this._isNull = false;
|
|
29161
|
+
this._attr = StorageAttribute.NONE;
|
|
29162
|
+
this._val = null;
|
|
29163
|
+
}
|
|
29182
29164
|
}
|
|
29183
29165
|
|
|
29184
29166
|
class AddSortCommand extends ClientTargetedCommandBase {
|
|
@@ -29543,19 +29525,9 @@ class CommandsTable {
|
|
|
29543
29525
|
}
|
|
29544
29526
|
}
|
|
29545
29527
|
|
|
29546
|
-
let CurrentClientVersion = '4.
|
|
29528
|
+
let CurrentClientVersion = '4.901.0-ang15';
|
|
29547
29529
|
|
|
29548
29530
|
class ClientManager {
|
|
29549
|
-
constructor() {
|
|
29550
|
-
this._globalUniqueSessionId = null;
|
|
29551
|
-
this._buttonIsClicked = false;
|
|
29552
|
-
RuntimeContextBase.Instance.Init(RemoteCommandsProcessor.RC_NO_CONTEXT_ID);
|
|
29553
|
-
LastFocusedManager.Instance.Init(MGDataCollection.Instance);
|
|
29554
|
-
LastFocusedManager.Instance.LastActionTime = Misc.getSystemMilliseconds();
|
|
29555
|
-
RemoteCommandsProcessor.ShouldScrambleAndUnscrambleMessages = true;
|
|
29556
|
-
this._globalUniqueSessionId = UniqueIDUtils.GetUniqueMachineID() + "_";
|
|
29557
|
-
this.RegisterDelegates();
|
|
29558
|
-
}
|
|
29559
29531
|
static get Instance() {
|
|
29560
29532
|
if (ClientManager._instance === null)
|
|
29561
29533
|
ClientManager._instance = new ClientManager();
|
|
@@ -29634,6 +29606,10 @@ class ClientManager {
|
|
|
29634
29606
|
EventsManager.Instance.addGuiTriggeredEventWithTaskAndCodeAndLine(task, InternalInterface.MG_ACT_REC_PREFIX, dvRowIdx);
|
|
29635
29607
|
}
|
|
29636
29608
|
break;
|
|
29609
|
+
case "navigateInTable":
|
|
29610
|
+
if (guiEvent.ControlName === "magicRow")
|
|
29611
|
+
this.handleNavigateInRowEvent(task, guiEvent.Value);
|
|
29612
|
+
break;
|
|
29637
29613
|
case "close":
|
|
29638
29614
|
if (task.IsRoute())
|
|
29639
29615
|
EventsManager.Instance.AddRouterClosedEvent(task);
|
|
@@ -29668,6 +29644,38 @@ class ClientManager {
|
|
|
29668
29644
|
break;
|
|
29669
29645
|
}
|
|
29670
29646
|
}
|
|
29647
|
+
handleNavigateInRowEvent(task, evt) {
|
|
29648
|
+
let internalEvt = InternalInterface.MG_ACT_NONE;
|
|
29649
|
+
evt = evt.toLowerCase();
|
|
29650
|
+
switch (evt) {
|
|
29651
|
+
case "begin-page":
|
|
29652
|
+
internalEvt = InternalInterface.MG_ACT_TBL_BEGPAGE;
|
|
29653
|
+
break;
|
|
29654
|
+
case "previous-page":
|
|
29655
|
+
internalEvt = InternalInterface.MG_ACT_TBL_PRVPAGE;
|
|
29656
|
+
break;
|
|
29657
|
+
case "end-page":
|
|
29658
|
+
internalEvt = InternalInterface.MG_ACT_TBL_ENDPAGE;
|
|
29659
|
+
break;
|
|
29660
|
+
case "next-page":
|
|
29661
|
+
internalEvt = InternalInterface.MG_ACT_TBL_NXTPAGE;
|
|
29662
|
+
break;
|
|
29663
|
+
case "previous-line":
|
|
29664
|
+
internalEvt = InternalInterface.MG_ACT_TBL_PRVLINE;
|
|
29665
|
+
break;
|
|
29666
|
+
case "next-line":
|
|
29667
|
+
internalEvt = InternalInterface.MG_ACT_TBL_NXTLINE;
|
|
29668
|
+
break;
|
|
29669
|
+
case "begin-table":
|
|
29670
|
+
internalEvt = InternalInterface.MG_ACT_TBL_BEGTBL;
|
|
29671
|
+
break;
|
|
29672
|
+
case "end-table":
|
|
29673
|
+
internalEvt = InternalInterface.MG_ACT_TBL_ENDTBL;
|
|
29674
|
+
break;
|
|
29675
|
+
}
|
|
29676
|
+
if (internalEvt != InternalInterface.MG_ACT_NONE)
|
|
29677
|
+
EventsManager.Instance.addGuiTriggeredEventWithTaskAndCode(task, internalEvt);
|
|
29678
|
+
}
|
|
29671
29679
|
ConfirmationClosed(res) {
|
|
29672
29680
|
Commands.ResolvePromise(res);
|
|
29673
29681
|
}
|
|
@@ -29719,6 +29727,16 @@ class ClientManager {
|
|
|
29719
29727
|
Logger.Instance.WriteToLog("-----------------------------------------------------------------------------", true);
|
|
29720
29728
|
}
|
|
29721
29729
|
}
|
|
29730
|
+
constructor() {
|
|
29731
|
+
this._globalUniqueSessionId = null;
|
|
29732
|
+
this._buttonIsClicked = false;
|
|
29733
|
+
RuntimeContextBase.Instance.Init(RemoteCommandsProcessor.RC_NO_CONTEXT_ID);
|
|
29734
|
+
LastFocusedManager.Instance.Init(MGDataCollection.Instance);
|
|
29735
|
+
LastFocusedManager.Instance.LastActionTime = Misc.getSystemMilliseconds();
|
|
29736
|
+
RemoteCommandsProcessor.ShouldScrambleAndUnscrambleMessages = true;
|
|
29737
|
+
this._globalUniqueSessionId = UniqueIDUtils.GetUniqueMachineID() + "_";
|
|
29738
|
+
this.RegisterDelegates();
|
|
29739
|
+
}
|
|
29722
29740
|
InitGuiManager() {
|
|
29723
29741
|
Manager.EventsManager = EventsManager.Instance;
|
|
29724
29742
|
Manager.DefaultServerName = ServerConfig.Instance.getServer();
|