tnx-shared 5.3.337 → 5.3.339

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.
@@ -2313,6 +2313,7 @@
2313
2313
  // Nếu có value nghĩa là những cột này cần phải lấy dữ liệu xong rồi mới đến cột khác
2314
2314
  _this.order = 1;
2315
2315
  _this.mdWidthInSearch = 12;
2316
+ _this.showExtendContent = false;
2316
2317
  _this.min = 0;
2317
2318
  _this.max = 99999999999;
2318
2319
  _this.isForeignField = false;
@@ -19680,7 +19681,7 @@
19680
19681
  });
19681
19682
  return [3 /*break*/, 3];
19682
19683
  case 2:
19683
- this.handleInsertError();
19684
+ this.handleInsertError(response);
19684
19685
  _e.label = 3;
19685
19686
  case 3: return [2 /*return*/];
19686
19687
  }
@@ -19700,7 +19701,7 @@
19700
19701
  DataFormBase.prototype.getPromiseActionInsert = function () {
19701
19702
  return this.setting.baseService.post(this.model.data, this.insertPlusUrl);
19702
19703
  };
19703
- DataFormBase.prototype.handleInsertError = function () {
19704
+ DataFormBase.prototype.handleInsertError = function (response) {
19704
19705
  };
19705
19706
  DataFormBase.prototype.onUpdate = function () {
19706
19707
  return __awaiter(this, void 0, void 0, function () {
@@ -19725,7 +19726,7 @@
19725
19726
  });
19726
19727
  return [3 /*break*/, 3];
19727
19728
  case 2:
19728
- this.handleUpdateError();
19729
+ this.handleUpdateError(response);
19729
19730
  _e.label = 3;
19730
19731
  case 3: return [2 /*return*/];
19731
19732
  }
@@ -19745,7 +19746,7 @@
19745
19746
  });
19746
19747
  });
19747
19748
  };
19748
- DataFormBase.prototype.handleUpdateError = function () {
19749
+ DataFormBase.prototype.handleUpdateError = function (response) {
19749
19750
  };
19750
19751
  DataFormBase.prototype.getPromiseActionUpdate = function () {
19751
19752
  return this.setting.baseService.put(this.model.data.id.toString(), this.model.data, this.updatePlusUrl);
@@ -20838,7 +20839,7 @@
20838
20839
  width: '200px',
20839
20840
  }));
20840
20841
  }
20841
- var result = new AutoCompletePickerControlSchema(Object.assign(Object.assign({ field: 'idCanBo', label: 'Cán bộ', title: 'Chọn cán bộ', multiple: false, baseService: this, plusUrl: 'WithChucDanhChucVu', displayField: 'hoVaTen', fieldPlus: 'code', fieldSearchText: ['email', 'code'], funcGetLabel: function (item) {
20842
+ var result = new AutoCompletePickerControlSchema(Object.assign(Object.assign({ field: 'idCanBo', label: 'Cán bộ', title: 'Chọn cán bộ', multiple: false, baseService: this, plusUrl: 'WithChucDanhChucVu', displayField: 'hoVaTen', fieldPlus: control.fieldPlus, fieldSearchText: ['email', 'code'], funcGetLabel: function (item) {
20842
20843
  var result = item.hoVaTen;
20843
20844
  if (item.code) {
20844
20845
  result = item.code + " - " + result + " ";
@@ -20926,8 +20927,26 @@
20926
20927
  result.fieldPlus += ',idNgachVienChuc';
20927
20928
  }
20928
20929
  }
20929
- if (!result.isOverrideColumns)
20930
- result.fieldPlus = 'idNgachVienChuc,ngaySinh,ngaySinh2,chucDanhs,idHocHam,idHocVi,dienThoaiDiDong,code';
20930
+ if (!result.isOverrideColumns && !result.fieldPlus) {
20931
+ result.fieldPlus = 'idNgachVienChuc,ngaySinh,ngaySinh2,chucDanhs,idHocHam,idHocVi,dienThoaiDiDong,code,email';
20932
+ }
20933
+ else {
20934
+ result.fieldPlus += result.fieldPlus ? ',code' : 'code';
20935
+ }
20936
+ return result;
20937
+ };
20938
+ CanBoHoSoService.prototype.generatePickerControlSchemaSimple = function (control) {
20939
+ var columns = __spreadArray([], __read(this.lstEntityPickerColumn));
20940
+ var result = new AutoCompletePickerControlSchema(Object.assign({ field: 'idCanBo', label: 'Cán bộ', title: 'Chọn cán bộ', multiple: false, baseService: this, displayField: 'hoVaTen', fieldPlus: 'code', fieldSearchText: ['email', 'code'], funcGetLabel: function (item) {
20941
+ var result = item.hoVaTen;
20942
+ if (item.code) {
20943
+ result = item.code + " - " + result + " ";
20944
+ }
20945
+ if (item.lstTenDonVi) {
20946
+ result += "- " + item.lstTenDonVi;
20947
+ }
20948
+ return result;
20949
+ }, required: true, columns: columns }, control));
20931
20950
  return result;
20932
20951
  };
20933
20952
  CanBoHoSoService.prototype.getTenDonVi = function (dataSource) {
@@ -46689,7 +46708,10 @@
46689
46708
  dataSource: column.dataSource,
46690
46709
  groupCode: column.groupCode,
46691
46710
  isOverrideFilter: column.isOverrideFilter,
46692
- order: column.order
46711
+ order: column.order,
46712
+ isTree: column.isTree,
46713
+ fieldTree: column.fieldTree,
46714
+ valueParentRoot: column.valueParentRoot,
46693
46715
  });
46694
46716
  if (column.dataType == 'custom') {
46695
46717
  newCol.dataType = column.code;
@@ -46961,7 +46983,10 @@
46961
46983
  dataSource: column.dataSource,
46962
46984
  groupCode: column.groupCode,
46963
46985
  isOverrideFilter: column.isOverrideFilter,
46964
- order: column.order
46986
+ order: column.order,
46987
+ isTree: column.isTree,
46988
+ fieldTree: column.fieldTree,
46989
+ valueParentRoot: column.valueParentRoot,
46965
46990
  });
46966
46991
  if (column.dataType == 'custom') {
46967
46992
  newCol.dataType = column.code;