@magic-xpa/engine 4.800.0 → 4.801.0-dev481.224

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.
@@ -2336,20 +2336,6 @@
2336
2336
  MgControl.prototype.GetTableBehaviour = function () {
2337
2337
  return utils.TableBehaviour.UnlimitedItems;
2338
2338
  };
2339
- MgControl.prototype.getFieldXML = function (recIdx) {
2340
- if (recIdx < 0)
2341
- return "";
2342
- else {
2343
- var rec = _super_1.prototype.getForm.call(this).getTask().DataView.getRecByIdx(recIdx);
2344
- return rec.getFieldDataXML(this._nodeIdField.getId(), false);
2345
- }
2346
- };
2347
- MgControl.prototype.getParentFieldXML = function (recIdx) {
2348
- if (recIdx < 0)
2349
- return "";
2350
- var rec = _super_1.prototype.getForm.call(this).getTask().DataView.getRecByIdx(recIdx);
2351
- return rec.getFieldDataXML(this._nodeParentIdField.getId(), false);
2352
- };
2353
2339
  MgControl.prototype.validateAndSetValue = function (NewValue, updateCtrl) {
2354
2340
  var _super = Object.create(null, {
2355
2341
  UpdateModifiedByUser: { get: function () { return _super_1.prototype.UpdateModifiedByUser; } },
@@ -11998,6 +11984,9 @@
11998
11984
  Operation.prototype.toString = function () {
11999
11985
  return mscorelib.NString.Format("Executing operation number {0}", this._serverId + 1);
12000
11986
  };
11987
+ Operation.prototype.GetRuntimeEvent = function () {
11988
+ return this._rtEvt;
11989
+ };
12001
11990
  return Operation;
12002
11991
  }());
12003
11992
 
@@ -17527,12 +17516,6 @@
17527
17516
  return this._newRec;
17528
17517
  };
17529
17518
  Record.prototype.getFieldDataXML = function (fldIdx, getOldVal) {
17530
- if (arguments.length === 2)
17531
- return this.getFieldDataXML_0(fldIdx, getOldVal);
17532
- else
17533
- return this.getFieldDataXML_1(fldIdx);
17534
- };
17535
- Record.prototype.getFieldDataXML_0 = function (fldIdx, getOldVal) {
17536
17519
  var fldVal;
17537
17520
  if (!getOldVal)
17538
17521
  fldVal = this.GetFieldValue(fldIdx);
@@ -17543,14 +17526,6 @@
17543
17526
  var tmpBuf = this.getXMLForValue(fldIdx, fldVal);
17544
17527
  return utils.XmlParser.escape(tmpBuf.toString()).toString();
17545
17528
  };
17546
- Record.prototype.getFieldDataXML_1 = function (fldIdx) {
17547
- var fieldValue = this.GetFieldValue(fldIdx);
17548
- if (fieldValue === null) {
17549
- throw new mscorelib.ApplicationException("in Record.buildFieldsData() null field value!\nField id: " + fldIdx);
17550
- }
17551
- var type = this.getFieldsTab().getType(fldIdx);
17552
- return gui.RecordUtils.serializeItemVal(fieldValue, type);
17553
- };
17554
17529
  Record.prototype.getFieldsTab = function () {
17555
17530
  if (this._dataview !== null)
17556
17531
  return this._dataview.GetFieldsTab();
@@ -17736,12 +17711,6 @@
17736
17711
  }
17737
17712
  };
17738
17713
  Record.prototype.buildFieldsData = function (message, isCurrRec, getOldVal) {
17739
- if (arguments.length === 3)
17740
- this.buildFieldsData_0(message, isCurrRec, getOldVal);
17741
- else
17742
- this.buildFieldsData_1(message);
17743
- };
17744
- Record.prototype.buildFieldsData_0 = function (message, isCurrRec, getOldVal) {
17745
17714
  var tmpStr = new mscorelib.StringBuilder();
17746
17715
  var from = this.getFromFldIdx(isCurrRec);
17747
17716
  var size = this.getSizeFld(isCurrRec);
@@ -17758,24 +17727,6 @@
17758
17727
  }
17759
17728
  message.Append(tmpStr.ToString());
17760
17729
  };
17761
- Record.prototype.buildFieldsData_1 = function (message) {
17762
- var i, from, size;
17763
- var fieldValue = new mscorelib.List();
17764
- from = this.getFromFldIdx(false);
17765
- size = this.getSizeFld(false);
17766
- for (i = 0; i < from + size; i++) {
17767
- if (Record.FLAG_VALUE_NOT_PASSED === (this._flags[i] & Record.FLAG_VALUE_NOT_PASSED))
17768
- continue;
17769
- var tmp = this.getFieldDataXML(i);
17770
- tmp.forEach(function (x) { return fieldValue.push(x); });
17771
- }
17772
- var fieldValuesInBytes = new Uint8Array(fieldValue.length);
17773
- for (i = 0; i < fieldValue.length; i++)
17774
- fieldValuesInBytes[i] = fieldValue.get_Item(i);
17775
- var encodedfieldValuesInBytes = utils.Base64.encode(fieldValuesInBytes);
17776
- var tmpStr = Environment.Instance.GetEncoding().GetString(encodedfieldValuesInBytes, 0, encodedfieldValuesInBytes.length);
17777
- message.Append(tmpStr);
17778
- };
17779
17730
  Record.prototype.getXMLForValue = function (fldIdx, fldVal) {
17780
17731
  var cellAttr = utils.StorageAttribute.SKIP;
17781
17732
  var fldAttr = this.getFieldsTab().getType(fldIdx);
@@ -17858,35 +17809,6 @@
17858
17809
  message.Append(" " + ConstInterface.MG_ATTR_DBPOS + "=\"" + utils.XmlParser.escape(this._linksFldsPos) + "\" ");
17859
17810
  message.Append(utils.XMLConstants.TAG_TERM);
17860
17811
  };
17861
- Record.prototype.buildXMLForDataViewToDataSource = function (message) {
17862
- var recFlags;
17863
- var from, size, i;
17864
- var aFlag;
17865
- var hexFlag;
17866
- message.Append("\n <" + ConstInterface.MG_TAG_REC);
17867
- if (this._id > mscorelib.Int32.MinValue)
17868
- message.Append(" " + utils.XMLConstants.MG_ATTR_ID + "=\"" + this._id + "\"");
17869
- message.Append(" " + ConstInterface.MG_ATTR_MODE + "=\"" + this._mode + "\"");
17870
- if (this._mode === gui.DataModificationTypes.Insert && this._prev != null)
17871
- message.Append(" " + ConstInterface.MG_ATTR_ADD_AFTER + "=\"" + this._prev.getId() + "\"");
17872
- message.Append(" " + utils.XMLConstants.MG_ATTR_VALUE + "=\"");
17873
- this.buildFieldsData(message);
17874
- message.Append("\"");
17875
- recFlags = new mscorelib.StringBuilder();
17876
- from = this.getFromFldIdx(false);
17877
- size = this.getSizeFld(false);
17878
- for (i = from; i < from + size; i++) {
17879
- aFlag = this._flagsHistory[i];
17880
- aFlag = aFlag & Record.FLAG_CRSR_MODIFIED;
17881
- aFlag = aFlag | this._flags[i];
17882
- hexFlag = mscorelib.NNumber.ToString(aFlag, 'X2');
17883
- recFlags.Append(hexFlag);
17884
- }
17885
- message.Append(" " + ConstInterface.MG_ATTR_FLAGS + "=\"" + recFlags + "\"");
17886
- if (this._linksFldsPos != null)
17887
- message.Append(" " + ConstInterface.MG_ATTR_DBPOS + "=\"" + utils.XmlParser.escape(this._linksFldsPos) + "\" ");
17888
- message.Append(utils.XMLConstants.TAG_TERM);
17889
- };
17890
17812
  Record.prototype.setShrinkFlags = function () {
17891
17813
  var i;
17892
17814
  var size = this.getSizeFld(true);
@@ -29417,6 +29339,15 @@
29417
29339
  clientOperationExist = true;
29418
29340
  break;
29419
29341
  }
29342
+ else {
29343
+ if (oper.getType() == ConstInterface.MG_OPER_RAISE_EVENT) {
29344
+ if (oper.GetRuntimeEvent().getType() == ConstInterface.EVENT_TYPE_INTERNAL &&
29345
+ oper.GetRuntimeEvent().getInternalCode() === utils.InternalInterface.MG_ACT_RT_REFRESH_VIEW) {
29346
+ clientOperationExist = true;
29347
+ break;
29348
+ }
29349
+ }
29350
+ }
29420
29351
  }
29421
29352
  }
29422
29353
  if (!(!clientOperationExist && task.hasSubTasks())) return [3 /*break*/, 6];
@@ -37328,7 +37259,7 @@
37328
37259
  return CommandsTable;
37329
37260
  }());
37330
37261
 
37331
- var CurrentClientVersion = '4.800.0';
37262
+ var CurrentClientVersion = '4.801.0-dev481.224';
37332
37263
 
37333
37264
  var ClientManager = /** @class */ (function () {
37334
37265
  function ClientManager() {