@magic-xpa/engine 4.801.0-dev481.306 → 4.801.0-dev481.309

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.
Files changed (62) hide show
  1. package/esm2020/src/ClientManager.mjs +2 -11
  2. package/esm2020/src/CommandsTable.mjs +12 -13
  3. package/esm2020/src/CurrentClientVersion.mjs +2 -2
  4. package/esm2020/src/GUIManager.mjs +1 -2
  5. package/esm2020/src/GuiEventsProcessor.mjs +2 -19
  6. package/esm2020/src/commands/ClientToServer/CommandFactory.mjs +35 -35
  7. package/esm2020/src/commands/ClientToServer/ComputeEventCommand.mjs +1 -1
  8. package/esm2020/src/commands/ClientToServer/ContextTimeoutResetCommand.mjs +7 -7
  9. package/esm2020/src/commands/ClientToServer/QueryCommand.mjs +1 -1
  10. package/esm2020/src/commands/ClientToServer/RecomputeCommand.mjs +2 -2
  11. package/esm2020/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +1 -1
  12. package/esm2020/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +1 -1
  13. package/esm2020/src/commands/ServerToClient/OpenURLCommand.mjs +1 -2
  14. package/esm2020/src/commands/ServerToClient/ResetLocateCommand.mjs +5 -5
  15. package/esm2020/src/commands/ServerToClient/VerifyCommand.mjs +1 -3
  16. package/esm2020/src/communications/InteractiveCommunicationsFailureHandler.mjs +1 -1
  17. package/esm2020/src/data/DataSourceIdKey.mjs +1 -9
  18. package/esm2020/src/data/DataView.mjs +52 -54
  19. package/esm2020/src/data/DvCache.mjs +4 -29
  20. package/esm2020/src/env/Environment.mjs +2 -5
  21. package/esm2020/src/env/LanguageData.mjs +1 -2
  22. package/esm2020/src/event/ActionManager.mjs +2 -5
  23. package/esm2020/src/event/Event.mjs +249 -355
  24. package/esm2020/src/event/EventHandler.mjs +1 -2
  25. package/esm2020/src/event/EventHandlerPosition.mjs +1 -2
  26. package/esm2020/src/event/EventsManager.mjs +21 -43
  27. package/esm2020/src/exp/ExpressionEvaluator.mjs +1 -6
  28. package/esm2020/src/gui/MgControl.mjs +1 -3
  29. package/esm2020/src/gui/MgForm.mjs +1 -2
  30. package/esm2020/src/http/client/HttpClientBase.mjs +1 -17
  31. package/esm2020/src/remote/RemoteCommandsProcessor.mjs +1 -10
  32. package/esm2020/src/rt/DataviewHeaders.mjs +2 -6
  33. package/esm2020/src/rt/DataviewHeadersSaxHandler.mjs +1 -2
  34. package/esm2020/src/rt/LastFocusedManager.mjs +1 -5
  35. package/esm2020/src/rt/Operation.mjs +2 -12
  36. package/esm2020/src/tasks/Task.mjs +3 -17
  37. package/esm2020/src/util/FlowMonitorQueue.mjs +1 -14
  38. package/esm2020/src/util/MgPriorityBlockingQueue.mjs +1 -3
  39. package/fesm2015/magic-xpa-engine.mjs +516 -799
  40. package/fesm2015/magic-xpa-engine.mjs.map +1 -1
  41. package/fesm2020/magic-xpa-engine.mjs +509 -789
  42. package/fesm2020/magic-xpa-engine.mjs.map +1 -1
  43. package/package.json +4 -4
  44. package/src/ClientManager.d.ts +0 -3
  45. package/src/CommandsTable.d.ts +5 -5
  46. package/src/GuiEventsProcessor.d.ts +0 -2
  47. package/src/commands/ClientToServer/CommandFactory.d.ts +35 -35
  48. package/src/commands/ClientToServer/ContextTimeoutResetCommand.d.ts +2 -2
  49. package/src/commands/ServerToClient/ResetLocateCommand.d.ts +2 -2
  50. package/src/commands/ServerToClient/VerifyCommand.d.ts +0 -1
  51. package/src/data/DataSourceIdKey.d.ts +0 -5
  52. package/src/data/DataView.d.ts +0 -1
  53. package/src/data/DvCache.d.ts +2 -6
  54. package/src/env/Environment.d.ts +0 -2
  55. package/src/event/ActionManager.d.ts +1 -3
  56. package/src/event/Event.d.ts +5 -22
  57. package/src/event/EventsManager.d.ts +1 -5
  58. package/src/http/client/HttpClientBase.d.ts +0 -2
  59. package/src/remote/RemoteCommandsProcessor.d.ts +0 -4
  60. package/src/rt/DataviewHeaders.d.ts +1 -3
  61. package/src/rt/Operation.d.ts +0 -4
  62. package/src/util/FlowMonitorQueue.d.ts +0 -11
@@ -1,7 +1,7 @@
1
1
  import { __awaiter } from 'tslib';
2
- import { StringBuilder, Int32, NString, ApplicationException, NNumber, List, Debug, Char, RefParam, NumberStyles, Exception, HashUtils, DateTime, Dictionary, Stack, NChar, isNullOrUndefined, WebException, Thread, Encoding, 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, CallOsShow, PICInterface, WindowType, BrkScope, RaiseAt, CtrlButtonTypeGui } from '@magic-xpa/utils';
4
- import { RecordUtils, GuiFieldBase, ExpVal, BlobType, FieldDef, GuiTaskBase, ControlTable, MgControlBase, PropInterface, GuiDataCollection, CommandType, Commands, HtmlProperties, Modifiers, KeyboardItem, TaskDefinitionIdTableSaxHandler, DisplayConvertor, PIC, MgTimer, GuiConstants, RuntimeContextBase, UsernamePasswordCredentials, Styles, Manager, NUM_TYPE, VectorType, GuiExpressionEvaluator, ExpressionInterface, DataModificationTypes, GuiDataViewBase, ObjectReferencesCollection, EMPTY_DCREF, ObjectReferenceBase, PropTable, FieldsTable as FieldsTable$1, DcValuesBuilderBase, MgFormBase, GuiEnvironment, TaskDefinitionId, Events, Helps, FocusManager, EventsProcessor, UIBridge } from '@magic-xpa/gui';
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, 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,14 +1903,158 @@ 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;
2062
2056
  this._forceExit = ForceExit.None;
2063
2057
  this.kbdItm = null;
2064
- this._osCommandShow = 0;
2065
- this._osCommandText = null;
2066
- this._osCommandWait = false;
2067
2058
  this._paramAttrs = null;
2068
2059
  this._paramNulls = null;
2069
2060
  this._paramVals = null;
@@ -2074,11 +2065,9 @@ class Event {
2074
2065
  this._type = Char.MinValue;
2075
2066
  this._userDefinedFuncName = null;
2076
2067
  this._userDefinedFuncNameHashCode = 0;
2077
- this._userEvtDesc = "";
2068
+ this._userEvtDesc = '';
2078
2069
  this._userEvtIdx = Int32.MinValue;
2079
- this.ownerTaskDefinitionId = null;
2080
2070
  this.InternalEvent = 0;
2081
- this.PrgDescription = null;
2082
2071
  this.PublicName = null;
2083
2072
  this.UserEvt = null;
2084
2073
  this.UserEvtTaskTag = null;
@@ -2119,7 +2108,7 @@ class Event {
2119
2108
  this.InitUserData(taskRef, userValue);
2120
2109
  }
2121
2110
  else
2122
- Logger.Instance.WriteExceptionToLogWithMsg("in Event.FillData() out of string bounds");
2111
+ Logger.Instance.WriteExceptionToLogWithMsg('in Event.FillData() out of string bounds');
2123
2112
  }
2124
2113
  InitInnerObjects(xmlParser) {
2125
2114
  let nextTag = xmlParser.getNextTag();
@@ -2195,7 +2184,7 @@ class Event {
2195
2184
  case ConstInterface.MG_TAG_USR_DEF_FUC_RET_EXP_ATTR:
2196
2185
  break;
2197
2186
  default:
2198
- Logger.Instance.WriteExceptionToLogWithMsg(NString.Format("There is no such tag in Event class. Insert case to Event.initElements for {0}", attribute));
2187
+ Logger.Instance.WriteExceptionToLogWithMsg(NString.Format('There is no such tag in Event class. Insert case to Event.initElements for {0}', attribute));
2199
2188
  break;
2200
2189
  }
2201
2190
  }
@@ -2203,7 +2192,7 @@ class Event {
2203
2192
  this.kbdItm = new KeyboardItem(keyCode, modifier);
2204
2193
  }
2205
2194
  InitUserData(taskRef, userValue) {
2206
- let comma = userValue.indexOf(",");
2195
+ let comma = userValue.indexOf(',');
2207
2196
  if (comma > -1) {
2208
2197
  let ueTaskId = userValue.substr(0, comma);
2209
2198
  if (taskRef !== null)
@@ -2213,8 +2202,8 @@ class Event {
2213
2202
  if (ueTask !== null) {
2214
2203
  this.UserEvt = ueTask.getUserEvent(ueIdx);
2215
2204
  if (this.UserEvt === null) {
2216
- throw new ApplicationException("in Event.fillData(): user event not found. task id = " + ueTaskId +
2217
- ", user event index = " + ueIdx);
2205
+ throw new ApplicationException('in Event.fillData(): user event not found. task id = ' + ueTaskId +
2206
+ ', user event index = ' + ueIdx);
2218
2207
  }
2219
2208
  this.UserEvtTaskTag = ueTaskId;
2220
2209
  this._userEvtIdx = ueIdx;
@@ -2231,7 +2220,6 @@ class Event {
2231
2220
  handler.parse(xmlBuffer);
2232
2221
  }
2233
2222
  SetTaskDefinitionId(taskDefinitionId) {
2234
- this.ownerTaskDefinitionId = taskDefinitionId;
2235
2223
  }
2236
2224
  findUserEvent() {
2237
2225
  if (this._type === ConstInterface.EVENT_TYPE_USER && this.UserEvt === null) {
@@ -2239,7 +2227,7 @@ class Event {
2239
2227
  if (ueTask !== null)
2240
2228
  this.UserEvt = ueTask.getUserEvent(this._userEvtIdx);
2241
2229
  if (this.UserEvt === null)
2242
- throw new ApplicationException(NString.Format("in Event.findUserEvent(): user event not found. task id = {0} doesn't exist", this.UserEvtTaskTag));
2230
+ throw new ApplicationException(NString.Format('in Event.findUserEvent(): user event not found. task id = {0} doesn\'t exist', this.UserEvtTaskTag));
2243
2231
  }
2244
2232
  }
2245
2233
  equals(evt) {
@@ -2377,7 +2365,7 @@ class Event {
2377
2365
  return this.getBrkLevel(false);
2378
2366
  }
2379
2367
  getBrkLevel_1(flowMonitor) {
2380
- let level = "";
2368
+ let level = '';
2381
2369
  switch (this._type) {
2382
2370
  case ConstInterface.EVENT_TYPE_INTERNAL:
2383
2371
  switch (this.InternalEvent) {
@@ -2422,7 +2410,7 @@ class Event {
2422
2410
  level = flowMonitor ? ConstInterface.BRK_LEVEL_HANDLER_EXPRESSION_FM : ConstInterface.BRK_LEVEL_HANDLER_EXPRESSION + '_' + this.Exp.getId();
2423
2411
  break;
2424
2412
  case ConstInterface.EVENT_TYPE_USER:
2425
- level = (flowMonitor ? (ConstInterface.BRK_LEVEL_HANDLER_USER_FM + ": ") : (ConstInterface.BRK_LEVEL_HANDLER_USER + '_')) + (this.UserEvt != null ? this.UserEvt._userEvtDesc : this._userEvtDesc);
2413
+ level = (flowMonitor ? (ConstInterface.BRK_LEVEL_HANDLER_USER_FM + ': ') : (ConstInterface.BRK_LEVEL_HANDLER_USER + '_')) + (this.UserEvt != null ? this.UserEvt._userEvtDesc : this._userEvtDesc);
2426
2414
  break;
2427
2415
  case ConstInterface.EVENT_TYPE_USER_FUNC:
2428
2416
  level = (flowMonitor ? (ConstInterface.BRK_LEVEL_USER_FUNCTION_FM + ':') : (ConstInterface.BRK_LEVEL_USER_FUNCTION + '_')) + this._userDefinedFuncName;
@@ -2434,580 +2422,580 @@ class Event {
2434
2422
  let description;
2435
2423
  switch (internalEventCode) {
2436
2424
  case InternalInterface.MG_ACT_ABOUT:
2437
- description = "About Magic";
2425
+ description = 'About Magic';
2438
2426
  break;
2439
2427
  case InternalInterface.MG_ACT_ACTION_LIST:
2440
- description = "Action List";
2428
+ description = 'Action List';
2441
2429
  break;
2442
2430
  case InternalInterface.MG_ACT_ADD_HYPERLINK:
2443
- description = "";
2431
+ description = '';
2444
2432
  break;
2445
2433
  case InternalInterface.MG_ACT_ALIGN_LEFT:
2446
- description = "Left";
2434
+ description = 'Left';
2447
2435
  break;
2448
2436
  case InternalInterface.MG_ACT_ALIGN_RIGHT:
2449
- description = "Right";
2437
+ description = 'Right';
2450
2438
  break;
2451
2439
  case InternalInterface.MG_ACT_APPL_PROPERTIES:
2452
- description = "";
2440
+ description = '';
2453
2441
  break;
2454
2442
  case InternalInterface.MG_ACT_APPLICATIONS:
2455
- description = "Applications";
2443
+ description = 'Applications';
2456
2444
  break;
2457
2445
  case InternalInterface.MG_ACT_APPLICATIONS_LIST:
2458
- description = "Applications List";
2446
+ description = 'Applications List';
2459
2447
  break;
2460
2448
  case InternalInterface.MG_ACT_ATTACH_TO_TABLE:
2461
- description = "Attach to Table";
2449
+ description = 'Attach to Table';
2462
2450
  break;
2463
2451
  case InternalInterface.MG_ACT_AUTHORIZE:
2464
- description = "Authorize";
2452
+ description = 'Authorize';
2465
2453
  break;
2466
2454
  case InternalInterface.MG_ACT_EDT_BEGFLD:
2467
- description = "Begin Field";
2455
+ description = 'Begin Field';
2468
2456
  break;
2469
2457
  case InternalInterface.MG_ACT_EDT_BEGFORM:
2470
- description = "Begin Form";
2458
+ description = 'Begin Form';
2471
2459
  break;
2472
2460
  case InternalInterface.MG_ACT_EDT_BEGLINE:
2473
- description = "Begin Line";
2461
+ description = 'Begin Line';
2474
2462
  break;
2475
2463
  case InternalInterface.MG_ACT_EDT_BEGNXTLINE:
2476
- description = "Begin Next Line";
2464
+ description = 'Begin Next Line';
2477
2465
  break;
2478
2466
  case InternalInterface.MG_ACT_EDT_BEGPAGE:
2479
- description = "Begin Page";
2467
+ description = 'Begin Page';
2480
2468
  break;
2481
2469
  case InternalInterface.MG_ACT_TBL_BEGLINE:
2482
- description = "Begin Row";
2470
+ description = 'Begin Row';
2483
2471
  break;
2484
2472
  case InternalInterface.MG_ACT_TBL_BEGPAGE:
2485
- description = "Begin Screen";
2473
+ description = 'Begin Screen';
2486
2474
  break;
2487
2475
  case InternalInterface.MG_ACT_TBL_BEGTBL:
2488
- description = "Begin table";
2476
+ description = 'Begin table';
2489
2477
  break;
2490
2478
  case InternalInterface.MG_ACT_BOTTOM:
2491
- description = "Bottom";
2479
+ description = 'Bottom';
2492
2480
  break;
2493
2481
  case InternalInterface.MG_ACT_BULLET:
2494
- description = "Bullet";
2482
+ description = 'Bullet';
2495
2483
  break;
2496
2484
  case InternalInterface.MG_ACT_BUTTON:
2497
- description = "Button Press";
2485
+ description = 'Button Press';
2498
2486
  break;
2499
2487
  case InternalInterface.MG_ACT_CANCEL:
2500
- description = "Cancel";
2488
+ description = 'Cancel';
2501
2489
  break;
2502
2490
  case InternalInterface.MG_ACT_RT_QUIT:
2503
- description = "Quit";
2491
+ description = 'Quit';
2504
2492
  break;
2505
2493
  case InternalInterface.MG_ACT_CENTER:
2506
- description = "Center";
2494
+ description = 'Center';
2507
2495
  break;
2508
2496
  case InternalInterface.MG_ACT_CHECK_SYNTAX:
2509
- description = "Check Syntax";
2497
+ description = 'Check Syntax';
2510
2498
  break;
2511
2499
  case InternalInterface.MG_ACT_CHECK_TO_END:
2512
- description = "Check to End";
2500
+ description = 'Check to End';
2513
2501
  break;
2514
2502
  case InternalInterface.MG_ACT_CLEAR_TEMPLATE:
2515
- description = "Clear Template";
2503
+ description = 'Clear Template';
2516
2504
  break;
2517
2505
  case InternalInterface.MG_ACT_CLEAR_VALUE:
2518
- description = "Clear Value";
2506
+ description = 'Clear Value';
2519
2507
  break;
2520
2508
  case InternalInterface.MG_ACT_CLOSE:
2521
- description = "Close";
2509
+ description = 'Close';
2522
2510
  break;
2523
2511
  case InternalInterface.MG_ACT_ACT_CLOSE_APPL:
2524
- description = "Close Application";
2512
+ description = 'Close Application';
2525
2513
  break;
2526
2514
  case InternalInterface.MG_ACT_COMMUNICATIONS:
2527
- description = "Communications";
2515
+ description = 'Communications';
2528
2516
  break;
2529
2517
  case InternalInterface.MG_ACT_COMPONENTS:
2530
- description = "Components";
2518
+ description = 'Components';
2531
2519
  break;
2532
2520
  case InternalInterface.MG_ACT_CTRL_HIT:
2533
- description = "Control Hit";
2521
+ description = 'Control Hit';
2534
2522
  break;
2535
2523
  case InternalInterface.MG_ACT_CONTROL_NAME_LIST:
2536
- description = "Control Name List";
2524
+ description = 'Control Name List';
2537
2525
  break;
2538
2526
  case InternalInterface.MG_ACT_CLIP_COPY:
2539
- description = "Copy";
2527
+ description = 'Copy';
2540
2528
  break;
2541
2529
  case InternalInterface.MG_ACT_COPY_LAYOUT:
2542
- description = "Copy Layout";
2530
+ description = 'Copy Layout';
2543
2531
  break;
2544
2532
  case InternalInterface.MG_ACT_COPY_SUBTREE:
2545
- description = "Copy Subtree";
2533
+ description = 'Copy Subtree';
2546
2534
  break;
2547
2535
  case InternalInterface.MG_ACT_CRELINE:
2548
- description = "Create Line";
2536
+ description = 'Create Line';
2549
2537
  break;
2550
2538
  case InternalInterface.MG_ACT_CRELINE_ABOVE:
2551
- description = "Create Line Above";
2539
+ description = 'Create Line Above';
2552
2540
  break;
2553
2541
  case InternalInterface.MG_ACT_CREATE_PARENT:
2554
- description = "Create Parent";
2542
+ description = 'Create Parent';
2555
2543
  break;
2556
2544
  case InternalInterface.MG_ACT_RTO_CREATE:
2557
- description = "Create Records";
2545
+ description = 'Create Records';
2558
2546
  break;
2559
2547
  case InternalInterface.MG_ACT_CREATE_SUBTASK:
2560
- description = "Create Subtask";
2548
+ description = 'Create Subtask';
2561
2549
  break;
2562
2550
  case InternalInterface.MG_ACT_CROSS_REFERENCE:
2563
- description = "Cross Reference";
2551
+ description = 'Cross Reference';
2564
2552
  break;
2565
2553
  case InternalInterface.MG_ACT_CUT:
2566
- description = "Cut";
2554
+ description = 'Cut';
2567
2555
  break;
2568
2556
  case InternalInterface.MG_ACT_DB_TABLES:
2569
- description = "";
2557
+ description = '';
2570
2558
  break;
2571
2559
  case InternalInterface.MG_ACT_DBMS:
2572
- description = "DBMS";
2560
+ description = 'DBMS';
2573
2561
  break;
2574
2562
  case InternalInterface.MG_ACT_DDF_MAKE:
2575
- description = "DDF Make";
2563
+ description = 'DDF Make';
2576
2564
  break;
2577
2565
  case InternalInterface.MG_ACT_DATABASES:
2578
- description = "Databases";
2566
+ description = 'Databases';
2579
2567
  break;
2580
2568
  case InternalInterface.MG_ACT_DEFAULT_LAYOUT:
2581
- description = "Default Layout";
2569
+ description = 'Default Layout';
2582
2570
  break;
2583
2571
  case InternalInterface.MG_ACT_DEFINE_EXPRESSION:
2584
- description = "Define Expression";
2572
+ description = 'Define Expression';
2585
2573
  break;
2586
2574
  case InternalInterface.MG_ACT_EDT_DELCURCH:
2587
- description = "Current Char";
2575
+ description = 'Current Char';
2588
2576
  break;
2589
2577
  case InternalInterface.MG_ACT_EDT_DELPRVCH:
2590
- description = "Previous Char";
2578
+ description = 'Previous Char';
2591
2579
  break;
2592
2580
  case InternalInterface.MG_ACT_DELETE_HYPERLINK:
2593
- description = "Delete Hyperlink";
2581
+ description = 'Delete Hyperlink';
2594
2582
  break;
2595
2583
  case InternalInterface.MG_ACT_DELLINE:
2596
- description = "Delete Line";
2584
+ description = 'Delete Line';
2597
2585
  break;
2598
2586
  case InternalInterface.MG_ACT_DELETE_SUBTREE:
2599
- description = "Delete Subtree";
2587
+ description = 'Delete Subtree';
2600
2588
  break;
2601
2589
  case InternalInterface.MG_ACT_RT_COPYFLD:
2602
- description = "Ditto";
2590
+ description = 'Ditto';
2603
2591
  break;
2604
2592
  case InternalInterface.MG_ACT_DISPLAY_REFRESH:
2605
- description = "Display Refresh";
2593
+ description = 'Display Refresh';
2606
2594
  break;
2607
2595
  case InternalInterface.MG_ACT_EDIT_MAIN_FORM:
2608
- description = "Edit Main Form";
2596
+ description = 'Edit Main Form';
2609
2597
  break;
2610
2598
  case InternalInterface.MG_ACT_EDT_ENDFLD:
2611
- description = "End Field";
2599
+ description = 'End Field';
2612
2600
  break;
2613
2601
  case InternalInterface.MG_ACT_EDT_ENDFORM:
2614
- description = "End Form";
2602
+ description = 'End Form';
2615
2603
  break;
2616
2604
  case InternalInterface.MG_ACT_EDT_ENDLINE:
2617
- description = "End Line";
2605
+ description = 'End Line';
2618
2606
  break;
2619
2607
  case InternalInterface.MG_ACT_EDT_ENDPAGE:
2620
- description = "End Page";
2608
+ description = 'End Page';
2621
2609
  break;
2622
2610
  case InternalInterface.MG_ACT_TBL_ENDLINE:
2623
- description = "End Row";
2611
+ description = 'End Row';
2624
2612
  break;
2625
2613
  case InternalInterface.MG_ACT_TBL_ENDPAGE:
2626
- description = "End Screen";
2614
+ description = 'End Screen';
2627
2615
  break;
2628
2616
  case InternalInterface.MG_ACT_TBL_ENDTBL:
2629
- description = "End Table";
2617
+ description = 'End Table';
2630
2618
  break;
2631
2619
  case InternalInterface.MG_ACT_ENVIRONMENT:
2632
- description = "Environment";
2620
+ description = 'Environment';
2633
2621
  break;
2634
2622
  case InternalInterface.MG_ACT_EXECUTE_PROGRAM:
2635
- description = "Execute Program";
2623
+ description = 'Execute Program';
2636
2624
  break;
2637
2625
  case InternalInterface.MG_ACT_EXECUTE_REPORT:
2638
- description = "Execute Report";
2626
+ description = 'Execute Report';
2639
2627
  break;
2640
2628
  case InternalInterface.MG_ACT_EXIT:
2641
- description = "Exit";
2629
+ description = 'Exit';
2642
2630
  break;
2643
2631
  case InternalInterface.MG_ACT_EXIT_SYSTEM:
2644
- description = "Exit System";
2632
+ description = 'Exit System';
2645
2633
  break;
2646
2634
  case InternalInterface.MG_ACT_EXPORT_IMPORT:
2647
- description = "Export/Import";
2635
+ description = 'Export/Import';
2648
2636
  break;
2649
2637
  case InternalInterface.MG_ACT_EXPRESSION_RULES:
2650
- description = "Expression rules";
2638
+ description = 'Expression rules';
2651
2639
  break;
2652
2640
  case InternalInterface.MG_ACT_EXTERNAL_EDITOR:
2653
- description = "External Editor";
2641
+ description = 'External Editor';
2654
2642
  break;
2655
2643
  case InternalInterface.MG_ACT_EXT_EVENT:
2656
- description = "External Event";
2644
+ description = 'External Event';
2657
2645
  break;
2658
2646
  case InternalInterface.MG_ACT_FORMS:
2659
- description = "Forms";
2647
+ description = 'Forms';
2660
2648
  break;
2661
2649
  case InternalInterface.MG_ACT_FROM_VALUE:
2662
- description = "From Value";
2650
+ description = 'From Value';
2663
2651
  break;
2664
2652
  case InternalInterface.MG_ACT_FUNCTION_LIST:
2665
- description = "Function List";
2653
+ description = 'Function List';
2666
2654
  break;
2667
2655
  case InternalInterface.MG_ACT_GENERATE_FORM:
2668
- description = "Generate Form";
2656
+ description = 'Generate Form';
2669
2657
  break;
2670
2658
  case InternalInterface.MG_ACT_GENERATE_PROGRAM:
2671
- description = "Generate Program";
2659
+ description = 'Generate Program';
2672
2660
  break;
2673
2661
  case InternalInterface.MG_ACT_GO_TO_TOP:
2674
- description = "Go to Top";
2662
+ description = 'Go to Top';
2675
2663
  break;
2676
2664
  case InternalInterface.MG_ACT_H_CENTER_OF_FORM:
2677
- description = "";
2665
+ description = '';
2678
2666
  break;
2679
2667
  case InternalInterface.MG_ACT_HTML_STYLES:
2680
- description = "HTML Styles";
2668
+ description = 'HTML Styles';
2681
2669
  break;
2682
2670
  case InternalInterface.MG_ACT_HELP:
2683
- description = "Help";
2671
+ description = 'Help';
2684
2672
  break;
2685
2673
  case InternalInterface.MG_ACT_HELP_SCREENS:
2686
- description = "Help Screens";
2674
+ description = 'Help Screens';
2687
2675
  break;
2688
2676
  case InternalInterface.MG_ACT_HORIZ_CENTER:
2689
- description = "Horiz. Center";
2677
+ description = 'Horiz. Center';
2690
2678
  break;
2691
2679
  case InternalInterface.MG_ACT_I_O_FILES:
2692
- description = "Tables";
2680
+ description = 'Tables';
2693
2681
  break;
2694
2682
  case InternalInterface.MG_ACT_INDENT:
2695
- description = "Indent";
2683
+ description = 'Indent';
2696
2684
  break;
2697
2685
  case InternalInterface.MG_ACT_INSERT_OBJECT:
2698
- description = "Insert Object";
2686
+ description = 'Insert Object';
2699
2687
  break;
2700
2688
  case InternalInterface.MG_ACT_JUMP_TO_ROW:
2701
- description = "Jump to Row";
2689
+ description = 'Jump to Row';
2702
2690
  break;
2703
2691
  case InternalInterface.MG_ACT_KEYBOARD_LIST:
2704
- description = "Keyboard List";
2692
+ description = 'Keyboard List';
2705
2693
  break;
2706
2694
  case InternalInterface.MG_ACT_KEYBOARD_MAPPING:
2707
- description = "Keyboard Mapping";
2695
+ description = 'Keyboard Mapping';
2708
2696
  break;
2709
2697
  case InternalInterface.MG_ACT_LANGUAGES:
2710
- description = "languages";
2698
+ description = 'languages';
2711
2699
  break;
2712
2700
  case InternalInterface.MG_ACT_RTO_SEARCH:
2713
- description = "Locate Next";
2701
+ description = 'Locate Next';
2714
2702
  break;
2715
2703
  case InternalInterface.MG_ACT_RTO_LOCATE:
2716
- description = "Locate a Record";
2704
+ description = 'Locate a Record';
2717
2705
  break;
2718
2706
  case InternalInterface.MG_ACT_LOGICALPNAMES:
2719
- description = "";
2707
+ description = '';
2720
2708
  break;
2721
2709
  case InternalInterface.MG_ACT_LOGON:
2722
- description = "Logon";
2710
+ description = 'Logon';
2723
2711
  break;
2724
2712
  case InternalInterface.MG_ACT_USING_HELP:
2725
- description = "Help Topics";
2713
+ description = 'Help Topics';
2726
2714
  break;
2727
2715
  case InternalInterface.MG_ACT_EDT_MARKNXTCH:
2728
- description = "Mark Next Char";
2716
+ description = 'Mark Next Char';
2729
2717
  break;
2730
2718
  case InternalInterface.MG_ACT_MARK_NEXT_LINE:
2731
- description = "Mark Next Line MLE";
2719
+ description = 'Mark Next Line MLE';
2732
2720
  break;
2733
2721
  case InternalInterface.MG_ACT_EDT_MARKPRVCH:
2734
- description = "Mark Previous Char";
2722
+ description = 'Mark Previous Char';
2735
2723
  break;
2736
2724
  case InternalInterface.MG_ACT_EDT_MARKPRVLINE:
2737
- description = "Mark Previous Line MLE";
2725
+ description = 'Mark Previous Line MLE';
2738
2726
  break;
2739
2727
  case InternalInterface.MG_ACT_MARK_SUBTREE:
2740
- description = "";
2728
+ description = '';
2741
2729
  break;
2742
2730
  case InternalInterface.MG_ACT_EDT_MARKTOBEG:
2743
- description = "Mark To Beginning";
2731
+ description = 'Mark To Beginning';
2744
2732
  break;
2745
2733
  case InternalInterface.MG_ACT_EDT_MARKTOEND:
2746
- description = "Mark To End";
2734
+ description = 'Mark To End';
2747
2735
  break;
2748
2736
  case InternalInterface.MG_ACT_MAXIMUM_HEIGHT:
2749
- description = "Maximum Height";
2737
+ description = 'Maximum Height';
2750
2738
  break;
2751
2739
  case InternalInterface.MG_ACT_MAXIMUM_WIDTH:
2752
- description = "Maximum Width";
2740
+ description = 'Maximum Width';
2753
2741
  break;
2754
2742
  case InternalInterface.MG_ACT_MENU_BAR:
2755
- description = "Menu Bar";
2743
+ description = 'Menu Bar';
2756
2744
  break;
2757
2745
  case InternalInterface.MG_ACT_MENUS:
2758
- description = "";
2746
+ description = '';
2759
2747
  break;
2760
2748
  case InternalInterface.MG_ACT_MINIMUM_HEIGHT:
2761
- description = "Minimum Height";
2749
+ description = 'Minimum Height';
2762
2750
  break;
2763
2751
  case InternalInterface.MG_ACT_MINIMUM_WIDTH:
2764
- description = "Minimum Width";
2752
+ description = 'Minimum Width';
2765
2753
  break;
2766
2754
  case InternalInterface.MG_ACT_RTO_MODIFY:
2767
- description = "Modify Records";
2755
+ description = 'Modify Records';
2768
2756
  break;
2769
2757
  case InternalInterface.MG_ACT_MONITOR_DEBUGGER:
2770
- description = "Monitor/Debugger";
2758
+ description = 'Monitor/Debugger';
2771
2759
  break;
2772
2760
  case InternalInterface.MG_ACT_MOVE_ENTRY:
2773
- description = "Move Entry";
2761
+ description = 'Move Entry';
2774
2762
  break;
2775
2763
  case InternalInterface.MG_ACT_MOVE_SUBTREE:
2776
- description = "Move Subtree";
2764
+ description = 'Move Subtree';
2777
2765
  break;
2778
2766
  case InternalInterface.MG_ACT_NULL_SETTINGS:
2779
- description = "NULL Settings";
2767
+ description = 'NULL Settings';
2780
2768
  break;
2781
2769
  case InternalInterface.MG_ACT_EDT_NXTCHAR:
2782
- description = "Next Char";
2770
+ description = 'Next Char';
2783
2771
  break;
2784
2772
  case InternalInterface.MG_ACT_EDT_NXTLINE:
2785
- description = "Next Line";
2773
+ description = 'Next Line';
2786
2774
  break;
2787
2775
  case InternalInterface.MG_ACT_EDT_NXTPAGE:
2788
- description = "Next Page";
2776
+ description = 'Next Page';
2789
2777
  break;
2790
2778
  case InternalInterface.MG_ACT_TBL_NXTLINE:
2791
- description = "Next Row";
2779
+ description = 'Next Row';
2792
2780
  break;
2793
2781
  case InternalInterface.MG_ACT_TBL_NXTPAGE:
2794
- description = "Next Screen";
2782
+ description = 'Next Screen';
2795
2783
  break;
2796
2784
  case InternalInterface.MG_ACT_EDT_NXTTAB:
2797
- description = "Next Tab";
2785
+ description = 'Next Tab';
2798
2786
  break;
2799
2787
  case InternalInterface.MG_ACT_EDT_NXTWORD:
2800
- description = "Next Word";
2788
+ description = 'Next Word';
2801
2789
  break;
2802
2790
  case InternalInterface.MG_ACT_NORMAL:
2803
- description = "Normal";
2791
+ description = 'Normal';
2804
2792
  break;
2805
2793
  case InternalInterface.MG_ACT_OK:
2806
- description = "OK";
2794
+ description = 'OK';
2807
2795
  break;
2808
2796
  case InternalInterface.MG_ACT_OLE2:
2809
- description = "OLE2";
2797
+ description = 'OLE2';
2810
2798
  break;
2811
2799
  case InternalInterface.MG_ACT_OPEN_APPLICATION:
2812
- description = "Open Application";
2800
+ description = 'Open Application';
2813
2801
  break;
2814
2802
  case InternalInterface.MG_ACT_OVERWRITE_ENTRY:
2815
- description = "Overwrite Entry";
2803
+ description = 'Overwrite Entry';
2816
2804
  break;
2817
2805
  case InternalInterface.MG_ACT_OVERWRITE_SUBTREE:
2818
- description = "Overwrite Subtree";
2806
+ description = 'Overwrite Subtree';
2819
2807
  break;
2820
2808
  case InternalInterface.MG_ACT_PPD:
2821
- description = "PPD";
2809
+ description = 'PPD';
2822
2810
  break;
2823
2811
  case InternalInterface.MG_ACT_PAGE_FOOTER:
2824
- description = "Page Footer";
2812
+ description = 'Page Footer';
2825
2813
  break;
2826
2814
  case InternalInterface.MG_ACT_PAGE_HEADER:
2827
- description = "Page Header";
2815
+ description = 'Page Header';
2828
2816
  break;
2829
2817
  case InternalInterface.MG_ACT_CLIP_PASTE:
2830
- description = "Paste";
2818
+ description = 'Paste';
2831
2819
  break;
2832
2820
  case InternalInterface.MG_ACT_PASTE_LINK:
2833
- description = "Paste Link";
2821
+ description = 'Paste Link';
2834
2822
  break;
2835
2823
  case InternalInterface.MG_ACT_PASTE_SUBTREE:
2836
- description = "Paste Subtree";
2824
+ description = 'Paste Subtree';
2837
2825
  break;
2838
2826
  case InternalInterface.MG_ACT_EDT_PRVCHAR:
2839
- description = "Previous Char";
2827
+ description = 'Previous Char';
2840
2828
  break;
2841
2829
  case InternalInterface.MG_ACT_EDT_PRVLINE:
2842
- description = "Previous Line";
2830
+ description = 'Previous Line';
2843
2831
  break;
2844
2832
  case InternalInterface.MG_ACT_EDT_PRVPAGE:
2845
- description = "Previous Page";
2833
+ description = 'Previous Page';
2846
2834
  break;
2847
2835
  case InternalInterface.MG_ACT_TBL_PRVLINE:
2848
- description = "Previous Row";
2836
+ description = 'Previous Row';
2849
2837
  break;
2850
2838
  case InternalInterface.MG_ACT_TBL_PRVPAGE:
2851
- description = "Previous Screen";
2839
+ description = 'Previous Screen';
2852
2840
  break;
2853
2841
  case InternalInterface.MG_ACT_EDT_PRVTAB:
2854
- description = "Previous Tab";
2842
+ description = 'Previous Tab';
2855
2843
  break;
2856
2844
  case InternalInterface.MG_ACT_EDT_PRVWORD:
2857
- description = "Previous Word";
2845
+ description = 'Previous Word';
2858
2846
  break;
2859
2847
  case InternalInterface.MG_ACT_PRINT_ATTRIBUTES:
2860
- description = "Print Attributes";
2848
+ description = 'Print Attributes';
2861
2849
  break;
2862
2850
  case InternalInterface.MG_ACT_PRINTER_SETUP:
2863
- description = "Printer Setup";
2851
+ description = 'Printer Setup';
2864
2852
  break;
2865
2853
  case InternalInterface.MG_ACT_PRINTERS:
2866
- description = "Printers";
2854
+ description = 'Printers';
2867
2855
  break;
2868
2856
  case InternalInterface.MG_ACT_PROGRAMS:
2869
- description = "Programs";
2857
+ description = 'Programs';
2870
2858
  break;
2871
2859
  case InternalInterface.MG_ACT_PROPERTIES:
2872
- description = "Properties";
2860
+ description = 'Properties';
2873
2861
  break;
2874
2862
  case InternalInterface.MG_ACT_RTO_QUERY:
2875
- description = "Query Records";
2863
+ description = 'Query Records';
2876
2864
  break;
2877
2865
  case InternalInterface.MG_ACT_RTO_RANGE:
2878
- description = "Range of Records";
2866
+ description = 'Range of Records';
2879
2867
  break;
2880
2868
  case InternalInterface.MG_ACT_RT_REFRESH_RECORD:
2881
- description = "Record Flush";
2869
+ description = 'Record Flush';
2882
2870
  break;
2883
2871
  case InternalInterface.MG_ACT_REDIRECT_FILES:
2884
- description = "Redirect Files";
2872
+ description = 'Redirect Files';
2885
2873
  break;
2886
2874
  case InternalInterface.MG_ACT_REDRAW_LAYOUT:
2887
- description = "";
2875
+ description = '';
2888
2876
  break;
2889
2877
  case InternalInterface.MG_ACT_REPEAT_ENTRY:
2890
- description = "Repeat Entry";
2878
+ description = 'Repeat Entry';
2891
2879
  break;
2892
2880
  case InternalInterface.MG_ACT_REPEAT_SUBTREE:
2893
- description = "Repeat Subtree";
2881
+ description = 'Repeat Subtree';
2894
2882
  break;
2895
2883
  case InternalInterface.MG_ACT_REPORT_GENERATOR:
2896
- description = "";
2884
+ description = '';
2897
2885
  break;
2898
2886
  case InternalInterface.MG_ACT_RESTORE_DEFAULTS:
2899
- description = "Restore Defaults";
2887
+ description = 'Restore Defaults';
2900
2888
  break;
2901
2889
  case InternalInterface.MG_ACT_RETURN_TO_TREE:
2902
- description = "";
2890
+ description = '';
2903
2891
  break;
2904
2892
  case InternalInterface.MG_ACT_RIGHT:
2905
- description = "Right";
2893
+ description = 'Right';
2906
2894
  break;
2907
2895
  case InternalInterface.MG_ACT_RIGHTS:
2908
- description = "";
2896
+ description = '';
2909
2897
  break;
2910
2898
  case InternalInterface.MG_ACT_RIGHTS_LIST:
2911
- description = "Rights List";
2899
+ description = 'Rights List';
2912
2900
  break;
2913
2901
  case InternalInterface.MG_ACT_SQL_ASSIST:
2914
- description = "SQL Assist";
2902
+ description = 'SQL Assist';
2915
2903
  break;
2916
2904
  case InternalInterface.MG_ACT_SQL_COLUMNS:
2917
- description = "SQL Columns";
2905
+ description = 'SQL Columns';
2918
2906
  break;
2919
2907
  case InternalInterface.MG_ACT_SQL_COMMAND:
2920
- description = "SQL Command";
2908
+ description = 'SQL Command';
2921
2909
  break;
2922
2910
  case InternalInterface.MG_ACT_SQL_FLIP_DESC:
2923
- description = "SQL Flip Desc.";
2911
+ description = 'SQL Flip Desc.';
2924
2912
  break;
2925
2913
  case InternalInterface.MG_ACT_SQL_KEYWORDS:
2926
- description = "SQL Keywords";
2914
+ description = 'SQL Keywords';
2927
2915
  break;
2928
2916
  case InternalInterface.MG_ACT_SQL_OPERATORS:
2929
- description = "SQL Operators";
2917
+ description = 'SQL Operators';
2930
2918
  break;
2931
2919
  case InternalInterface.MG_ACT_SQL_TABLES:
2932
- description = "SQL Tables";
2920
+ description = 'SQL Tables';
2933
2921
  break;
2934
2922
  case InternalInterface.MG_ACT_SQL_WHERE_CLAUSE:
2935
- description = "";
2923
+ description = '';
2936
2924
  break;
2937
2925
  case InternalInterface.MG_ACT_RT_REFRESH_SCREEN:
2938
- description = "Screen Refresh";
2926
+ description = 'Screen Refresh';
2939
2927
  break;
2940
2928
  case InternalInterface.MG_ACT_SECRET_NAMES:
2941
- description = "Secret Names";
2929
+ description = 'Secret Names';
2942
2930
  break;
2943
2931
  case InternalInterface.MG_ACT_SELECT:
2944
- description = "Select";
2932
+ description = 'Select';
2945
2933
  break;
2946
2934
  case InternalInterface.MG_ACT_EDT_MARKALL:
2947
- description = "Select All";
2935
+ description = 'Select All';
2948
2936
  break;
2949
2937
  case InternalInterface.MG_ACT_SERVERS:
2950
- description = "";
2938
+ description = '';
2951
2939
  break;
2952
2940
  case InternalInterface.MG_ACT_SERVICES:
2953
- description = "";
2941
+ description = '';
2954
2942
  break;
2955
2943
  case InternalInterface.MG_ACT_RT_EDT_NULL:
2956
- description = "Set to NULL";
2944
+ description = 'Set to NULL';
2957
2945
  break;
2958
2946
  case InternalInterface.MG_ACT_SHELL_TO_OS:
2959
- description = "Shell to OS";
2947
+ description = 'Shell to OS';
2960
2948
  break;
2961
2949
  case InternalInterface.MG_ACT_SHOW_EXPRESSION:
2962
- description = "Show Expression";
2950
+ description = 'Show Expression';
2963
2951
  break;
2964
2952
  case InternalInterface.MG_ACT_SHOW_FULL_LAYOUT:
2965
- description = "";
2953
+ description = '';
2966
2954
  break;
2967
2955
  case InternalInterface.MG_ACT_SHRINK_TREE:
2968
- description = "";
2956
+ description = '';
2969
2957
  break;
2970
2958
  case InternalInterface.MG_ACT_SORT:
2971
- description = "Sort";
2959
+ description = 'Sort';
2972
2960
  break;
2973
2961
  case InternalInterface.MG_ACT_SORT_RECORDS:
2974
- description = "Sort Records";
2962
+ description = 'Sort Records';
2975
2963
  break;
2976
2964
  case InternalInterface.MG_ACT_TABLE_LOCATE:
2977
- description = "Table Locate";
2965
+ description = 'Table Locate';
2978
2966
  break;
2979
2967
  case InternalInterface.MG_ACT_TABLE_LOCATE_NEXT:
2980
- description = "Table Locate Next";
2968
+ description = 'Table Locate Next';
2981
2969
  break;
2982
2970
  case InternalInterface.MG_ACT_TABLES:
2983
- description = "";
2971
+ description = '';
2984
2972
  break;
2985
2973
  case InternalInterface.MG_ACT_TASK_CONTROL:
2986
- description = "";
2974
+ description = '';
2987
2975
  break;
2988
2976
  case InternalInterface.MG_ACT_TASK_EVENTS:
2989
- description = "";
2977
+ description = '';
2990
2978
  break;
2991
2979
  case InternalInterface.MG_ACT_TO_VALUE:
2992
- description = "To Value";
2980
+ description = 'To Value';
2993
2981
  break;
2994
2982
  case InternalInterface.MG_ACT_TOOLKIT_RUNTIME:
2995
- description = "Toolkit/Runtime";
2983
+ description = 'Toolkit/Runtime';
2996
2984
  break;
2997
2985
  case InternalInterface.MG_ACT_TOP:
2998
- description = "Top";
2986
+ description = 'Top';
2999
2987
  break;
3000
2988
  case InternalInterface.MG_ACT_TYPES:
3001
- description = "";
2989
+ description = '';
3002
2990
  break;
3003
2991
  case InternalInterface.MG_ACT_EDT_UNDO:
3004
- description = "Undo Editing";
2992
+ description = 'Undo Editing';
3005
2993
  break;
3006
2994
  case InternalInterface.MG_ACT_UNINDENT:
3007
- description = "Unindent";
2995
+ description = 'Unindent';
3008
2996
  break;
3009
2997
  case InternalInterface.MG_ACT_UPDATE_LINK:
3010
- description = "";
2998
+ description = '';
3011
2999
  break;
3012
3000
  case InternalInterface.MG_ACT_USER_ACTION_1:
3013
3001
  case InternalInterface.MG_ACT_USER_ACTION_2:
@@ -3029,100 +3017,100 @@ class Event {
3029
3017
  case InternalInterface.MG_ACT_USER_ACTION_18:
3030
3018
  case InternalInterface.MG_ACT_USER_ACTION_19:
3031
3019
  case InternalInterface.MG_ACT_USER_ACTION_20:
3032
- description = "User Action " + (internalEventCode - InternalInterface.MG_ACT_USER_ACTION_1 + 1);
3020
+ description = 'User Action ' + (internalEventCode - InternalInterface.MG_ACT_USER_ACTION_1 + 1);
3033
3021
  break;
3034
3022
  case InternalInterface.MG_ACT_USER_GROUPS:
3035
- description = "";
3023
+ description = '';
3036
3024
  break;
3037
3025
  case InternalInterface.MG_ACT_USER_IDS:
3038
- description = "User IDs";
3026
+ description = 'User IDs';
3039
3027
  break;
3040
3028
  case InternalInterface.MG_ACT_V_CENTER_OF_FORM:
3041
- description = "Center of Form";
3029
+ description = 'Center of Form';
3042
3030
  break;
3043
3031
  case InternalInterface.MG_ACT_VERTICAL_CENTER:
3044
- description = "Vertical Center";
3032
+ description = 'Vertical Center';
3045
3033
  break;
3046
3034
  case InternalInterface.MG_ACT_VIEW_BY_KEY:
3047
- description = "View by Key";
3035
+ description = 'View by Key';
3048
3036
  break;
3049
3037
  case InternalInterface.MG_ACT_RT_REFRESH_VIEW:
3050
- description = "View Refresh";
3038
+ description = 'View Refresh';
3051
3039
  break;
3052
3040
  case InternalInterface.MG_ACT_VIRTUAL_VARIABLES:
3053
- description = "Variables";
3041
+ description = 'Variables';
3054
3042
  break;
3055
3043
  case InternalInterface.MG_ACT_VISUAL_CONNECTION:
3056
- description = "Visual Connection";
3044
+ description = 'Visual Connection';
3057
3045
  break;
3058
3046
  case InternalInterface.MG_ACT_HIT:
3059
- description = "Window Hit";
3047
+ description = 'Window Hit';
3060
3048
  break;
3061
3049
  case InternalInterface.MG_ACT_WINMOVE:
3062
- description = "Window Reposition";
3050
+ description = 'Window Reposition';
3063
3051
  break;
3064
3052
  case InternalInterface.MG_ACT_WINSIZE:
3065
- description = "Window Resize";
3053
+ description = 'Window Resize';
3066
3054
  break;
3067
3055
  case InternalInterface.MG_ACT_ZOOM:
3068
- description = "Zoom";
3056
+ description = 'Zoom';
3069
3057
  break;
3070
3058
  case InternalInterface.MG_ACT_LOCKING_DETAILS:
3071
- description = "Locking Details";
3059
+ description = 'Locking Details';
3072
3060
  break;
3073
3061
  case InternalInterface.MG_ACT_LOCKING_ABORT:
3074
- description = "Locking Abort";
3062
+ description = 'Locking Abort';
3075
3063
  break;
3076
3064
  case InternalInterface.MG_ACT_LOCKING_RETRY:
3077
- description = "Locking Retry";
3065
+ description = 'Locking Retry';
3078
3066
  break;
3079
3067
  case InternalInterface.MG_ACT_CHECK_OBJECT_LIST:
3080
- description = "Check Object List";
3068
+ description = 'Check Object List';
3081
3069
  break;
3082
3070
  case InternalInterface.MG_ACT_USERS_LIST:
3083
- description = "Users List";
3071
+ description = 'Users List';
3084
3072
  break;
3085
3073
  case InternalInterface.MG_ACT_MODELS:
3086
- description = "Models";
3074
+ description = 'Models';
3087
3075
  break;
3088
3076
  case InternalInterface.MG_ACT_WEB_CLICK:
3089
- description = "Click";
3077
+ description = 'Click';
3090
3078
  break;
3091
3079
  case InternalInterface.MG_ACT_WEB_ON_DBLICK:
3092
- description = "DblClick";
3080
+ description = 'DblClick';
3093
3081
  break;
3094
3082
  case InternalInterface.MG_ACT_BROWSER_ESC:
3095
- description = "Esc";
3083
+ description = 'Esc';
3096
3084
  break;
3097
3085
  case InternalInterface.MG_ACT_ROLLBACK:
3098
- description = "Rollback";
3086
+ description = 'Rollback';
3099
3087
  break;
3100
3088
  case InternalInterface.MG_ACT_EMPTY_DATAVIEW:
3101
- description = "Empty Dataview";
3089
+ description = 'Empty Dataview';
3102
3090
  break;
3103
3091
  case InternalInterface.MG_ACT_CTRL_MODIFY:
3104
- description = "Control Modify";
3092
+ description = 'Control Modify';
3105
3093
  break;
3106
3094
  case InternalInterface.MG_ACT_PRINT_DATA:
3107
- description = "Print Data";
3095
+ description = 'Print Data';
3108
3096
  break;
3109
3097
  case InternalInterface.MG_ACT_POST_REFRESH_BY_PARENT:
3110
- description = "Post Refresh by Parent";
3098
+ description = 'Post Refresh by Parent';
3111
3099
  break;
3112
3100
  case InternalInterface.MG_ACT_SWITCH_TO_OFFLINE:
3113
- description = "Switch To Offline";
3101
+ description = 'Switch To Offline';
3114
3102
  break;
3115
3103
  case InternalInterface.MG_ACT_UNAVAILABLE_SERVER:
3116
- description = "Unavailable Server";
3104
+ description = 'Unavailable Server';
3117
3105
  break;
3118
3106
  case InternalInterface.MG_ACT_CONTEXT_MENU:
3119
- description = "Context Menu";
3107
+ description = 'Context Menu';
3120
3108
  break;
3121
3109
  case InternalInterface.MG_ACT_ENTER_ROW_EDITING:
3122
- description = "Enter Row Editing";
3110
+ description = 'Enter Row Editing';
3123
3111
  break;
3124
3112
  case InternalInterface.MG_ACT_NO_PROG_EXE_RIGHTS:
3125
- description = "No Program Execution Rights";
3113
+ description = 'No Program Execution Rights';
3126
3114
  break;
3127
3115
  case InternalInterface.MG_ACT_WEBCLIENT_ROUTE:
3128
3116
  description = 'Route';
@@ -3158,7 +3146,7 @@ class Event {
3158
3146
  description = 'Index Change';
3159
3147
  break;
3160
3148
  default:
3161
- description = "";
3149
+ description = '';
3162
3150
  break;
3163
3151
  }
3164
3152
  return description;
@@ -3177,37 +3165,34 @@ class Event {
3177
3165
  getKeyboardItemString() {
3178
3166
  let kbi = this.getKbdItm();
3179
3167
  if (kbi === null)
3180
- return "";
3168
+ return '';
3181
3169
  return kbi.ToString();
3182
3170
  }
3183
3171
  seconds2String() {
3184
3172
  let time = new Array(3);
3185
- let buffer = "";
3173
+ let buffer = '';
3186
3174
  time[0] = Math.floor(this._seconds / 3600);
3187
3175
  time[1] = Math.floor((this._seconds - time[0] * 3600) / 60);
3188
3176
  time[2] = this._seconds % 60;
3189
3177
  for (let i = 0; i < time.length; i++) {
3190
3178
  if (time[i] === 0)
3191
- buffer += "00";
3179
+ buffer += '00';
3192
3180
  else if (time[i] < 10)
3193
- buffer += ("0" + time[i]);
3181
+ buffer += ('0' + time[i]);
3194
3182
  else
3195
3183
  buffer += time[i];
3196
3184
  if (i < time.length - 1)
3197
- buffer += ":";
3185
+ buffer += ':';
3198
3186
  }
3199
3187
  return buffer;
3200
3188
  }
3201
- getParamVal(idx) {
3202
- return this._paramVals[idx];
3203
- }
3204
3189
  parseParamVal(valueStr) {
3205
3190
  let startOfs = 0, endOfs = 0, nLen, j;
3206
3191
  let sLen, sValue = null;
3207
3192
  for (j = 0; j < this._parameters; j++) {
3208
3193
  switch (this._paramAttrs[j]) {
3209
3194
  case StorageAttribute.SKIP:
3210
- sValue = "";
3195
+ sValue = '';
3211
3196
  break;
3212
3197
  case StorageAttribute.ALPHA:
3213
3198
  case StorageAttribute.BLOB_VECTOR:
@@ -3267,88 +3252,9 @@ class Event {
3267
3252
  }
3268
3253
  return endOfs;
3269
3254
  }
3270
- setParamVals(paramVals_) {
3271
- this._paramVals = paramVals_;
3272
- this._paramAttrs = this._paramNulls = "";
3273
- this._parameters = 0;
3274
- if (this._paramVals !== null) {
3275
- this._parameters = this._paramVals.length;
3276
- for (let i = 0; i < this._parameters; i++) {
3277
- this._paramAttrs += StorageAttribute.ALPHA;
3278
- this._paramNulls += "0";
3279
- }
3280
- }
3281
- }
3282
- setParamType(paramNum, fld) {
3283
- let currType;
3284
- let currValue;
3285
- let newType = fld.getType();
3286
- let pic = null;
3287
- let sameType = false;
3288
- if (this._paramVals != null && this.getParamNum() >= paramNum) {
3289
- currType = this._paramAttrs[paramNum];
3290
- sameType = (currType === newType);
3291
- if (!sameType) {
3292
- let charArr = null;
3293
- currValue = this._paramVals[paramNum];
3294
- switch (newType) {
3295
- case StorageAttribute.ALPHA:
3296
- case StorageAttribute.BLOB:
3297
- case StorageAttribute.BLOB_VECTOR:
3298
- case StorageAttribute.MEMO:
3299
- case StorageAttribute.UNICODE:
3300
- break;
3301
- case StorageAttribute.NUMERIC:
3302
- case StorageAttribute.DATE:
3303
- case StorageAttribute.TIME:
3304
- if (currType === StorageAttribute.ALPHA) {
3305
- try {
3306
- pic = PIC.buildPicture(newType, currValue, fld.getTask().getCompIdx(), true);
3307
- this._paramVals[paramNum] = DisplayConvertor.Instance.disp2mg(currValue, pic, fld.getTask().getCompIdx(), BlobType.CONTENT_TYPE_UNKNOWN);
3308
- sameType = true;
3309
- }
3310
- catch (exception) {
3311
- if (exception instanceof Exception) {
3312
- sameType = false;
3313
- Logger.Instance.WriteExceptionToLogWithMsg(NString.Format("Event.setParamType() cannot transfer {0} to Numeric with picture {1}", currValue, (pic != null ? pic.getFormat() : "null")));
3314
- }
3315
- else
3316
- throw exception;
3317
- }
3318
- }
3319
- break;
3320
- case StorageAttribute.BOOLEAN:
3321
- if (currType === StorageAttribute.ALPHA) {
3322
- currValue = currValue.trim();
3323
- if (currValue === "1" || currValue.toLowerCase() === "true")
3324
- this._paramVals[paramNum] = "1";
3325
- else
3326
- this._paramVals[paramNum] = "0";
3327
- sameType = true;
3328
- }
3329
- break;
3330
- }
3331
- if (sameType) {
3332
- charArr = NString.ToCharArray(this._paramAttrs);
3333
- charArr[paramNum] = newType;
3334
- this._paramAttrs = NString.FromChars(charArr);
3335
- }
3336
- }
3337
- }
3338
- return sameType;
3339
- }
3340
3255
  getParamNum() {
3341
3256
  return this._parameters;
3342
3257
  }
3343
- getParamNull(idx) {
3344
- if ('0' === this._paramNulls.charAt(idx))
3345
- return false;
3346
- else
3347
- return true;
3348
- }
3349
- getParamAttr(idx) {
3350
- return this._paramAttrs.charAt(idx);
3351
- }
3352
3258
  isControlHeader() {
3353
3259
  return this.getType() == ConstInterface.EVENT_TYPE_INTERNAL &&
3354
3260
  (this.getInternalCode() == InternalInterface.MG_ACT_CTRL_PREFIX ||
@@ -3380,7 +3286,7 @@ class Event {
3380
3286
  buffer.Append('ID ' + this.Exp.getId().toString());
3381
3287
  break;
3382
3288
  default:
3383
- buffer.Append("unknown event type ");
3289
+ buffer.Append('unknown event type ');
3384
3290
  break;
3385
3291
  }
3386
3292
  }
@@ -3460,24 +3366,6 @@ class Event {
3460
3366
  getUserDefinedFuncRetExp() {
3461
3367
  return this._returnExp;
3462
3368
  }
3463
- getOsCommandText() {
3464
- return this._osCommandText;
3465
- }
3466
- setOsCommandText(osCommandText) {
3467
- this._osCommandText = osCommandText;
3468
- }
3469
- getOsCommandWait() {
3470
- return this._osCommandWait;
3471
- }
3472
- setOsCommandWait(wait) {
3473
- this._osCommandWait = wait;
3474
- }
3475
- getOsCommandShow() {
3476
- return this._osCommandShow;
3477
- }
3478
- setOsCommandShow(osShow) {
3479
- this._osCommandShow = osShow;
3480
- }
3481
3369
  setTimestamp() {
3482
3370
  this._timestamp = Event._lastTimestamp++;
3483
3371
  }
@@ -3485,7 +3373,7 @@ class Event {
3485
3373
  return this._timestamp;
3486
3374
  }
3487
3375
  toString() {
3488
- return NString.Format("{{Event: {0}}}", this.getBrkLevel());
3376
+ return NString.Format('{{Event: {0}}}', this.getBrkLevel());
3489
3377
  }
3490
3378
  }
3491
3379
  Event._lastTimestamp = 0;
@@ -3552,7 +3440,6 @@ class MgPriorityBlockingQueue {
3552
3440
  return this._queue.peek();
3553
3441
  }
3554
3442
  size() {
3555
- let size;
3556
3443
  return this._queue.Size;
3557
3444
  }
3558
3445
  remainingCapacity() {
@@ -3562,7 +3449,6 @@ class MgPriorityBlockingQueue {
3562
3449
  this._queue.clear();
3563
3450
  }
3564
3451
  isEmpty() {
3565
- let result;
3566
3452
  return this._queue.isEmpty();
3567
3453
  }
3568
3454
  }
@@ -4294,7 +4180,6 @@ FlowMonitorQueue.S_EVENT_STR1 = ">>Starts ";
4294
4180
  FlowMonitorQueue.S_EVENT_STR2 = " Event";
4295
4181
  FlowMonitorQueue.S_EVENT_PROPAGATED = "Event was propagated";
4296
4182
  FlowMonitorQueue.E_EVENT_STR = "<<Ends Event";
4297
- FlowMonitorQueue.TSK_CHNG_MODE = "Task Mode Change - ";
4298
4183
  FlowMonitorQueue.S_RECPRF_STR = "Starts Record Prefix";
4299
4184
  FlowMonitorQueue.E_RECPRF_STR = "Ends Record Prefix";
4300
4185
  FlowMonitorQueue.S_RECSUF_STR = "Starts Record Suffix";
@@ -4315,17 +4200,7 @@ FlowMonitorQueue.RECOMP_STR = "Recomputes - ";
4315
4200
  FlowMonitorQueue.S_VARIABLE_STR = "Starts Variable Change - ";
4316
4201
  FlowMonitorQueue.E_VARIABLE_STR = "Ends Variable Change - ";
4317
4202
  FlowMonitorQueue.VARIABLE_REASON_STR = " - Reason - Previous value";
4318
- FlowMonitorQueue.INFORM_STR = " >> INFORMATION >> ";
4319
- FlowMonitorQueue.FLW_STEP_FWD = "(Step Forward)";
4320
- FlowMonitorQueue.FLW_FAST_FWD = "(Fast Forward)";
4321
- FlowMonitorQueue.FLW_STEP_BWD = "(Step Backward)";
4322
- FlowMonitorQueue.FLW_FAST_BWD = "(Fast Backward)";
4323
- FlowMonitorQueue.FLW_NOT_EXEC = "[Not Executed]";
4324
- FlowMonitorQueue.FLW_FORWARD = "(Forward)";
4325
- FlowMonitorQueue.FLW_BACKWARD = "(Backward)";
4326
4203
  FlowMonitorQueue.FLW_PERFIX = "Flow - ";
4327
- FlowMonitorQueue.S_UPDATE_STR = "Starts Update";
4328
- FlowMonitorQueue.E_UPDATE_STR = "Ends Update";
4329
4204
  FlowMonitorQueue.ACT_TASK = 'T';
4330
4205
  FlowMonitorQueue.ACT_TASK_FLW = 'F';
4331
4206
  FlowMonitorQueue.ACT_RECOMPUTE = 'R';
@@ -4333,12 +4208,10 @@ FlowMonitorQueue.ACT_FLW_OPER = 'T';
4333
4208
  FlowMonitorQueue.LongTimePattern = "HH:mm:ss:SSS";
4334
4209
  class ActivityItem {
4335
4210
  constructor(enclosingInstance, type, id) {
4336
- this._enclosingInstance = null;
4337
4211
  this._id = 0;
4338
4212
  this._type = null;
4339
4213
  this._info = null;
4340
4214
  this._time = null;
4341
- this._enclosingInstance = enclosingInstance;
4342
4215
  this._type = type;
4343
4216
  this._id = id;
4344
4217
  this.setTime();
@@ -4779,8 +4652,6 @@ HttpClientEvents.GetSessionCounter_Event = null;
4779
4652
  HttpClientEvents.CheckAndSetSessionCounter_Event = null;
4780
4653
  HttpClientEvents.ComputeAndLogRequestInfo_Event = null;
4781
4654
 
4782
- const HTTP_EXPECT100CONTINUE = "Expect100Continue";
4783
- const USE_HIGHEST_SECURITY_PROTOCOL = "UseHighestSecurityProtocol";
4784
4655
  var RequestMethod;
4785
4656
  (function (RequestMethod) {
4786
4657
  RequestMethod[RequestMethod["Get"] = 0] = "Get";
@@ -4905,20 +4776,6 @@ class HttpClientBase {
4905
4776
  }
4906
4777
  return headersStr;
4907
4778
  }
4908
- static GetHTTPExpect100Continue() {
4909
- let result = true;
4910
- let executionProperty = HttpClientEvents.GetExecutionProperty(HTTP_EXPECT100CONTINUE);
4911
- if (!NString.IsNullOrEmpty(executionProperty))
4912
- result = (executionProperty.toUpperCase() === "Y");
4913
- return result;
4914
- }
4915
- static GetUseHighestSecurityProtocol() {
4916
- let result = false;
4917
- let executionProperty = HttpClientEvents.GetExecutionProperty(USE_HIGHEST_SECURITY_PROTOCOL);
4918
- if (!NString.IsNullOrEmpty(executionProperty))
4919
- result = (executionProperty.toUpperCase() === "Y");
4920
- return result;
4921
- }
4922
4779
  sendRequestToServer(httpMethod, urlString, httpHeaders, requestContent, contentFromServer) {
4923
4780
  return __awaiter(this, void 0, void 0, function* () {
4924
4781
  return Promise.resolve();
@@ -6141,9 +5998,7 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
6141
5998
  AccessHelper.eventsManager.CheckAndShowSpinner(true);
6142
5999
  });
6143
6000
  let isError = new RefParam(false);
6144
- RemoteCommandsProcessor.requestNumber++;
6145
6001
  responseStr = yield HttpManager.GetInstance().GetContent(requestedURL, requestContent, useCache, isError);
6146
- RemoteCommandsProcessor.totalResponseDataLength += RemoteCommandsProcessor.totalResponseDataLength + (!isNullOrUndefined(responseStr) ? responseStr.length : 0);
6147
6002
  spinnerTimerSubscription.unsubscribe();
6148
6003
  spinnerTimerSubscription = null;
6149
6004
  if (isError.value) {
@@ -6237,10 +6092,7 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
6237
6092
  let extraMessageStr = isLoggingResponse ? 'Response ⤵' : 'Request ⤵';
6238
6093
  if (isLoggingResponse) {
6239
6094
  this._requestInfo.roundtripTime = roundTrip;
6240
- RemoteCommandsProcessor.totalTimeForHTTPRequests += roundTrip;
6241
6095
  }
6242
- else
6243
- RemoteCommandsProcessor.totalRequestDataLength += contentLength;
6244
6096
  Logger.Instance.WriteRequestInfoToLog(this._requestInfo, extraMessageStr);
6245
6097
  if (isLoggingResponse)
6246
6098
  this._requestInfo.clear();
@@ -6322,10 +6174,6 @@ RemoteCommandsProcessor._instance = null;
6322
6174
  RemoteCommandsProcessor.IsSessionReInitializing = false;
6323
6175
  RemoteCommandsProcessor.lastExceptionMessage = null;
6324
6176
  RemoteCommandsProcessor.InitialUrl = null;
6325
- RemoteCommandsProcessor.requestNumber = 0;
6326
- RemoteCommandsProcessor.totalTimeForHTTPRequests = 0;
6327
- RemoteCommandsProcessor.totalRequestDataLength = 0;
6328
- RemoteCommandsProcessor.totalResponseDataLength = 0;
6329
6177
  RemoteCommandsProcessor.WEB_COMMUNICATION_PROTOCOL_VERSION = "14002";
6330
6178
  RemoteCommandsProcessor._shouldScrambleAndUnscrambleMessages = false;
6331
6179
  class HandshakeResponse {
@@ -6733,7 +6581,6 @@ class LanguageData {
6733
6581
  try {
6734
6582
  if (this._mlsContent != null) {
6735
6583
  if (this._mlsContent.length > 0) {
6736
- let contentLen = this._mlsContent.length;
6737
6584
  let linePairs = 0;
6738
6585
  let srcLine = this._mlsContent + 3;
6739
6586
  this._mlsStrings = new Hashtable();
@@ -6803,7 +6650,6 @@ class GUIManager {
6803
6650
  }
6804
6651
  abort_0(form) {
6805
6652
  if (form !== null) {
6806
- let mainProgByCtlIdx = AccessHelper.mgDataTable.GetMainProgByCtlIdx(-1, form.getTask().getCtlIdx());
6807
6653
  Manager.Abort(form);
6808
6654
  }
6809
6655
  }
@@ -7969,7 +7815,6 @@ class EventHandlerPosition {
7969
7815
  getNext_1() {
7970
7816
  if (this._handlersTab === null)
7971
7817
  return null;
7972
- let result;
7973
7818
  if (this._rtEvt.getType() === ConstInterface.EVENT_TYPE_INTERNAL && this._rtEvt.getInternalCode() !== InternalInterface.MG_ACT_VARIABLE) {
7974
7819
  switch (this._rtEvt.getInternalCode()) {
7975
7820
  case InternalInterface.MG_ACT_TASK_PREFIX:
@@ -8384,7 +8229,7 @@ class RecomputeCommand extends ClientOriginatedCommandTaskTag {
8384
8229
  helper.SerializeTaskTag(this.TaskTag);
8385
8230
  helper.SerializeFldId(this.FldId);
8386
8231
  if (this.IgnoreSubformRecompute)
8387
- helper.SerializeAttribute(ConstInterface.MG_ATTR_IGNORE_SUBFORM_RECOMPUTE, "1");
8232
+ helper.SerializeAttribute(ConstInterface.MG_ATTR_IGNORE_SUBFORM_RECOMPUTE, '1');
8388
8233
  return helper.GetString();
8389
8234
  }
8390
8235
  getCommandInfo() {
@@ -8528,7 +8373,7 @@ class ContextTimeoutResetCommand extends EventCommand {
8528
8373
  SerializeCommandData() {
8529
8374
  let helper = new CommandSerializationHelper();
8530
8375
  helper.SerializeMagicEvent(this.MagicEvent);
8531
- helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT, "1");
8376
+ helper.SerializeAttribute(ConstInterface.MG_ATTR_OBJECT, '1');
8532
8377
  return helper.GetString();
8533
8378
  }
8534
8379
  getCommandInfo() {
@@ -8626,7 +8471,7 @@ class CommandFactory {
8626
8471
  }
8627
8472
  if (argList.getSize() > 1) {
8628
8473
  try {
8629
- cmd.KeepUserSort = ((yield argList.getArgValue(1, StorageAttribute.BOOLEAN, 0)) === "1");
8474
+ cmd.KeepUserSort = ((yield argList.getArgValue(1, StorageAttribute.BOOLEAN, 0)) === '1');
8630
8475
  }
8631
8476
  catch (e) {
8632
8477
  cmd.KeepUserSort = false;
@@ -8761,7 +8606,7 @@ class CommandFactory {
8761
8606
  execOperCommand.DitIdx = ditIdx;
8762
8607
  let cmd = execOperCommand;
8763
8608
  if (value !== null && value.length === 0)
8764
- cmd.Val = " ";
8609
+ cmd.Val = ' ';
8765
8610
  else
8766
8611
  cmd.Val = value;
8767
8612
  return cmd;
@@ -8774,7 +8619,7 @@ class CommandFactory {
8774
8619
  execOperCommand.DitIdx = ditIdx;
8775
8620
  let cmd = execOperCommand;
8776
8621
  if (value !== null && value.length === 0)
8777
- cmd.Val = " ";
8622
+ cmd.Val = ' ';
8778
8623
  else
8779
8624
  cmd.Val = value;
8780
8625
  return cmd;
@@ -8969,7 +8814,6 @@ class Environment {
8969
8814
  this._contextInactivityWarningTime = 0;
8970
8815
  this._toolitipTimeout = 0;
8971
8816
  this._contextUnloadTimeout = 0;
8972
- this._accessTest = false;
8973
8817
  this._canReplaceDecimalSeparator = false;
8974
8818
  this._codePage = 0;
8975
8819
  this._dateSeparator = '\0';
@@ -9051,7 +8895,6 @@ class Environment {
9051
8895
  let valueStr;
9052
8896
  let hashKey;
9053
8897
  let env;
9054
- let utilImeJpn = Manager.UtilImeJpn;
9055
8898
  env = new EnvironmentDetails();
9056
8899
  for (let j = 0; j < tokensVector.length; j += 2) {
9057
8900
  attribute = (tokensVector.get_Item(j));
@@ -9093,7 +8936,6 @@ class Environment {
9093
8936
  this._lowHigh = XmlParser.getBoolean(valueStr);
9094
8937
  break;
9095
8938
  case ConstInterface.MG_ATTR_ACCESS_TEST:
9096
- this._accessTest = XmlParser.getBoolean(valueStr);
9097
8939
  break;
9098
8940
  case ConstInterface.MG_ATTR_SPECIAL_TEXT_SIZE_FACTORING:
9099
8941
  this._specialTextSizeFactoring = XmlParser.getBoolean(valueStr);
@@ -9715,18 +9557,14 @@ class Operation {
9715
9557
  this._execOnClient = false;
9716
9558
  this._exp = null;
9717
9559
  this._field = null;
9718
- this._globalParamsShouldBeCopied = false;
9719
9560
  this._image = '\0';
9720
9561
  this._incremental = false;
9721
- this._methodNameSnippet = null;
9722
9562
  this._mode = '\0';
9723
- this._prgDescription = null;
9724
9563
  this._publicName = null;
9725
9564
  this._returnVal = null;
9726
9565
  this._rtEvt = null;
9727
9566
  this._serverId = -1;
9728
9567
  this.calledTaskDefinitionId = null;
9729
- this._show = CallOsShow.Normal;
9730
9568
  this._subformCtrlName = null;
9731
9569
  this._subtype = '\0';
9732
9570
  this._task = null;
@@ -9800,7 +9638,6 @@ class Operation {
9800
9638
  initElements(tokensVector, taskRef) {
9801
9639
  let attribute, valueStr;
9802
9640
  let expId;
9803
- let isGuiThreadExecution = false;
9804
9641
  for (let j = 0; j < tokensVector.length; j += 2) {
9805
9642
  attribute = (tokensVector.get_Item(j));
9806
9643
  valueStr = (tokensVector.get_Item(j + 1));
@@ -9860,7 +9697,6 @@ class Operation {
9860
9697
  this._syncData.setVal(taskRef, valueStr);
9861
9698
  break;
9862
9699
  case ConstInterface.MG_ATTR_SHOW:
9863
- this._show = XmlParser.getInt(valueStr);
9864
9700
  break;
9865
9701
  case ConstInterface.MG_ATTR_CND:
9866
9702
  this._condExp.setVal(taskRef, valueStr);
@@ -9888,10 +9724,8 @@ class Operation {
9888
9724
  this._publicName = valueStr;
9889
9725
  break;
9890
9726
  case ConstInterface.MG_ATTR_PRG_DESCRIPTION:
9891
- this._prgDescription = valueStr;
9892
9727
  break;
9893
9728
  case ConstInterface.MG_ATTR_CPY_GLB_PRMS:
9894
- this._globalParamsShouldBeCopied = XmlParser.getBoolean(valueStr);
9895
9729
  break;
9896
9730
  case ConstInterface.MG_ATTR_EXEC_ON_SERVER:
9897
9731
  this._execOnServer = XmlParser.getBoolean(valueStr);
@@ -9919,10 +9753,8 @@ class Operation {
9919
9753
  this._errLogAppend = XmlParser.getBoolean(valueStr);
9920
9754
  break;
9921
9755
  case ConstInterface.MG_ATTR_OPER_METHODNAME:
9922
- this._methodNameSnippet = valueStr;
9923
9756
  break;
9924
9757
  case ConstInterface.MG_ATTR_IS_GUI_THREAD_EXECUTION:
9925
- isGuiThreadExecution = XmlParser.getBoolean(valueStr);
9926
9758
  break;
9927
9759
  case ConstInterface.MG_ATTR_IS_ROUTE:
9928
9760
  this._isRoute = XmlParser.getBoolean(valueStr);
@@ -11074,7 +10906,6 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
11074
10906
  let val6;
11075
10907
  let val7;
11076
10908
  let val8;
11077
- let val9;
11078
10909
  let dynOper = new DynamicOperation();
11079
10910
  let whole;
11080
10911
  let dec;
@@ -13288,7 +13119,6 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
13288
13119
  let tmpVal = new ExpVal();
13289
13120
  tmpVal.MgNumVal = new NUM_TYPE();
13290
13121
  tmpVal.Attr = StorageAttribute.NUMERIC;
13291
- let expVal = tmpVal;
13292
13122
  if (difDateVal.MgNumVal === null || difTimeVal.MgNumVal === null) {
13293
13123
  resVal.Attr = StorageAttribute.BOOLEAN;
13294
13124
  resVal.BoolVal = false;
@@ -15056,9 +14886,6 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
15056
14886
  if (expiresDate) {
15057
14887
  let breakParams = DisplayConvertor.Instance.getNewDateBreakParams();
15058
14888
  DisplayConvertor.Instance.date_break_datemode(breakParams, expiresDate, false, this.ExpTask.getCompIdx());
15059
- let year = breakParams.year;
15060
- let month = breakParams.month;
15061
- let day = breakParams.day;
15062
14889
  if (breakParams.year == 0 && breakParams.month == 0 && breakParams.day == 0)
15063
14890
  return null;
15064
14891
  nativeDt = new Date(breakParams.year, breakParams.month - 1, breakParams.day);
@@ -17919,14 +17746,14 @@ const SET_DISPLAYLINE_BY_DV = Int32.MinValue;
17919
17746
  const COMPUTE_NEWREC_ON_CLIENT = 'C';
17920
17747
  const UNKNOWN_RCMPS_NOT_INITED = 'M';
17921
17748
  const UNKNOWN_RCMPS_FOUND = 'Y';
17922
- const INVOKED_FROM_OFFLINE_TASK = "-99999";
17749
+ const INVOKED_FROM_OFFLINE_TASK = '-99999';
17923
17750
  const CHUNK_CACHE_NEXT = 'N';
17924
17751
  const CHUNK_CACHE_PREV = 'P';
17925
17752
  const CHUNK_DV_BOTTOM = 'B';
17926
17753
  const CHUNK_DV_TOP = 'T';
17927
17754
  const COMPUTE_FLUSH_UPDATES = 'H';
17928
17755
  const COMPUTE_NEWREC_ON_SERVER = 'S';
17929
- const END_DV_TAG = "</" + ConstInterface.MG_TAG_DATAVIEW + ">";
17756
+ const END_DV_TAG = '</' + ConstInterface.MG_TAG_DATAVIEW + '>';
17930
17757
  const RECOVERY_ACT_BEGIN_SCREEN = 'S';
17931
17758
  const RECOVERY_ACT_BEGIN_TABLE = 'T';
17932
17759
  const RECOVERY_ACT_CANCEL = 'C';
@@ -17940,7 +17767,6 @@ class DataView extends DataViewBase {
17940
17767
  this._cacheLruTimeStamp = 0;
17941
17768
  this._changed = false;
17942
17769
  this._chunkSize = 30;
17943
- this._chunkSizeExpression = 0;
17944
17770
  this._computeBy = '\0';
17945
17771
  this._currRecId = 0;
17946
17772
  this._currRecIdx = 0;
@@ -18041,7 +17867,7 @@ class DataView extends DataViewBase {
18041
17867
  if (foundTagName === null)
18042
17868
  return false;
18043
17869
  if (foundTagName === XMLConstants.MG_TAG_DVHEADER) {
18044
- Logger.Instance.WriteDevToLog("dvheader found");
17870
+ Logger.Instance.WriteDevToLog('dvheader found');
18045
17871
  this.getHeaderAttributes(parser);
18046
17872
  this._fieldsTab.fillData(parser, this);
18047
17873
  this._fieldsTab.setRMPos(this._rmSize, this._rmIdx);
@@ -18069,7 +17895,7 @@ class DataView extends DataViewBase {
18069
17895
  valueStr = (tokensVector.get_Item(j + 1));
18070
17896
  switch (attribute) {
18071
17897
  case ConstInterface.MG_ATTR_RMPOS: {
18072
- let i = valueStr.indexOf(",");
17898
+ let i = valueStr.indexOf(',');
18073
17899
  if (i > -1) {
18074
17900
  this._rmSize = NNumber.Parse(valueStr.substr(0, i));
18075
17901
  this._rmIdx = NNumber.Parse(valueStr.substr(i + 1));
@@ -18092,10 +17918,9 @@ class DataView extends DataViewBase {
18092
17918
  this._chunkSize = XmlParser.getInt(valueStr);
18093
17919
  break;
18094
17920
  case ConstInterface.MG_ATTR_CHUNK_SIZE_EXPRESSION:
18095
- this._chunkSizeExpression = XmlParser.getInt(valueStr);
18096
17921
  break;
18097
17922
  default:
18098
- Logger.Instance.WriteExceptionToLogWithMsg("Unknown attribute for <" + XMLConstants.MG_TAG_DVHEADER + "> tag: " +
17923
+ Logger.Instance.WriteExceptionToLogWithMsg('Unknown attribute for <' + XMLConstants.MG_TAG_DVHEADER + '> tag: ' +
18099
17924
  attribute);
18100
17925
  break;
18101
17926
  }
@@ -18103,7 +17928,7 @@ class DataView extends DataViewBase {
18103
17928
  parser.setCurrIndex(++endContext);
18104
17929
  return;
18105
17930
  }
18106
- Logger.Instance.WriteExceptionToLogWithMsg("in DataView.getHeaderAttributes(): out of bounds");
17931
+ Logger.Instance.WriteExceptionToLogWithMsg('in DataView.getHeaderAttributes(): out of bounds');
18107
17932
  }
18108
17933
  fillData(parser) {
18109
17934
  return __awaiter(this, void 0, void 0, function* () {
@@ -18406,7 +18231,7 @@ class DataView extends DataViewBase {
18406
18231
  this._serverTransCacheEmpty = XmlParser.getBoolean(valueStr);
18407
18232
  break;
18408
18233
  default:
18409
- Logger.Instance.WriteExceptionToLogWithMsg("Unknown attribute for <" + ConstInterface.MG_TAG_DATAVIEW + "> tag: " + attribute);
18234
+ Logger.Instance.WriteExceptionToLogWithMsg('Unknown attribute for <' + ConstInterface.MG_TAG_DATAVIEW + '> tag: ' + attribute);
18410
18235
  break;
18411
18236
  }
18412
18237
  }
@@ -18414,7 +18239,7 @@ class DataView extends DataViewBase {
18414
18239
  parser.setCurrIndex(++endContext);
18415
18240
  return invalidate;
18416
18241
  }
18417
- Logger.Instance.WriteExceptionToLogWithMsg("in DataView.getAttributes(): out of bounds");
18242
+ Logger.Instance.WriteExceptionToLogWithMsg('in DataView.getAttributes(): out of bounds');
18418
18243
  return false;
18419
18244
  });
18420
18245
  }
@@ -18444,7 +18269,7 @@ class DataView extends DataViewBase {
18444
18269
  if (dcv !== null)
18445
18270
  this.AddDcValues(dcv);
18446
18271
  else
18447
- Logger.Instance.WriteExceptionToLogWithMsg("Error while parsing DC values at position " + dcValsPosition);
18272
+ Logger.Instance.WriteExceptionToLogWithMsg('Error while parsing DC values at position ' + dcValsPosition);
18448
18273
  foundTagName = parser.getNextTag();
18449
18274
  }
18450
18275
  }
@@ -18467,8 +18292,8 @@ class DataView extends DataViewBase {
18467
18292
  let tokensVector;
18468
18293
  const endContext = parser.getXMLdata().indexOf(XMLConstants.TAG_TERM, parser.getCurrIndex());
18469
18294
  let attribute;
18470
- let taskId = "";
18471
- let handlerId = "";
18295
+ let taskId = '';
18296
+ let handlerId = '';
18472
18297
  let operIdx = 0;
18473
18298
  if (endContext !== -1 && endContext < parser.getXMLdata().length) {
18474
18299
  let tag = parser.getXMLsubstring(endContext);
@@ -18493,7 +18318,7 @@ class DataView extends DataViewBase {
18493
18318
  parser.setCurrIndex(endContext + XMLConstants.TAG_TERM.length);
18494
18319
  }
18495
18320
  else
18496
- Logger.Instance.WriteExceptionToLogWithMsg("in DataView.fillInnerExecStack() out of bounds");
18321
+ Logger.Instance.WriteExceptionToLogWithMsg('in DataView.fillInnerExecStack() out of bounds');
18497
18322
  }
18498
18323
  peekInvalidate(tokensVector) {
18499
18324
  let sessionCounter = CommandsProcessorManager.GetCommandsProcessor().GetSessionCounter();
@@ -18518,7 +18343,7 @@ class DataView extends DataViewBase {
18518
18343
  getFieldByName(fldName) {
18519
18344
  if (this._fieldsTab !== null)
18520
18345
  return this._fieldsTab.getField(fldName);
18521
- Logger.Instance.WriteExceptionToLogWithMsg("in DataView.getField(String): There is no fieldsTab object");
18346
+ Logger.Instance.WriteExceptionToLogWithMsg('in DataView.getField(String): There is no fieldsTab object');
18522
18347
  return null;
18523
18348
  }
18524
18349
  buildXML(message) {
@@ -18530,10 +18355,10 @@ class DataView extends DataViewBase {
18530
18355
  let serverParent;
18531
18356
  let contextTask = (this.getTask().GetContextTask());
18532
18357
  let invokingTaskTag = contextTask.IsOffline ? INVOKED_FROM_OFFLINE_TASK : contextTask.getTaskTag();
18533
- message.Append("\n <" + ConstInterface.MG_TAG_DATAVIEW + " " + XMLConstants.MG_ATTR_TASKID + "=\"" +
18534
- taskTag + "\"");
18535
- message.Append(" " + ConstInterface.MG_ATTR_TASKLEVEL + "=\"" + brkLevelIndex + "\"");
18536
- serverParent = "0";
18358
+ message.Append('\n <' + ConstInterface.MG_TAG_DATAVIEW + ' ' + XMLConstants.MG_ATTR_TASKID + '="' +
18359
+ taskTag + '"');
18360
+ message.Append(' ' + ConstInterface.MG_ATTR_TASKLEVEL + '="' + brkLevelIndex + '"');
18361
+ serverParent = '0';
18537
18362
  let triggeringTask = this.getTask().getTriggeringTask();
18538
18363
  if (triggeringTask != null) {
18539
18364
  if (triggeringTask.IsOffline) {
@@ -18546,42 +18371,42 @@ class DataView extends DataViewBase {
18546
18371
  }
18547
18372
  if (this._currRecId > Int32.MinValue) {
18548
18373
  if (this.CurrRec != null)
18549
- message.Append(" " + ConstInterface.MG_ATTR_CURR_REC + "=\"" + this._currRecId + "\"");
18550
- message.Append(" " + ConstInterface.MG_ATTR_TASKMODE + "=\"" + this._task.getMode() + "\"");
18374
+ message.Append(' ' + ConstInterface.MG_ATTR_CURR_REC + '="' + this._currRecId + '"');
18375
+ message.Append(' ' + ConstInterface.MG_ATTR_TASKMODE + '="' + this._task.getMode() + '"');
18551
18376
  if (this._transCleared && !(MGDataCollection.Instance.StartupMgData.getFirstTask().InEndTask && MGDataCollection.Instance.StartupMgData.getFirstTask().ClosingFormUI)) {
18552
- message.Append(" " + ConstInterface.MG_ATTR_TRANS_CLEARED + "=\"1\"");
18377
+ message.Append(' ' + ConstInterface.MG_ATTR_TRANS_CLEARED + '="1"');
18553
18378
  this._transCleared = false;
18554
18379
  }
18555
- message.Append(" " + ConstInterface.MG_ATTR_INVOKER_ID + "=\"" + invokingTaskTag + "," + serverParent + "\"");
18380
+ message.Append(' ' + ConstInterface.MG_ATTR_INVOKER_ID + '="' + invokingTaskTag + ',' + serverParent + '"');
18556
18381
  if (yield this.getTask().isCached())
18557
- message.Append(" " + ConstInterface.MG_ATTR_DVPOS_VALUE + "=\"" + this._dvPosValue + "\"");
18558
- message.Append(" " + ConstInterface.MG_ATTR_LOOP_COUNTER + "=\"" + this.getTask().getLoopCounter() + "\"");
18382
+ message.Append(' ' + ConstInterface.MG_ATTR_DVPOS_VALUE + '="' + this._dvPosValue + '"');
18383
+ message.Append(' ' + ConstInterface.MG_ATTR_LOOP_COUNTER + '="' + this.getTask().getLoopCounter() + '"');
18559
18384
  if (this._task.IsSubForm) {
18560
18385
  let subformCtrl = this._task.getForm().getSubFormCtrl();
18561
18386
  if (!subformCtrl.isVisible() &&
18562
18387
  !(yield subformCtrl.checkProp(PropInterface.PROP_TYPE_REFRESH_WHEN_HIDDEN, false)))
18563
- message.Append(" " + ConstInterface.MG_ATTR_SUBFORM_VISIBLE + "=\"0\"");
18388
+ message.Append(' ' + ConstInterface.MG_ATTR_SUBFORM_VISIBLE + '="0"');
18564
18389
  }
18565
18390
  if (!this._task.IsInteractive)
18566
- message.Append(" " + ConstInterface.MG_ATTR_TASK_COUNTER + "=\"" + this.getTask().getCounter() + "\"");
18391
+ message.Append(' ' + ConstInterface.MG_ATTR_TASK_COUNTER + '="' + this.getTask().getCounter() + '"');
18567
18392
  if (this._task != null && this._task.GetComputedProperty(PropInterface.PROP_TYPE_PRELOAD_VIEW).GetComputedValueBoolean()) {
18568
- message.Append(" " + ConstInterface.MG_ATTR_LAST_REC_ID + "=\"" +
18569
- (this._recordsTab.getRecByIdx(this.getSize() - 1).getId()) + "\"");
18570
- message.Append(" " + ConstInterface.MG_ATTR_OLD_FIRST_REC_ID + "=\"" +
18571
- this._recordsTab.getRecByIdx(0).getId() + "\"");
18393
+ message.Append(' ' + ConstInterface.MG_ATTR_LAST_REC_ID + '="' +
18394
+ (this._recordsTab.getRecByIdx(this.getSize() - 1).getId()) + '"');
18395
+ message.Append(' ' + ConstInterface.MG_ATTR_OLD_FIRST_REC_ID + '="' +
18396
+ this._recordsTab.getRecByIdx(0).getId() + '"');
18572
18397
  }
18573
18398
  if (this._task.IsInteractive) {
18574
18399
  let form = this._task.getForm();
18575
18400
  if (form != null && this._recordsTab.getSize() > 1) {
18576
- message.Append(" " + ConstInterface.MG_ATTR_CURR_REC_POS_IN_FORM + "=\"" +
18577
- form.getCurrRecPosInForm() + "\"");
18401
+ message.Append(' ' + ConstInterface.MG_ATTR_CURR_REC_POS_IN_FORM + '="' +
18402
+ form.getCurrRecPosInForm() + '"');
18578
18403
  }
18579
18404
  }
18580
18405
  message.Append(XMLConstants.TAG_CLOSE);
18581
18406
  if (this.getTask().ResetRange || this.getTask().UserRngs != null) {
18582
18407
  message.Append(XMLConstants.START_TAG + ConstInterface.USER_RANGES);
18583
18408
  if (this.getTask().ResetRange) {
18584
- message.Append(" " + ConstInterface.CLEAR_RANGE + "=\"1\"");
18409
+ message.Append(' ' + ConstInterface.CLEAR_RANGE + '="1"');
18585
18410
  this.getTask().ResetRange = false;
18586
18411
  }
18587
18412
  if (this.getTask().UserRngs != null) {
@@ -18595,7 +18420,7 @@ class DataView extends DataViewBase {
18595
18420
  if (this.getTask().ResetLocate || this.getTask().UserLocs != null) {
18596
18421
  message.Append(XMLConstants.START_TAG + ConstInterface.USER_LOCATES);
18597
18422
  if (this.getTask().ResetLocate) {
18598
- message.Append(" " + ConstInterface.CLEAR_LOCATES + "=\"1\"");
18423
+ message.Append(' ' + ConstInterface.CLEAR_LOCATES + '="1"');
18599
18424
  this.getTask().ResetLocate = false;
18600
18425
  }
18601
18426
  if (this.getTask().UserLocs != null) {
@@ -18609,7 +18434,7 @@ class DataView extends DataViewBase {
18609
18434
  if (this.getTask().ResetSort || this.getTask().UserSorts != null) {
18610
18435
  message.Append(XMLConstants.START_TAG + ConstInterface.MG_TAG_SORTS);
18611
18436
  if (this.getTask().ResetSort) {
18612
- message.Append(" " + ConstInterface.CLEAR_SORTS + "=\"1\"");
18437
+ message.Append(' ' + ConstInterface.CLEAR_SORTS + '="1"');
18613
18438
  this.getTask().ResetSort = false;
18614
18439
  }
18615
18440
  if (this.getTask().UserSorts != null)
@@ -18619,10 +18444,10 @@ class DataView extends DataViewBase {
18619
18444
  }
18620
18445
  if (yield this.getTask().isCached()) {
18621
18446
  let delList = this.getTask().getTaskCache().getDeletedListToXML();
18622
- if (delList !== "") {
18447
+ if (delList !== '') {
18623
18448
  message.Append(XMLConstants.START_TAG + ConstInterface.MG_TAG_DEL_LIST);
18624
- message.Append(" " + XMLConstants.MG_ATTR_ID + "=\"" + this._task.getTaskTag() + "\"");
18625
- message.Append(" " + ConstInterface.MG_ATTR_REMOVE + "=\"" + delList + "\"");
18449
+ message.Append(' ' + XMLConstants.MG_ATTR_ID + '="' + this._task.getTaskTag() + '"');
18450
+ message.Append(' ' + ConstInterface.MG_ATTR_REMOVE + '="' + delList + '"');
18626
18451
  message.Append(XMLConstants.TAG_TERM);
18627
18452
  if (this.getTask().getTaskCache().isDeleted(this._dvPosValue))
18628
18453
  this.setChanged(true);
@@ -18634,8 +18459,8 @@ class DataView extends DataViewBase {
18634
18459
  dcv = this._dcValsCollection.get_Item(dcValKey);
18635
18460
  if (!dcv.HasReferences) {
18636
18461
  message.Append(XMLConstants.START_TAG + ConstInterface.MG_TAG_DC_VALS);
18637
- message.Append(" " + XMLConstants.MG_ATTR_ID + "=\"" + dcv.getId() + "\"");
18638
- message.Append(" " + ConstInterface.MG_ATTR_REMOVE + "=\"1\"");
18462
+ message.Append(' ' + XMLConstants.MG_ATTR_ID + '="' + dcv.getId() + '"');
18463
+ message.Append(' ' + ConstInterface.MG_ATTR_REMOVE + '="1"');
18639
18464
  message.Append(XMLConstants.TAG_TERM);
18640
18465
  this._dcValsCollection.Remove(dcValKey);
18641
18466
  }
@@ -18661,15 +18486,15 @@ class DataView extends DataViewBase {
18661
18486
  }
18662
18487
  }
18663
18488
  else {
18664
- message.Append(" " + ConstInterface.MG_ATTR_INVOKER_ID + "=\"" + invokingTaskTag + "," + serverParent + "\"" +
18489
+ message.Append(' ' + ConstInterface.MG_ATTR_INVOKER_ID + '="' + invokingTaskTag + ',' + serverParent + '"' +
18665
18490
  XMLConstants.TAG_CLOSE);
18666
18491
  }
18667
- message.Append("\n </" + ConstInterface.MG_TAG_DATAVIEW + XMLConstants.TAG_CLOSE);
18492
+ message.Append('\n </' + ConstInterface.MG_TAG_DATAVIEW + XMLConstants.TAG_CLOSE);
18668
18493
  });
18669
18494
  }
18670
18495
  getCurrRec() {
18671
18496
  if (this.CurrRec === null && this._currRecId > Int32.MinValue) {
18672
- Logger.Instance.WriteExceptionToLogWithMsg("DataView.getCurrRec(): record " + this._currRecId + " not found");
18497
+ Logger.Instance.WriteExceptionToLogWithMsg('DataView.getCurrRec(): record ' + this._currRecId + ' not found');
18673
18498
  }
18674
18499
  return this.CurrRec;
18675
18500
  }
@@ -18769,7 +18594,7 @@ class DataView extends DataViewBase {
18769
18594
  else if (this._recordsTab.getSize() === 0 && this.IncludesFirst())
18770
18595
  yield this.fetchChunkFromServer(CHUNK_DV_TOP, doSuffix);
18771
18596
  else
18772
- Logger.Instance.WriteExceptionToLogWithMsg("in DataView.fetchChunkFromServer() wrong option");
18597
+ Logger.Instance.WriteExceptionToLogWithMsg('in DataView.fetchChunkFromServer() wrong option');
18773
18598
  let oldFirstNewIdx = oldFirstRec != null
18774
18599
  ? this._recordsTab.getRecIdx(oldFirstRec.getId())
18775
18600
  : this._recordsTab.getSize();
@@ -18831,7 +18656,7 @@ class DataView extends DataViewBase {
18831
18656
  }
18832
18657
  this.CurrRec = this._recordsTab.getRecByIdx(newIdx);
18833
18658
  if (this.CurrRec == null)
18834
- throw new ApplicationException("in DataView.setCurrRecByIdx() current record not found!");
18659
+ throw new ApplicationException('in DataView.setCurrRecByIdx() current record not found!');
18835
18660
  this._currRecId = this.CurrRec.getId();
18836
18661
  this._currRecIdx = newIdx;
18837
18662
  if (this._task.getForm() != null) {
@@ -18886,7 +18711,7 @@ class DataView extends DataViewBase {
18886
18711
  clientRecId = this.LastRecord == null ? 0 : this.LastRecord.getId();
18887
18712
  break;
18888
18713
  default:
18889
- Logger.Instance.WriteExceptionToLogWithMsg("in DataView.fetchChunkFromServer() unknown chunk id: " + chunkId);
18714
+ Logger.Instance.WriteExceptionToLogWithMsg('in DataView.fetchChunkFromServer() unknown chunk id: ' + chunkId);
18890
18715
  return;
18891
18716
  }
18892
18717
  let cmd = CommandFactory.CreateEventCommand(this._task.getTaskTag(), eventCode);
@@ -18912,9 +18737,9 @@ class DataView extends DataViewBase {
18912
18737
  getCurrRecIdx() {
18913
18738
  if (this._currRecIdx === Int32.MinValue) {
18914
18739
  if (!this.setCurrRec(this._currRecId, true)) {
18915
- Logger.Instance.WriteWarningToLogWithMsg("DataView.getCurrRecIdx(): _task " +
18740
+ Logger.Instance.WriteWarningToLogWithMsg('DataView.getCurrRecIdx(): _task ' +
18916
18741
  (this.getTask()).PreviouslyActiveTaskId +
18917
- ", record " + this._currRecId + " not found");
18742
+ ', record ' + this._currRecId + ' not found');
18918
18743
  }
18919
18744
  }
18920
18745
  return this._currRecIdx;
@@ -19064,7 +18889,7 @@ class DataView extends DataViewBase {
19064
18889
  if (AccessHelper.eventsManager.GetStopExecutionFlag())
19065
18890
  newCurrRecIdx = -1;
19066
18891
  else
19067
- throw new ApplicationException("in DataView.addRecord() invalid exception");
18892
+ throw new ApplicationException('in DataView.addRecord() invalid exception');
19068
18893
  }
19069
18894
  else
19070
18895
  throw execption;
@@ -19474,7 +19299,7 @@ class DataView extends DataViewBase {
19474
19299
  }
19475
19300
  catch (ex) {
19476
19301
  if (ex instanceof RecordOutOfDataViewException) {
19477
- Logger.Instance.WriteDevToLog("wrong top record idx in DataView.setSameAs" + ex.Message);
19302
+ Logger.Instance.WriteDevToLog('wrong top record idx in DataView.setSameAs' + ex.Message);
19478
19303
  }
19479
19304
  else
19480
19305
  throw ex;
@@ -19560,7 +19385,7 @@ class DataView extends DataViewBase {
19560
19385
  if (field.isNull())
19561
19386
  val = field.getNullDisplay();
19562
19387
  val = val.trim();
19563
- params.push(val.length === 0 ? " " : val);
19388
+ params.push(val.length === 0 ? ' ' : val);
19564
19389
  }
19565
19390
  break;
19566
19391
  case StorageAttribute.BOOLEAN:
@@ -19576,7 +19401,7 @@ class DataView extends DataViewBase {
19576
19401
  if (field.isNull())
19577
19402
  val = field.getNullDisplay();
19578
19403
  let pic = new PIC(field.getPicture(), field.getType(), this.getTask().getCompIdx());
19579
- val = DisplayConvertor.Instance.mg2disp(val, "", pic, true, 0, false);
19404
+ val = DisplayConvertor.Instance.mg2disp(val, '', pic, true, 0, false);
19580
19405
  params.push(val);
19581
19406
  break;
19582
19407
  }
@@ -19592,17 +19417,12 @@ class DvCache {
19592
19417
  this._cacheTable = null;
19593
19418
  this._deletedList = null;
19594
19419
  this._task = null;
19595
- this._cacheSize = 0;
19596
- this._recordsBeforeCurrentView = 0;
19597
- this._totalRecordsCount = 0;
19598
19420
  this._task = tsk;
19599
19421
  this._cacheTable = new Hashtable(100, 0.7);
19600
19422
  this._deletedList = new List();
19601
- this._cacheSize = 0;
19602
19423
  }
19603
19424
  putInCache(repOfOriginal) {
19604
19425
  let hashKey = repOfOriginal.getDvPosValue();
19605
- let insertedSize = repOfOriginal.getSize() * (repOfOriginal.getCurrRec()).getRecSize();
19606
19426
  if (this._cacheTable.get_Item(hashKey) !== null)
19607
19427
  this.removeDvFromCache(hashKey, false);
19608
19428
  repOfOriginal.setCacheLRU();
@@ -19610,15 +19430,11 @@ class DvCache {
19610
19430
  repOfOriginal.zeroServerCurrRec();
19611
19431
  this._cacheTable.set_Item(hashKey, repOfOriginal);
19612
19432
  this._deletedList.Remove(hashKey);
19613
- this._cacheSize += insertedSize;
19614
- this._recordsBeforeCurrentView = repOfOriginal.RecordsBeforeCurrentView;
19615
- this._totalRecordsCount = repOfOriginal.TotalRecordsCount;
19616
19433
  return true;
19617
19434
  }
19618
19435
  removeDvFromCache(DvPosValue, updateDel) {
19619
19436
  let rep = this._cacheTable.get_Item(DvPosValue);
19620
19437
  if (rep !== null) {
19621
- this._cacheSize -= (rep.getSize() * (rep.getCurrRec()).getRecSize());
19622
19438
  if (updateDel)
19623
19439
  this._deletedList.push(DvPosValue);
19624
19440
  this._cacheTable.Remove(DvPosValue);
@@ -19627,10 +19443,10 @@ class DvCache {
19627
19443
  return false;
19628
19444
  }
19629
19445
  getDeletedListToXML() {
19630
- let list = "";
19446
+ let list = '';
19631
19447
  for (let i = 0; i < this._deletedList.length; i++) {
19632
19448
  if (i > 0)
19633
- list = list + ",";
19449
+ list = list + ',';
19634
19450
  list += this._deletedList.get_Item(i).toString();
19635
19451
  }
19636
19452
  return list;
@@ -19644,21 +19460,6 @@ class DvCache {
19644
19460
  cached = cached.replicate();
19645
19461
  return cached;
19646
19462
  }
19647
- getLastUsedDv() {
19648
- let currentTimeStamp = Misc.getSystemMilliseconds();
19649
- let lruDiff = -1;
19650
- let lruDvPos = -1;
19651
- let keysList = this._cacheTable.Keys;
19652
- while (keysList.MoveNext()) {
19653
- let current = this._cacheTable.get_Item(keysList.Current);
19654
- let diff = currentTimeStamp - current.getCacheLRU();
19655
- if (diff > lruDiff) {
19656
- lruDiff = diff;
19657
- lruDvPos = current.getDvPosValue();
19658
- }
19659
- }
19660
- return lruDvPos;
19661
- }
19662
19463
  clearCache() {
19663
19464
  let dvKeysList = new List(this._cacheTable.Keys);
19664
19465
  for (let i = 0; i < dvKeysList.length; i++) {
@@ -21586,7 +21387,6 @@ class MgForm extends MgFormBase {
21586
21387
  if (this.isTableWithAbsoluteScrollbar() && this.GetDataview().TotalRecordsCount > 0) {
21587
21388
  let recPosOnPage = this.GetDataview().RecordsBeforeCurrentView % this._rowsInPage;
21588
21389
  if (recPosOnPage > 0 && this.DisplayLine === 0) {
21589
- let lastFocusedVal = { guiMgControl: this.getTableCtrl(), Line: recPosOnPage, Val: "" };
21590
21390
  yield this.setRowData(-recPosOnPage, false);
21591
21391
  }
21592
21392
  }
@@ -22140,52 +21940,9 @@ class RemoteDataviewHeader extends DataviewHeaderBase {
22140
21940
  }
22141
21941
  }
22142
21942
 
22143
- class DataviewHeaderFactory {
22144
- CreateDataviewHeaders(task) {
22145
- return new RemoteDataviewHeader(task);
22146
- }
22147
- }
22148
-
22149
- class DataviewHeadersSaxHandler {
22150
- constructor(task, dataviewHeaders, xmlData) {
22151
- this._dataviewHeaders = null;
22152
- this._task = null;
22153
- this._dataviewHeadersFactory = null;
22154
- this._dataviewHeaders = dataviewHeaders;
22155
- this._task = task;
22156
- this._dataviewHeadersFactory = new DataviewHeaderFactory();
22157
- JSON_Utils.JSONFromXML(xmlData, this.FillFromJSON.bind(this));
22158
- }
22159
- FillFromJSON(error, result) {
22160
- if (error != null) {
22161
- throw error;
22162
- }
22163
- let links = result[ConstInterface.MG_TAG_LINKS][ConstInterface.MG_TAG_LINK];
22164
- if (!isNullOrUndefined(links) && links.constructor === Array) {
22165
- for (let i = 0; i < links.length; i++) {
22166
- let link = links[i]['$'];
22167
- if (!isNullOrUndefined(link[ConstInterface.MG_ATTR_TABLE_INDEX])) {
22168
- let tableIndex = +link[ConstInterface.MG_ATTR_TABLE_INDEX];
22169
- let dataviewHeader = this._dataviewHeadersFactory.CreateDataviewHeaders(this._task);
22170
- let attributes = new Dictionary();
22171
- for (let key in link) {
22172
- if (key !== ConstInterface.MG_ATTR_TABLE_INDEX) {
22173
- attributes.Add(key, link[key]);
22174
- }
22175
- }
22176
- dataviewHeader.SetAttributes(attributes);
22177
- this._dataviewHeaders.set_Item(dataviewHeader.Id, dataviewHeader);
22178
- }
22179
- }
22180
- }
22181
- }
22182
- }
22183
-
22184
21943
  class DataviewHeaders {
22185
- constructor(task) {
21944
+ constructor() {
22186
21945
  this._dataviewHeaders = null;
22187
- this._task = null;
22188
- this._task = task;
22189
21946
  this._dataviewHeaders = new Hashtable();
22190
21947
  }
22191
21948
  fillData(parser) {
@@ -22199,7 +21956,6 @@ class DataviewHeaders {
22199
21956
  let endContext = parser.getXMLdata().indexOf(ConstInterface.MG_TAG_LINKS_END, parser.getCurrIndex()) + ConstInterface.MG_TAG_LINKS_END.length + 1;
22200
21957
  let xml = parser.getXMLsubstring(endContext);
22201
21958
  xml = XmlParser.escapeUrl(xml);
22202
- let dataviewHeadersSaxHandler = new DataviewHeadersSaxHandler(this._task, this._dataviewHeaders, xml);
22203
21959
  parser.setCurrIndex(endContext + XMLConstants.TAG_CLOSE.length);
22204
21960
  }
22205
21961
  else
@@ -22737,7 +22493,6 @@ class EventHandler {
22737
22493
  this._task.leaveLoop();
22738
22494
  break;
22739
22495
  case ConstInterface.MG_OPER_BLOCK:
22740
- let startBlockIdx = execFlowIdx;
22741
22496
  if (!oper.getExecOnServer() || (returnedFromServer && oper.getServerId() < nextOperIdx)) {
22742
22497
  this._task.setUseLoopStack(true);
22743
22498
  if (!returnedFromServer || oper.getServerId() >= nextOperIdx)
@@ -23583,12 +23338,10 @@ class FormsTable {
23583
23338
  }
23584
23339
 
23585
23340
  class ActionManager {
23586
- constructor(parent) {
23341
+ constructor() {
23587
23342
  this._actCount = null;
23588
23343
  this._actState = null;
23589
- this._parentTask = null;
23590
23344
  this._numerator = 0;
23591
- this._parentTask = parent;
23592
23345
  this._numerator = 0;
23593
23346
  this._actState = new Array(InternalInterface.MG_ACT_TOT_CNT);
23594
23347
  for (let _ai = 0; _ai < this._actState.length; ++_ai)
@@ -23598,7 +23351,6 @@ class ActionManager {
23598
23351
  this._actCount[_ai] = 0;
23599
23352
  }
23600
23353
  enable(act, enable) {
23601
- let valueChanged = this._actState[act] !== enable;
23602
23354
  this._actState[act] = enable;
23603
23355
  if (enable) {
23604
23356
  this._numerator++;
@@ -23727,14 +23479,6 @@ var Task_Direction;
23727
23479
  Task_Direction[Task_Direction["NONE"] = 0] = "NONE";
23728
23480
  Task_Direction[Task_Direction["FORE"] = 1] = "FORE";
23729
23481
  })(Task_Direction || (Task_Direction = {}));
23730
- var FlowModeDir;
23731
- (function (FlowModeDir) {
23732
- FlowModeDir["NONE"] = " ";
23733
- FlowModeDir["FAST_BACKWARD"] = "R";
23734
- FlowModeDir["FAST_FORWARD"] = "F";
23735
- FlowModeDir["STEP_BACKWARD"] = "P";
23736
- FlowModeDir["STEP_FORWARD"] = "N";
23737
- })(FlowModeDir || (FlowModeDir = {}));
23738
23482
  class Task extends TaskBase {
23739
23483
  constructor(parent) {
23740
23484
  super();
@@ -23846,7 +23590,7 @@ class Task extends TaskBase {
23846
23590
  return false;
23847
23591
  }
23848
23592
  constructor_0() {
23849
- this.ActionManager = new ActionManager(this);
23593
+ this.ActionManager = new ActionManager();
23850
23594
  this.DataView = new DataView(this);
23851
23595
  this._flowMonitor = FlowMonitorQueue.Instance;
23852
23596
  this.ContextTask = this;
@@ -24025,7 +23769,6 @@ class Task extends TaskBase {
24025
23769
  case XMLConstants.MG_ATTR_MENU_CONTENT:
24026
23770
  break;
24027
23771
  case "assemblies":
24028
- let start = parser.getCurrIndex();
24029
23772
  let endContext = parser.getXMLdata().indexOf('/assemblies', parser.getCurrIndex());
24030
23773
  parser.setCurrIndex(endContext);
24031
23774
  parser.setCurrIndex2EndOfTag();
@@ -24062,7 +23805,7 @@ class Task extends TaskBase {
24062
23805
  this.UserEvtTab.fillData(this, parser);
24063
23806
  break;
24064
23807
  case ConstInterface.MG_TAG_LINKS:
24065
- this.DataviewHeadersTable = new DataviewHeaders(this);
23808
+ this.DataviewHeadersTable = new DataviewHeaders();
24066
23809
  this.DataviewHeadersTable.fillData(parser);
24067
23810
  break;
24068
23811
  case ConstInterface.MG_TAG_SORTS:
@@ -24458,7 +24201,6 @@ class Task extends TaskBase {
24458
24201
  stop() {
24459
24202
  return __awaiter(this, void 0, void 0, function* () {
24460
24203
  let task;
24461
- let form = this.getForm();
24462
24204
  if (this._aborting)
24463
24205
  return;
24464
24206
  if (this.hasSubTasks()) {
@@ -25160,7 +24902,6 @@ class Task extends TaskBase {
25160
24902
  });
25161
24903
  }
25162
24904
  SetServerSideTaskSuffix(task) {
25163
- let clientOperationExist = false;
25164
24905
  var rtEvt = new RunTimeEvent(task);
25165
24906
  rtEvt.setInternal(InternalInterface.MG_ACT_TASK_SUFFIX);
25166
24907
  let handler = null;
@@ -26201,7 +25942,6 @@ class Task extends TaskBase {
26201
25942
  static OpenForms(callByDestSubForm) {
26202
25943
  return __awaiter(this, void 0, void 0, function* () {
26203
25944
  let createdForms = MgForm.CreatedForms;
26204
- let outMostForm = null;
26205
25945
  if (createdForms.Count() > 0) {
26206
25946
  let i = 0;
26207
25947
  while (i < createdForms.Count()) {
@@ -26223,8 +25963,6 @@ class Task extends TaskBase {
26223
25963
  yield Manager.DoFirstRefreshTable(mgForm);
26224
25964
  }
26225
25965
  if (mgForm.Opened) {
26226
- if (callByDestSubForm && mgForm.isSubForm())
26227
- outMostForm = mgForm.getTopMostForm();
26228
25966
  createdForms.remove(mgForm);
26229
25967
  }
26230
25968
  else
@@ -26966,13 +26704,11 @@ class EventsManager {
26966
26704
  this._stopExecution = false;
26967
26705
  this._processingTopMostEndTask = false;
26968
26706
  this._stopExecutionCtrl = null;
26969
- this._isSorting = false;
26970
- this._nextParkedCtrl = null;
26971
26707
  this.guiPendingEvent = null;
26972
26708
  this.KBI_DOWN = null;
26973
26709
  this.KBI_UP = null;
26974
- this.confirmationDialogMsg = "The server context serving this application is about to time out. Do you want to continue your work?";
26975
- this.confirmationDialogTitle = "Session is about to be terminated!";
26710
+ this.confirmationDialogMsg = 'The server context serving this application is about to time out. Do you want to continue your work?';
26711
+ this.confirmationDialogTitle = 'Session is about to be terminated!';
26976
26712
  this._lastFailedFocusedControl = null;
26977
26713
  this.isSpinnerShown = false;
26978
26714
  this.SpinnerStopped = new Subject();
@@ -26982,7 +26718,6 @@ class EventsManager {
26982
26718
  this._execStack.push(new ExecutionStack());
26983
26719
  this._serverExecStack = new Stack();
26984
26720
  this._serverExecStack.push(null);
26985
- this._nextParkedCtrl = null;
26986
26721
  this.KBI_DOWN = new KeyboardItem(GuiConstants.KEY_DOWN, Modifiers.MODIFIER_NONE);
26987
26722
  this.KBI_UP = new KeyboardItem(GuiConstants.KEY_UP, Modifiers.MODIFIER_NONE);
26988
26723
  }
@@ -27335,7 +27070,7 @@ class EventsManager {
27335
27070
  let argsList = new Array(2);
27336
27071
  argsList[0] = new ExpVal(StorageAttribute.ALPHA, false, routerpath);
27337
27072
  if (routerOutletName === null)
27338
- routerOutletName = "";
27073
+ routerOutletName = '';
27339
27074
  argsList[1] = new ExpVal(StorageAttribute.ALPHA, false, routerOutletName);
27340
27075
  let args = new ArgumentsList(argsList);
27341
27076
  rtEvt.setArgList(args);
@@ -27419,7 +27154,6 @@ class EventsManager {
27419
27154
  ExecuteClientContextInactivityTimer() {
27420
27155
  return __awaiter(this, void 0, void 0, function* () {
27421
27156
  let startTime = Misc.getSystemMilliseconds();
27422
- let currTime;
27423
27157
  let clientCtxInactivityTimeout = Environment.Instance.getClientContextInactivityTimeout() * 100;
27424
27158
  EventsManager.clientInactivityTimerON = true;
27425
27159
  while (EventsManager.clientInactivityTimerON) {
@@ -27562,7 +27296,6 @@ class EventsManager {
27562
27296
  if (task !== null)
27563
27297
  yield Task.CommandsProcessor.SendMonitorOnly();
27564
27298
  else {
27565
- let mainProg = MGDataCollection.Instance.GetMainProgByCtlIdx(0);
27566
27299
  yield Task.CommandsProcessor.SendMonitorOnly();
27567
27300
  }
27568
27301
  if (rtEvt !== null && rtEvt.isGuiTriggeredEvent()) {
@@ -27660,7 +27393,6 @@ class EventsManager {
27660
27393
  let evtCtrl = rtEvt.Control;
27661
27394
  if (evtCtrl !== null && evtCtrl.getField() !== null) {
27662
27395
  let ctrlVal = Manager.GetCtrlVal(evtCtrl);
27663
- let evtCtrlval = evtCtrl.Value;
27664
27396
  yield evtCtrl.validateAndSetValue(ctrlVal, true);
27665
27397
  }
27666
27398
  }
@@ -27714,7 +27446,6 @@ class EventsManager {
27714
27446
  return __awaiter(this, void 0, void 0, function* () {
27715
27447
  let kbdItem = evt.getKbdItmAlways();
27716
27448
  let keyCode = kbdItem.getKeyCode();
27717
- let modifier = kbdItem.getModifier();
27718
27449
  this._currKbdItem = kbdItem;
27719
27450
  if (evt.IgnoreSpecifiedControl) {
27720
27451
  ctrl = this.getCurrCtrl();
@@ -27722,7 +27453,7 @@ class EventsManager {
27722
27453
  if (ctrl.Type !== MgControlType.CTRL_TYPE_TEXT)
27723
27454
  return;
27724
27455
  }
27725
- Logger.Instance.WriteDevToLog("Start handling KEYDOWN event. Key code: " + keyCode);
27456
+ Logger.Instance.WriteDevToLog('Start handling KEYDOWN event. Key code: ' + keyCode);
27726
27457
  try {
27727
27458
  if (this._currKbdItem.equals(this.KBI_DOWN) || this._currKbdItem.equals(this.KBI_UP)) {
27728
27459
  if (ctrl !== null && (ctrl.Type === MgControlType.CTRL_TYPE_LIST || ctrl.Type === MgControlType.CTRL_TYPE_RADIO))
@@ -27744,7 +27475,7 @@ class EventsManager {
27744
27475
  let mgd = MGDataCollection.Instance.getCurrMGData();
27745
27476
  if (mgd !== null && !mgd.IsAborting)
27746
27477
  yield this.handleExpressionHandlers();
27747
- Logger.Instance.WriteDevToLog("End handling KEYDOWN event. Key code: " + keyCode);
27478
+ Logger.Instance.WriteDevToLog('End handling KEYDOWN event. Key code: ' + keyCode);
27748
27479
  if (ctrl !== null && ctrl.IsRepeatable && ctrl === MgControl.ReturnToCtrl) {
27749
27480
  yield ctrl.getForm().bringRecordToPage();
27750
27481
  }
@@ -27823,7 +27554,7 @@ class EventsManager {
27823
27554
  return;
27824
27555
  if (ctrl !== this._lastFailedFocusedControl && ctrl.HasExpOrParentTaskField()) {
27825
27556
  if (ctrl.isListBox() || ctrl.isCheckBox() || ctrl.isComboBox() || ctrl.isTextControl() || ctrl.isRadio() || ctrl.isTabControl()) {
27826
- Logger.Instance.WriteErrorToLog(NString.Format("Control either has expression or has parent task variable attached to it. Failed to park on control with name: {0}", ctrl.Name));
27557
+ Logger.Instance.WriteErrorToLog(NString.Format('Control either has expression or has parent task variable attached to it. Failed to park on control with name: {0}', ctrl.Name));
27827
27558
  FocusManager.SetFocus(LastFocusedManager.Instance.getLastFocusedTask(), LastFocusedManager.getLastFocusedControl(), 0, LastFocusedManager.getLastFocusedControl() === null ? true : false);
27828
27559
  this._lastFailedFocusedControl = ctrl;
27829
27560
  return;
@@ -27838,7 +27569,6 @@ class EventsManager {
27838
27569
  return;
27839
27570
  }
27840
27571
  let prevTask = LastFocusedManager.Instance.getLastFocusedTask();
27841
- this._nextParkedCtrl = ctrl;
27842
27572
  if (ctrl === null || ctrl.Type === MgControlType.CTRL_TYPE_TABLE) {
27843
27573
  if (prevCtrl === null)
27844
27574
  yield this.HandleNonParkableControls(ctrl.getForm().getTask());
@@ -28096,7 +27826,7 @@ class EventsManager {
28096
27826
  yield this.HandleNonParkableControls(ctrl.getForm().getTask());
28097
27827
  return false;
28098
27828
  }
28099
- Logger.Instance.WriteSupportToLog(NString.Format("{0} Entering control: control {1}, row {2}", task.GetTaskDetails(), ctrl.Name, displayLine < 0 ? 0 : displayLine), true);
27829
+ Logger.Instance.WriteSupportToLog(NString.Format('{0} Entering control: control {1}, row {2}', task.GetTaskDetails(), ctrl.Name, displayLine < 0 ? 0 : displayLine), true);
28100
27830
  task.setLevel(Constants.TASK_LEVEL_CONTROL);
28101
27831
  ctrl.KeyStrokeOn = false;
28102
27832
  ctrl.ModifiedByUser = false;
@@ -28282,11 +28012,11 @@ class EventsManager {
28282
28012
  }
28283
28013
  }
28284
28014
  else
28285
- throw new ApplicationException("in EventsManager.commonHandlerBefore(): invalid line number: " +
28015
+ throw new ApplicationException('in EventsManager.commonHandlerBefore(): invalid line number: ' +
28286
28016
  displayLine);
28287
28017
  }
28288
28018
  if (rec == null)
28289
- throw new ApplicationException("in EventsManager.commonHandlerBefore(): no current record available !");
28019
+ throw new ApplicationException('in EventsManager.commonHandlerBefore(): no current record available !');
28290
28020
  if (!task.IsInteractive && task.getLevel() === Constants.TASK_LEVEL_TASK)
28291
28021
  task.increaseCounter();
28292
28022
  if (yield task.evalEndCond(ConstInterface.END_COND_EVAL_BEFORE)) {
@@ -28298,7 +28028,7 @@ class EventsManager {
28298
28028
  if (task.getLevel() !== Constants.TASK_LEVEL_TASK)
28299
28029
  return false;
28300
28030
  yield form.RefreshDisplay(Constants.TASK_REFRESH_CURR_REC);
28301
- Logger.Instance.WriteDevToLog("RECORD PREFIX: " + task.queryTaskPath());
28031
+ Logger.Instance.WriteDevToLog('RECORD PREFIX: ' + task.queryTaskPath());
28302
28032
  (dv.getCurrRec()).setForceSaveOrg(false);
28303
28033
  (dv.getCurrRec()).Synced = false;
28304
28034
  dv.saveOriginal();
@@ -28344,7 +28074,7 @@ class EventsManager {
28344
28074
  yield task.handleEventOnSlaveTasks(InternalInterface.MG_ACT_REC_SUFFIX);
28345
28075
  if (this._stopExecution)
28346
28076
  return false;
28347
- Logger.Instance.WriteDevToLog("RECORD SUFFIX: " + task.queryTaskPath());
28077
+ Logger.Instance.WriteDevToLog('RECORD SUFFIX: ' + task.queryTaskPath());
28348
28078
  task.setLevel(Constants.TASK_LEVEL_TASK);
28349
28079
  isSelectionTable = yield task.checkProp(PropInterface.PROP_TYPE_SELECTION, false);
28350
28080
  if (task.getMode() === Constants.TASK_MODE_QUERY && !forceSuffix && !rec.Modified &&
@@ -28383,7 +28113,7 @@ class EventsManager {
28383
28113
  val = Manager.GetCtrlVal(ctrl);
28384
28114
  task.CurrentEditingControl = null;
28385
28115
  if (!task.cancelWasRaised() &&
28386
- (ctrl.Type !== MgControlType.CTRL_TYPE_BROWSER && (!isNullOrUndefined(ctrl._field) && ctrl._field.getType() === StorageAttribute.DATE || val !== null) && typeof val != "undefined" &&
28116
+ (ctrl.Type !== MgControlType.CTRL_TYPE_BROWSER && (!isNullOrUndefined(ctrl._field) && ctrl._field.getType() === StorageAttribute.DATE || val !== null) && typeof val != 'undefined' &&
28387
28117
  !(yield ctrl.validateAndSetValue(val, true)))) {
28388
28118
  this.setStopExecution(true);
28389
28119
  return false;
@@ -28506,16 +28236,6 @@ class EventsManager {
28506
28236
  }
28507
28237
  });
28508
28238
  }
28509
- moveToLine(form, displayLine, ctrl) {
28510
- return __awaiter(this, void 0, void 0, function* () {
28511
- let runTimeEvent = new RunTimeEvent(ctrl, displayLine);
28512
- runTimeEvent.setInternal(InternalInterface.MG_ACT_REC_PREFIX);
28513
- yield this.handleEvent(runTimeEvent, false);
28514
- if (ctrl !== null)
28515
- yield ctrl.invoke();
28516
- form.SelectRow(true);
28517
- });
28518
- }
28519
28239
  createEventArguments(evt) {
28520
28240
  if (evt.getArgList() === null) {
28521
28241
  if (evt.getType() === ConstInterface.EVENT_TYPE_INTERNAL) {
@@ -28717,8 +28437,6 @@ class EventsManager {
28717
28437
  return;
28718
28438
  doSuffix = refDoSuffix.value;
28719
28439
  if (form != null) {
28720
- let parentId = 0;
28721
- let prevLine = 0;
28722
28440
  if ((task.getMode() !== Constants.TASK_MODE_CREATE) || !task.ConfirmUpdateNo)
28723
28441
  yield form.addRec(doSuffix, intEvtCode == InternalInterface.MG_ACT_CRELINE_ABOVE ? true : false);
28724
28442
  }
@@ -28951,7 +28669,6 @@ class EventsManager {
28951
28669
  yield task.DataviewManager.Execute(cmd);
28952
28670
  dv.setTopRecIdx(0);
28953
28671
  yield form.restoreOldDisplayLine(0);
28954
- this._isSorting = true;
28955
28672
  if (!(task === LastFocusedManager.Instance.getLastFocusedTask() || !task.pathContains(LastFocusedManager.Instance.getLastFocusedTask()))) {
28956
28673
  yield this.handleInternalEventWithTask(task, InternalInterface.MG_ACT_REC_PREFIX);
28957
28674
  if (!this.GetStopExecutionFlag() && !task.getPreventControlChange())
@@ -28961,7 +28678,6 @@ class EventsManager {
28961
28678
  }
28962
28679
  else
28963
28680
  yield this.handleInternalEventWithTask(task, InternalInterface.MG_ACT_REC_PREFIX);
28964
- this._isSorting = false;
28965
28681
  }
28966
28682
  }
28967
28683
  break;
@@ -29209,7 +28925,7 @@ class EventsManager {
29209
28925
  if (intEvtCode === InternalInterface.MG_ACT_RT_REFRESH_RECORD && evt.getArgList() !== null && evt.getArgList().getSize() !== 0) {
29210
28926
  let refetchRecStr;
29211
28927
  refetchRecStr = yield evt.getArgList().getArgValue(0, StorageAttribute.BOOLEAN, 0);
29212
- refetchRecord = (isNullOrUndefined(refetchRecStr) || refetchRecStr === "1");
28928
+ refetchRecord = (isNullOrUndefined(refetchRecStr) || refetchRecStr === '1');
29213
28929
  }
29214
28930
  if (refetchRecord)
29215
28931
  cmd = yield CommandFactory.CreateRealRefreshCommand(task.getTaskTag(), intEvtCode, currentRow, evt.getArgList(), dv.CurrentRecId);
@@ -29402,7 +29118,6 @@ class EventsManager {
29402
29118
  ctrl.InControl = true;
29403
29119
  return;
29404
29120
  }
29405
- this._nextParkedCtrl = null;
29406
29121
  let fld = ctrl.getField();
29407
29122
  if (fld != null && (ctrl.Type === MgControlType.CTRL_TYPE_TEXT))
29408
29123
  yield fld.updateDisplay();
@@ -29612,7 +29327,7 @@ class EventsManager {
29612
29327
  yield FocusManager.SetFocus(LastFocusedManager.getLastFocusedControl(), -1);
29613
29328
  return false;
29614
29329
  default:
29615
- Logger.Instance.WriteExceptionToLogWithMsg("in ClientManager.Instance.updateConfirmed() illegal confirmation code: " +
29330
+ Logger.Instance.WriteExceptionToLogWithMsg('in ClientManager.Instance.updateConfirmed() illegal confirmation code: ' +
29616
29331
  confirm);
29617
29332
  break;
29618
29333
  }
@@ -29646,7 +29361,7 @@ class EventsManager {
29646
29361
  let dataStorage = window.localStorage;
29647
29362
  if (this.getLastSavedRouteEvent() != null) {
29648
29363
  let rtEvt = this.getLastSavedRouteEvent();
29649
- dataStorage.setItem(ConstInterface.LAST_ROUTE_EVENT, "1");
29364
+ dataStorage.setItem(ConstInterface.LAST_ROUTE_EVENT, '1');
29650
29365
  dataStorage.setItem(ConstInterface.LAST_ROUTE_EVENT_SRC_TSK, JSON.stringify(rtEvt.getTask().TaskDefinitionId));
29651
29366
  if (rtEvt.getArgList().getSize() > 0) {
29652
29367
  let str = new StringBuilder();
@@ -29658,7 +29373,7 @@ class EventsManager {
29658
29373
  restoreLastSavedRouteEventFromLocalStorage() {
29659
29374
  let dataStorage = window.localStorage;
29660
29375
  let lastRouteEvent = dataStorage.getItem(ConstInterface.LAST_ROUTE_EVENT);
29661
- if (lastRouteEvent === "1") {
29376
+ if (lastRouteEvent === '1') {
29662
29377
  let srcTaskDefinitionStr = dataStorage.getItem(ConstInterface.LAST_ROUTE_EVENT_SRC_TSK);
29663
29378
  let routeArgListStr = dataStorage.getItem(ConstInterface.LAST_ROUTE_EVENT_ARG_LIST);
29664
29379
  let taskDefinitionId = new TaskDefinitionId();
@@ -29925,7 +29640,7 @@ class EventsManager {
29925
29640
  ((parentDv.getCurrRec())).Synced = true;
29926
29641
  parentDv.setChanged(true);
29927
29642
  let dataViewExecuteLocalUpdatesCommand = CommandFactory.CreateDataViewCommand(parentTask.getTaskTag(), DataViewCommandType.ExecuteLocalUpdates);
29928
- let result = yield parentTask.DataviewManager.Execute(dataViewExecuteLocalUpdatesCommand);
29643
+ yield parentTask.DataviewManager.Execute(dataViewExecuteLocalUpdatesCommand);
29929
29644
  }
29930
29645
  });
29931
29646
  }
@@ -29951,7 +29666,7 @@ class EventsManager {
29951
29666
  MGDataCollection.Instance.currMgdID = 0;
29952
29667
  let messageString = LanguageData.Instance.getConstMessage(MsgInterface.BRKTAB_STR_ERROR);
29953
29668
  let style = 16;
29954
- if (ex.Message.startsWith("<HTML")) {
29669
+ if (ex.Message.startsWith('<HTML')) {
29955
29670
  this.processHTMLContent(ex.Message);
29956
29671
  }
29957
29672
  else {
@@ -30004,7 +29719,6 @@ class EventsManager {
30004
29719
  return true;
30005
29720
  }
30006
29721
  }
30007
- EventsManager.Timer_Timeout_Infinite = -1;
30008
29722
  EventsManager.REAL_ONLY = true;
30009
29723
  EventsManager.MAX_OPER = 9999;
30010
29724
  EventsManager.userGrantedForContextActivity = true;
@@ -30108,13 +29822,6 @@ class GuiEventsProcessor extends EventsProcessor {
30108
29822
  EventsManager.Instance.addToTail(rtEvt);
30109
29823
  }
30110
29824
  }
30111
- static processEnableActs(guiMgCtrl, actList, enable) {
30112
- let mgControl = guiMgCtrl;
30113
- let rtEvt = new RunTimeEvent(mgControl, true);
30114
- rtEvt.setInternal(enable ? InternalInterface.MG_ACT_ENABLE_EVENTS : InternalInterface.MG_ACT_DISABLE_EVENTS);
30115
- rtEvt.setActEnableList(actList);
30116
- EventsManager.Instance.addToTail(rtEvt);
30117
- }
30118
29825
  static OnNonParkableLastParkedCtrl(ctrl) {
30119
29826
  }
30120
29827
  static processSelection(val, guiMgCtrl, line, produceClick) {
@@ -30154,16 +29861,6 @@ class GuiEventsProcessor extends EventsProcessor {
30154
29861
  static SaveLastClickInfo(controlName, X, Y, offsetX, offsetY, LastClickCoordinatesAreInPixels) {
30155
29862
  RuntimeContextBase.Instance.SaveLastClickInfo(controlName, X, Y, offsetX, offsetY, LastClickCoordinatesAreInPixels);
30156
29863
  }
30157
- static ProcessPress(guiMgForm, guiMgCtrl, line) {
30158
- let mgControl = guiMgCtrl;
30159
- if (mgControl == null)
30160
- Manager.EventsManager.addGuiTriggeredEventWithTaskAndCode(guiMgForm.getTask(), InternalInterface.MG_ACT_HIT);
30161
- else if (mgControl.isSubform())
30162
- mgControl.OnSubformClick();
30163
- else
30164
- Manager.EventsManager.addGuiTriggeredEventWithCtrlAndCodeAndLine(mgControl, InternalInterface.MG_ACT_CTRL_HIT, line);
30165
- Manager.EventsManager.addGuiTriggeredEventWithCtrlAndCodeAndLine(mgControl, InternalInterface.MG_ACT_PRESS, line);
30166
- }
30167
29864
  static IsLogonRTL() {
30168
29865
  return ServerConfig.Instance.IsLogonRTL();
30169
29866
  }
@@ -30217,7 +29914,6 @@ class OpenURLCommand extends ClientTargetedCommandBase {
30217
29914
  let guiParentMgData = null;
30218
29915
  let callingTask = (this._callingTaskTag != null ? AccessHelper.mgDataTable.GetTaskByID(this._callingTaskTag) : null);
30219
29916
  let pathParentTask = (this._pathParentTaskTag != null ? AccessHelper.mgDataTable.GetTaskByID(this._pathParentTaskTag) : null);
30220
- let lastFocusedTask = LastFocusedManager.Instance.getLastFocusedTask();
30221
29917
  guiParentTask = callingTask = AccessHelper.mgDataTable.GetTaskByID(this._callingTaskTag);
30222
29918
  if ((!NString.IsNullOrEmpty(this._subformCtrlName)) || (this._ditIdx !== Int32.MinValue) || this._isRoute) {
30223
29919
  if (this._isRoute && NString.IsNullOrEmpty(this._subformCtrlName.trim())) {
@@ -30477,7 +30173,6 @@ class VerifyCommand extends ClientTargetedCommandBase {
30477
30173
  this._text = null;
30478
30174
  this._display = '\0';
30479
30175
  this._mode = '\0';
30480
- this._sendAck = true;
30481
30176
  }
30482
30177
  Execute(res) {
30483
30178
  return __awaiter(this, void 0, void 0, function* () {
@@ -30536,7 +30231,6 @@ class VerifyCommand extends ClientTargetedCommandBase {
30536
30231
  this._mode = value[0];
30537
30232
  break;
30538
30233
  case ConstInterface.MG_ATTR_ACK:
30539
- this._sendAck = (XmlParser.getInt(value) !== 0);
30540
30234
  break;
30541
30235
  default:
30542
30236
  super.HandleAttribute(attribute, value);
@@ -31021,7 +30715,7 @@ class CommandsTable {
31021
30715
  startIterationIdx = this._iterationIdx;
31022
30716
  for (; this._iterationIdx < size; this._iterationIdx++) {
31023
30717
  cmd = ((this.getCmd(this._iterationIdx) instanceof AbortCommand) ? this.getCmd(this._iterationIdx) : null);
31024
- if (cmd != null && !cmd.TaskTag.startsWith("-") && cmd.Frame === frame) {
30718
+ if (cmd != null && !cmd.TaskTag.startsWith('-') && cmd.Frame === frame) {
31025
30719
  for (verifyIndex = 0; verifyIndex < this._iterationIdx; verifyIndex++) {
31026
30720
  verifyCmd = ((this.getCmd(verifyIndex) instanceof VerifyCommand) ? this.getCmd(verifyIndex) : null);
31027
30721
  if (verifyCmd != null && verifyCmd.Frame === frame) {
@@ -31069,7 +30763,6 @@ class CommandsTable {
31069
30763
  buildXML(message) {
31070
30764
  for (let i = 0; i < this._cmds.length; i = i + 1) {
31071
30765
  let cmd = this._cmds.get_Item(i);
31072
- let temp = new RefParam(false);
31073
30766
  message.Append(ClientOriginatedCommandSerializer.Serialize(cmd, AccessHelper.mgDataTable.getCurrMGData()));
31074
30767
  }
31075
30768
  this.clear();
@@ -31093,12 +30786,10 @@ class CommandsTable {
31093
30786
  }
31094
30787
  }
31095
30788
 
31096
- let CurrentClientVersion = '4.801.0-dev481.306';
30789
+ let CurrentClientVersion = '4.801.0-dev481.309';
31097
30790
 
31098
30791
  class ClientManager {
31099
30792
  constructor() {
31100
- this._guiEventsProcessor = null;
31101
- this._tableCacheManager = null;
31102
30793
  this._delayInProgress = false;
31103
30794
  this._debugClient = null;
31104
30795
  this._globalUniqueSessionId = null;
@@ -31118,7 +30809,6 @@ class ClientManager {
31118
30809
  AddEvent(guiEvent) {
31119
30810
  let task = MGDataCollection.Instance.GetTaskByID(guiEvent.TaskID);
31120
30811
  let lineIdx = +guiEvent.Line;
31121
- let clickDblClickSucceeded = false;
31122
30812
  let dvRowIdx = 0;
31123
30813
  if (task != null) {
31124
30814
  let control = null;
@@ -31319,7 +31009,7 @@ class ClientManager {
31319
31009
  HttpManager.setNativeHttpClient(httpClient);
31320
31010
  let loaded = yield ClientManager.Instance.LoadExecutionProps();
31321
31011
  if (loaded) {
31322
- ClientManager.Instance._guiEventsProcessor = new GuiEventsProcessor();
31012
+ new GuiEventsProcessor();
31323
31013
  ClientManager.Instance.InitGuiManager();
31324
31014
  ClientManager.Instance.InitCircularReferencesBypasses();
31325
31015
  let versionString = CurrentClientVersion === '0.0.0.0' ? "Development mode" : "Version : " + CurrentClientVersion;
@@ -31391,11 +31081,6 @@ class ClientManager {
31391
31081
  GetGlobalUniqueSessionID() {
31392
31082
  return this._globalUniqueSessionId;
31393
31083
  }
31394
- static getExecutionPropertiesFileName() {
31395
- let fullyQualifiedName = null;
31396
- let lastPathSeparator = fullyQualifiedName.lastIndexOf('\\');
31397
- return NString.Remove(fullyQualifiedName, lastPathSeparator + 1, fullyQualifiedName.length - lastPathSeparator - 1) + ConstInterface.EXECUTION_PROPERTIES_FILE_NAME;
31398
- }
31399
31084
  static GetControlPictureMask(taskId, controlName) {
31400
31085
  let pic = null;
31401
31086
  let task = MGDataCollection.Instance.GetTaskByID(taskId);
@@ -31538,15 +31223,47 @@ class MagicBridge {
31538
31223
  }
31539
31224
 
31540
31225
  class DataSourceIdKey {
31541
- constructor(taskCtlIdx, realIdx) {
31542
- this.taskCtlIdx = 0;
31543
- this.realIdx = 0;
31544
- this.taskCtlIdx = taskCtlIdx;
31545
- this.realIdx = realIdx;
31226
+ }
31227
+
31228
+ class DataviewHeaderFactory {
31229
+ CreateDataviewHeaders(task) {
31230
+ return new RemoteDataviewHeader(task);
31546
31231
  }
31547
- }
31548
- DataSourceIdKey.PRIME_NUMBER = 37;
31549
- DataSourceIdKey.SEED = 23;
31232
+ }
31233
+
31234
+ class DataviewHeadersSaxHandler {
31235
+ constructor(task, dataviewHeaders, xmlData) {
31236
+ this._dataviewHeaders = null;
31237
+ this._task = null;
31238
+ this._dataviewHeadersFactory = null;
31239
+ this._dataviewHeaders = dataviewHeaders;
31240
+ this._task = task;
31241
+ this._dataviewHeadersFactory = new DataviewHeaderFactory();
31242
+ JSON_Utils.JSONFromXML(xmlData, this.FillFromJSON.bind(this));
31243
+ }
31244
+ FillFromJSON(error, result) {
31245
+ if (error != null) {
31246
+ throw error;
31247
+ }
31248
+ let links = result[ConstInterface.MG_TAG_LINKS][ConstInterface.MG_TAG_LINK];
31249
+ if (!isNullOrUndefined(links) && links.constructor === Array) {
31250
+ for (let i = 0; i < links.length; i++) {
31251
+ let link = links[i]['$'];
31252
+ if (!isNullOrUndefined(link[ConstInterface.MG_ATTR_TABLE_INDEX])) {
31253
+ let dataviewHeader = this._dataviewHeadersFactory.CreateDataviewHeaders(this._task);
31254
+ let attributes = new Dictionary();
31255
+ for (let key in link) {
31256
+ if (key !== ConstInterface.MG_ATTR_TABLE_INDEX) {
31257
+ attributes.Add(key, link[key]);
31258
+ }
31259
+ }
31260
+ dataviewHeader.SetAttributes(attributes);
31261
+ this._dataviewHeaders.set_Item(dataviewHeader.Id, dataviewHeader);
31262
+ }
31263
+ }
31264
+ }
31265
+ }
31266
+ }
31550
31267
 
31551
31268
  class MenusDeserializer {
31552
31269
  }