@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.
@@ -1804,20 +1804,6 @@ class MgControl extends MgControlBase {
1804
1804
  GetTableBehaviour() {
1805
1805
  return TableBehaviour.UnlimitedItems;
1806
1806
  }
1807
- getFieldXML(recIdx) {
1808
- if (recIdx < 0)
1809
- return "";
1810
- else {
1811
- let rec = super.getForm().getTask().DataView.getRecByIdx(recIdx);
1812
- return rec.getFieldDataXML(this._nodeIdField.getId(), false);
1813
- }
1814
- }
1815
- getParentFieldXML(recIdx) {
1816
- if (recIdx < 0)
1817
- return "";
1818
- let rec = super.getForm().getTask().DataView.getRecByIdx(recIdx);
1819
- return rec.getFieldDataXML(this._nodeParentIdField.getId(), false);
1820
- }
1821
1807
  validateAndSetValue(NewValue, updateCtrl) {
1822
1808
  const _super = Object.create(null, {
1823
1809
  UpdateModifiedByUser: { get: () => super.UpdateModifiedByUser },
@@ -10394,6 +10380,9 @@ class Operation {
10394
10380
  toString() {
10395
10381
  return NString.Format("Executing operation number {0}", this._serverId + 1);
10396
10382
  }
10383
+ GetRuntimeEvent() {
10384
+ return this._rtEvt;
10385
+ }
10397
10386
  }
10398
10387
 
10399
10388
  class MirrorString {
@@ -15412,12 +15401,6 @@ class Record {
15412
15401
  return this._newRec;
15413
15402
  }
15414
15403
  getFieldDataXML(fldIdx, getOldVal) {
15415
- if (arguments.length === 2)
15416
- return this.getFieldDataXML_0(fldIdx, getOldVal);
15417
- else
15418
- return this.getFieldDataXML_1(fldIdx);
15419
- }
15420
- getFieldDataXML_0(fldIdx, getOldVal) {
15421
15404
  let fldVal;
15422
15405
  if (!getOldVal)
15423
15406
  fldVal = this.GetFieldValue(fldIdx);
@@ -15428,14 +15411,6 @@ class Record {
15428
15411
  let tmpBuf = this.getXMLForValue(fldIdx, fldVal);
15429
15412
  return XmlParser.escape(tmpBuf.toString()).toString();
15430
15413
  }
15431
- getFieldDataXML_1(fldIdx) {
15432
- let fieldValue = this.GetFieldValue(fldIdx);
15433
- if (fieldValue === null) {
15434
- throw new ApplicationException("in Record.buildFieldsData() null field value!\nField id: " + fldIdx);
15435
- }
15436
- let type = this.getFieldsTab().getType(fldIdx);
15437
- return RecordUtils.serializeItemVal(fieldValue, type);
15438
- }
15439
15414
  getFieldsTab() {
15440
15415
  if (this._dataview !== null)
15441
15416
  return this._dataview.GetFieldsTab();
@@ -15621,12 +15596,6 @@ class Record {
15621
15596
  }
15622
15597
  }
15623
15598
  buildFieldsData(message, isCurrRec, getOldVal) {
15624
- if (arguments.length === 3)
15625
- this.buildFieldsData_0(message, isCurrRec, getOldVal);
15626
- else
15627
- this.buildFieldsData_1(message);
15628
- }
15629
- buildFieldsData_0(message, isCurrRec, getOldVal) {
15630
15599
  let tmpStr = new StringBuilder();
15631
15600
  let from = this.getFromFldIdx(isCurrRec);
15632
15601
  let size = this.getSizeFld(isCurrRec);
@@ -15643,24 +15612,6 @@ class Record {
15643
15612
  }
15644
15613
  message.Append(tmpStr.ToString());
15645
15614
  }
15646
- buildFieldsData_1(message) {
15647
- let i, from, size;
15648
- let fieldValue = new List();
15649
- from = this.getFromFldIdx(false);
15650
- size = this.getSizeFld(false);
15651
- for (i = 0; i < from + size; i++) {
15652
- if (Record.FLAG_VALUE_NOT_PASSED === (this._flags[i] & Record.FLAG_VALUE_NOT_PASSED))
15653
- continue;
15654
- let tmp = this.getFieldDataXML(i);
15655
- tmp.forEach(x => fieldValue.push(x));
15656
- }
15657
- let fieldValuesInBytes = new Uint8Array(fieldValue.length);
15658
- for (i = 0; i < fieldValue.length; i++)
15659
- fieldValuesInBytes[i] = fieldValue.get_Item(i);
15660
- let encodedfieldValuesInBytes = Base64.encode(fieldValuesInBytes);
15661
- let tmpStr = Environment.Instance.GetEncoding().GetString(encodedfieldValuesInBytes, 0, encodedfieldValuesInBytes.length);
15662
- message.Append(tmpStr);
15663
- }
15664
15615
  getXMLForValue(fldIdx, fldVal) {
15665
15616
  let cellAttr = StorageAttribute.SKIP;
15666
15617
  let fldAttr = this.getFieldsTab().getType(fldIdx);
@@ -15743,35 +15694,6 @@ class Record {
15743
15694
  message.Append(" " + ConstInterface.MG_ATTR_DBPOS + "=\"" + XmlParser.escape(this._linksFldsPos) + "\" ");
15744
15695
  message.Append(XMLConstants.TAG_TERM);
15745
15696
  }
15746
- buildXMLForDataViewToDataSource(message) {
15747
- let recFlags;
15748
- let from, size, i;
15749
- let aFlag;
15750
- let hexFlag;
15751
- message.Append("\n <" + ConstInterface.MG_TAG_REC);
15752
- if (this._id > Int32.MinValue)
15753
- message.Append(" " + XMLConstants.MG_ATTR_ID + "=\"" + this._id + "\"");
15754
- message.Append(" " + ConstInterface.MG_ATTR_MODE + "=\"" + this._mode + "\"");
15755
- if (this._mode === DataModificationTypes.Insert && this._prev != null)
15756
- message.Append(" " + ConstInterface.MG_ATTR_ADD_AFTER + "=\"" + this._prev.getId() + "\"");
15757
- message.Append(" " + XMLConstants.MG_ATTR_VALUE + "=\"");
15758
- this.buildFieldsData(message);
15759
- message.Append("\"");
15760
- recFlags = new StringBuilder();
15761
- from = this.getFromFldIdx(false);
15762
- size = this.getSizeFld(false);
15763
- for (i = from; i < from + size; i++) {
15764
- aFlag = this._flagsHistory[i];
15765
- aFlag = aFlag & Record.FLAG_CRSR_MODIFIED;
15766
- aFlag = aFlag | this._flags[i];
15767
- hexFlag = NNumber.ToString(aFlag, 'X2');
15768
- recFlags.Append(hexFlag);
15769
- }
15770
- message.Append(" " + ConstInterface.MG_ATTR_FLAGS + "=\"" + recFlags + "\"");
15771
- if (this._linksFldsPos != null)
15772
- message.Append(" " + ConstInterface.MG_ATTR_DBPOS + "=\"" + XmlParser.escape(this._linksFldsPos) + "\" ");
15773
- message.Append(XMLConstants.TAG_TERM);
15774
- }
15775
15697
  setShrinkFlags() {
15776
15698
  let i;
15777
15699
  let size = this.getSizeFld(true);
@@ -25216,6 +25138,15 @@ class Task extends TaskBase {
25216
25138
  clientOperationExist = true;
25217
25139
  break;
25218
25140
  }
25141
+ else {
25142
+ if (oper.getType() == ConstInterface.MG_OPER_RAISE_EVENT) {
25143
+ if (oper.GetRuntimeEvent().getType() == ConstInterface.EVENT_TYPE_INTERNAL &&
25144
+ oper.GetRuntimeEvent().getInternalCode() === InternalInterface.MG_ACT_RT_REFRESH_VIEW) {
25145
+ clientOperationExist = true;
25146
+ break;
25147
+ }
25148
+ }
25149
+ }
25219
25150
  }
25220
25151
  }
25221
25152
  if (!clientOperationExist && task.hasSubTasks()) {
@@ -31078,7 +31009,7 @@ class CommandsTable {
31078
31009
  }
31079
31010
  }
31080
31011
 
31081
- let CurrentClientVersion = '4.800.0';
31012
+ let CurrentClientVersion = '4.801.0-dev481.224';
31082
31013
 
31083
31014
  class ClientManager {
31084
31015
  constructor() {