@magic-xpa/engine 4.1000.0-dev4100.108 → 4.1000.0-dev4100.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/ConstInterface.mjs +1 -3
- package/esm2020/src/CurrentClientVersion.mjs +2 -2
- package/esm2020/src/env/Environment.mjs +1 -8
- package/esm2020/src/env/MirrorString.mjs +3 -2
- package/esm2020/src/event/EventHandler.mjs +3 -6
- package/esm2020/src/event/EventHandlerPosition.mjs +1 -5
- package/esm2020/src/gui/MgForm.mjs +6 -3
- package/esm2020/src/remote/RemoteCommandsProcessor.mjs +5 -14
- package/esm2020/src/util/FlowMonitorQueue.mjs +2 -107
- package/esm2020/src/util/PrmMap.mjs +2 -2
- package/fesm2015/magic-xpa-engine.mjs +16 -139
- package/fesm2015/magic-xpa-engine.mjs.map +1 -1
- package/fesm2020/magic-xpa-engine.mjs +16 -139
- package/fesm2020/magic-xpa-engine.mjs.map +1 -1
- package/package.json +4 -4
- package/src/ConstInterface.d.ts +0 -2
- package/src/env/Environment.d.ts +0 -2
- package/src/util/FlowMonitorQueue.d.ts +0 -8
- package/src/util/PrmMap.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __awaiter } from 'tslib';
|
|
2
2
|
import { StringBuilder, Int32, NString, ApplicationException, NNumber, List, Debug, Char, RefParam, NumberStyles, HashUtils, DateTime, Dictionary, Stack, NChar, isNullOrUndefined, WebException, Thread, Encoding, Exception, isUndefined, Hashtable, NotImplementedException, Array_Enumerator, ISO_8859_1_Encoding, Int64 } from '@magic-xpa/mscorelib';
|
|
3
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,
|
|
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
|
|
|
@@ -272,7 +272,6 @@ ConstInterface.MG_ATTR_LOCAL_AS400SET = "local_as400set";
|
|
|
272
272
|
ConstInterface.MG_ATTR_LOCAL_EXTRA_GENGO = "local_extraGengo";
|
|
273
273
|
ConstInterface.MG_ATTR_LOCAL_FLAGS = "local_flags";
|
|
274
274
|
ConstInterface.MG_ATTR_SPEACIAL_ANSI_EXP = "SpecialAnsiExpression";
|
|
275
|
-
ConstInterface.MG_ATTR_SPECIAL_IMMEDIATE_HANDLER_END = "SpecialImmediateHandlerEnd";
|
|
276
275
|
ConstInterface.MG_ATTR_SPECIAL_SHOW_STATUSBAR_PANES = "SpecialShowStatusBarPanes";
|
|
277
276
|
ConstInterface.MG_ATTR_SPECIAL_ROUTE_TO_ROOT_PROG_ON_CONTEXT_RECREATION = "SpecialRouteToRootProgramOnContextRecreation";
|
|
278
277
|
ConstInterface.MG_ATTR_SPECIAL_SPECIAL_EDIT_LEFT_ALIGN = "SpecialEditLeftAlign";
|
|
@@ -477,7 +476,6 @@ ConstInterface.RC_TOKEN_DATA = "DATA=";
|
|
|
477
476
|
ConstInterface.WEBCLIENT_REINITIALIZE_REQUEST = "WCREINITIALIZEREQUEST=Y";
|
|
478
477
|
ConstInterface.MAIN_PROG_VIEW = "MainProgramsDataView";
|
|
479
478
|
ConstInterface.GLOBAL_PARAM_LIST = "GlobalParamList";
|
|
480
|
-
ConstInterface.ENV_VAR_LIST = "EnvVarList";
|
|
481
479
|
ConstInterface.LAST_EXCEPTION = "LastException";
|
|
482
480
|
ConstInterface.CTX_REMOVED_FROM_SRVR = "CtxRemovedFromSrvr";
|
|
483
481
|
ConstInterface.LAST_ROUTE_EVENT = "LastRouteEvent";
|
|
@@ -3639,17 +3637,7 @@ class FlowMonitorQueue {
|
|
|
3639
3637
|
this._isRecompute = false;
|
|
3640
3638
|
this._isTask = false;
|
|
3641
3639
|
this._isTaskFlow = false;
|
|
3642
|
-
this._isDataView = false;
|
|
3643
3640
|
this.ShouldSerialize = false;
|
|
3644
|
-
this.padRight = (string, length, character = ' ') => {
|
|
3645
|
-
let result = "";
|
|
3646
|
-
let totalLength = length - string.length;
|
|
3647
|
-
for (let i = 0; i < totalLength; i++) {
|
|
3648
|
-
result = character + result;
|
|
3649
|
-
}
|
|
3650
|
-
result = result + string;
|
|
3651
|
-
return result;
|
|
3652
|
-
};
|
|
3653
3641
|
}
|
|
3654
3642
|
static get Instance() {
|
|
3655
3643
|
if (FlowMonitorQueue._instance === null)
|
|
@@ -3707,9 +3695,6 @@ class FlowMonitorQueue {
|
|
|
3707
3695
|
case ConstInterface.MG_ATTR_TASKFLW:
|
|
3708
3696
|
this._isTaskFlow = XmlParser.getBoolean(valueStr);
|
|
3709
3697
|
break;
|
|
3710
|
-
case ConstInterface.MG_TAG_DATAVIEW:
|
|
3711
|
-
this._isDataView = XmlParser.getBoolean(valueStr);
|
|
3712
|
-
break;
|
|
3713
3698
|
case ConstInterface.MG_ATTR_RECOMP:
|
|
3714
3699
|
this._isRecompute = XmlParser.getBoolean(valueStr);
|
|
3715
3700
|
break;
|
|
@@ -3767,96 +3752,6 @@ class FlowMonitorQueue {
|
|
|
3767
3752
|
Logger.Instance.WriteSupportToLog(taskInfo + ": " + info, true);
|
|
3768
3753
|
}
|
|
3769
3754
|
}
|
|
3770
|
-
appendVirtualsAndParameters(currentValues) {
|
|
3771
|
-
let act = new ActivityItem(this, FlowMonitorQueue.ACT_TASK_FLW, InternalInterface.MG_ACT_REC_PREFIX);
|
|
3772
|
-
act.setInfo(currentValues);
|
|
3773
|
-
this._queue.put(act);
|
|
3774
|
-
}
|
|
3775
|
-
addDataViewFlow(task) {
|
|
3776
|
-
if (this._isDataView) {
|
|
3777
|
-
let fldTab = task.DataView.GetFieldsTab();
|
|
3778
|
-
let preparedDisplayString = "";
|
|
3779
|
-
let finaldisplayData = "\n";
|
|
3780
|
-
let fldValue;
|
|
3781
|
-
let data = "";
|
|
3782
|
-
for (let i = 0; i < fldTab.getSize(); i++) {
|
|
3783
|
-
let fldDef = fldTab.getField(i);
|
|
3784
|
-
if (!fldDef.IsEventHandlerField && (fldDef.IsVirtual && !fldDef.VirAsReal) || fldDef.isParam()) {
|
|
3785
|
-
fldValue = fldDef.isNull() ? fldDef.getNullValue() : fldDef.getValue(true);
|
|
3786
|
-
data = this.getFieldData(fldDef.getType(), fldValue, fldDef.getPicture(), fldDef.getCellsType(), task);
|
|
3787
|
-
preparedDisplayString = this.PrepareDisplayString(fldDef.isParam(), fldDef.getVarName(), data, true);
|
|
3788
|
-
finaldisplayData = finaldisplayData + preparedDisplayString + "\n";
|
|
3789
|
-
}
|
|
3790
|
-
}
|
|
3791
|
-
this.appendVirtualsAndParameters(finaldisplayData);
|
|
3792
|
-
}
|
|
3793
|
-
}
|
|
3794
|
-
getFieldData(Storagetype, data, picture, vecCellType, task) {
|
|
3795
|
-
switch (Storagetype) {
|
|
3796
|
-
case StorageAttribute.DOTNET:
|
|
3797
|
-
data = FlowMonitorQueue.UNPRINTABLE_STR_LOG;
|
|
3798
|
-
break;
|
|
3799
|
-
case StorageAttribute.BLOB:
|
|
3800
|
-
{
|
|
3801
|
-
if (BlobType.isValidBlob(data)) {
|
|
3802
|
-
let contentType = BlobType.getContentType(data);
|
|
3803
|
-
if (contentType == BlobType.CONTENT_TYPE_ANSI || contentType == BlobType.CONTENT_TYPE_UNICODE)
|
|
3804
|
-
data = data != null ? BlobType.getString(data) : "";
|
|
3805
|
-
else
|
|
3806
|
-
data = FlowMonitorQueue.UNPRINTABLE_STR_LOG;
|
|
3807
|
-
}
|
|
3808
|
-
else
|
|
3809
|
-
data = "";
|
|
3810
|
-
}
|
|
3811
|
-
break;
|
|
3812
|
-
case StorageAttribute.NUMERIC:
|
|
3813
|
-
case StorageAttribute.DATE:
|
|
3814
|
-
case StorageAttribute.TIME:
|
|
3815
|
-
let conv = DisplayConvertor.Instance;
|
|
3816
|
-
data = conv.mg2disp(data, " ", new PIC(picture, Storagetype, task.getCompIdx()), false, task.getCompIdx(), false);
|
|
3817
|
-
break;
|
|
3818
|
-
case StorageAttribute.BLOB_VECTOR:
|
|
3819
|
-
let vecOutData;
|
|
3820
|
-
if (data == null) {
|
|
3821
|
-
vecOutData = "[]";
|
|
3822
|
-
}
|
|
3823
|
-
else {
|
|
3824
|
-
let cellAtt = vecCellType;
|
|
3825
|
-
let vector = new VectorType(data);
|
|
3826
|
-
if (cellAtt == StorageAttribute.BLOB && !VectorType.validateBlobContents(data))
|
|
3827
|
-
vecOutData = "[]";
|
|
3828
|
-
else {
|
|
3829
|
-
let vecSize = VectorType.getVecSize(data);
|
|
3830
|
-
let cellPicture = (cellAtt == StorageAttribute.NUMERIC || cellAtt == StorageAttribute.DATE || cellAtt == StorageAttribute.TIME) ? PIC.buildPicture(cellAtt, vector.getVecCell(1), task.getCompIdx(), true).getFormat() : picture;
|
|
3831
|
-
vecOutData = "[";
|
|
3832
|
-
for (let i = 0; i < vecSize; i++) {
|
|
3833
|
-
vecOutData += this.getFieldData(cellAtt, vector.getVecCell(i + 1), cellPicture, vecCellType, task);
|
|
3834
|
-
vecOutData += i < vecSize - 1 ? "," : "]";
|
|
3835
|
-
}
|
|
3836
|
-
}
|
|
3837
|
-
}
|
|
3838
|
-
data = vecOutData;
|
|
3839
|
-
break;
|
|
3840
|
-
case StorageAttribute.BOOLEAN:
|
|
3841
|
-
data = data == "1" ? "TRUE" : "FALSE";
|
|
3842
|
-
break;
|
|
3843
|
-
}
|
|
3844
|
-
return data;
|
|
3845
|
-
}
|
|
3846
|
-
PrepareDisplayString(mode, name, valueContent, addDoubleQuotes) {
|
|
3847
|
-
let str = "";
|
|
3848
|
-
let finalStringToDisplay = "";
|
|
3849
|
-
if (addDoubleQuotes)
|
|
3850
|
-
finalStringToDisplay = finalStringToDisplay + "\"";
|
|
3851
|
-
finalStringToDisplay = finalStringToDisplay + name;
|
|
3852
|
-
if (addDoubleQuotes)
|
|
3853
|
-
finalStringToDisplay = finalStringToDisplay + "\"";
|
|
3854
|
-
let paddedName = this.padRight(name, 34);
|
|
3855
|
-
let formatOfStringVirtual = `Virtual`;
|
|
3856
|
-
let formatOfStringParameter = `Parameter`;
|
|
3857
|
-
str = (mode ? formatOfStringParameter : formatOfStringVirtual) + " : " + `${paddedName}` + " : " + `${valueContent}`;
|
|
3858
|
-
return str;
|
|
3859
|
-
}
|
|
3860
3755
|
addTaskFlowRec(id, state, taskInfo) {
|
|
3861
3756
|
if (this._enabled && this._isTaskFlow) {
|
|
3862
3757
|
let info;
|
|
@@ -4023,7 +3918,6 @@ class FlowMonitorQueue {
|
|
|
4023
3918
|
}
|
|
4024
3919
|
}
|
|
4025
3920
|
FlowMonitorQueue._instance = null;
|
|
4026
|
-
FlowMonitorQueue.UNPRINTABLE_STR_LOG = "#UNPRINTABLE#";
|
|
4027
3921
|
FlowMonitorQueue.S_EVENT_STR1 = ">>Starts ";
|
|
4028
3922
|
FlowMonitorQueue.S_EVENT_STR2 = " Event";
|
|
4029
3923
|
FlowMonitorQueue.S_EVENT_PROPAGATED = "Event was propagated";
|
|
@@ -5380,12 +5274,10 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
5380
5274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5381
5275
|
let mainPrgViewStringForServer = yield this.BuildXMLForMainProgramDataView();
|
|
5382
5276
|
let globalParamsString = AccessHelper.globalParams.mirrorAllToXML();
|
|
5383
|
-
let changedEnvVarList = AccessHelper.envParamsTable.mirrorAllToXML();
|
|
5384
5277
|
let dataStorage = window.localStorage;
|
|
5385
5278
|
dataStorage.setItem(ConstInterface.IS_SESSION_REINITIALIZING, "true");
|
|
5386
5279
|
dataStorage.setItem(ConstInterface.MAIN_PROG_VIEW, mainPrgViewStringForServer.toString());
|
|
5387
5280
|
dataStorage.setItem(ConstInterface.GLOBAL_PARAM_LIST, globalParamsString);
|
|
5388
|
-
dataStorage.setItem(ConstInterface.ENV_VAR_LIST, changedEnvVarList);
|
|
5389
5281
|
dataStorage.setItem(ConstInterface.LAST_EXCEPTION, RemoteCommandsProcessor.lastExceptionMessage);
|
|
5390
5282
|
if (RuntimeContextBase.Instance.RemovedContextFromServer)
|
|
5391
5283
|
dataStorage.setItem(ConstInterface.CTX_REMOVED_FROM_SRVR, "1");
|
|
@@ -5622,7 +5514,6 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
5622
5514
|
let reqBuf;
|
|
5623
5515
|
let isInitialCall = sessionStage === CommandsProcessorBase_SessionStage.INITIAL;
|
|
5624
5516
|
let globalParamsString = null;
|
|
5625
|
-
let envVarsString = null;
|
|
5626
5517
|
if (this.DelayCommandExecution)
|
|
5627
5518
|
return;
|
|
5628
5519
|
if (Logger.Instance.LogLevel == Logger_LogLevels.RequestInfo && !isInitialCall)
|
|
@@ -5648,16 +5539,12 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
5648
5539
|
let buffer = new StringBuilder();
|
|
5649
5540
|
if (!RemoteCommandsProcessor.IsSessionReInitializing)
|
|
5650
5541
|
buffer.Append(reqBuf);
|
|
5651
|
-
if (RemoteCommandsProcessor.IsSessionReInitializing)
|
|
5542
|
+
if (RemoteCommandsProcessor.IsSessionReInitializing)
|
|
5652
5543
|
globalParamsString = this.RestoreSessionReInitializingDataFromLocalStorage(ConstInterface.GLOBAL_PARAM_LIST);
|
|
5653
|
-
|
|
5654
|
-
}
|
|
5655
|
-
else {
|
|
5544
|
+
else
|
|
5656
5545
|
globalParamsString = AccessHelper.globalParams.mirrorToXML();
|
|
5657
|
-
envVarsString = AccessHelper.envParamsTable.mirrorToXML();
|
|
5658
|
-
}
|
|
5659
5546
|
changes.Append(globalParamsString);
|
|
5660
|
-
changes.Append(
|
|
5547
|
+
changes.Append(AccessHelper.envParamsTable.mirrorToXML());
|
|
5661
5548
|
if (changes.Length > 0) {
|
|
5662
5549
|
changes.Insert(0, "<" + ConstInterface.MG_TAG_ENV_CHANGES + ">");
|
|
5663
5550
|
changes.Append("</" + ConstInterface.MG_TAG_ENV_CHANGES + ">");
|
|
@@ -5696,15 +5583,13 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
|
5696
5583
|
dataStorage.removeItem(ConstInterface.IS_SESSION_REINITIALIZING);
|
|
5697
5584
|
dataStorage.removeItem(ConstInterface.MAIN_PROG_VIEW);
|
|
5698
5585
|
dataStorage.removeItem(ConstInterface.GLOBAL_PARAM_LIST);
|
|
5699
|
-
dataStorage.removeItem(ConstInterface.ENV_VAR_LIST);
|
|
5700
5586
|
dataStorage.removeItem(ConstInterface.LAST_EXCEPTION);
|
|
5701
5587
|
}
|
|
5702
5588
|
}
|
|
5703
5589
|
FlowMonitorQueue.Instance.enable(false);
|
|
5704
5590
|
yield this.ProcessResponse(respBuf, AccessHelper.mgDataTable.currMgdID, null, res);
|
|
5705
5591
|
if (RemoteCommandsProcessor.IsSessionReInitializing) {
|
|
5706
|
-
AccessHelper.globalParams.
|
|
5707
|
-
AccessHelper.envParamsTable.RestoreParams(envVarsString);
|
|
5592
|
+
AccessHelper.globalParams.RestoreGlobalParams(globalParamsString);
|
|
5708
5593
|
let dataStorage = window.localStorage;
|
|
5709
5594
|
let ctxRemoved = dataStorage.getItem(ConstInterface.CTX_REMOVED_FROM_SRVR);
|
|
5710
5595
|
if (ctxRemoved === "1") {
|
|
@@ -7630,9 +7515,6 @@ class EventHandlerPosition {
|
|
|
7630
7515
|
case InternalInterface.MG_ACT_REC_SUFFIX:
|
|
7631
7516
|
case InternalInterface.MG_ACT_CTRL_PREFIX:
|
|
7632
7517
|
case InternalInterface.MG_ACT_CTRL_SUFFIX: {
|
|
7633
|
-
if (this._rtEvt.getInternalCode() == InternalInterface.MG_ACT_REC_PREFIX) {
|
|
7634
|
-
FlowMonitorQueue.Instance.addDataViewFlow(this._task);
|
|
7635
|
-
}
|
|
7636
7518
|
if (this._handlerIdx === -1) {
|
|
7637
7519
|
for (this._handlerIdx = this._handlersTab.getSize() - 1; this._handlerIdx >= 0; this._handlerIdx--) {
|
|
7638
7520
|
let handler = this._handlersTab.getHandler(this._handlerIdx);
|
|
@@ -8559,7 +8441,7 @@ class MirrorPrmMap extends PrmMap {
|
|
|
8559
8441
|
while (this.mirrorFromXML(parser.getNextTag(), parser)) {
|
|
8560
8442
|
}
|
|
8561
8443
|
}
|
|
8562
|
-
|
|
8444
|
+
RestoreGlobalParams(xml) {
|
|
8563
8445
|
let parser = new XmlParser(xml);
|
|
8564
8446
|
while (this.mirrorFromXML(parser.getNextTag(), parser)) {
|
|
8565
8447
|
}
|
|
@@ -8634,7 +8516,6 @@ class Environment {
|
|
|
8634
8516
|
this._debugMode = 0;
|
|
8635
8517
|
this._significantNumSize = 0;
|
|
8636
8518
|
this._specialAnsiExpression = false;
|
|
8637
|
-
this._specialImmediatehandlerEnd = false;
|
|
8638
8519
|
this._specialShowStatusBarPanes = false;
|
|
8639
8520
|
this._specialRouteToRootProgOnContextRecreation = false;
|
|
8640
8521
|
this._specialCancelOnCreate = false;
|
|
@@ -8788,9 +8669,6 @@ class Environment {
|
|
|
8788
8669
|
case ConstInterface.MG_ATTR_LOCAL_FLAGS:
|
|
8789
8670
|
this._localFlags = valueStr;
|
|
8790
8671
|
break;
|
|
8791
|
-
case ConstInterface.MG_ATTR_SPECIAL_IMMEDIATE_HANDLER_END:
|
|
8792
|
-
this._specialImmediatehandlerEnd = XmlParser.getBoolean(valueStr);
|
|
8793
|
-
break;
|
|
8794
8672
|
case ConstInterface.MG_ATTR_SPEACIAL_ANSI_EXP:
|
|
8795
8673
|
this._specialAnsiExpression = XmlParser.getBoolean(valueStr);
|
|
8796
8674
|
break;
|
|
@@ -8997,9 +8875,6 @@ class Environment {
|
|
|
8997
8875
|
GetLocalFlag(f) {
|
|
8998
8876
|
return this._localFlags !== null && this._localFlags.indexOf(f) >= 0;
|
|
8999
8877
|
}
|
|
9000
|
-
getSpecialImmediateHandlerEnd() {
|
|
9001
|
-
return this._specialImmediatehandlerEnd;
|
|
9002
|
-
}
|
|
9003
8878
|
getSpecialAnsiExpression() {
|
|
9004
8879
|
return this._specialAnsiExpression;
|
|
9005
8880
|
}
|
|
@@ -10038,7 +9913,8 @@ class MirrorString {
|
|
|
10038
9913
|
this._reserved = false;
|
|
10039
9914
|
}
|
|
10040
9915
|
mirrorToXML() {
|
|
10041
|
-
return ConstInterface.MG_ATTR_ENV_VALUE + "=\"" + XmlParser.escape(this._value) + "\""
|
|
9916
|
+
return ConstInterface.MG_ATTR_ENV_VALUE + "=\"" + XmlParser.escape(this._value) + "\" " +
|
|
9917
|
+
ConstInterface.MG_ATTR_ENV_WRITEINI + "=F";
|
|
10042
9918
|
}
|
|
10043
9919
|
init(name, xmlParser) {
|
|
10044
9920
|
let valueStart, valueEnd, reserveStart, paramEnd;
|
|
@@ -19796,7 +19672,11 @@ class MgForm extends MgFormBase {
|
|
|
19796
19672
|
this.GetDataview().setTopRecIdxModified(true);
|
|
19797
19673
|
try {
|
|
19798
19674
|
this._suffixDone = false;
|
|
19799
|
-
|
|
19675
|
+
let newDisplayLine = this.GetDataview().getCurrRecIdx() + size;
|
|
19676
|
+
if (unit === Constants.MOVE_UNIT_PAGE && this.isLineMode())
|
|
19677
|
+
if (newDisplayLine > this.GetDataview().getSize() - 1)
|
|
19678
|
+
visibleLine -= newDisplayLine - (this.GetDataview().getSize() - 1);
|
|
19679
|
+
yield this.setCurrRowByDisplayLine(newDisplayLine, true, false);
|
|
19800
19680
|
this.GetDataview().setTopRecIdxModified(false);
|
|
19801
19681
|
yield this.RefreshDisplay(Constants.TASK_REFRESH_FORM);
|
|
19802
19682
|
}
|
|
@@ -19836,7 +19716,6 @@ class MgForm extends MgFormBase {
|
|
|
19836
19716
|
try {
|
|
19837
19717
|
yield this.RefreshDisplay(Constants.TASK_REFRESH_FORM);
|
|
19838
19718
|
yield this.setCurrRowByDisplayLine(this.GetDataview().getTopRecIdx() + this.getLastValidRow(), false, true);
|
|
19839
|
-
visibleLine = this.getLastValidRow();
|
|
19840
19719
|
}
|
|
19841
19720
|
catch (Exception) {
|
|
19842
19721
|
}
|
|
@@ -22016,10 +21895,8 @@ class EventHandler {
|
|
|
22016
21895
|
continue;
|
|
22017
21896
|
else if (this._operationTab.getOperation(oper.getBlockEnd()).getServerId() < nextOperIdx)
|
|
22018
21897
|
continue;
|
|
22019
|
-
if (!taskEnd)
|
|
22020
|
-
|
|
22021
|
-
break;
|
|
22022
|
-
}
|
|
21898
|
+
if (!taskEnd)
|
|
21899
|
+
yield this._task.evalEndCond(ConstInterface.END_COND_EVAL_IMMIDIATE);
|
|
22023
21900
|
if (this._taskMgdID !== mgdID)
|
|
22024
21901
|
isChangedCurrWndRef.value = true;
|
|
22025
21902
|
if (!this._task.isMainProg() && this._task.isOpenWin())
|
|
@@ -30356,7 +30233,7 @@ class CommandsTable {
|
|
|
30356
30233
|
}
|
|
30357
30234
|
}
|
|
30358
30235
|
|
|
30359
|
-
let CurrentClientVersion = '4.1000.0-dev4100.
|
|
30236
|
+
let CurrentClientVersion = '4.1000.0-dev4100.109';
|
|
30360
30237
|
|
|
30361
30238
|
class ClientManager {
|
|
30362
30239
|
constructor() {
|