tnx-shared 5.3.325 → 5.3.327

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.
@@ -1691,6 +1691,7 @@
1691
1691
  _this.isCaching = false; // dùng riêng cho canBoPicker
1692
1692
  _this.limitRowItem = false;
1693
1693
  _this.maxRowItem = 2;
1694
+ _this.isOverrideColumns = false;
1694
1695
  for (var key in init) {
1695
1696
  _this[key] = init[key];
1696
1697
  }
@@ -4979,6 +4980,13 @@
4979
4980
  }
4980
4981
  return str;
4981
4982
  };
4983
+ CommonService.prototype.transformLocalDate = function (value, format) {
4984
+ if (format === void 0) { format = 'dd/MM/yyyy'; }
4985
+ if (!value)
4986
+ return '';
4987
+ var datePipe = new i3.DatePipe('vi-VN');
4988
+ return datePipe.transform(value, format);
4989
+ };
4982
4990
  return CommonService;
4983
4991
  }());
4984
4992
  CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
@@ -20799,7 +20807,10 @@
20799
20807
  if (enumCanBo === void 0) { enumCanBo = exports.EnumCanBo.TRONG_DON_VI; }
20800
20808
  var _a;
20801
20809
  var columns = __spreadArray([], __read(this.lstEntityPickerColumn));
20802
- if (((_a = control.columns) === null || _a === void 0 ? void 0 : _a.length) > 0) {
20810
+ if (control.isOverrideColumns) {
20811
+ columns = __spreadArray([], __read(control.columns));
20812
+ }
20813
+ else if (((_a = control.columns) === null || _a === void 0 ? void 0 : _a.length) > 0) {
20803
20814
  columns.push.apply(columns, __spreadArray([], __read(control.columns)));
20804
20815
  }
20805
20816
  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) {
@@ -20868,9 +20879,8 @@
20868
20879
  }
20869
20880
  }
20870
20881
  else {
20871
- result.fieldPlus = 'idNgachVienChuc';
20882
+ result.fieldPlus = 'idNgachVienChuc,ngaySinh,ngaySinh2,chucDanhs,idHocHam,idHocVi,dienThoaiDiDong,code';
20872
20883
  }
20873
- result.fieldPlus += ',ngaySinh,ngaySinh2,chucDanhs,idHocHam,idHocVi,dienThoaiDiDong,code';
20874
20884
  return result;
20875
20885
  };
20876
20886
  CanBoHoSoService.prototype.getTenDonVi = function (dataSource) {
@@ -28229,16 +28239,18 @@
28229
28239
  ListBase.prototype.deepClone = function (data) {
28230
28240
  return JSON.parse(JSON.stringify(data));
28231
28241
  };
28232
- ListBase.prototype._exportAllData = function (event) {
28242
+ ListBase.prototype._exportAllData = function (event, fileName) {
28233
28243
  var _a;
28234
28244
  return __awaiter(this, void 0, void 0, function () {
28235
- var lstData, fileName, lstVisibleField, lstHeader, fieldSchemaMap, printData;
28245
+ var lstData, lstVisibleField, lstHeader, fieldSchemaMap, printData;
28236
28246
  return __generator(this, function (_b) {
28237
28247
  switch (_b.label) {
28238
28248
  case 0: return [4 /*yield*/, this.setting.baseService.getDataCustomRoute(this.plusUrl, this.currentGridInfo.filters, this.currentGridInfo.fields, this.currentGridInfo.sorts, -1, 1)];
28239
28249
  case 1:
28240
28250
  lstData = (_a = (_b.sent()).data) !== null && _a !== void 0 ? _a : [];
28241
- fileName = this.setting.title ? this.setting.title : "Danh s\u00E1ch " + this.setting.objectName.toLocaleLowerCase();
28251
+ if (!fileName) {
28252
+ fileName = this.setting.title ? this.setting.title : "Danh s\u00E1ch " + this.setting.objectName.toLocaleLowerCase();
28253
+ }
28242
28254
  lstVisibleField = this.setting.cols
28243
28255
  .filter(function (item) { return item.visible && item.dataType !== 'trangThaiV5'; })
28244
28256
  .map(function (item) { return item.field; });
@@ -44405,7 +44417,8 @@
44405
44417
  valueField: this.control.valueField,
44406
44418
  fieldPlus: this.control.fieldPlus,
44407
44419
  funcGetLabel: this.control.funcGetLabel,
44408
- plusUrl: this.control.plusUrl
44420
+ plusUrl: this.control.plusUrl,
44421
+ sorts: this.control.sorts,
44409
44422
  });
44410
44423
  if (pageSize) {
44411
44424
  result.pageSize = pageSize;
@@ -56338,6 +56351,7 @@
56338
56351
  },] }
56339
56352
  ];
56340
56353
 
56354
+ // 1
56341
56355
  function coreDeclaration() {
56342
56356
  return [
56343
56357
  AddressComponent,