@magic-xpa/engine 4.801.0-dev481.222 → 4.801.0-dev481.228

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; } },
@@ -17530,12 +17516,6 @@
17530
17516
  return this._newRec;
17531
17517
  };
17532
17518
  Record.prototype.getFieldDataXML = function (fldIdx, getOldVal) {
17533
- if (arguments.length === 2)
17534
- return this.getFieldDataXML_0(fldIdx, getOldVal);
17535
- else
17536
- return this.getFieldDataXML_1(fldIdx);
17537
- };
17538
- Record.prototype.getFieldDataXML_0 = function (fldIdx, getOldVal) {
17539
17519
  var fldVal;
17540
17520
  if (!getOldVal)
17541
17521
  fldVal = this.GetFieldValue(fldIdx);
@@ -17546,14 +17526,6 @@
17546
17526
  var tmpBuf = this.getXMLForValue(fldIdx, fldVal);
17547
17527
  return utils.XmlParser.escape(tmpBuf.toString()).toString();
17548
17528
  };
17549
- Record.prototype.getFieldDataXML_1 = function (fldIdx) {
17550
- var fieldValue = this.GetFieldValue(fldIdx);
17551
- if (fieldValue === null) {
17552
- throw new mscorelib.ApplicationException("in Record.buildFieldsData() null field value!\nField id: " + fldIdx);
17553
- }
17554
- var type = this.getFieldsTab().getType(fldIdx);
17555
- return gui.RecordUtils.serializeItemVal(fieldValue, type);
17556
- };
17557
17529
  Record.prototype.getFieldsTab = function () {
17558
17530
  if (this._dataview !== null)
17559
17531
  return this._dataview.GetFieldsTab();
@@ -17739,12 +17711,6 @@
17739
17711
  }
17740
17712
  };
17741
17713
  Record.prototype.buildFieldsData = function (message, isCurrRec, getOldVal) {
17742
- if (arguments.length === 3)
17743
- this.buildFieldsData_0(message, isCurrRec, getOldVal);
17744
- else
17745
- this.buildFieldsData_1(message);
17746
- };
17747
- Record.prototype.buildFieldsData_0 = function (message, isCurrRec, getOldVal) {
17748
17714
  var tmpStr = new mscorelib.StringBuilder();
17749
17715
  var from = this.getFromFldIdx(isCurrRec);
17750
17716
  var size = this.getSizeFld(isCurrRec);
@@ -17761,24 +17727,6 @@
17761
17727
  }
17762
17728
  message.Append(tmpStr.ToString());
17763
17729
  };
17764
- Record.prototype.buildFieldsData_1 = function (message) {
17765
- var i, from, size;
17766
- var fieldValue = new mscorelib.List();
17767
- from = this.getFromFldIdx(false);
17768
- size = this.getSizeFld(false);
17769
- for (i = 0; i < from + size; i++) {
17770
- if (Record.FLAG_VALUE_NOT_PASSED === (this._flags[i] & Record.FLAG_VALUE_NOT_PASSED))
17771
- continue;
17772
- var tmp = this.getFieldDataXML(i);
17773
- tmp.forEach(function (x) { return fieldValue.push(x); });
17774
- }
17775
- var fieldValuesInBytes = new Uint8Array(fieldValue.length);
17776
- for (i = 0; i < fieldValue.length; i++)
17777
- fieldValuesInBytes[i] = fieldValue.get_Item(i);
17778
- var encodedfieldValuesInBytes = utils.Base64.encode(fieldValuesInBytes);
17779
- var tmpStr = Environment.Instance.GetEncoding().GetString(encodedfieldValuesInBytes, 0, encodedfieldValuesInBytes.length);
17780
- message.Append(tmpStr);
17781
- };
17782
17730
  Record.prototype.getXMLForValue = function (fldIdx, fldVal) {
17783
17731
  var cellAttr = utils.StorageAttribute.SKIP;
17784
17732
  var fldAttr = this.getFieldsTab().getType(fldIdx);
@@ -17861,35 +17809,6 @@
17861
17809
  message.Append(" " + ConstInterface.MG_ATTR_DBPOS + "=\"" + utils.XmlParser.escape(this._linksFldsPos) + "\" ");
17862
17810
  message.Append(utils.XMLConstants.TAG_TERM);
17863
17811
  };
17864
- Record.prototype.buildXMLForDataViewToDataSource = function (message) {
17865
- var recFlags;
17866
- var from, size, i;
17867
- var aFlag;
17868
- var hexFlag;
17869
- message.Append("\n <" + ConstInterface.MG_TAG_REC);
17870
- if (this._id > mscorelib.Int32.MinValue)
17871
- message.Append(" " + utils.XMLConstants.MG_ATTR_ID + "=\"" + this._id + "\"");
17872
- message.Append(" " + ConstInterface.MG_ATTR_MODE + "=\"" + this._mode + "\"");
17873
- if (this._mode === gui.DataModificationTypes.Insert && this._prev != null)
17874
- message.Append(" " + ConstInterface.MG_ATTR_ADD_AFTER + "=\"" + this._prev.getId() + "\"");
17875
- message.Append(" " + utils.XMLConstants.MG_ATTR_VALUE + "=\"");
17876
- this.buildFieldsData(message);
17877
- message.Append("\"");
17878
- recFlags = new mscorelib.StringBuilder();
17879
- from = this.getFromFldIdx(false);
17880
- size = this.getSizeFld(false);
17881
- for (i = from; i < from + size; i++) {
17882
- aFlag = this._flagsHistory[i];
17883
- aFlag = aFlag & Record.FLAG_CRSR_MODIFIED;
17884
- aFlag = aFlag | this._flags[i];
17885
- hexFlag = mscorelib.NNumber.ToString(aFlag, 'X2');
17886
- recFlags.Append(hexFlag);
17887
- }
17888
- message.Append(" " + ConstInterface.MG_ATTR_FLAGS + "=\"" + recFlags + "\"");
17889
- if (this._linksFldsPos != null)
17890
- message.Append(" " + ConstInterface.MG_ATTR_DBPOS + "=\"" + utils.XmlParser.escape(this._linksFldsPos) + "\" ");
17891
- message.Append(utils.XMLConstants.TAG_TERM);
17892
- };
17893
17812
  Record.prototype.setShrinkFlags = function () {
17894
17813
  var i;
17895
17814
  var size = this.getSizeFld(true);
@@ -37340,7 +37259,7 @@
37340
37259
  return CommandsTable;
37341
37260
  }());
37342
37261
 
37343
- var CurrentClientVersion = '4.801.0-dev481.222';
37262
+ var CurrentClientVersion = '4.801.0-dev481.228';
37344
37263
 
37345
37264
  var ClientManager = /** @class */ (function () {
37346
37265
  function ClientManager() {