tnx-shared 5.1.685 → 5.1.687

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.
@@ -1778,7 +1778,7 @@
1778
1778
  _this.showDownloadFile = true;
1779
1779
  _this.showDeleteFile = true;
1780
1780
  _this.showPrintFile = true;
1781
- _this.maxFileSize = 100000000; // 100 MB
1781
+ _this.maxFileSize = 1000000000; // 1000 MB
1782
1782
  _this.invalidFileSizeMessageSummary = '{0}: Quá dung lượng file cho phép, ';
1783
1783
  _this.invalidFileSizeMessageDetail = 'dung lượng tối đa là {0}.';
1784
1784
  _this.invalidFileTypeMessageSummary = '{0}: Không đúng định dạng file, ';
@@ -44470,16 +44470,19 @@
44470
44470
  })
44471
44471
  ];
44472
44472
  if (this.businessSetting.showFileManagerFromWfProcess) {
44473
- new FileManagerControlSchema({
44473
+ // Trước đây control này chỉ được khởi tạo rồi bỏ đi, không đẩy vào schema,
44474
+ // nên ô "File đính kèm" chưa bao giờ hiện dù cờ mặc định là bật.
44475
+ // entityKey để trống ở đây vì id bản ghi lịch sử mãi tới onFormInitialized
44476
+ // mới được sinh — gán nốt ở đó.
44477
+ this.setting.schema.push(new FileManagerControlSchema({
44474
44478
  field: 'fileDinhKem',
44475
44479
  label: this._translateService.instant('File đính kèm'),
44476
44480
  layout: exports.EnumFileLayout.SIMPLE,
44477
44481
  serviceCode: this._workflowHistoryService.serviceCode,
44478
44482
  entity: this._workflowHistoryService.entityName,
44479
- entityKey: this.model.data.id,
44480
44483
  mdWidth: 12,
44481
44484
  required: false
44482
- });
44485
+ }));
44483
44486
  }
44484
44487
  this.initRule();
44485
44488
  };
@@ -44608,8 +44611,13 @@
44608
44611
  };
44609
44612
  ProcessWorkflowFormComponent.prototype.onFormInitialized = function (evt) {
44610
44613
  return __awaiter(this, void 0, void 0, function () {
44614
+ var fileControl;
44611
44615
  return __generator(this, function (_g) {
44612
44616
  evt.model.id = this._commonService.guid();
44617
+ fileControl = evt.formControls ? evt.formControls['fileDinhKem'] : null;
44618
+ if (fileControl) {
44619
+ fileControl.entityKey = evt.model.id;
44620
+ }
44613
44621
  return [2 /*return*/];
44614
44622
  });
44615
44623
  });
@@ -65963,7 +65971,9 @@
65963
65971
  })
65964
65972
  ];
65965
65973
  if (this.bussinessSetting.showFileManagerFromWfProcess) {
65966
- new FileManagerControlSchema({
65974
+ // Trước đây control này chỉ được khởi tạo rồi bỏ đi, không đẩy vào schema,
65975
+ // nên ô "File đính kèm" chưa bao giờ hiện dù cờ mặc định là bật.
65976
+ this.setting.schema.push(new FileManagerControlSchema({
65967
65977
  field: 'fileDinhKem',
65968
65978
  label: this._translateService.instant('File đính kèm'),
65969
65979
  layout: exports.EnumFileLayout.SIMPLE,
@@ -65972,7 +65982,7 @@
65972
65982
  entityKey: this.model.data.id,
65973
65983
  mdWidth: 12,
65974
65984
  required: false
65975
- });
65985
+ }));
65976
65986
  }
65977
65987
  };
65978
65988
  ChoYKienFormComponent.prototype.getPromiseActionInsert = function () {