tnx-shared 5.3.276 → 5.3.278

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.
@@ -5706,6 +5706,18 @@ class CrudService {
5706
5706
  }
5707
5707
  }
5708
5708
  }
5709
+ renderTimespan(datetime) {
5710
+ if (!datetime) {
5711
+ return '';
5712
+ }
5713
+ try {
5714
+ const arrTime = datetime.split(':');
5715
+ return `${arrTime[0]}:${arrTime[1]}`;
5716
+ }
5717
+ catch (_a) {
5718
+ return '';
5719
+ }
5720
+ }
5709
5721
  renderDate(datetime, format = 'normal') {
5710
5722
  if (!datetime) {
5711
5723
  return '';
@@ -27936,8 +27948,11 @@ class CoCauToChucNewService extends BaseService {
27936
27948
  ] }, control));
27937
27949
  return result;
27938
27950
  }
27939
- getTrangThaiGuiCongVan() {
27940
- const apiUrl = `${this.serviceUri}/GetTrangThaiGuiCongVan`;
27951
+ getTrangThaiGuiCongVan(codeApp = '') {
27952
+ let apiUrl = `${this.serviceUri}/GetTrangThaiGuiCongVan`;
27953
+ if (codeApp) {
27954
+ apiUrl = `${apiUrl}/${codeApp}`;
27955
+ }
27941
27956
  return this.defaultGet(apiUrl);
27942
27957
  }
27943
27958
  }
@@ -34788,8 +34803,7 @@ class TnDatePipe {
34788
34803
  return this._crudService.renderDate(value, format);
34789
34804
  }
34790
34805
  else if (dataType == 'timespan') {
34791
- const arrTime = value.split(':');
34792
- return `${arrTime[0]}:${arrTime[1]}`;
34806
+ return this._crudService.renderTimespan(value);
34793
34807
  }
34794
34808
  return this._crudService.renderDateTime(value, format);
34795
34809
  }