tnx-shared 5.1.145 → 5.1.149

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.
@@ -47409,32 +47409,13 @@
47409
47409
  if (multiple === void 0) { multiple = true; }
47410
47410
  var control = createUserPickerControl(field, label, 15, function (item) { return _this.getUserLabel(item); });
47411
47411
  control.multiple = multiple;
47412
+ control.plusUrl = 'ForUserPicker';
47412
47413
  // control.lazyLoadOrganization = true;
47413
47414
  return control;
47414
47415
  };
47415
47416
  ProcessWorkflowTargetComponent.prototype.getUserLabel = function (item) {
47416
47417
  var label = this._userService.getUserName(item);
47417
- if (item.tenChucVu) {
47418
- label += " (" + item.tenChucVu + ")";
47419
- }
47420
- else if (item.lstTenChucVu && item.lstTenChucVu.length) {
47421
- var lstChucVu = item.lstTenChucVu;
47422
- var index = 0;
47423
- for (var chucVu in lstChucVu) {
47424
- switch (index) {
47425
- case 0:
47426
- label += "(" + chucVu + ",";
47427
- break;
47428
- case lstChucVu.length - 1:
47429
- label += chucVu + ")";
47430
- break;
47431
- default:
47432
- label += "" + chucVu;
47433
- break;
47434
- }
47435
- index++;
47436
- }
47437
- }
47418
+ label = (item.maChucVu ? item.maChucVu + ". " : '') + ("" + label) + (item.tenDonVi ? " - " + item.tenDonVi : '');
47438
47419
  return label;
47439
47420
  };
47440
47421
  ProcessWorkflowTargetComponent.prototype._createCoCauToChucControl = function (field, label) {