@magic-xpa/engine 4.801.0-dev481.307 → 4.801.0-dev481.310
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 +2 -10
- package/esm2020/src/CurrentClientVersion.mjs +2 -2
- package/esm2020/src/GUIManager.mjs +1 -2
- package/esm2020/src/GuiEventsProcessor.mjs +2 -19
- package/esm2020/src/commands/ClientToServer/CommandFactory.mjs +35 -35
- package/esm2020/src/commands/ClientToServer/ComputeEventCommand.mjs +1 -1
- package/esm2020/src/commands/ClientToServer/ContextTimeoutResetCommand.mjs +7 -7
- package/esm2020/src/commands/ClientToServer/QueryCommand.mjs +1 -1
- package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +2 -2
- package/esm2020/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +1 -1
- package/esm2020/src/commands/ServerToClient/VerifyCommand.mjs +1 -3
- package/esm2020/src/communications/InteractiveCommunicationsFailureHandler.mjs +1 -1
- package/esm2020/src/data/DvCache.mjs +4 -29
- package/esm2020/src/env/Environment.mjs +2 -5
- package/esm2020/src/env/LanguageData.mjs +1 -2
- package/esm2020/src/event/Event.mjs +1 -3
- package/esm2020/src/event/EventsManager.mjs +2 -16
- package/esm2020/src/gui/MgControl.mjs +1 -3
- package/esm2020/src/gui/MgForm.mjs +1 -2
- package/esm2020/src/http/client/HttpClientBase.mjs +1 -17
- package/esm2020/src/remote/RemoteCommandsProcessor.mjs +1 -10
- package/esm2020/src/rt/DataviewHeaders.mjs +2 -4
- package/esm2020/src/rt/LastFocusedManager.mjs +1 -5
- package/esm2020/src/rt/Operation.mjs +2 -12
- package/esm2020/src/tasks/Task.mjs +2 -5
- package/esm2020/src/util/FlowMonitorQueue.mjs +1 -3
- package/esm2020/src/util/MgPriorityBlockingQueue.mjs +1 -3
- package/fesm2015/magic-xpa-engine.mjs +162 -286
- package/fesm2015/magic-xpa-engine.mjs.map +1 -1
- package/fesm2020/magic-xpa-engine.mjs +155 -276
- package/fesm2020/magic-xpa-engine.mjs.map +1 -1
- package/package.json +4 -4
- package/src/ClientManager.d.ts +0 -3
- package/src/GuiEventsProcessor.d.ts +0 -2
- package/src/commands/ClientToServer/CommandFactory.d.ts +35 -35
- package/src/commands/ClientToServer/ContextTimeoutResetCommand.d.ts +2 -2
- package/src/commands/ServerToClient/VerifyCommand.d.ts +0 -1
- package/src/data/DvCache.d.ts +2 -6
- package/src/env/Environment.d.ts +0 -2
- package/src/event/Event.d.ts +0 -1
- package/src/event/EventsManager.d.ts +0 -1
- package/src/http/client/HttpClientBase.d.ts +0 -2
- package/src/remote/RemoteCommandsProcessor.d.ts +0 -4
- package/src/rt/DataviewHeaders.d.ts +1 -3
- package/src/rt/Operation.d.ts +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __awaiter } from 'tslib';
|
|
2
2
|
import { StringBuilder, Int32, NString, ApplicationException, NNumber, List, Debug, Char, RefParam, NumberStyles, HashUtils, DateTime, Dictionary, Stack, NChar, isNullOrUndefined, WebException, Thread, Encoding, Exception, isUndefined, Hashtable, NotImplementedException, Array_Enumerator, ISO_8859_1_Encoding, Int64 } from '@magic-xpa/mscorelib';
|
|
3
|
-
import { XMLConstants, StorageAttribute, ViewRefreshMode, InternalInterface, Logger, StorageAttributeCheck, StrUtil, SubformType, TableBehaviour, MgControlType, ScrollBarThumbType, ForceExit, XmlParser, Misc, Base64, Priority, SyncExecutionHelper, Queue, Constants, DateTimeUtils, Logger_LogLevels, Logger_MessageDirection, MsgInterface, RequestInfo, OSEnvironment, JSON_Utils, UtilDateJpn, UtilStrByteMode,
|
|
4
|
-
import { RecordUtils, GuiFieldBase, ExpVal, BlobType, FieldDef, GuiTaskBase,
|
|
3
|
+
import { XMLConstants, StorageAttribute, ViewRefreshMode, InternalInterface, Logger, StorageAttributeCheck, StrUtil, SubformType, TableBehaviour, MgControlType, ScrollBarThumbType, ForceExit, XmlParser, Misc, Base64, Priority, SyncExecutionHelper, Queue, Constants, DateTimeUtils, Logger_LogLevels, Logger_MessageDirection, MsgInterface, RequestInfo, OSEnvironment, JSON_Utils, UtilDateJpn, UtilStrByteMode, PICInterface, WindowType, BrkScope, RaiseAt, CtrlButtonTypeGui } from '@magic-xpa/utils';
|
|
4
|
+
import { RecordUtils, GuiFieldBase, ExpVal, BlobType, FieldDef, GuiTaskBase, MgControlBase, PropInterface, GuiDataCollection, CommandType, Commands, HtmlProperties, ControlTable, Modifiers, KeyboardItem, TaskDefinitionIdTableSaxHandler, DisplayConvertor, MgTimer, GuiConstants, RuntimeContextBase, UsernamePasswordCredentials, Styles, Manager, NUM_TYPE, VectorType, GuiExpressionEvaluator, ExpressionInterface, PIC, DataModificationTypes, GuiDataViewBase, ObjectReferencesCollection, EMPTY_DCREF, ObjectReferenceBase, PropTable, FieldsTable as FieldsTable$1, DcValuesBuilderBase, MgFormBase, GuiEnvironment, TaskDefinitionId, Events, Helps, FocusManager, EventsProcessor, UIBridge } from '@magic-xpa/gui';
|
|
5
5
|
import { HttpHeaders, HttpErrorResponse } from '@angular/common/http';
|
|
6
6
|
import { timer, Subject } from 'rxjs';
|
|
7
7
|
|
|
@@ -1424,157 +1424,6 @@ class OpeningTaskDetails {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
1426
|
|
|
1427
|
-
class TasksTable {
|
|
1428
|
-
constructor() {
|
|
1429
|
-
this._tasks = null;
|
|
1430
|
-
this._tasks = new List();
|
|
1431
|
-
}
|
|
1432
|
-
fillData(mgdata, openingTaskDetails, parser) {
|
|
1433
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1434
|
-
while (yield this.initInnerObjects(parser.getNextTag(), mgdata, openingTaskDetails)) {
|
|
1435
|
-
}
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
initInnerObjects(foundTagName, mgdata, openingTaskDetails) {
|
|
1439
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1440
|
-
let result;
|
|
1441
|
-
if (foundTagName === null) {
|
|
1442
|
-
result = false;
|
|
1443
|
-
}
|
|
1444
|
-
else {
|
|
1445
|
-
if (foundTagName === XMLConstants.MG_TAG_TASK) {
|
|
1446
|
-
let task = TasksTable.createNewtask();
|
|
1447
|
-
this._tasks.push(task);
|
|
1448
|
-
yield task.fillData(mgdata, openingTaskDetails);
|
|
1449
|
-
result = true;
|
|
1450
|
-
}
|
|
1451
|
-
else {
|
|
1452
|
-
result = false;
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
return result;
|
|
1456
|
-
});
|
|
1457
|
-
}
|
|
1458
|
-
addTask(task) {
|
|
1459
|
-
this._tasks.push(task);
|
|
1460
|
-
}
|
|
1461
|
-
removeTask(task) {
|
|
1462
|
-
this._tasks.Remove(task);
|
|
1463
|
-
}
|
|
1464
|
-
getTask(tasktagOrIdx) {
|
|
1465
|
-
if (arguments.length === 1 && (tasktagOrIdx === null || typeof tasktagOrIdx === "undefined" || tasktagOrIdx.constructor === String)) {
|
|
1466
|
-
return this.getTask_0(tasktagOrIdx);
|
|
1467
|
-
}
|
|
1468
|
-
return this.getTask_1(tasktagOrIdx);
|
|
1469
|
-
}
|
|
1470
|
-
getTask_0(tasktag) {
|
|
1471
|
-
let result;
|
|
1472
|
-
for (let i = 0; i < this._tasks.length; i = i + 1) {
|
|
1473
|
-
let task = this._tasks.get_Item(i);
|
|
1474
|
-
if (tasktag === task.getTaskTag()) {
|
|
1475
|
-
result = task;
|
|
1476
|
-
return result;
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
result = null;
|
|
1480
|
-
return result;
|
|
1481
|
-
}
|
|
1482
|
-
getTask_1(idx) {
|
|
1483
|
-
let result;
|
|
1484
|
-
if (idx >= 0 && idx < this._tasks.length) {
|
|
1485
|
-
result = this._tasks.get_Item(idx);
|
|
1486
|
-
}
|
|
1487
|
-
else {
|
|
1488
|
-
result = null;
|
|
1489
|
-
}
|
|
1490
|
-
return result;
|
|
1491
|
-
}
|
|
1492
|
-
getSize() {
|
|
1493
|
-
return this._tasks.length;
|
|
1494
|
-
}
|
|
1495
|
-
buildXML(message) {
|
|
1496
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1497
|
-
for (let i = 0; i < this.getSize(); i = i + 1) {
|
|
1498
|
-
yield this.getTask(i).buildXML(message);
|
|
1499
|
-
}
|
|
1500
|
-
});
|
|
1501
|
-
}
|
|
1502
|
-
setTaskAt(task, index) {
|
|
1503
|
-
if (this._tasks.length <= index) {
|
|
1504
|
-
this._tasks.SetSize(index + 1);
|
|
1505
|
-
}
|
|
1506
|
-
this._tasks.set_Item(index, task);
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
TasksTable.createNewtask = null;
|
|
1510
|
-
|
|
1511
|
-
class LastFocusedManager {
|
|
1512
|
-
constructor() {
|
|
1513
|
-
this._lastFocusedTasks = null;
|
|
1514
|
-
this.LastActionTime = 0;
|
|
1515
|
-
}
|
|
1516
|
-
Init(mgDataTable) {
|
|
1517
|
-
this._lastFocusedTasks = new TasksTable();
|
|
1518
|
-
}
|
|
1519
|
-
getCurrTask() {
|
|
1520
|
-
let rtEvnt = AccessHelper.eventsManager.getLastRtEvent();
|
|
1521
|
-
return (rtEvnt !== null && rtEvnt.getTask() !== null && rtEvnt.getTask().GetContextTask() !== null)
|
|
1522
|
-
? this.getLastFocusedTask(rtEvnt.getTask().GetContextTask().getMgdID())
|
|
1523
|
-
: this.getLastFocusedTask();
|
|
1524
|
-
}
|
|
1525
|
-
getLastFocusedTask(mgdID) {
|
|
1526
|
-
if (arguments.length === 0)
|
|
1527
|
-
return this._lastFocusedTasks.getTask(AccessHelper.mgDataTable.currMgdID);
|
|
1528
|
-
else
|
|
1529
|
-
return this._lastFocusedTasks.getTask(mgdID);
|
|
1530
|
-
}
|
|
1531
|
-
setLastFocusedTask(iTask) {
|
|
1532
|
-
let currFocusedTask = this.getLastFocusedTask();
|
|
1533
|
-
if (currFocusedTask !== null && currFocusedTask !== iTask) {
|
|
1534
|
-
let oldForm = currFocusedTask.getForm();
|
|
1535
|
-
}
|
|
1536
|
-
let task = iTask;
|
|
1537
|
-
let currMgdID = task.getMgdID();
|
|
1538
|
-
this._lastFocusedTasks.setTaskAt(task, currMgdID);
|
|
1539
|
-
}
|
|
1540
|
-
clean(index) {
|
|
1541
|
-
LastFocusedManager.deleteLastFocusedControlAt(index);
|
|
1542
|
-
if (this._lastFocusedTasks !== null) {
|
|
1543
|
-
this._lastFocusedTasks.setTaskAt(null, index);
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
static getLastFocusedControl(mgdID) {
|
|
1547
|
-
if (arguments.length === 1)
|
|
1548
|
-
return LastFocusedManager.getLastFocusedControl_1(mgdID);
|
|
1549
|
-
else
|
|
1550
|
-
return LastFocusedManager.getLastFocusedControl_0();
|
|
1551
|
-
}
|
|
1552
|
-
static getLastFocusedControl_0() {
|
|
1553
|
-
return LastFocusedManager._lastFocusedControls.getCtrl(AccessHelper.mgDataTable.currMgdID);
|
|
1554
|
-
}
|
|
1555
|
-
static getLastFocusedControl_1(mgdID) {
|
|
1556
|
-
return LastFocusedManager._lastFocusedControls.getCtrl(mgdID);
|
|
1557
|
-
}
|
|
1558
|
-
static deleteLastFocusedControlAt(index) {
|
|
1559
|
-
if (LastFocusedManager._lastFocusedControls !== null && LastFocusedManager._lastFocusedControls.getCtrl(index) != null) {
|
|
1560
|
-
LastFocusedManager._lastFocusedControls.deleteControlAt(index);
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
|
-
static setLastFocusedControlAt(ctrl, currMgdID) {
|
|
1564
|
-
LastFocusedManager._lastFocusedControls.setControlAt(ctrl, currMgdID);
|
|
1565
|
-
}
|
|
1566
|
-
static setLastFocusedControl(task, mgControl) {
|
|
1567
|
-
let currMgdID = task.getMgdID();
|
|
1568
|
-
Debug.Assert(mgControl === null || task === mgControl.getForm().getTask());
|
|
1569
|
-
LastFocusedManager.LastFocusMgdID = currMgdID;
|
|
1570
|
-
LastFocusedManager.setLastFocusedControlAt(mgControl, currMgdID);
|
|
1571
|
-
LastFocusedManager.Instance.setLastFocusedTask(task);
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
LastFocusedManager.Instance = new LastFocusedManager();
|
|
1575
|
-
LastFocusedManager._lastFocusedControls = new ControlTable();
|
|
1576
|
-
LastFocusedManager.LastFocusMgdID = 0;
|
|
1577
|
-
|
|
1578
1427
|
class MgControl extends MgControlBase {
|
|
1579
1428
|
constructor(type, taskOrParentMgForm, parentControlOrParentControlIdx) {
|
|
1580
1429
|
if (arguments.length === 0)
|
|
@@ -1922,12 +1771,10 @@ class MgControl extends MgControlBase {
|
|
|
1922
1771
|
}
|
|
1923
1772
|
refreshAndSetItemsListForRadioButton(line, execComputeChoice) {
|
|
1924
1773
|
const _super = Object.create(null, {
|
|
1925
|
-
refreshAndSetItemsListForRadioButton: { get: () => super.refreshAndSetItemsListForRadioButton }
|
|
1926
|
-
getForm: { get: () => super.getForm }
|
|
1774
|
+
refreshAndSetItemsListForRadioButton: { get: () => super.refreshAndSetItemsListForRadioButton }
|
|
1927
1775
|
});
|
|
1928
1776
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1929
1777
|
yield _super.refreshAndSetItemsListForRadioButton.call(this, line, execComputeChoice);
|
|
1930
|
-
let lastFocusedTask = LastFocusedManager.Instance.getLastFocusedTask(_super.getForm.call(this).getTask().getMgdID());
|
|
1931
1778
|
});
|
|
1932
1779
|
}
|
|
1933
1780
|
getSubformTask() {
|
|
@@ -2056,6 +1903,153 @@ class MgPriorityQueue {
|
|
|
2056
1903
|
}
|
|
2057
1904
|
MgPriorityQueue.DEFAULT_INITIAL_CAPACITY = 11;
|
|
2058
1905
|
|
|
1906
|
+
class TasksTable {
|
|
1907
|
+
constructor() {
|
|
1908
|
+
this._tasks = null;
|
|
1909
|
+
this._tasks = new List();
|
|
1910
|
+
}
|
|
1911
|
+
fillData(mgdata, openingTaskDetails, parser) {
|
|
1912
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1913
|
+
while (yield this.initInnerObjects(parser.getNextTag(), mgdata, openingTaskDetails)) {
|
|
1914
|
+
}
|
|
1915
|
+
});
|
|
1916
|
+
}
|
|
1917
|
+
initInnerObjects(foundTagName, mgdata, openingTaskDetails) {
|
|
1918
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1919
|
+
let result;
|
|
1920
|
+
if (foundTagName === null) {
|
|
1921
|
+
result = false;
|
|
1922
|
+
}
|
|
1923
|
+
else {
|
|
1924
|
+
if (foundTagName === XMLConstants.MG_TAG_TASK) {
|
|
1925
|
+
let task = TasksTable.createNewtask();
|
|
1926
|
+
this._tasks.push(task);
|
|
1927
|
+
yield task.fillData(mgdata, openingTaskDetails);
|
|
1928
|
+
result = true;
|
|
1929
|
+
}
|
|
1930
|
+
else {
|
|
1931
|
+
result = false;
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
return result;
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1937
|
+
addTask(task) {
|
|
1938
|
+
this._tasks.push(task);
|
|
1939
|
+
}
|
|
1940
|
+
removeTask(task) {
|
|
1941
|
+
this._tasks.Remove(task);
|
|
1942
|
+
}
|
|
1943
|
+
getTask(tasktagOrIdx) {
|
|
1944
|
+
if (arguments.length === 1 && (tasktagOrIdx === null || typeof tasktagOrIdx === "undefined" || tasktagOrIdx.constructor === String)) {
|
|
1945
|
+
return this.getTask_0(tasktagOrIdx);
|
|
1946
|
+
}
|
|
1947
|
+
return this.getTask_1(tasktagOrIdx);
|
|
1948
|
+
}
|
|
1949
|
+
getTask_0(tasktag) {
|
|
1950
|
+
let result;
|
|
1951
|
+
for (let i = 0; i < this._tasks.length; i = i + 1) {
|
|
1952
|
+
let task = this._tasks.get_Item(i);
|
|
1953
|
+
if (tasktag === task.getTaskTag()) {
|
|
1954
|
+
result = task;
|
|
1955
|
+
return result;
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
result = null;
|
|
1959
|
+
return result;
|
|
1960
|
+
}
|
|
1961
|
+
getTask_1(idx) {
|
|
1962
|
+
let result;
|
|
1963
|
+
if (idx >= 0 && idx < this._tasks.length) {
|
|
1964
|
+
result = this._tasks.get_Item(idx);
|
|
1965
|
+
}
|
|
1966
|
+
else {
|
|
1967
|
+
result = null;
|
|
1968
|
+
}
|
|
1969
|
+
return result;
|
|
1970
|
+
}
|
|
1971
|
+
getSize() {
|
|
1972
|
+
return this._tasks.length;
|
|
1973
|
+
}
|
|
1974
|
+
buildXML(message) {
|
|
1975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1976
|
+
for (let i = 0; i < this.getSize(); i = i + 1) {
|
|
1977
|
+
yield this.getTask(i).buildXML(message);
|
|
1978
|
+
}
|
|
1979
|
+
});
|
|
1980
|
+
}
|
|
1981
|
+
setTaskAt(task, index) {
|
|
1982
|
+
if (this._tasks.length <= index) {
|
|
1983
|
+
this._tasks.SetSize(index + 1);
|
|
1984
|
+
}
|
|
1985
|
+
this._tasks.set_Item(index, task);
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
TasksTable.createNewtask = null;
|
|
1989
|
+
|
|
1990
|
+
class LastFocusedManager {
|
|
1991
|
+
constructor() {
|
|
1992
|
+
this._lastFocusedTasks = null;
|
|
1993
|
+
this.LastActionTime = 0;
|
|
1994
|
+
}
|
|
1995
|
+
Init(mgDataTable) {
|
|
1996
|
+
this._lastFocusedTasks = new TasksTable();
|
|
1997
|
+
}
|
|
1998
|
+
getCurrTask() {
|
|
1999
|
+
let rtEvnt = AccessHelper.eventsManager.getLastRtEvent();
|
|
2000
|
+
return (rtEvnt !== null && rtEvnt.getTask() !== null && rtEvnt.getTask().GetContextTask() !== null)
|
|
2001
|
+
? this.getLastFocusedTask(rtEvnt.getTask().GetContextTask().getMgdID())
|
|
2002
|
+
: this.getLastFocusedTask();
|
|
2003
|
+
}
|
|
2004
|
+
getLastFocusedTask(mgdID) {
|
|
2005
|
+
if (arguments.length === 0)
|
|
2006
|
+
return this._lastFocusedTasks.getTask(AccessHelper.mgDataTable.currMgdID);
|
|
2007
|
+
else
|
|
2008
|
+
return this._lastFocusedTasks.getTask(mgdID);
|
|
2009
|
+
}
|
|
2010
|
+
setLastFocusedTask(iTask) {
|
|
2011
|
+
let task = iTask;
|
|
2012
|
+
let currMgdID = task.getMgdID();
|
|
2013
|
+
this._lastFocusedTasks.setTaskAt(task, currMgdID);
|
|
2014
|
+
}
|
|
2015
|
+
clean(index) {
|
|
2016
|
+
LastFocusedManager.deleteLastFocusedControlAt(index);
|
|
2017
|
+
if (this._lastFocusedTasks !== null) {
|
|
2018
|
+
this._lastFocusedTasks.setTaskAt(null, index);
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
static getLastFocusedControl(mgdID) {
|
|
2022
|
+
if (arguments.length === 1)
|
|
2023
|
+
return LastFocusedManager.getLastFocusedControl_1(mgdID);
|
|
2024
|
+
else
|
|
2025
|
+
return LastFocusedManager.getLastFocusedControl_0();
|
|
2026
|
+
}
|
|
2027
|
+
static getLastFocusedControl_0() {
|
|
2028
|
+
return LastFocusedManager._lastFocusedControls.getCtrl(AccessHelper.mgDataTable.currMgdID);
|
|
2029
|
+
}
|
|
2030
|
+
static getLastFocusedControl_1(mgdID) {
|
|
2031
|
+
return LastFocusedManager._lastFocusedControls.getCtrl(mgdID);
|
|
2032
|
+
}
|
|
2033
|
+
static deleteLastFocusedControlAt(index) {
|
|
2034
|
+
if (LastFocusedManager._lastFocusedControls !== null && LastFocusedManager._lastFocusedControls.getCtrl(index) != null) {
|
|
2035
|
+
LastFocusedManager._lastFocusedControls.deleteControlAt(index);
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
static setLastFocusedControlAt(ctrl, currMgdID) {
|
|
2039
|
+
LastFocusedManager._lastFocusedControls.setControlAt(ctrl, currMgdID);
|
|
2040
|
+
}
|
|
2041
|
+
static setLastFocusedControl(task, mgControl) {
|
|
2042
|
+
let currMgdID = task.getMgdID();
|
|
2043
|
+
Debug.Assert(mgControl === null || task === mgControl.getForm().getTask());
|
|
2044
|
+
LastFocusedManager.LastFocusMgdID = currMgdID;
|
|
2045
|
+
LastFocusedManager.setLastFocusedControlAt(mgControl, currMgdID);
|
|
2046
|
+
LastFocusedManager.Instance.setLastFocusedTask(task);
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
LastFocusedManager.Instance = new LastFocusedManager();
|
|
2050
|
+
LastFocusedManager._lastFocusedControls = new ControlTable();
|
|
2051
|
+
LastFocusedManager.LastFocusMgdID = 0;
|
|
2052
|
+
|
|
2059
2053
|
class Event {
|
|
2060
2054
|
constructor() {
|
|
2061
2055
|
this.Exp = null;
|
|
@@ -2073,7 +2067,6 @@ class Event {
|
|
|
2073
2067
|
this._userDefinedFuncNameHashCode = 0;
|
|
2074
2068
|
this._userEvtDesc = '';
|
|
2075
2069
|
this._userEvtIdx = Int32.MinValue;
|
|
2076
|
-
this.ownerTaskDefinitionId = null;
|
|
2077
2070
|
this.InternalEvent = 0;
|
|
2078
2071
|
this.PublicName = null;
|
|
2079
2072
|
this.UserEvt = null;
|
|
@@ -2227,7 +2220,6 @@ class Event {
|
|
|
2227
2220
|
handler.parse(xmlBuffer);
|
|
2228
2221
|
}
|
|
2229
2222
|
SetTaskDefinitionId(taskDefinitionId) {
|
|
2230
|
-
this.ownerTaskDefinitionId = taskDefinitionId;
|
|
2231
2223
|
}
|
|
2232
2224
|
findUserEvent() {
|
|
2233
2225
|
if (this._type === ConstInterface.EVENT_TYPE_USER && this.UserEvt === null) {
|
|
@@ -3448,7 +3440,6 @@ class MgPriorityBlockingQueue {
|
|
|
3448
3440
|
return this._queue.peek();
|
|
3449
3441
|
}
|
|
3450
3442
|
size() {
|
|
3451
|
-
let size;
|
|
3452
3443
|
return this._queue.Size;
|
|
3453
3444
|
}
|
|
3454
3445
|
remainingCapacity() {
|
|
@@ -3458,7 +3449,6 @@ class MgPriorityBlockingQueue {
|
|
|
3458
3449
|
this._queue.clear();
|
|
3459
3450
|
}
|
|
3460
3451
|
isEmpty() {
|
|
3461
|
-
let result;
|
|
3462
3452
|
return this._queue.isEmpty();
|
|
3463
3453
|
}
|
|
3464
3454
|
}
|
|
@@ -4218,12 +4208,10 @@ FlowMonitorQueue.ACT_FLW_OPER = 'T';
|
|
|
4218
4208
|
FlowMonitorQueue.LongTimePattern = "HH:mm:ss:SSS";
|
|
4219
4209
|
class ActivityItem {
|
|
4220
4210
|
constructor(enclosingInstance, type, id) {
|
|
4221
|
-
this._enclosingInstance = null;
|
|
4222
4211
|
this._id = 0;
|
|
4223
4212
|
this._type = null;
|
|
4224
4213
|
this._info = null;
|
|
4225
4214
|
this._time = null;
|
|
4226
|
-
this._enclosingInstance = enclosingInstance;
|
|
4227
4215
|
this._type = type;
|
|
4228
4216
|
this._id = id;
|
|
4229
4217
|
this.setTime();
|
|
@@ -4664,8 +4652,6 @@ HttpClientEvents.GetSessionCounter_Event = null;
|
|
|
4664
4652
|
HttpClientEvents.CheckAndSetSessionCounter_Event = null;
|
|
4665
4653
|
HttpClientEvents.ComputeAndLogRequestInfo_Event = null;
|
|
4666
4654
|
|
|
4667
|
-
const HTTP_EXPECT100CONTINUE = "Expect100Continue";
|
|
4668
|
-
const USE_HIGHEST_SECURITY_PROTOCOL = "UseHighestSecurityProtocol";
|
|
4669
4655
|
var RequestMethod;
|
|
4670
4656
|
(function (RequestMethod) {
|
|
4671
4657
|
RequestMethod[RequestMethod["Get"] = 0] = "Get";
|
|
@@ -4790,20 +4776,6 @@ class HttpClientBase {
|
|
|
4790
4776
|
}
|
|
4791
4777
|
return headersStr;
|
|
4792
4778
|
}
|
|
4793
|
-
static GetHTTPExpect100Continue() {
|
|
4794
|
-
let result = true;
|
|
4795
|
-
let executionProperty = HttpClientEvents.GetExecutionProperty(HTTP_EXPECT100CONTINUE);
|
|
4796
|
-
if (!NString.IsNullOrEmpty(executionProperty))
|
|
4797
|
-
result = (executionProperty.toUpperCase() === "Y");
|
|
4798
|
-
return result;
|
|
4799
|
-
}
|
|
4800
|
-
static GetUseHighestSecurityProtocol() {
|
|
4801
|
-
let result = false;
|
|
4802
|
-
let executionProperty = HttpClientEvents.GetExecutionProperty(USE_HIGHEST_SECURITY_PROTOCOL);
|
|
4803
|
-
if (!NString.IsNullOrEmpty(executionProperty))
|
|
4804
|
-
result = (executionProperty.toUpperCase() === "Y");
|
|
4805
|
-
return result;
|
|
4806
|
-
}
|
|
4807
4779
|
sendRequestToServer(httpMethod, urlString, httpHeaders, requestContent, contentFromServer) {
|
|
4808
4780
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4809
4781
|
return Promise.resolve();
|
|
@@ -6026,9 +5998,7 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
6026
5998
|
AccessHelper.eventsManager.CheckAndShowSpinner(true);
|
|
6027
5999
|
});
|
|
6028
6000
|
let isError = new RefParam(false);
|
|
6029
|
-
RemoteCommandsProcessor.requestNumber++;
|
|
6030
6001
|
responseStr = yield HttpManager.GetInstance().GetContent(requestedURL, requestContent, useCache, isError);
|
|
6031
|
-
RemoteCommandsProcessor.totalResponseDataLength += RemoteCommandsProcessor.totalResponseDataLength + (!isNullOrUndefined(responseStr) ? responseStr.length : 0);
|
|
6032
6002
|
spinnerTimerSubscription.unsubscribe();
|
|
6033
6003
|
spinnerTimerSubscription = null;
|
|
6034
6004
|
if (isError.value) {
|
|
@@ -6122,10 +6092,7 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
6122
6092
|
let extraMessageStr = isLoggingResponse ? 'Response ⤵' : 'Request ⤵';
|
|
6123
6093
|
if (isLoggingResponse) {
|
|
6124
6094
|
this._requestInfo.roundtripTime = roundTrip;
|
|
6125
|
-
RemoteCommandsProcessor.totalTimeForHTTPRequests += roundTrip;
|
|
6126
6095
|
}
|
|
6127
|
-
else
|
|
6128
|
-
RemoteCommandsProcessor.totalRequestDataLength += contentLength;
|
|
6129
6096
|
Logger.Instance.WriteRequestInfoToLog(this._requestInfo, extraMessageStr);
|
|
6130
6097
|
if (isLoggingResponse)
|
|
6131
6098
|
this._requestInfo.clear();
|
|
@@ -6207,10 +6174,6 @@ RemoteCommandsProcessor._instance = null;
|
|
|
6207
6174
|
RemoteCommandsProcessor.IsSessionReInitializing = false;
|
|
6208
6175
|
RemoteCommandsProcessor.lastExceptionMessage = null;
|
|
6209
6176
|
RemoteCommandsProcessor.InitialUrl = null;
|
|
6210
|
-
RemoteCommandsProcessor.requestNumber = 0;
|
|
6211
|
-
RemoteCommandsProcessor.totalTimeForHTTPRequests = 0;
|
|
6212
|
-
RemoteCommandsProcessor.totalRequestDataLength = 0;
|
|
6213
|
-
RemoteCommandsProcessor.totalResponseDataLength = 0;
|
|
6214
6177
|
RemoteCommandsProcessor.WEB_COMMUNICATION_PROTOCOL_VERSION = "14002";
|
|
6215
6178
|
RemoteCommandsProcessor._shouldScrambleAndUnscrambleMessages = false;
|
|
6216
6179
|
class HandshakeResponse {
|
|
@@ -6618,7 +6581,6 @@ class LanguageData {
|
|
|
6618
6581
|
try {
|
|
6619
6582
|
if (this._mlsContent != null) {
|
|
6620
6583
|
if (this._mlsContent.length > 0) {
|
|
6621
|
-
let contentLen = this._mlsContent.length;
|
|
6622
6584
|
let linePairs = 0;
|
|
6623
6585
|
let srcLine = this._mlsContent + 3;
|
|
6624
6586
|
this._mlsStrings = new Hashtable();
|
|
@@ -6688,7 +6650,6 @@ class GUIManager {
|
|
|
6688
6650
|
}
|
|
6689
6651
|
abort_0(form) {
|
|
6690
6652
|
if (form !== null) {
|
|
6691
|
-
let mainProgByCtlIdx = AccessHelper.mgDataTable.GetMainProgByCtlIdx(-1, form.getTask().getCtlIdx());
|
|
6692
6653
|
Manager.Abort(form);
|
|
6693
6654
|
}
|
|
6694
6655
|
}
|
|
@@ -8268,7 +8229,7 @@ class RecomputeCommand extends ClientOriginatedCommandTaskTag {
|
|
|
8268
8229
|
helper.SerializeTaskTag(this.TaskTag);
|
|
8269
8230
|
helper.SerializeFldId(this.FldId);
|
|
8270
8231
|
if (this.IgnoreSubformRecompute)
|
|
8271
|
-
helper.SerializeAttribute(ConstInterface.MG_ATTR_IGNORE_SUBFORM_RECOMPUTE,
|
|
8232
|
+
helper.SerializeAttribute(ConstInterface.MG_ATTR_IGNORE_SUBFORM_RECOMPUTE, '1');
|
|
8272
8233
|
return helper.GetString();
|
|
8273
8234
|
}
|
|
8274
8235
|
getCommandInfo() {
|
|
@@ -8412,7 +8373,7 @@ class ContextTimeoutResetCommand extends EventCommand {
|
|
|
8412
8373
|
SerializeCommandData() {
|
|
8413
8374
|
let helper = new CommandSerializationHelper();
|
|
8414
8375
|
helper.SerializeMagicEvent(this.MagicEvent);
|
|
8415
|
-
helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT,
|
|
8376
|
+
helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT, '1');
|
|
8416
8377
|
return helper.GetString();
|
|
8417
8378
|
}
|
|
8418
8379
|
getCommandInfo() {
|
|
@@ -8510,7 +8471,7 @@ class CommandFactory {
|
|
|
8510
8471
|
}
|
|
8511
8472
|
if (argList.getSize() > 1) {
|
|
8512
8473
|
try {
|
|
8513
|
-
cmd.KeepUserSort = ((yield argList.getArgValue(1, StorageAttribute.BOOLEAN, 0)) ===
|
|
8474
|
+
cmd.KeepUserSort = ((yield argList.getArgValue(1, StorageAttribute.BOOLEAN, 0)) === '1');
|
|
8514
8475
|
}
|
|
8515
8476
|
catch (e) {
|
|
8516
8477
|
cmd.KeepUserSort = false;
|
|
@@ -8645,7 +8606,7 @@ class CommandFactory {
|
|
|
8645
8606
|
execOperCommand.DitIdx = ditIdx;
|
|
8646
8607
|
let cmd = execOperCommand;
|
|
8647
8608
|
if (value !== null && value.length === 0)
|
|
8648
|
-
cmd.Val =
|
|
8609
|
+
cmd.Val = ' ';
|
|
8649
8610
|
else
|
|
8650
8611
|
cmd.Val = value;
|
|
8651
8612
|
return cmd;
|
|
@@ -8658,7 +8619,7 @@ class CommandFactory {
|
|
|
8658
8619
|
execOperCommand.DitIdx = ditIdx;
|
|
8659
8620
|
let cmd = execOperCommand;
|
|
8660
8621
|
if (value !== null && value.length === 0)
|
|
8661
|
-
cmd.Val =
|
|
8622
|
+
cmd.Val = ' ';
|
|
8662
8623
|
else
|
|
8663
8624
|
cmd.Val = value;
|
|
8664
8625
|
return cmd;
|
|
@@ -8853,7 +8814,6 @@ class Environment {
|
|
|
8853
8814
|
this._contextInactivityWarningTime = 0;
|
|
8854
8815
|
this._toolitipTimeout = 0;
|
|
8855
8816
|
this._contextUnloadTimeout = 0;
|
|
8856
|
-
this._accessTest = false;
|
|
8857
8817
|
this._canReplaceDecimalSeparator = false;
|
|
8858
8818
|
this._codePage = 0;
|
|
8859
8819
|
this._dateSeparator = '\0';
|
|
@@ -8935,7 +8895,6 @@ class Environment {
|
|
|
8935
8895
|
let valueStr;
|
|
8936
8896
|
let hashKey;
|
|
8937
8897
|
let env;
|
|
8938
|
-
let utilImeJpn = Manager.UtilImeJpn;
|
|
8939
8898
|
env = new EnvironmentDetails();
|
|
8940
8899
|
for (let j = 0; j < tokensVector.length; j += 2) {
|
|
8941
8900
|
attribute = (tokensVector.get_Item(j));
|
|
@@ -8977,7 +8936,6 @@ class Environment {
|
|
|
8977
8936
|
this._lowHigh = XmlParser.getBoolean(valueStr);
|
|
8978
8937
|
break;
|
|
8979
8938
|
case ConstInterface.MG_ATTR_ACCESS_TEST:
|
|
8980
|
-
this._accessTest = XmlParser.getBoolean(valueStr);
|
|
8981
8939
|
break;
|
|
8982
8940
|
case ConstInterface.MG_ATTR_SPECIAL_TEXT_SIZE_FACTORING:
|
|
8983
8941
|
this._specialTextSizeFactoring = XmlParser.getBoolean(valueStr);
|
|
@@ -9599,18 +9557,14 @@ class Operation {
|
|
|
9599
9557
|
this._execOnClient = false;
|
|
9600
9558
|
this._exp = null;
|
|
9601
9559
|
this._field = null;
|
|
9602
|
-
this._globalParamsShouldBeCopied = false;
|
|
9603
9560
|
this._image = '\0';
|
|
9604
9561
|
this._incremental = false;
|
|
9605
|
-
this._methodNameSnippet = null;
|
|
9606
9562
|
this._mode = '\0';
|
|
9607
|
-
this._prgDescription = null;
|
|
9608
9563
|
this._publicName = null;
|
|
9609
9564
|
this._returnVal = null;
|
|
9610
9565
|
this._rtEvt = null;
|
|
9611
9566
|
this._serverId = -1;
|
|
9612
9567
|
this.calledTaskDefinitionId = null;
|
|
9613
|
-
this._show = CallOsShow.Normal;
|
|
9614
9568
|
this._subformCtrlName = null;
|
|
9615
9569
|
this._subtype = '\0';
|
|
9616
9570
|
this._task = null;
|
|
@@ -9684,7 +9638,6 @@ class Operation {
|
|
|
9684
9638
|
initElements(tokensVector, taskRef) {
|
|
9685
9639
|
let attribute, valueStr;
|
|
9686
9640
|
let expId;
|
|
9687
|
-
let isGuiThreadExecution = false;
|
|
9688
9641
|
for (let j = 0; j < tokensVector.length; j += 2) {
|
|
9689
9642
|
attribute = (tokensVector.get_Item(j));
|
|
9690
9643
|
valueStr = (tokensVector.get_Item(j + 1));
|
|
@@ -9744,7 +9697,6 @@ class Operation {
|
|
|
9744
9697
|
this._syncData.setVal(taskRef, valueStr);
|
|
9745
9698
|
break;
|
|
9746
9699
|
case ConstInterface.MG_ATTR_SHOW:
|
|
9747
|
-
this._show = XmlParser.getInt(valueStr);
|
|
9748
9700
|
break;
|
|
9749
9701
|
case ConstInterface.MG_ATTR_CND:
|
|
9750
9702
|
this._condExp.setVal(taskRef, valueStr);
|
|
@@ -9772,10 +9724,8 @@ class Operation {
|
|
|
9772
9724
|
this._publicName = valueStr;
|
|
9773
9725
|
break;
|
|
9774
9726
|
case ConstInterface.MG_ATTR_PRG_DESCRIPTION:
|
|
9775
|
-
this._prgDescription = valueStr;
|
|
9776
9727
|
break;
|
|
9777
9728
|
case ConstInterface.MG_ATTR_CPY_GLB_PRMS:
|
|
9778
|
-
this._globalParamsShouldBeCopied = XmlParser.getBoolean(valueStr);
|
|
9779
9729
|
break;
|
|
9780
9730
|
case ConstInterface.MG_ATTR_EXEC_ON_SERVER:
|
|
9781
9731
|
this._execOnServer = XmlParser.getBoolean(valueStr);
|
|
@@ -9803,10 +9753,8 @@ class Operation {
|
|
|
9803
9753
|
this._errLogAppend = XmlParser.getBoolean(valueStr);
|
|
9804
9754
|
break;
|
|
9805
9755
|
case ConstInterface.MG_ATTR_OPER_METHODNAME:
|
|
9806
|
-
this._methodNameSnippet = valueStr;
|
|
9807
9756
|
break;
|
|
9808
9757
|
case ConstInterface.MG_ATTR_IS_GUI_THREAD_EXECUTION:
|
|
9809
|
-
isGuiThreadExecution = XmlParser.getBoolean(valueStr);
|
|
9810
9758
|
break;
|
|
9811
9759
|
case ConstInterface.MG_ATTR_IS_ROUTE:
|
|
9812
9760
|
this._isRoute = XmlParser.getBoolean(valueStr);
|
|
@@ -19469,17 +19417,12 @@ class DvCache {
|
|
|
19469
19417
|
this._cacheTable = null;
|
|
19470
19418
|
this._deletedList = null;
|
|
19471
19419
|
this._task = null;
|
|
19472
|
-
this._cacheSize = 0;
|
|
19473
|
-
this._recordsBeforeCurrentView = 0;
|
|
19474
|
-
this._totalRecordsCount = 0;
|
|
19475
19420
|
this._task = tsk;
|
|
19476
19421
|
this._cacheTable = new Hashtable(100, 0.7);
|
|
19477
19422
|
this._deletedList = new List();
|
|
19478
|
-
this._cacheSize = 0;
|
|
19479
19423
|
}
|
|
19480
19424
|
putInCache(repOfOriginal) {
|
|
19481
19425
|
let hashKey = repOfOriginal.getDvPosValue();
|
|
19482
|
-
let insertedSize = repOfOriginal.getSize() * (repOfOriginal.getCurrRec()).getRecSize();
|
|
19483
19426
|
if (this._cacheTable.get_Item(hashKey) !== null)
|
|
19484
19427
|
this.removeDvFromCache(hashKey, false);
|
|
19485
19428
|
repOfOriginal.setCacheLRU();
|
|
@@ -19487,15 +19430,11 @@ class DvCache {
|
|
|
19487
19430
|
repOfOriginal.zeroServerCurrRec();
|
|
19488
19431
|
this._cacheTable.set_Item(hashKey, repOfOriginal);
|
|
19489
19432
|
this._deletedList.Remove(hashKey);
|
|
19490
|
-
this._cacheSize += insertedSize;
|
|
19491
|
-
this._recordsBeforeCurrentView = repOfOriginal.RecordsBeforeCurrentView;
|
|
19492
|
-
this._totalRecordsCount = repOfOriginal.TotalRecordsCount;
|
|
19493
19433
|
return true;
|
|
19494
19434
|
}
|
|
19495
19435
|
removeDvFromCache(DvPosValue, updateDel) {
|
|
19496
19436
|
let rep = this._cacheTable.get_Item(DvPosValue);
|
|
19497
19437
|
if (rep !== null) {
|
|
19498
|
-
this._cacheSize -= (rep.getSize() * (rep.getCurrRec()).getRecSize());
|
|
19499
19438
|
if (updateDel)
|
|
19500
19439
|
this._deletedList.push(DvPosValue);
|
|
19501
19440
|
this._cacheTable.Remove(DvPosValue);
|
|
@@ -19504,10 +19443,10 @@ class DvCache {
|
|
|
19504
19443
|
return false;
|
|
19505
19444
|
}
|
|
19506
19445
|
getDeletedListToXML() {
|
|
19507
|
-
let list =
|
|
19446
|
+
let list = '';
|
|
19508
19447
|
for (let i = 0; i < this._deletedList.length; i++) {
|
|
19509
19448
|
if (i > 0)
|
|
19510
|
-
list = list +
|
|
19449
|
+
list = list + ',';
|
|
19511
19450
|
list += this._deletedList.get_Item(i).toString();
|
|
19512
19451
|
}
|
|
19513
19452
|
return list;
|
|
@@ -19521,21 +19460,6 @@ class DvCache {
|
|
|
19521
19460
|
cached = cached.replicate();
|
|
19522
19461
|
return cached;
|
|
19523
19462
|
}
|
|
19524
|
-
getLastUsedDv() {
|
|
19525
|
-
let currentTimeStamp = Misc.getSystemMilliseconds();
|
|
19526
|
-
let lruDiff = -1;
|
|
19527
|
-
let lruDvPos = -1;
|
|
19528
|
-
let keysList = this._cacheTable.Keys;
|
|
19529
|
-
while (keysList.MoveNext()) {
|
|
19530
|
-
let current = this._cacheTable.get_Item(keysList.Current);
|
|
19531
|
-
let diff = currentTimeStamp - current.getCacheLRU();
|
|
19532
|
-
if (diff > lruDiff) {
|
|
19533
|
-
lruDiff = diff;
|
|
19534
|
-
lruDvPos = current.getDvPosValue();
|
|
19535
|
-
}
|
|
19536
|
-
}
|
|
19537
|
-
return lruDvPos;
|
|
19538
|
-
}
|
|
19539
19463
|
clearCache() {
|
|
19540
19464
|
let dvKeysList = new List(this._cacheTable.Keys);
|
|
19541
19465
|
for (let i = 0; i < dvKeysList.length; i++) {
|
|
@@ -21463,7 +21387,6 @@ class MgForm extends MgFormBase {
|
|
|
21463
21387
|
if (this.isTableWithAbsoluteScrollbar() && this.GetDataview().TotalRecordsCount > 0) {
|
|
21464
21388
|
let recPosOnPage = this.GetDataview().RecordsBeforeCurrentView % this._rowsInPage;
|
|
21465
21389
|
if (recPosOnPage > 0 && this.DisplayLine === 0) {
|
|
21466
|
-
let lastFocusedVal = { guiMgControl: this.getTableCtrl(), Line: recPosOnPage, Val: "" };
|
|
21467
21390
|
yield this.setRowData(-recPosOnPage, false);
|
|
21468
21391
|
}
|
|
21469
21392
|
}
|
|
@@ -22018,10 +21941,8 @@ class RemoteDataviewHeader extends DataviewHeaderBase {
|
|
|
22018
21941
|
}
|
|
22019
21942
|
|
|
22020
21943
|
class DataviewHeaders {
|
|
22021
|
-
constructor(
|
|
21944
|
+
constructor() {
|
|
22022
21945
|
this._dataviewHeaders = null;
|
|
22023
|
-
this._task = null;
|
|
22024
|
-
this._task = task;
|
|
22025
21946
|
this._dataviewHeaders = new Hashtable();
|
|
22026
21947
|
}
|
|
22027
21948
|
fillData(parser) {
|
|
@@ -23884,7 +23805,7 @@ class Task extends TaskBase {
|
|
|
23884
23805
|
this.UserEvtTab.fillData(this, parser);
|
|
23885
23806
|
break;
|
|
23886
23807
|
case ConstInterface.MG_TAG_LINKS:
|
|
23887
|
-
this.DataviewHeadersTable = new DataviewHeaders(
|
|
23808
|
+
this.DataviewHeadersTable = new DataviewHeaders();
|
|
23888
23809
|
this.DataviewHeadersTable.fillData(parser);
|
|
23889
23810
|
break;
|
|
23890
23811
|
case ConstInterface.MG_TAG_SORTS:
|
|
@@ -26021,7 +25942,6 @@ class Task extends TaskBase {
|
|
|
26021
25942
|
static OpenForms(callByDestSubForm) {
|
|
26022
25943
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26023
25944
|
let createdForms = MgForm.CreatedForms;
|
|
26024
|
-
let outMostForm = null;
|
|
26025
25945
|
if (createdForms.Count() > 0) {
|
|
26026
25946
|
let i = 0;
|
|
26027
25947
|
while (i < createdForms.Count()) {
|
|
@@ -26043,8 +25963,6 @@ class Task extends TaskBase {
|
|
|
26043
25963
|
yield Manager.DoFirstRefreshTable(mgForm);
|
|
26044
25964
|
}
|
|
26045
25965
|
if (mgForm.Opened) {
|
|
26046
|
-
if (callByDestSubForm && mgForm.isSubForm())
|
|
26047
|
-
outMostForm = mgForm.getTopMostForm();
|
|
26048
25966
|
createdForms.remove(mgForm);
|
|
26049
25967
|
}
|
|
26050
25968
|
else
|
|
@@ -27236,7 +27154,6 @@ class EventsManager {
|
|
|
27236
27154
|
ExecuteClientContextInactivityTimer() {
|
|
27237
27155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27238
27156
|
let startTime = Misc.getSystemMilliseconds();
|
|
27239
|
-
let currTime;
|
|
27240
27157
|
let clientCtxInactivityTimeout = Environment.Instance.getClientContextInactivityTimeout() * 100;
|
|
27241
27158
|
EventsManager.clientInactivityTimerON = true;
|
|
27242
27159
|
while (EventsManager.clientInactivityTimerON) {
|
|
@@ -27379,7 +27296,6 @@ class EventsManager {
|
|
|
27379
27296
|
if (task !== null)
|
|
27380
27297
|
yield Task.CommandsProcessor.SendMonitorOnly();
|
|
27381
27298
|
else {
|
|
27382
|
-
let mainProg = MGDataCollection.Instance.GetMainProgByCtlIdx(0);
|
|
27383
27299
|
yield Task.CommandsProcessor.SendMonitorOnly();
|
|
27384
27300
|
}
|
|
27385
27301
|
if (rtEvt !== null && rtEvt.isGuiTriggeredEvent()) {
|
|
@@ -27477,7 +27393,6 @@ class EventsManager {
|
|
|
27477
27393
|
let evtCtrl = rtEvt.Control;
|
|
27478
27394
|
if (evtCtrl !== null && evtCtrl.getField() !== null) {
|
|
27479
27395
|
let ctrlVal = Manager.GetCtrlVal(evtCtrl);
|
|
27480
|
-
let evtCtrlval = evtCtrl.Value;
|
|
27481
27396
|
yield evtCtrl.validateAndSetValue(ctrlVal, true);
|
|
27482
27397
|
}
|
|
27483
27398
|
}
|
|
@@ -27531,7 +27446,6 @@ class EventsManager {
|
|
|
27531
27446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27532
27447
|
let kbdItem = evt.getKbdItmAlways();
|
|
27533
27448
|
let keyCode = kbdItem.getKeyCode();
|
|
27534
|
-
let modifier = kbdItem.getModifier();
|
|
27535
27449
|
this._currKbdItem = kbdItem;
|
|
27536
27450
|
if (evt.IgnoreSpecifiedControl) {
|
|
27537
27451
|
ctrl = this.getCurrCtrl();
|
|
@@ -28322,16 +28236,6 @@ class EventsManager {
|
|
|
28322
28236
|
}
|
|
28323
28237
|
});
|
|
28324
28238
|
}
|
|
28325
|
-
moveToLine(form, displayLine, ctrl) {
|
|
28326
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
28327
|
-
let runTimeEvent = new RunTimeEvent(ctrl, displayLine);
|
|
28328
|
-
runTimeEvent.setInternal(InternalInterface.MG_ACT_REC_PREFIX);
|
|
28329
|
-
yield this.handleEvent(runTimeEvent, false);
|
|
28330
|
-
if (ctrl !== null)
|
|
28331
|
-
yield ctrl.invoke();
|
|
28332
|
-
form.SelectRow(true);
|
|
28333
|
-
});
|
|
28334
|
-
}
|
|
28335
28239
|
createEventArguments(evt) {
|
|
28336
28240
|
if (evt.getArgList() === null) {
|
|
28337
28241
|
if (evt.getType() === ConstInterface.EVENT_TYPE_INTERNAL) {
|
|
@@ -28533,8 +28437,6 @@ class EventsManager {
|
|
|
28533
28437
|
return;
|
|
28534
28438
|
doSuffix = refDoSuffix.value;
|
|
28535
28439
|
if (form != null) {
|
|
28536
|
-
let parentId = 0;
|
|
28537
|
-
let prevLine = 0;
|
|
28538
28440
|
if ((task.getMode() !== Constants.TASK_MODE_CREATE) || !task.ConfirmUpdateNo)
|
|
28539
28441
|
yield form.addRec(doSuffix, intEvtCode == InternalInterface.MG_ACT_CRELINE_ABOVE ? true : false);
|
|
28540
28442
|
}
|
|
@@ -29738,7 +29640,7 @@ class EventsManager {
|
|
|
29738
29640
|
((parentDv.getCurrRec())).Synced = true;
|
|
29739
29641
|
parentDv.setChanged(true);
|
|
29740
29642
|
let dataViewExecuteLocalUpdatesCommand = CommandFactory.CreateDataViewCommand(parentTask.getTaskTag(), DataViewCommandType.ExecuteLocalUpdates);
|
|
29741
|
-
|
|
29643
|
+
yield parentTask.DataviewManager.Execute(dataViewExecuteLocalUpdatesCommand);
|
|
29742
29644
|
}
|
|
29743
29645
|
});
|
|
29744
29646
|
}
|
|
@@ -29920,13 +29822,6 @@ class GuiEventsProcessor extends EventsProcessor {
|
|
|
29920
29822
|
EventsManager.Instance.addToTail(rtEvt);
|
|
29921
29823
|
}
|
|
29922
29824
|
}
|
|
29923
|
-
static processEnableActs(guiMgCtrl, actList, enable) {
|
|
29924
|
-
let mgControl = guiMgCtrl;
|
|
29925
|
-
let rtEvt = new RunTimeEvent(mgControl, true);
|
|
29926
|
-
rtEvt.setInternal(enable ? InternalInterface.MG_ACT_ENABLE_EVENTS : InternalInterface.MG_ACT_DISABLE_EVENTS);
|
|
29927
|
-
rtEvt.setActEnableList(actList);
|
|
29928
|
-
EventsManager.Instance.addToTail(rtEvt);
|
|
29929
|
-
}
|
|
29930
29825
|
static OnNonParkableLastParkedCtrl(ctrl) {
|
|
29931
29826
|
}
|
|
29932
29827
|
static processSelection(val, guiMgCtrl, line, produceClick) {
|
|
@@ -29966,16 +29861,6 @@ class GuiEventsProcessor extends EventsProcessor {
|
|
|
29966
29861
|
static SaveLastClickInfo(controlName, X, Y, offsetX, offsetY, LastClickCoordinatesAreInPixels) {
|
|
29967
29862
|
RuntimeContextBase.Instance.SaveLastClickInfo(controlName, X, Y, offsetX, offsetY, LastClickCoordinatesAreInPixels);
|
|
29968
29863
|
}
|
|
29969
|
-
static ProcessPress(guiMgForm, guiMgCtrl, line) {
|
|
29970
|
-
let mgControl = guiMgCtrl;
|
|
29971
|
-
if (mgControl == null)
|
|
29972
|
-
Manager.EventsManager.addGuiTriggeredEventWithTaskAndCode(guiMgForm.getTask(), InternalInterface.MG_ACT_HIT);
|
|
29973
|
-
else if (mgControl.isSubform())
|
|
29974
|
-
mgControl.OnSubformClick();
|
|
29975
|
-
else
|
|
29976
|
-
Manager.EventsManager.addGuiTriggeredEventWithCtrlAndCodeAndLine(mgControl, InternalInterface.MG_ACT_CTRL_HIT, line);
|
|
29977
|
-
Manager.EventsManager.addGuiTriggeredEventWithCtrlAndCodeAndLine(mgControl, InternalInterface.MG_ACT_PRESS, line);
|
|
29978
|
-
}
|
|
29979
29864
|
static IsLogonRTL() {
|
|
29980
29865
|
return ServerConfig.Instance.IsLogonRTL();
|
|
29981
29866
|
}
|
|
@@ -30288,7 +30173,6 @@ class VerifyCommand extends ClientTargetedCommandBase {
|
|
|
30288
30173
|
this._text = null;
|
|
30289
30174
|
this._display = '\0';
|
|
30290
30175
|
this._mode = '\0';
|
|
30291
|
-
this._sendAck = true;
|
|
30292
30176
|
}
|
|
30293
30177
|
Execute(res) {
|
|
30294
30178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -30347,7 +30231,6 @@ class VerifyCommand extends ClientTargetedCommandBase {
|
|
|
30347
30231
|
this._mode = value[0];
|
|
30348
30232
|
break;
|
|
30349
30233
|
case ConstInterface.MG_ATTR_ACK:
|
|
30350
|
-
this._sendAck = (XmlParser.getInt(value) !== 0);
|
|
30351
30234
|
break;
|
|
30352
30235
|
default:
|
|
30353
30236
|
super.HandleAttribute(attribute, value);
|
|
@@ -30903,12 +30786,10 @@ class CommandsTable {
|
|
|
30903
30786
|
}
|
|
30904
30787
|
}
|
|
30905
30788
|
|
|
30906
|
-
let CurrentClientVersion = '4.801.0-dev481.
|
|
30789
|
+
let CurrentClientVersion = '4.801.0-dev481.310';
|
|
30907
30790
|
|
|
30908
30791
|
class ClientManager {
|
|
30909
30792
|
constructor() {
|
|
30910
|
-
this._guiEventsProcessor = null;
|
|
30911
|
-
this._tableCacheManager = null;
|
|
30912
30793
|
this._delayInProgress = false;
|
|
30913
30794
|
this._debugClient = null;
|
|
30914
30795
|
this._globalUniqueSessionId = null;
|
|
@@ -31128,7 +31009,7 @@ class ClientManager {
|
|
|
31128
31009
|
HttpManager.setNativeHttpClient(httpClient);
|
|
31129
31010
|
let loaded = yield ClientManager.Instance.LoadExecutionProps();
|
|
31130
31011
|
if (loaded) {
|
|
31131
|
-
|
|
31012
|
+
new GuiEventsProcessor();
|
|
31132
31013
|
ClientManager.Instance.InitGuiManager();
|
|
31133
31014
|
ClientManager.Instance.InitCircularReferencesBypasses();
|
|
31134
31015
|
let versionString = CurrentClientVersion === '0.0.0.0' ? "Development mode" : "Version : " + CurrentClientVersion;
|
|
@@ -31200,11 +31081,6 @@ class ClientManager {
|
|
|
31200
31081
|
GetGlobalUniqueSessionID() {
|
|
31201
31082
|
return this._globalUniqueSessionId;
|
|
31202
31083
|
}
|
|
31203
|
-
static getExecutionPropertiesFileName() {
|
|
31204
|
-
let fullyQualifiedName = null;
|
|
31205
|
-
let lastPathSeparator = fullyQualifiedName.lastIndexOf('\\');
|
|
31206
|
-
return NString.Remove(fullyQualifiedName, lastPathSeparator + 1, fullyQualifiedName.length - lastPathSeparator - 1) + ConstInterface.EXECUTION_PROPERTIES_FILE_NAME;
|
|
31207
|
-
}
|
|
31208
31084
|
static GetControlPictureMask(taskId, controlName) {
|
|
31209
31085
|
let pic = null;
|
|
31210
31086
|
let task = MGDataCollection.Instance.GetTaskByID(taskId);
|