@senior-gestao-pessoas/hcm-entity-lookups 5.4.2 → 5.5.0-develop-6d7f299a
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.
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js +972 -233
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js +2 -2
- package/bundles/senior-gestao-pessoas-hcm-entity-lookups.umd.min.js.map +1 -1
- package/core/entities/contribution-type/contribution-type-dto.d.ts +5 -0
- package/core/entities/contribution-type/contribution-type.d.ts +8 -0
- package/core/entities/contribution-type/contribution-type.module.d.ts +2 -0
- package/core/entities/contribution-type/contribution-type.service.d.ts +13 -0
- package/core/entities/contribution-type/index.d.ts +3 -0
- package/core/entities/employee-dependent/employee-dependent-dto.d.ts +12 -0
- package/core/entities/employee-dependent/employee-dependent.d.ts +17 -0
- package/core/entities/employee-dependent/employee-dependent.module.d.ts +2 -0
- package/core/entities/employee-dependent/employee-dependent.service.d.ts +14 -0
- package/core/entities/employee-dependent/index.d.ts +3 -0
- package/core/index.d.ts +2 -0
- package/esm2015/core/core-lookup.module.js +6 -2
- package/esm2015/core/entities/contribution-type/contribution-type-dto.js +1 -0
- package/esm2015/core/entities/contribution-type/contribution-type.js +15 -0
- package/esm2015/core/entities/contribution-type/contribution-type.module.js +15 -0
- package/esm2015/core/entities/contribution-type/contribution-type.service.js +27 -0
- package/esm2015/core/entities/contribution-type/index.js +3 -0
- package/esm2015/core/entities/employee-dependent/employee-dependent-dto.js +1 -0
- package/esm2015/core/entities/employee-dependent/employee-dependent.js +39 -0
- package/esm2015/core/entities/employee-dependent/employee-dependent.module.js +26 -0
- package/esm2015/core/entities/employee-dependent/employee-dependent.service.js +34 -0
- package/esm2015/core/entities/employee-dependent/index.js +3 -0
- package/esm2015/core/index.js +3 -1
- package/esm2015/locale/fallback.js +23 -2
- package/esm2015/lookups/company-branch-lookup/company-branch-lookup.component.js +6 -1
- package/esm2015/lookups/company-branch-lookup/company-branch-lookup.service.js +19 -5
- package/esm2015/lookups/contribution-type-lookup/contribution-type-lookup.component.js +56 -0
- package/esm2015/lookups/contribution-type-lookup/contribution-type-lookup.module.js +29 -0
- package/esm2015/lookups/contribution-type-lookup/contribution-type-lookup.service.js +179 -0
- package/esm2015/lookups/employee-dependent-lookup/employee-dependent-lookup.component.js +71 -0
- package/esm2015/lookups/employee-dependent-lookup/employee-dependent-lookup.module.js +29 -0
- package/esm2015/lookups/employee-dependent-lookup/employee-dependent-lookup.service.js +194 -0
- package/esm2015/public-api.js +6 -1
- package/esm2015/senior-gestao-pessoas-hcm-entity-lookups.js +38 -35
- package/esm5/core/core-lookup.module.js +6 -2
- package/esm5/core/entities/contribution-type/contribution-type-dto.js +1 -0
- package/esm5/core/entities/contribution-type/contribution-type.js +20 -0
- package/esm5/core/entities/contribution-type/contribution-type.module.js +18 -0
- package/esm5/core/entities/contribution-type/contribution-type.service.js +30 -0
- package/esm5/core/entities/contribution-type/index.js +3 -0
- package/esm5/core/entities/employee-dependent/employee-dependent-dto.js +1 -0
- package/esm5/core/entities/employee-dependent/employee-dependent.js +42 -0
- package/esm5/core/entities/employee-dependent/employee-dependent.module.js +29 -0
- package/esm5/core/entities/employee-dependent/employee-dependent.service.js +37 -0
- package/esm5/core/entities/employee-dependent/index.js +3 -0
- package/esm5/core/index.js +3 -1
- package/esm5/locale/fallback.js +23 -2
- package/esm5/lookups/company-branch-lookup/company-branch-lookup.component.js +6 -1
- package/esm5/lookups/company-branch-lookup/company-branch-lookup.service.js +19 -5
- package/esm5/lookups/contribution-type-lookup/contribution-type-lookup.component.js +61 -0
- package/esm5/lookups/contribution-type-lookup/contribution-type-lookup.module.js +32 -0
- package/esm5/lookups/contribution-type-lookup/contribution-type-lookup.service.js +189 -0
- package/esm5/lookups/employee-dependent-lookup/employee-dependent-lookup.component.js +76 -0
- package/esm5/lookups/employee-dependent-lookup/employee-dependent-lookup.module.js +32 -0
- package/esm5/lookups/employee-dependent-lookup/employee-dependent-lookup.service.js +203 -0
- package/esm5/public-api.js +6 -1
- package/esm5/senior-gestao-pessoas-hcm-entity-lookups.js +38 -35
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js +875 -199
- package/fesm2015/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js +925 -198
- package/fesm5/senior-gestao-pessoas-hcm-entity-lookups.js.map +1 -1
- package/lookups/company-branch-lookup/company-branch-lookup.component.d.ts +1 -0
- package/lookups/company-branch-lookup/company-branch-lookup.service.d.ts +2 -1
- package/lookups/contribution-type-lookup/contribution-type-lookup.component.d.ts +24 -0
- package/lookups/contribution-type-lookup/contribution-type-lookup.module.d.ts +2 -0
- package/lookups/contribution-type-lookup/contribution-type-lookup.service.d.ts +25 -0
- package/lookups/employee-dependent-lookup/employee-dependent-lookup.component.d.ts +26 -0
- package/lookups/employee-dependent-lookup/employee-dependent-lookup.module.d.ts +2 -0
- package/lookups/employee-dependent-lookup/employee-dependent-lookup.service.d.ts +25 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
- package/senior-gestao-pessoas-hcm-entity-lookups.d.ts +37 -34
- package/senior-gestao-pessoas-hcm-entity-lookups.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@ngx-translate/core'), require('@seniorsistemas/angular-components'), require('primeng/inputtext'), require('@angular/common/http'), require('moment'), require('primeng/api'), require('rxjs'), require('rxjs/operators'), require('@angular/router'), require('@seniorsistemas/platform-components')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@senior-gestao-pessoas/hcm-entity-lookups', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@ngx-translate/core', '@seniorsistemas/angular-components', 'primeng/inputtext', '@angular/common/http', 'moment', 'primeng/api', 'rxjs', 'rxjs/operators', '@angular/router', '@seniorsistemas/platform-components'], factory) :
|
|
4
|
-
(global = global || self, factory((global['senior-gestao-pessoas'] = global['senior-gestao-pessoas'] || {}, global['senior-gestao-pessoas']['hcm-entity-lookups'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.core$1, global.angularComponents, global.inputtext, global.ng.common.http, global.moment$
|
|
5
|
-
}(this, (function (exports, core, common, forms, core$1, angularComponents, inputtext, http, moment$
|
|
4
|
+
(global = global || self, factory((global['senior-gestao-pessoas'] = global['senior-gestao-pessoas'] || {}, global['senior-gestao-pessoas']['hcm-entity-lookups'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.core$1, global.angularComponents, global.inputtext, global.ng.common.http, global.moment$l, global.api, global.rxjs, global.rxjs.operators, global.ng.router, global.platformComponents));
|
|
5
|
+
}(this, (function (exports, core, common, forms, core$1, angularComponents, inputtext, http, moment$l, api, rxjs, operators, router, platformComponents) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -281,8 +281,8 @@
|
|
|
281
281
|
var validator = function (control) {
|
|
282
282
|
var referenceDate = control && control.value;
|
|
283
283
|
if (referenceDate && dateFormat) {
|
|
284
|
-
referenceDate = moment$
|
|
285
|
-
var compareTo = moment$
|
|
284
|
+
referenceDate = moment$l(control.value);
|
|
285
|
+
var compareTo = moment$l(compareToDate, dateFormat);
|
|
286
286
|
return _this.dateCompare(referenceDate, compareTo, compareType, options);
|
|
287
287
|
}
|
|
288
288
|
return null;
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
}
|
|
425
425
|
function startDateIsBeforeEndDateValidator(startDate, endDate) {
|
|
426
426
|
if (startDate && endDate && startDate.value && endDate.value) {
|
|
427
|
-
var forbidden = moment$
|
|
427
|
+
var forbidden = moment$l(startDate.value).isSameOrAfter(endDate.value) ? { startDateIsBeforeEndDate: { value: endDate.value } } : null;
|
|
428
428
|
if (forbidden) {
|
|
429
429
|
startDate.markAsDirty();
|
|
430
430
|
endDate.markAsDirty();
|
|
@@ -538,13 +538,13 @@
|
|
|
538
538
|
}
|
|
539
539
|
switch (type) {
|
|
540
540
|
case angularComponents.FieldType.Date:
|
|
541
|
-
return name + " eq '" + moment$
|
|
541
|
+
return name + " eq '" + moment$l(value).format("YYYY-MM-DD") + "'";
|
|
542
542
|
case angularComponents.FieldType.Time:
|
|
543
|
-
return name + " eq '" + moment$
|
|
543
|
+
return name + " eq '" + moment$l(value).format("HH:mm:ss") + "'";
|
|
544
544
|
case angularComponents.FieldType.DateTime:
|
|
545
|
-
return name + " eq '" + moment$
|
|
545
|
+
return name + " eq '" + moment$l(value).format() + "'";
|
|
546
546
|
case angularComponents.FieldType.LocalDateTime:
|
|
547
|
-
return name + " eq '" + moment$
|
|
547
|
+
return name + " eq '" + moment$l(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS") + "'";
|
|
548
548
|
case angularComponents.FieldType.Enum:
|
|
549
549
|
return createEnumFilterString(formField, value, opts);
|
|
550
550
|
case angularComponents.FieldType.String:
|
|
@@ -590,13 +590,13 @@
|
|
|
590
590
|
return name + " eq " + value;
|
|
591
591
|
}
|
|
592
592
|
else if (type === angularComponents.FieldType.Date) {
|
|
593
|
-
return name + " eq '" + moment$
|
|
593
|
+
return name + " eq '" + moment$l(value).format("YYYY-MM-DD") + "'";
|
|
594
594
|
}
|
|
595
595
|
else if (type === angularComponents.FieldType.Time) {
|
|
596
|
-
return name + " eq '" + moment$
|
|
596
|
+
return name + " eq '" + moment$l(value).format("HH:mm:ss") + "'";
|
|
597
597
|
}
|
|
598
598
|
else if (type === angularComponents.FieldType.DateTime) {
|
|
599
|
-
return name + " eq '" + moment$
|
|
599
|
+
return name + " eq '" + moment$l(value).format() + "'";
|
|
600
600
|
}
|
|
601
601
|
else if (type === angularComponents.FieldType.Integer) {
|
|
602
602
|
return name + " eq '" + value + "'";
|
|
@@ -628,13 +628,13 @@
|
|
|
628
628
|
var labelValue = value;
|
|
629
629
|
switch (type) {
|
|
630
630
|
case angularComponents.FieldType.Date:
|
|
631
|
-
labelValue = moment$
|
|
631
|
+
labelValue = moment$l(value).format("L");
|
|
632
632
|
break;
|
|
633
633
|
case angularComponents.FieldType.Time:
|
|
634
|
-
labelValue = moment$
|
|
634
|
+
labelValue = moment$l(value).format("LTS");
|
|
635
635
|
break;
|
|
636
636
|
case angularComponents.FieldType.DateTime:
|
|
637
|
-
labelValue = moment$
|
|
637
|
+
labelValue = moment$l(value).format("L LTS");
|
|
638
638
|
break;
|
|
639
639
|
case angularComponents.FieldType.Lookup:
|
|
640
640
|
labelValue = searchFields.map(function (field) { return getProp(value, field.name); }).join(" - ");
|
|
@@ -675,8 +675,8 @@
|
|
|
675
675
|
this.configService = configService;
|
|
676
676
|
}
|
|
677
677
|
StructureFilterService.prototype.getFilterByDateValidateAndStructure = function (dto) {
|
|
678
|
-
if (dto.referenceDate && moment$
|
|
679
|
-
var referenceDate = moment$
|
|
678
|
+
if (dto.referenceDate && moment$l(dto.referenceDate).isValid()) {
|
|
679
|
+
var referenceDate = moment$l(dto.referenceDate).format("YYYY-MM-DD");
|
|
680
680
|
var filter = this.getFilterStructureCompanyHistoryByStartDate(referenceDate, dto.companyIds);
|
|
681
681
|
if (referenceDate && filter) {
|
|
682
682
|
return this.getCompanyStructureHistoryByCompanyId(dto.domain, dto.service, dto.entity, filter);
|
|
@@ -710,8 +710,8 @@
|
|
|
710
710
|
var _a;
|
|
711
711
|
var dateFormat = (_a = locale === null || locale === void 0 ? void 0 : locale.calendar) === null || _a === void 0 ? void 0 : _a.dateFormat;
|
|
712
712
|
return dateFormat
|
|
713
|
-
? moment$
|
|
714
|
-
: moment$
|
|
713
|
+
? moment$l(startDate).format(DateValidator.getDateFormatFromCalendar({ dateFormat: dateFormat }))
|
|
714
|
+
: moment$l(startDate).format("L");
|
|
715
715
|
};
|
|
716
716
|
StructureFilterService.prototype.getFilterStructureCompanyHistoryByStartDate = function (referenceDate, companyId) {
|
|
717
717
|
var filterData = "";
|
|
@@ -736,7 +736,7 @@
|
|
|
736
736
|
return "" + validity + conditionStructure + filterStructure;
|
|
737
737
|
};
|
|
738
738
|
StructureFilterService.prototype.getFilterRegisterByStartDateInCompanyBranch = function (dto) {
|
|
739
|
-
var referenceDate = (dto === null || dto === void 0 ? void 0 : dto.referenceDate) && moment$
|
|
739
|
+
var referenceDate = (dto === null || dto === void 0 ? void 0 : dto.referenceDate) && moment$l(dto === null || dto === void 0 ? void 0 : dto.referenceDate).format("YYYY-MM-DD");
|
|
740
740
|
if (referenceDate && (dto === null || dto === void 0 ? void 0 : dto.useDateValidation)) {
|
|
741
741
|
return dto.useDateValidation ? "(\n (initialValidity le '" + referenceDate + "' and finalValidity ge '" + referenceDate + "')\n or (initialValidity is null and finalValidity ge '" + referenceDate + "')\n or (initialValidity le '" + referenceDate + "' and finalValidity is null)\n or (initialValidity is null and finalValidity is null))" : "";
|
|
742
742
|
}
|
|
@@ -781,7 +781,7 @@
|
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
783
|
StructureFilterService.prototype.validateReferenceDate = function (referenceDate) {
|
|
784
|
-
return referenceDate && moment$
|
|
784
|
+
return referenceDate && moment$l(referenceDate).isValid();
|
|
785
785
|
};
|
|
786
786
|
StructureFilterService.prototype.startBuildingFilterResolver = function (histories, lookupValidation) {
|
|
787
787
|
if ((lookupValidation === null || lookupValidation === void 0 ? void 0 : lookupValidation.useStructure) && (histories === null || histories === void 0 ? void 0 : histories.length)) {
|
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
var _this = this;
|
|
1116
1116
|
var _a;
|
|
1117
1117
|
this.createlookupData(value);
|
|
1118
|
-
if (((_a = value === null || value === void 0 ? void 0 : value.companyIds) === null || _a === void 0 ? void 0 : _a.length) && (value === null || value === void 0 ? void 0 : value.referenceDate) && moment$
|
|
1118
|
+
if (((_a = value === null || value === void 0 ? void 0 : value.companyIds) === null || _a === void 0 ? void 0 : _a.length) && (value === null || value === void 0 ? void 0 : value.referenceDate) && moment$l(value === null || value === void 0 ? void 0 : value.referenceDate).isValid()) {
|
|
1119
1119
|
this.loading = true;
|
|
1120
1120
|
this.structerService.startBuildingFilterObservable(value, this.lookupData)
|
|
1121
1121
|
.pipe(operators.take(1), operators.finalize(function () { return _this.loading = false; }))
|
|
@@ -1436,6 +1436,9 @@
|
|
|
1436
1436
|
this.companyBranchLookupSubject = new rxjs.Subject();
|
|
1437
1437
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
1438
1438
|
}
|
|
1439
|
+
CompanyBranchLookupService.prototype.setDisplayFields = function (fields) {
|
|
1440
|
+
this.companyBranchLookupDisplayFields = fields;
|
|
1441
|
+
};
|
|
1439
1442
|
CompanyBranchLookupService.prototype.updateSuggestions = function (value, ownerEntity) {
|
|
1440
1443
|
if (ownerEntity === void 0) { ownerEntity = "e070fil"; }
|
|
1441
1444
|
if (value === null || value === void 0 ? void 0 : value.companyBranch) {
|
|
@@ -1560,18 +1563,29 @@
|
|
|
1560
1563
|
}).join(_this.companyBranchLookupSeparator) })); }) })); }));
|
|
1561
1564
|
};
|
|
1562
1565
|
CompanyBranchLookupService.prototype.getCompanyBranchSearchFields = function () {
|
|
1563
|
-
|
|
1564
|
-
new angularComponents.FormField({
|
|
1566
|
+
var fieldMap = {
|
|
1567
|
+
'codFil': new angularComponents.FormField({
|
|
1565
1568
|
label: this.translate.instant(this.configService.getTranslationPrefix() + ".e_070_fil_cod_fil"),
|
|
1566
1569
|
name: "codFil",
|
|
1567
1570
|
type: angularComponents.FieldType.Integer,
|
|
1568
1571
|
}),
|
|
1569
|
-
new angularComponents.FormField({
|
|
1572
|
+
'nomFil': new angularComponents.FormField({
|
|
1570
1573
|
label: this.translate.instant(this.configService.getTranslationPrefix() + ".e_070_fil_nom_fil"),
|
|
1571
1574
|
name: "nomFil",
|
|
1572
1575
|
type: angularComponents.FieldType.String,
|
|
1573
1576
|
}),
|
|
1574
|
-
|
|
1577
|
+
'e070emp.codEmp': new angularComponents.FormField({
|
|
1578
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".e_070_emp_cod_emp"),
|
|
1579
|
+
name: "e070emp.codEmp",
|
|
1580
|
+
type: angularComponents.FieldType.Integer,
|
|
1581
|
+
}),
|
|
1582
|
+
'e070emp.nomEmp': new angularComponents.FormField({
|
|
1583
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".e_070_emp_nom_emp"),
|
|
1584
|
+
name: "e070emp.nomEmp",
|
|
1585
|
+
type: angularComponents.FieldType.String,
|
|
1586
|
+
}),
|
|
1587
|
+
};
|
|
1588
|
+
return this.companyBranchLookupDisplayFields.map(function (field) { return fieldMap[field]; }).filter(function (f) { return f; });
|
|
1575
1589
|
};
|
|
1576
1590
|
CompanyBranchLookupService.prototype.getFilters = function (filterData, companyIds, additionalFilter) {
|
|
1577
1591
|
var filters = [];
|
|
@@ -1601,10 +1615,12 @@
|
|
|
1601
1615
|
_this.configService = configService;
|
|
1602
1616
|
_this.structerService = structerService;
|
|
1603
1617
|
_this.cdRef = cdRef;
|
|
1618
|
+
_this.displayFields = ['codFil', 'nomFil'];
|
|
1604
1619
|
_this.controlName = "companyBranch";
|
|
1605
1620
|
return _this;
|
|
1606
1621
|
}
|
|
1607
1622
|
CompanyBranchLookupComponent.prototype.ngOnInit = function () {
|
|
1623
|
+
this.companyBranchLookupService.setDisplayFields(this.displayFields);
|
|
1608
1624
|
this.companyBranchSearchFields = this.companyBranchLookupService.getCompanyBranchSearchFields();
|
|
1609
1625
|
this.companyBranchSearchGridFields = this.companyBranchLookupService.getCompanyBranchSearchFields();
|
|
1610
1626
|
};
|
|
@@ -1633,6 +1649,9 @@
|
|
|
1633
1649
|
{ type: StructureFilterService },
|
|
1634
1650
|
{ type: core.ChangeDetectorRef }
|
|
1635
1651
|
]; };
|
|
1652
|
+
__decorate([
|
|
1653
|
+
core.Input()
|
|
1654
|
+
], CompanyBranchLookupComponent.prototype, "displayFields", void 0);
|
|
1636
1655
|
CompanyBranchLookupComponent = __decorate([
|
|
1637
1656
|
core.Component({
|
|
1638
1657
|
selector: "fnd-company-branch-lookup",
|
|
@@ -2502,6 +2521,320 @@
|
|
|
2502
2521
|
return CostCenterLookupModule;
|
|
2503
2522
|
}());
|
|
2504
2523
|
|
|
2524
|
+
var EmployeeDependentService = /** @class */ (function (_super) {
|
|
2525
|
+
__extends(EmployeeDependentService, _super);
|
|
2526
|
+
function EmployeeDependentService(http, messageService, translate, configService) {
|
|
2527
|
+
var _this = _super.call(this, http, messageService, "hcm_contract/employment_contract/entities/employeeDependent", "hcm_contract/employment_contract/actions", translate, configService) || this;
|
|
2528
|
+
_this.http = http;
|
|
2529
|
+
_this.messageService = messageService;
|
|
2530
|
+
_this.translate = translate;
|
|
2531
|
+
_this.configService = configService;
|
|
2532
|
+
return _this;
|
|
2533
|
+
}
|
|
2534
|
+
EmployeeDependentService.prototype.listExternalEmployeeDependent = function (listParams) {
|
|
2535
|
+
return this.http
|
|
2536
|
+
.get("hcm_contract/employment_contract/entities/employeeDependent", {
|
|
2537
|
+
params: this.getListQueryParams(listParams),
|
|
2538
|
+
})
|
|
2539
|
+
.pipe(this.defaultCatch());
|
|
2540
|
+
};
|
|
2541
|
+
EmployeeDependentService.ctorParameters = function () { return [
|
|
2542
|
+
{ type: http.HttpClient },
|
|
2543
|
+
{ type: api.MessageService },
|
|
2544
|
+
{ type: core$1.TranslateService },
|
|
2545
|
+
{ type: EntityLookupConfigService }
|
|
2546
|
+
]; };
|
|
2547
|
+
EmployeeDependentService = __decorate([
|
|
2548
|
+
core.Injectable()
|
|
2549
|
+
], EmployeeDependentService);
|
|
2550
|
+
return EmployeeDependentService;
|
|
2551
|
+
}(EntityService));
|
|
2552
|
+
|
|
2553
|
+
var EmployeeDependentLookupService = /** @class */ (function () {
|
|
2554
|
+
function EmployeeDependentLookupService(translate, configService, employeeDependentService) {
|
|
2555
|
+
this.translate = translate;
|
|
2556
|
+
this.configService = configService;
|
|
2557
|
+
this.employeeDependentService = employeeDependentService;
|
|
2558
|
+
this.lookupServiceConfig = {
|
|
2559
|
+
lookupDisplayFields: ["dependent.codPes", "dependent.nomPes", "employee.code", "employee.person.nomPes"],
|
|
2560
|
+
lookupSuggestionFields: ["dependent.codPes", "dependent.nomPes", "employee.code", "employee.person.nomPes"],
|
|
2561
|
+
lookupSeparator: " - ",
|
|
2562
|
+
searchSubject: new rxjs.Subject(),
|
|
2563
|
+
lookupSubject: new rxjs.Subject(),
|
|
2564
|
+
entityName: "employeeDependent",
|
|
2565
|
+
dynamicFormOptions: {
|
|
2566
|
+
cancelLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".cancel"),
|
|
2567
|
+
clearLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".clear"),
|
|
2568
|
+
dataKey: "id",
|
|
2569
|
+
emptyFieldLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".list_grid_empty_field"),
|
|
2570
|
+
emptyMessage: this.translate.instant(this.configService.getTranslationPrefix() + ".empty_message_field"),
|
|
2571
|
+
filterLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".filter"),
|
|
2572
|
+
filterTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".filters"),
|
|
2573
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".employee_dependent"),
|
|
2574
|
+
lookupDisplayField: "label",
|
|
2575
|
+
multiple: false,
|
|
2576
|
+
name: "employeeDependent",
|
|
2577
|
+
recordLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
2578
|
+
recordsLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
2579
|
+
required: true,
|
|
2580
|
+
searchEmptyTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".nothing_found"),
|
|
2581
|
+
searchFields: this.getEmployeeDependentSearchFields(),
|
|
2582
|
+
searchGridFields: this.getEmployeeDependentSearchFields(),
|
|
2583
|
+
searchTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".employee_dependent_search_title"),
|
|
2584
|
+
selectLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".select"),
|
|
2585
|
+
visible: true,
|
|
2586
|
+
isCollective: false,
|
|
2587
|
+
},
|
|
2588
|
+
filters: {
|
|
2589
|
+
additionalFilter: undefined,
|
|
2590
|
+
initialFilter: undefined,
|
|
2591
|
+
companyIds: [],
|
|
2592
|
+
},
|
|
2593
|
+
};
|
|
2594
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
2595
|
+
}
|
|
2596
|
+
EmployeeDependentLookupService.prototype.updateSuggestions = function (value) {
|
|
2597
|
+
if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
|
|
2598
|
+
value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
|
|
2599
|
+
if ((value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName].label.trim()) === this.lookupServiceConfig.lookupSeparator.trim()) {
|
|
2600
|
+
delete value[this.lookupServiceConfig.entityName].label;
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
};
|
|
2604
|
+
EmployeeDependentLookupService.prototype.getSuggestionValue = function (displayFields, ownerEntity, value, separator) {
|
|
2605
|
+
return displayFields
|
|
2606
|
+
.map(function (field) { return getProp(value, ownerEntity + "." + field); })
|
|
2607
|
+
.reduce(function (acc, val) { return "" + acc + separator + val; });
|
|
2608
|
+
};
|
|
2609
|
+
EmployeeDependentLookupService.prototype.getFormField = function () {
|
|
2610
|
+
var _this = this;
|
|
2611
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
2612
|
+
return new angularComponents.FormField({
|
|
2613
|
+
cancelLabel: (_a = this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.cancelLabel,
|
|
2614
|
+
clearLabel: (_b = this.lookupServiceConfig.dynamicFormOptions) === null || _b === void 0 ? void 0 : _b.clearLabel,
|
|
2615
|
+
recordLabel: (_c = this.lookupServiceConfig.dynamicFormOptions) === null || _c === void 0 ? void 0 : _c.recordLabel,
|
|
2616
|
+
recordsLabel: (_d = this.lookupServiceConfig.dynamicFormOptions) === null || _d === void 0 ? void 0 : _d.recordsLabel,
|
|
2617
|
+
searchEmptyTitle: (_e = this.lookupServiceConfig.dynamicFormOptions) === null || _e === void 0 ? void 0 : _e.searchEmptyTitle,
|
|
2618
|
+
searchFields: (_f = this.lookupServiceConfig.dynamicFormOptions) === null || _f === void 0 ? void 0 : _f.searchFields,
|
|
2619
|
+
searchTitle: (_g = this.lookupServiceConfig.dynamicFormOptions) === null || _g === void 0 ? void 0 : _g.searchTitle,
|
|
2620
|
+
selectLabel: (_h = this.lookupServiceConfig.dynamicFormOptions) === null || _h === void 0 ? void 0 : _h.selectLabel,
|
|
2621
|
+
dataKey: (_j = this.lookupServiceConfig.dynamicFormOptions) === null || _j === void 0 ? void 0 : _j.dataKey,
|
|
2622
|
+
emptyFieldLabel: (_k = this.lookupServiceConfig.dynamicFormOptions) === null || _k === void 0 ? void 0 : _k.emptyFieldLabel,
|
|
2623
|
+
emptyMessage: (_l = this.lookupServiceConfig.dynamicFormOptions) === null || _l === void 0 ? void 0 : _l.emptyMessage,
|
|
2624
|
+
filterLabel: (_m = this.lookupServiceConfig.dynamicFormOptions) === null || _m === void 0 ? void 0 : _m.filterLabel,
|
|
2625
|
+
filterTitle: (_o = this.lookupServiceConfig.dynamicFormOptions) === null || _o === void 0 ? void 0 : _o.filterTitle,
|
|
2626
|
+
label: (_p = this.lookupServiceConfig.dynamicFormOptions) === null || _p === void 0 ? void 0 : _p.label,
|
|
2627
|
+
lookupDisplayField: (_q = this.lookupServiceConfig.dynamicFormOptions) === null || _q === void 0 ? void 0 : _q.lookupDisplayField,
|
|
2628
|
+
multiple: (_r = this.lookupServiceConfig.dynamicFormOptions) === null || _r === void 0 ? void 0 : _r.multiple,
|
|
2629
|
+
name: (_s = this.lookupServiceConfig.dynamicFormOptions) === null || _s === void 0 ? void 0 : _s.name,
|
|
2630
|
+
onLookupRequest: function (value) { return _this.onEmployeeDependentLookupRequest(value); },
|
|
2631
|
+
onSearchRequest: function (event) { return _this.onEmployeeDependentSearchRequest(event); },
|
|
2632
|
+
required: function () { var _a; return (_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.required; },
|
|
2633
|
+
searchObservable: this.lookupServiceConfig.searchSubject,
|
|
2634
|
+
suggestionsObservable: this.lookupServiceConfig.lookupSubject,
|
|
2635
|
+
type: angularComponents.FieldType.Lookup,
|
|
2636
|
+
visible: function () { var _a; return !((_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.isCollective); },
|
|
2637
|
+
});
|
|
2638
|
+
};
|
|
2639
|
+
EmployeeDependentLookupService.prototype.onEmployeeDependentSearchRequest = function (event) {
|
|
2640
|
+
var _this = this;
|
|
2641
|
+
var _a, _b, _c, _d;
|
|
2642
|
+
this.onEmployeeDependentSearchRequestObservable(event, (_b = (_a = this.lookupServiceConfig) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.additionalFilter, (_d = (_c = this.lookupServiceConfig) === null || _c === void 0 ? void 0 : _c.filters) === null || _d === void 0 ? void 0 : _d.companyIds, true).subscribe(function (data) { return _this.lookupServiceConfig.searchSubject.next(data); });
|
|
2643
|
+
};
|
|
2644
|
+
EmployeeDependentLookupService.prototype.onEmployeeDependentSearchRequestObservable = function (event, additionalFilter, companyIds, isDynamicForm) {
|
|
2645
|
+
var _this = this;
|
|
2646
|
+
if (isDynamicForm === void 0) { isDynamicForm = false; }
|
|
2647
|
+
var first = event.first, rows = event.rows, multiSortMeta = event.multiSortMeta, filterData = event.filterData;
|
|
2648
|
+
var page = first / rows;
|
|
2649
|
+
var sort = multiSortMeta;
|
|
2650
|
+
var employeeDependentFilterQuery = createSearchRequestFilter(filterData, this.getEmployeeDependentSearchFields());
|
|
2651
|
+
employeeDependentFilterQuery = this.getFiltersDefault(companyIds, employeeDependentFilterQuery, additionalFilter);
|
|
2652
|
+
var displayFields = mergeUnique(this.lookupServiceConfig.lookupDisplayFields.concat("employee.employer"), __spread(this.lookupServiceConfig.lookupDisplayFields));
|
|
2653
|
+
return this.employeeDependentService
|
|
2654
|
+
.list({ page: page, sort: sort, filterQuery: employeeDependentFilterQuery, displayFields: displayFields })
|
|
2655
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2656
|
+
.pipe(operators.map(function (list) { return _this.mapToComponent(list, isDynamicForm); }));
|
|
2657
|
+
};
|
|
2658
|
+
EmployeeDependentLookupService.prototype.getFiltersDefault = function (companyIds, filterData, additionalFilter) {
|
|
2659
|
+
var filters = [];
|
|
2660
|
+
additionalFilter && filters.push("(" + additionalFilter + ")");
|
|
2661
|
+
filterData && filters.push("(" + filterData + ")");
|
|
2662
|
+
(companyIds === null || companyIds === void 0 ? void 0 : companyIds.length) && filters.push("(employee.employer.id in (" + companyIds.map(function (id) { return "'" + id + "'"; }) + "))");
|
|
2663
|
+
return filters.join(" and ");
|
|
2664
|
+
};
|
|
2665
|
+
EmployeeDependentLookupService.prototype.mapToComponent = function (list, isDynamicForm) {
|
|
2666
|
+
var _this = this;
|
|
2667
|
+
if (isDynamicForm === void 0) { isDynamicForm = false; }
|
|
2668
|
+
if (isDynamicForm) {
|
|
2669
|
+
return {
|
|
2670
|
+
gridData: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMaping(item) })); }),
|
|
2671
|
+
totalRecords: list === null || list === void 0 ? void 0 : list.totalElements,
|
|
2672
|
+
};
|
|
2673
|
+
}
|
|
2674
|
+
else {
|
|
2675
|
+
return __assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMaping(item) })); }) });
|
|
2676
|
+
}
|
|
2677
|
+
};
|
|
2678
|
+
EmployeeDependentLookupService.prototype.getLabelForMaping = function (item) {
|
|
2679
|
+
return this.lookupServiceConfig.lookupSuggestionFields
|
|
2680
|
+
.map(function (field) {
|
|
2681
|
+
if (field.indexOf(".") > 0) {
|
|
2682
|
+
return getProp(item, field);
|
|
2683
|
+
}
|
|
2684
|
+
return item[field];
|
|
2685
|
+
})
|
|
2686
|
+
.join(this.lookupServiceConfig.lookupSeparator);
|
|
2687
|
+
};
|
|
2688
|
+
EmployeeDependentLookupService.prototype.onEmployeeDependentLookupRequest = function (value) {
|
|
2689
|
+
var _this = this;
|
|
2690
|
+
var _a, _b, _c, _d;
|
|
2691
|
+
this.onEmployeeDependentLookupRequestObservable(value, (_b = (_a = this.lookupServiceConfig) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.additionalFilter, (_d = (_c = this.lookupServiceConfig) === null || _c === void 0 ? void 0 : _c.filters) === null || _d === void 0 ? void 0 : _d.companyIds).subscribe(function (data) { return _this.lookupServiceConfig.lookupSubject.next(data.contents); });
|
|
2692
|
+
};
|
|
2693
|
+
EmployeeDependentLookupService.prototype.onEmployeeDependentLookupRequestObservable = function (value, additionalFilter, companyIds) {
|
|
2694
|
+
var _this = this;
|
|
2695
|
+
var sort = this.lookupServiceConfig.lookupDisplayFields.map(function (field) { return ({ field: field, order: 1 }); });
|
|
2696
|
+
var employeeDependentFilterQuery = createLookupRequestFilter(value, this.getEmployeeDependentSearchFields());
|
|
2697
|
+
employeeDependentFilterQuery = this.getFiltersDefault(companyIds, employeeDependentFilterQuery, additionalFilter);
|
|
2698
|
+
var displayFields = mergeUnique(this.lookupServiceConfig.lookupDisplayFields.concat("employee.employer"), __spread(this.lookupServiceConfig.lookupDisplayFields));
|
|
2699
|
+
return this.employeeDependentService
|
|
2700
|
+
.list({ sort: sort, filterQuery: employeeDependentFilterQuery, displayFields: displayFields })
|
|
2701
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2702
|
+
.pipe(operators.map(function (list) { return (__assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.lookupServiceConfig.lookupDisplayFields
|
|
2703
|
+
.map(function (field) {
|
|
2704
|
+
if (field.indexOf(".") > 0) {
|
|
2705
|
+
return getProp(item, field);
|
|
2706
|
+
}
|
|
2707
|
+
return item[field];
|
|
2708
|
+
})
|
|
2709
|
+
.join(_this.lookupServiceConfig.lookupSeparator) })); }) })); }));
|
|
2710
|
+
};
|
|
2711
|
+
EmployeeDependentLookupService.prototype.getEmployeeDependentSearchFields = function () {
|
|
2712
|
+
return [
|
|
2713
|
+
new angularComponents.FormField({
|
|
2714
|
+
name: "dependent.codPes",
|
|
2715
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".employee_dependent_cod_pes"),
|
|
2716
|
+
type: angularComponents.FieldType.Integer,
|
|
2717
|
+
}),
|
|
2718
|
+
new angularComponents.FormField({
|
|
2719
|
+
name: "dependent.nomPes",
|
|
2720
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".employee_dependent_nom_pes"),
|
|
2721
|
+
type: angularComponents.FieldType.String,
|
|
2722
|
+
}),
|
|
2723
|
+
new angularComponents.FormField({
|
|
2724
|
+
name: "employee.code",
|
|
2725
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".employee_dependent_employee_code"),
|
|
2726
|
+
type: angularComponents.FieldType.Integer,
|
|
2727
|
+
}),
|
|
2728
|
+
new angularComponents.FormField({
|
|
2729
|
+
name: "employee.person.nomPes",
|
|
2730
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".employee_dependent_employee_nom_pes"),
|
|
2731
|
+
type: angularComponents.FieldType.String,
|
|
2732
|
+
}),
|
|
2733
|
+
];
|
|
2734
|
+
};
|
|
2735
|
+
EmployeeDependentLookupService.ctorParameters = function () { return [
|
|
2736
|
+
{ type: core$1.TranslateService },
|
|
2737
|
+
{ type: EntityLookupConfigService },
|
|
2738
|
+
{ type: EmployeeDependentService }
|
|
2739
|
+
]; };
|
|
2740
|
+
EmployeeDependentLookupService = __decorate([
|
|
2741
|
+
core.Injectable()
|
|
2742
|
+
], EmployeeDependentLookupService);
|
|
2743
|
+
return EmployeeDependentLookupService;
|
|
2744
|
+
}());
|
|
2745
|
+
|
|
2746
|
+
var EmployeeDependentLookupComponent = /** @class */ (function (_super) {
|
|
2747
|
+
__extends(EmployeeDependentLookupComponent, _super);
|
|
2748
|
+
function EmployeeDependentLookupComponent(translate, cdRef, configService, structerService, employeeDependentLookupService) {
|
|
2749
|
+
var _this = _super.call(this, translate, cdRef, configService, structerService) || this;
|
|
2750
|
+
_this.translate = translate;
|
|
2751
|
+
_this.cdRef = cdRef;
|
|
2752
|
+
_this.configService = configService;
|
|
2753
|
+
_this.structerService = structerService;
|
|
2754
|
+
_this.employeeDependentLookupService = employeeDependentLookupService;
|
|
2755
|
+
_this.controlName = "employeeDependent";
|
|
2756
|
+
_this.entity = "employeeDependent";
|
|
2757
|
+
_this.domain = "hcm_contract";
|
|
2758
|
+
_this.service = "employment_contract";
|
|
2759
|
+
_this.useDateValidation = false;
|
|
2760
|
+
return _this;
|
|
2761
|
+
}
|
|
2762
|
+
EmployeeDependentLookupComponent.prototype.ngOnInit = function () {
|
|
2763
|
+
this.employeeDependentSearchFields = this.employeeDependentLookupService.getEmployeeDependentSearchFields();
|
|
2764
|
+
this.employeeDependentSearchGridFields = this.employeeDependentLookupService.getEmployeeDependentSearchFields();
|
|
2765
|
+
};
|
|
2766
|
+
EmployeeDependentLookupComponent.prototype.onEmployeeDependentLookupRequest = function (value) {
|
|
2767
|
+
var _this = this;
|
|
2768
|
+
var filter = this.buildAdditionalFilter();
|
|
2769
|
+
this.employeeDependentLookupService
|
|
2770
|
+
.onEmployeeDependentLookupRequestObservable(value, filter, this.companyIds)
|
|
2771
|
+
.subscribe(function (list) {
|
|
2772
|
+
_this.employeeDependentLookupSuggestions = list === null || list === void 0 ? void 0 : list.contents;
|
|
2773
|
+
});
|
|
2774
|
+
};
|
|
2775
|
+
EmployeeDependentLookupComponent.prototype.onEmployeeDependentSearchRequest = function (event) {
|
|
2776
|
+
var _this = this;
|
|
2777
|
+
var filter = this.buildAdditionalFilter();
|
|
2778
|
+
this.employeeDependentLookupService
|
|
2779
|
+
.onEmployeeDependentSearchRequestObservable(event, filter, this.companyIds)
|
|
2780
|
+
.subscribe(function (list) {
|
|
2781
|
+
_this.employeeDependentSearchGridData = list === null || list === void 0 ? void 0 : list.contents;
|
|
2782
|
+
_this.employeeDependentSearchTotalRecords = list === null || list === void 0 ? void 0 : list.totalElements;
|
|
2783
|
+
});
|
|
2784
|
+
};
|
|
2785
|
+
EmployeeDependentLookupComponent.prototype.buildAdditionalFilter = function () {
|
|
2786
|
+
var filters = [];
|
|
2787
|
+
if (this.employeeId) {
|
|
2788
|
+
filters.push("employee.id eq '" + this.employeeId + "'");
|
|
2789
|
+
}
|
|
2790
|
+
if (this.employeeDependentLookupService.lookupServiceConfig.filters.additionalFilter) {
|
|
2791
|
+
filters.push(this.employeeDependentLookupService.lookupServiceConfig.filters.additionalFilter);
|
|
2792
|
+
}
|
|
2793
|
+
return filters.join(' and ');
|
|
2794
|
+
};
|
|
2795
|
+
EmployeeDependentLookupComponent.ctorParameters = function () { return [
|
|
2796
|
+
{ type: core$1.TranslateService },
|
|
2797
|
+
{ type: core.ChangeDetectorRef },
|
|
2798
|
+
{ type: EntityLookupConfigService },
|
|
2799
|
+
{ type: StructureFilterService },
|
|
2800
|
+
{ type: EmployeeDependentLookupService }
|
|
2801
|
+
]; };
|
|
2802
|
+
__decorate([
|
|
2803
|
+
core.Input()
|
|
2804
|
+
], EmployeeDependentLookupComponent.prototype, "employeeId", void 0);
|
|
2805
|
+
EmployeeDependentLookupComponent = __decorate([
|
|
2806
|
+
core.Component({
|
|
2807
|
+
selector: "flx-employee-dependent-lookup",
|
|
2808
|
+
template: "<s-loading-state [loading]=\"loading\" [blockWindow]=\"true\"></s-loading-state>\n<form [formGroup]=\"formGroup\">\n <s-lookup dataKey=\"id\" id=\"employeeDependent\" name=\"employeeDependent\" [formControlName]=\"controlName\"\n [searchFields]=\"employeeDependentSearchFields\"\n [searchGridFields]=\"employeeDependentSearchGridFields\"\n [searchGridData]=\"employeeDependentSearchGridData\"\n (onSelect)=\"selectOption($event)\"\n (onClear)=\"onClearItem($event)\"\n [multiple]=\"multiple\"\n [disabled]=\"isDisabled\"\n [lookupSuggestions]=\"employeeDependentLookupSuggestions\"\n (onLookupRequest)=\"onEmployeeDependentLookupRequest($event)\"\n (onSearchRequest)=\"onEmployeeDependentSearchRequest($event)\"\n lookupDisplayField=\"label\"\n [searchTotalRecords]=\"employeeDependentSearchTotalRecords\"\n [searchTitle]=\"configService.getTranslationPrefix()\n + '.employee_dependent_search_title' | translate\"\n [searchEmptyTitle]=\"configService.getTranslationPrefix()\n + '.nothing_found' | translate\"\n [filterLabel]=\"configService.getTranslationPrefix()\n + '.filter' | translate\"\n [filterTitle]=\"configService.getTranslationPrefix()\n + '.filters' | translate\"\n [clearLabel]=\"configService.getTranslationPrefix()\n + '.clear' | translate\"\n [cancelLabel]=\"configService.getTranslationPrefix()\n + '.cancel' | translate\"\n [selectLabel]=\"configService.getTranslationPrefix()\n + '.select' | translate\"\n [searchTotalRecordsLabel]=\"configService.getTranslationPrefix()\n + '.total_records' | translate: {value: employeeDependentSearchTotalRecords}\">\n </s-lookup>\n</form>\n"
|
|
2809
|
+
})
|
|
2810
|
+
], EmployeeDependentLookupComponent);
|
|
2811
|
+
return EmployeeDependentLookupComponent;
|
|
2812
|
+
}(BaseLookupComponent));
|
|
2813
|
+
|
|
2814
|
+
var EmployeeDependentLookupModule = /** @class */ (function () {
|
|
2815
|
+
function EmployeeDependentLookupModule() {
|
|
2816
|
+
}
|
|
2817
|
+
EmployeeDependentLookupModule = __decorate([
|
|
2818
|
+
core.NgModule({
|
|
2819
|
+
declarations: [
|
|
2820
|
+
EmployeeDependentLookupComponent,
|
|
2821
|
+
],
|
|
2822
|
+
exports: [
|
|
2823
|
+
EmployeeDependentLookupComponent,
|
|
2824
|
+
],
|
|
2825
|
+
imports: [
|
|
2826
|
+
SharedModule,
|
|
2827
|
+
angularComponents.LoadingStateModule,
|
|
2828
|
+
],
|
|
2829
|
+
providers: [
|
|
2830
|
+
EmployeeDependentLookupService,
|
|
2831
|
+
EmployeeDependentService,
|
|
2832
|
+
],
|
|
2833
|
+
})
|
|
2834
|
+
], EmployeeDependentLookupModule);
|
|
2835
|
+
return EmployeeDependentLookupModule;
|
|
2836
|
+
}());
|
|
2837
|
+
|
|
2505
2838
|
|
|
2506
2839
|
(function (SituationEmployee) {
|
|
2507
2840
|
SituationEmployee["WORKING"] = "WORKING";
|
|
@@ -2761,7 +3094,7 @@
|
|
|
2761
3094
|
}
|
|
2762
3095
|
};
|
|
2763
3096
|
EmployeeLookupService.prototype.setSituationToEmployee = function (dismissalDate) {
|
|
2764
|
-
var nowDate = moment$
|
|
3097
|
+
var nowDate = moment$l().format('YYYY-MM-DD');
|
|
2765
3098
|
return (dismissalDate > nowDate || !dismissalDate)
|
|
2766
3099
|
? exports.SituationEmployee.WORKING
|
|
2767
3100
|
: exports.SituationEmployee.DISMISSED;
|
|
@@ -2811,7 +3144,7 @@
|
|
|
2811
3144
|
};
|
|
2812
3145
|
EmployeeLookupService.prototype.getFilters = function (filters, companyIds, situationEmployee) {
|
|
2813
3146
|
var employeeFilters = [];
|
|
2814
|
-
var nowDate = moment$
|
|
3147
|
+
var nowDate = moment$l().format('YYYY-MM-DD');
|
|
2815
3148
|
if (situationEmployee == exports.SituationEmployee.WORKING) {
|
|
2816
3149
|
employeeFilters.push("(dismissalDate is null or dismissalDate gt '" + nowDate + "')");
|
|
2817
3150
|
}
|
|
@@ -5850,7 +6183,7 @@
|
|
|
5850
6183
|
return __assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMapping(item) })); }) });
|
|
5851
6184
|
};
|
|
5852
6185
|
CalculationDefinitionLookupService.prototype.setDateForCalculationDefinition = function (date) {
|
|
5853
|
-
return moment$
|
|
6186
|
+
return moment$l(date).format('MM/YYYY');
|
|
5854
6187
|
};
|
|
5855
6188
|
CalculationDefinitionLookupService.prototype.setCalculationDefinitionCalculatioType = function (calculationType) {
|
|
5856
6189
|
if (Object.values(CalculationType).includes(calculationType)) {
|
|
@@ -6193,7 +6526,7 @@
|
|
|
6193
6526
|
}
|
|
6194
6527
|
};
|
|
6195
6528
|
VariableEntryLookupService.prototype.setDateForCalculationDefinition = function (date) {
|
|
6196
|
-
return moment$
|
|
6529
|
+
return moment$l(date).format('MM/YYYY');
|
|
6197
6530
|
};
|
|
6198
6531
|
VariableEntryLookupService.prototype.setVariableEntryOriginType = function (originType) {
|
|
6199
6532
|
if (Object.values(OriginType).includes(originType)) {
|
|
@@ -7700,82 +8033,85 @@
|
|
|
7700
8033
|
return ThirdPartyFpasLookupModule;
|
|
7701
8034
|
}());
|
|
7702
8035
|
|
|
7703
|
-
var
|
|
7704
|
-
__extends(
|
|
7705
|
-
function
|
|
7706
|
-
var _this = _super.call(this, http, messageService, "
|
|
8036
|
+
var ContributionTypeService = /** @class */ (function (_super) {
|
|
8037
|
+
__extends(ContributionTypeService, _super);
|
|
8038
|
+
function ContributionTypeService(http, messageService, translate, configService) {
|
|
8039
|
+
var _this = _super.call(this, http, messageService, "hcm_payroll_foundation/general/entities/contributionType", "hcm_payroll_foundation/general/actions", translate, configService) || this;
|
|
7707
8040
|
_this.http = http;
|
|
7708
8041
|
_this.messageService = messageService;
|
|
7709
8042
|
_this.translate = translate;
|
|
7710
8043
|
_this.configService = configService;
|
|
7711
8044
|
return _this;
|
|
7712
8045
|
}
|
|
7713
|
-
|
|
8046
|
+
ContributionTypeService.ctorParameters = function () { return [
|
|
7714
8047
|
{ type: http.HttpClient },
|
|
7715
8048
|
{ type: api.MessageService },
|
|
7716
8049
|
{ type: core$1.TranslateService },
|
|
7717
8050
|
{ type: EntityLookupConfigService }
|
|
7718
8051
|
]; };
|
|
7719
|
-
|
|
8052
|
+
ContributionTypeService = __decorate([
|
|
7720
8053
|
core.Injectable()
|
|
7721
|
-
],
|
|
7722
|
-
return
|
|
8054
|
+
], ContributionTypeService);
|
|
8055
|
+
return ContributionTypeService;
|
|
7723
8056
|
}(EntityService));
|
|
7724
8057
|
|
|
7725
|
-
var
|
|
7726
|
-
function
|
|
8058
|
+
var ContributionTypeLookupService = /** @class */ (function () {
|
|
8059
|
+
function ContributionTypeLookupService(translate, configService, contributionTypeService) {
|
|
7727
8060
|
this.translate = translate;
|
|
7728
8061
|
this.configService = configService;
|
|
7729
|
-
this.
|
|
8062
|
+
this.contributionTypeService = contributionTypeService;
|
|
7730
8063
|
this.lookupServiceConfig = {
|
|
7731
|
-
lookupDisplayFields: [
|
|
7732
|
-
lookupSuggestionFields: [
|
|
7733
|
-
lookupSeparator:
|
|
8064
|
+
lookupDisplayFields: ['code', 'name'],
|
|
8065
|
+
lookupSuggestionFields: ['code', 'name'],
|
|
8066
|
+
lookupSeparator: ' - ',
|
|
7734
8067
|
searchSubject: new rxjs.Subject(),
|
|
7735
8068
|
lookupSubject: new rxjs.Subject(),
|
|
7736
|
-
entityName:
|
|
8069
|
+
entityName: 'contributionType',
|
|
7737
8070
|
dynamicFormOptions: {
|
|
7738
8071
|
cancelLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".cancel"),
|
|
7739
8072
|
clearLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".clear"),
|
|
7740
|
-
dataKey:
|
|
8073
|
+
dataKey: 'id',
|
|
7741
8074
|
emptyFieldLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".list_grid_empty_field"),
|
|
7742
8075
|
emptyMessage: this.translate.instant(this.configService.getTranslationPrefix() + ".empty_message_field"),
|
|
7743
8076
|
filterLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".filter"),
|
|
7744
8077
|
filterTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".filters"),
|
|
7745
|
-
|
|
8078
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".contribution_type"),
|
|
8079
|
+
lookupDisplayField: 'label',
|
|
7746
8080
|
multiple: false,
|
|
7747
|
-
name:
|
|
8081
|
+
name: 'contributionType',
|
|
7748
8082
|
recordLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
7749
8083
|
recordsLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
7750
8084
|
required: true,
|
|
7751
8085
|
searchEmptyTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".nothing_found"),
|
|
7752
|
-
searchFields: this.
|
|
7753
|
-
searchGridFields: this.
|
|
8086
|
+
searchFields: this.getContributionTypeSearchFields(),
|
|
8087
|
+
searchGridFields: this.getContributionTypeSearchFields(),
|
|
8088
|
+
searchTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".contribution_type_search_title"),
|
|
7754
8089
|
selectLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".select"),
|
|
7755
8090
|
visible: true,
|
|
7756
|
-
isCollective: false
|
|
8091
|
+
isCollective: false
|
|
7757
8092
|
},
|
|
7758
8093
|
filters: {
|
|
7759
8094
|
additionalFilter: undefined,
|
|
7760
8095
|
initialFilter: undefined,
|
|
7761
|
-
|
|
8096
|
+
companyIds: []
|
|
8097
|
+
}
|
|
7762
8098
|
};
|
|
7763
8099
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
7764
8100
|
}
|
|
7765
|
-
|
|
8101
|
+
ContributionTypeLookupService.prototype.updateSuggestions = function (value) {
|
|
7766
8102
|
if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
|
|
7767
|
-
value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.
|
|
8103
|
+
value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupSuggestionFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
|
|
7768
8104
|
if ((value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName].label.trim()) === this.lookupServiceConfig.lookupSeparator.trim()) {
|
|
7769
8105
|
delete value[this.lookupServiceConfig.entityName].label;
|
|
7770
8106
|
}
|
|
7771
8107
|
}
|
|
7772
8108
|
};
|
|
7773
|
-
|
|
8109
|
+
ContributionTypeLookupService.prototype.getSuggestionValue = function (displayFields, ownerEntity, value, separator) {
|
|
7774
8110
|
return displayFields
|
|
7775
8111
|
.map(function (field) { return getProp(value, ownerEntity + "." + field); })
|
|
7776
8112
|
.reduce(function (acc, val) { return "" + acc + separator + val; });
|
|
7777
8113
|
};
|
|
7778
|
-
|
|
8114
|
+
ContributionTypeLookupService.prototype.getFormField = function () {
|
|
7779
8115
|
var _this = this;
|
|
7780
8116
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
7781
8117
|
return new angularComponents.FormField({
|
|
@@ -7796,28 +8132,303 @@
|
|
|
7796
8132
|
lookupDisplayField: (_q = this.lookupServiceConfig.dynamicFormOptions) === null || _q === void 0 ? void 0 : _q.lookupDisplayField,
|
|
7797
8133
|
multiple: (_r = this.lookupServiceConfig.dynamicFormOptions) === null || _r === void 0 ? void 0 : _r.multiple,
|
|
7798
8134
|
name: (_s = this.lookupServiceConfig.dynamicFormOptions) === null || _s === void 0 ? void 0 : _s.name,
|
|
7799
|
-
onLookupRequest: function (value) { return _this.
|
|
7800
|
-
onSearchRequest: function (event) { return _this.
|
|
8135
|
+
onLookupRequest: function (value) { return _this.onContributionTypeLookupRequest(value); },
|
|
8136
|
+
onSearchRequest: function (event) { return _this.onContributionTypeSearchRequest(event); },
|
|
7801
8137
|
required: function () { var _a; return (_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.required; },
|
|
7802
8138
|
searchObservable: this.lookupServiceConfig.searchSubject,
|
|
7803
8139
|
suggestionsObservable: this.lookupServiceConfig.lookupSubject,
|
|
7804
8140
|
type: angularComponents.FieldType.Lookup,
|
|
7805
|
-
visible: function () { var _a; return !((_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.isCollective); }
|
|
8141
|
+
visible: function () { var _a; return !((_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.isCollective); }
|
|
7806
8142
|
});
|
|
7807
8143
|
};
|
|
7808
|
-
|
|
8144
|
+
ContributionTypeLookupService.prototype.onContributionTypeSearchRequest = function (event) {
|
|
7809
8145
|
var _this = this;
|
|
7810
|
-
var _a, _b;
|
|
7811
|
-
this.
|
|
8146
|
+
var _a, _b, _c, _d;
|
|
8147
|
+
this.onContributionTypeSearchRequestObservable(event, (_b = (_a = this.lookupServiceConfig) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.additionalFilter, (_d = (_c = this.lookupServiceConfig) === null || _c === void 0 ? void 0 : _c.filters) === null || _d === void 0 ? void 0 : _d.companyIds, true).subscribe(function (data) { return _this.lookupServiceConfig.searchSubject.next(data); });
|
|
7812
8148
|
};
|
|
7813
|
-
|
|
8149
|
+
ContributionTypeLookupService.prototype.onContributionTypeSearchRequestObservable = function (event, additionalFilter, companyIds, isDynamicForm) {
|
|
7814
8150
|
var _this = this;
|
|
7815
8151
|
if (isDynamicForm === void 0) { isDynamicForm = false; }
|
|
7816
8152
|
var first = event.first, rows = event.rows, multiSortMeta = event.multiSortMeta, filterData = event.filterData;
|
|
7817
8153
|
var page = first / rows;
|
|
7818
8154
|
var sort = multiSortMeta;
|
|
7819
|
-
var
|
|
7820
|
-
|
|
8155
|
+
var contributionTypeFilterQuery = createSearchRequestFilter(filterData, this.getContributionTypeSearchFields());
|
|
8156
|
+
contributionTypeFilterQuery = this.getFiltersDefaultContributionType(companyIds, contributionTypeFilterQuery, additionalFilter);
|
|
8157
|
+
var displayFields = __spread(this.lookupServiceConfig.lookupDisplayFields);
|
|
8158
|
+
return this.contributionTypeService
|
|
8159
|
+
.list({ page: page, sort: sort, filterQuery: contributionTypeFilterQuery, displayFields: displayFields })
|
|
8160
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
8161
|
+
.pipe(operators.map(function (list) { return _this.mapToComponent(list, isDynamicForm); }));
|
|
8162
|
+
};
|
|
8163
|
+
ContributionTypeLookupService.prototype.getFiltersDefaultContributionType = function (companyIds, filterData, additionalFilter) {
|
|
8164
|
+
var filters = [];
|
|
8165
|
+
additionalFilter && filters.push("(" + additionalFilter + ")");
|
|
8166
|
+
filterData && filters.push("(" + filterData + ")");
|
|
8167
|
+
return filters.join(' and ');
|
|
8168
|
+
};
|
|
8169
|
+
ContributionTypeLookupService.prototype.mapToComponent = function (list, isDynamicForm) {
|
|
8170
|
+
var _this = this;
|
|
8171
|
+
if (isDynamicForm === void 0) { isDynamicForm = false; }
|
|
8172
|
+
if (isDynamicForm) {
|
|
8173
|
+
return {
|
|
8174
|
+
gridData: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMaping(item) })); }),
|
|
8175
|
+
totalRecords: list === null || list === void 0 ? void 0 : list.totalElements
|
|
8176
|
+
};
|
|
8177
|
+
}
|
|
8178
|
+
else {
|
|
8179
|
+
return __assign(__assign({}, list), { contents: list.contents.map(function (item) { return (__assign(__assign({}, item), { label: _this.getLabelForMaping(item) })); }) });
|
|
8180
|
+
}
|
|
8181
|
+
};
|
|
8182
|
+
ContributionTypeLookupService.prototype.getLabelForMaping = function (item) {
|
|
8183
|
+
var _this = this;
|
|
8184
|
+
return this.lookupServiceConfig.lookupSuggestionFields
|
|
8185
|
+
.map(function (field) {
|
|
8186
|
+
if (field === 'description' && !(item === null || item === void 0 ? void 0 : item.description)) {
|
|
8187
|
+
item.description = _this.translate.instant(_this.configService.getTranslationPrefix() + ".list_grid_empty_field");
|
|
8188
|
+
}
|
|
8189
|
+
if (field.indexOf('.') > 0) {
|
|
8190
|
+
return getProp(item, field);
|
|
8191
|
+
}
|
|
8192
|
+
return item[field];
|
|
8193
|
+
})
|
|
8194
|
+
.join(this.lookupServiceConfig.lookupSeparator);
|
|
8195
|
+
};
|
|
8196
|
+
ContributionTypeLookupService.prototype.onContributionTypeLookupRequest = function (value) {
|
|
8197
|
+
var _this = this;
|
|
8198
|
+
var _a, _b, _c, _d;
|
|
8199
|
+
this.onContributionTypeLookupRequestObservable(value, (_b = (_a = this.lookupServiceConfig) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.additionalFilter, (_d = (_c = this.lookupServiceConfig) === null || _c === void 0 ? void 0 : _c.filters) === null || _d === void 0 ? void 0 : _d.companyIds).subscribe(function (data) { return _this.lookupServiceConfig.lookupSubject.next(data.contents); });
|
|
8200
|
+
};
|
|
8201
|
+
ContributionTypeLookupService.prototype.onContributionTypeLookupRequestObservable = function (value, additionalFilter, companyIds) {
|
|
8202
|
+
var _this = this;
|
|
8203
|
+
var sort = this.lookupServiceConfig.lookupDisplayFields.map(function (field) { return ({ field: field, order: 1 }); });
|
|
8204
|
+
var contributionTypeFilterQuery = createLookupRequestFilter(value, this.getContributionTypeSearchFields());
|
|
8205
|
+
contributionTypeFilterQuery = this.getFiltersDefaultContributionType(companyIds, contributionTypeFilterQuery, additionalFilter);
|
|
8206
|
+
var displayFields = __spread(this.lookupServiceConfig.lookupDisplayFields);
|
|
8207
|
+
return this.contributionTypeService
|
|
8208
|
+
.list({ sort: sort, filterQuery: contributionTypeFilterQuery, displayFields: displayFields })
|
|
8209
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
8210
|
+
.pipe(operators.map(function (list) { return _this.mapToComponent(list); }));
|
|
8211
|
+
};
|
|
8212
|
+
ContributionTypeLookupService.prototype.getContributionTypeSearchFields = function () {
|
|
8213
|
+
return [
|
|
8214
|
+
new angularComponents.FormField({
|
|
8215
|
+
name: 'code',
|
|
8216
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".contribution_type_code"),
|
|
8217
|
+
type: angularComponents.FieldType.Integer
|
|
8218
|
+
}),
|
|
8219
|
+
new angularComponents.FormField({
|
|
8220
|
+
name: 'name',
|
|
8221
|
+
label: this.translate.instant(this.configService.getTranslationPrefix() + ".contribution_type_name"),
|
|
8222
|
+
type: angularComponents.FieldType.String
|
|
8223
|
+
})
|
|
8224
|
+
];
|
|
8225
|
+
};
|
|
8226
|
+
ContributionTypeLookupService.ctorParameters = function () { return [
|
|
8227
|
+
{ type: core$1.TranslateService },
|
|
8228
|
+
{ type: EntityLookupConfigService },
|
|
8229
|
+
{ type: ContributionTypeService }
|
|
8230
|
+
]; };
|
|
8231
|
+
ContributionTypeLookupService = __decorate([
|
|
8232
|
+
core.Injectable()
|
|
8233
|
+
], ContributionTypeLookupService);
|
|
8234
|
+
return ContributionTypeLookupService;
|
|
8235
|
+
}());
|
|
8236
|
+
|
|
8237
|
+
var ContributionTypeLookupComponent = /** @class */ (function (_super) {
|
|
8238
|
+
__extends(ContributionTypeLookupComponent, _super);
|
|
8239
|
+
function ContributionTypeLookupComponent(translate, cdRef, configService, structerService, contributionTypeLookupService) {
|
|
8240
|
+
var _this = _super.call(this, translate, cdRef, configService, structerService) || this;
|
|
8241
|
+
_this.translate = translate;
|
|
8242
|
+
_this.cdRef = cdRef;
|
|
8243
|
+
_this.configService = configService;
|
|
8244
|
+
_this.structerService = structerService;
|
|
8245
|
+
_this.contributionTypeLookupService = contributionTypeLookupService;
|
|
8246
|
+
_this.controlName = 'contributionType';
|
|
8247
|
+
_this.entity = 'contributionType';
|
|
8248
|
+
_this.domain = 'hcm_payroll_foundation';
|
|
8249
|
+
_this.service = 'general';
|
|
8250
|
+
_this.useDateValidation = false;
|
|
8251
|
+
return _this;
|
|
8252
|
+
}
|
|
8253
|
+
ContributionTypeLookupComponent.prototype.ngOnInit = function () {
|
|
8254
|
+
this.contributionTypeSearchFields = this.contributionTypeLookupService.getContributionTypeSearchFields();
|
|
8255
|
+
this.contributionTypeSearchGridFields = this.contributionTypeLookupService.getContributionTypeSearchFields();
|
|
8256
|
+
};
|
|
8257
|
+
ContributionTypeLookupComponent.prototype.onContributionTypeLookupRequest = function (value) {
|
|
8258
|
+
var _this = this;
|
|
8259
|
+
this.contributionTypeLookupService
|
|
8260
|
+
.onContributionTypeLookupRequestObservable(value, this.contributionTypeLookupService.lookupServiceConfig.filters.additionalFilter, this.companyIds)
|
|
8261
|
+
.subscribe(function (list) {
|
|
8262
|
+
_this.contributionTypeSuggestions = list === null || list === void 0 ? void 0 : list.contents;
|
|
8263
|
+
});
|
|
8264
|
+
};
|
|
8265
|
+
ContributionTypeLookupComponent.prototype.onContributionTypeSearchRequest = function (event) {
|
|
8266
|
+
var _this = this;
|
|
8267
|
+
this.contributionTypeLookupService
|
|
8268
|
+
.onContributionTypeSearchRequestObservable(event, this.contributionTypeLookupService.lookupServiceConfig.filters.additionalFilter, this.companyIds)
|
|
8269
|
+
.subscribe(function (list) {
|
|
8270
|
+
_this.contributionTypeSearchGridData = list === null || list === void 0 ? void 0 : list.contents;
|
|
8271
|
+
_this.contributionTypeSearchTotalRecords = list === null || list === void 0 ? void 0 : list.totalElements;
|
|
8272
|
+
});
|
|
8273
|
+
};
|
|
8274
|
+
ContributionTypeLookupComponent.ctorParameters = function () { return [
|
|
8275
|
+
{ type: core$1.TranslateService },
|
|
8276
|
+
{ type: core.ChangeDetectorRef },
|
|
8277
|
+
{ type: EntityLookupConfigService },
|
|
8278
|
+
{ type: StructureFilterService },
|
|
8279
|
+
{ type: ContributionTypeLookupService }
|
|
8280
|
+
]; };
|
|
8281
|
+
ContributionTypeLookupComponent = __decorate([
|
|
8282
|
+
core.Component({
|
|
8283
|
+
selector: 'flx-contribution-type-lookup',
|
|
8284
|
+
template: "<s-loading-state [loading]=\"loading\" [blockWindow]=\"true\"></s-loading-state>\n<form [formGroup]=\"formGroup\">\n <s-lookup dataKey=\"id\"\n id=\"contributionType\"\n name=\"contributionType\"\n [formControlName]=\"controlName\"\n [searchFields]=\"contributionTypeSearchFields\"\n [searchGridFields]=\"contributionTypeSearchGridFields\"\n [searchGridData]=\"contributionTypeSearchGridData\"\n (onSelect)=\"selectOption($event)\"\n (onClear)=\"onClearItem($event)\"\n [multiple]=\"multiple\"\n [disabled]=\"isDisabled\"\n [lookupSuggestions]=\"contributionTypeSuggestions\"\n (onLookupRequest)=\"onContributionTypeLookupRequest($event)\"\n (onSearchRequest)=\"onContributionTypeSearchRequest($event)\"\n lookupDisplayField=\"label\"\n [searchTotalRecords]=\"contributionTypeSearchTotalRecords\"\n [searchTitle]=\"configService.getTranslationPrefix() + '.contribution_type_search_title' | translate\"\n [searchEmptyTitle]=\"configService.getTranslationPrefix() + '.nothing_found' | translate\"\n [filterLabel]=\"configService.getTranslationPrefix() + '.filter' | translate\"\n [filterTitle]=\"configService.getTranslationPrefix() + '.filters' | translate\"\n [clearLabel]=\"configService.getTranslationPrefix() + '.clear' | translate\"\n [cancelLabel]=\"configService.getTranslationPrefix() + '.cancel' | translate\"\n [selectLabel]=\"configService.getTranslationPrefix() + '.select' | translate\"\n [searchTotalRecordsLabel]=\"configService.getTranslationPrefix() + '.total_records' | translate:\n {value: contributionTypeSearchTotalRecords}\">\n </s-lookup>\n</form>\n"
|
|
8285
|
+
})
|
|
8286
|
+
], ContributionTypeLookupComponent);
|
|
8287
|
+
return ContributionTypeLookupComponent;
|
|
8288
|
+
}(BaseLookupComponent));
|
|
8289
|
+
|
|
8290
|
+
var ContributionTypeLookupModule = /** @class */ (function () {
|
|
8291
|
+
function ContributionTypeLookupModule() {
|
|
8292
|
+
}
|
|
8293
|
+
ContributionTypeLookupModule = __decorate([
|
|
8294
|
+
core.NgModule({
|
|
8295
|
+
declarations: [
|
|
8296
|
+
ContributionTypeLookupComponent
|
|
8297
|
+
],
|
|
8298
|
+
exports: [
|
|
8299
|
+
ContributionTypeLookupComponent
|
|
8300
|
+
],
|
|
8301
|
+
imports: [
|
|
8302
|
+
SharedModule,
|
|
8303
|
+
angularComponents.LoadingStateModule
|
|
8304
|
+
],
|
|
8305
|
+
providers: [
|
|
8306
|
+
ContributionTypeLookupService,
|
|
8307
|
+
ContributionTypeService
|
|
8308
|
+
]
|
|
8309
|
+
})
|
|
8310
|
+
], ContributionTypeLookupModule);
|
|
8311
|
+
return ContributionTypeLookupModule;
|
|
8312
|
+
}());
|
|
8313
|
+
|
|
8314
|
+
var NaturePayrollRubricaService = /** @class */ (function (_super) {
|
|
8315
|
+
__extends(NaturePayrollRubricaService, _super);
|
|
8316
|
+
function NaturePayrollRubricaService(http, messageService, translate, configService) {
|
|
8317
|
+
var _this = _super.call(this, http, messageService, "tax_obligation/shared/entities/naturePayrollRubrica", "tax_obligation/shared/actions", translate, configService) || this;
|
|
8318
|
+
_this.http = http;
|
|
8319
|
+
_this.messageService = messageService;
|
|
8320
|
+
_this.translate = translate;
|
|
8321
|
+
_this.configService = configService;
|
|
8322
|
+
return _this;
|
|
8323
|
+
}
|
|
8324
|
+
NaturePayrollRubricaService.ctorParameters = function () { return [
|
|
8325
|
+
{ type: http.HttpClient },
|
|
8326
|
+
{ type: api.MessageService },
|
|
8327
|
+
{ type: core$1.TranslateService },
|
|
8328
|
+
{ type: EntityLookupConfigService }
|
|
8329
|
+
]; };
|
|
8330
|
+
NaturePayrollRubricaService = __decorate([
|
|
8331
|
+
core.Injectable()
|
|
8332
|
+
], NaturePayrollRubricaService);
|
|
8333
|
+
return NaturePayrollRubricaService;
|
|
8334
|
+
}(EntityService));
|
|
8335
|
+
|
|
8336
|
+
var NaturePayrollRubricaLookupService = /** @class */ (function () {
|
|
8337
|
+
function NaturePayrollRubricaLookupService(translate, configService, naturePayrollRubricaService) {
|
|
8338
|
+
this.translate = translate;
|
|
8339
|
+
this.configService = configService;
|
|
8340
|
+
this.naturePayrollRubricaService = naturePayrollRubricaService;
|
|
8341
|
+
this.lookupServiceConfig = {
|
|
8342
|
+
lookupDisplayFields: ["code", "name"],
|
|
8343
|
+
lookupSuggestionFields: ["code", "name"],
|
|
8344
|
+
lookupSeparator: " - ",
|
|
8345
|
+
searchSubject: new rxjs.Subject(),
|
|
8346
|
+
lookupSubject: new rxjs.Subject(),
|
|
8347
|
+
entityName: "naturePayrollRubrica",
|
|
8348
|
+
dynamicFormOptions: {
|
|
8349
|
+
cancelLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".cancel"),
|
|
8350
|
+
clearLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".clear"),
|
|
8351
|
+
dataKey: "id",
|
|
8352
|
+
emptyFieldLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".list_grid_empty_field"),
|
|
8353
|
+
emptyMessage: this.translate.instant(this.configService.getTranslationPrefix() + ".empty_message_field"),
|
|
8354
|
+
filterLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".filter"),
|
|
8355
|
+
filterTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".filters"),
|
|
8356
|
+
lookupDisplayField: "label",
|
|
8357
|
+
multiple: false,
|
|
8358
|
+
name: "naturePayrollRubrica",
|
|
8359
|
+
recordLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
8360
|
+
recordsLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".records_found"),
|
|
8361
|
+
required: true,
|
|
8362
|
+
searchEmptyTitle: this.translate.instant(this.configService.getTranslationPrefix() + ".nothing_found"),
|
|
8363
|
+
searchFields: this.getNaturePayrollRubricaSearchFields(),
|
|
8364
|
+
searchGridFields: this.getNaturePayrollRubricaSearchFields(),
|
|
8365
|
+
selectLabel: this.translate.instant(this.configService.getTranslationPrefix() + ".select"),
|
|
8366
|
+
visible: true,
|
|
8367
|
+
isCollective: false,
|
|
8368
|
+
},
|
|
8369
|
+
filters: {
|
|
8370
|
+
additionalFilter: undefined,
|
|
8371
|
+
initialFilter: undefined,
|
|
8372
|
+
},
|
|
8373
|
+
};
|
|
8374
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
8375
|
+
}
|
|
8376
|
+
NaturePayrollRubricaLookupService.prototype.updateSuggestions = function (value) {
|
|
8377
|
+
if (value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName]) {
|
|
8378
|
+
value[this.lookupServiceConfig.entityName].label = this.getSuggestionValue(this.lookupServiceConfig.lookupDisplayFields, this.lookupServiceConfig.entityName, value, this.lookupServiceConfig.lookupSeparator);
|
|
8379
|
+
if ((value === null || value === void 0 ? void 0 : value[this.lookupServiceConfig.entityName].label.trim()) === this.lookupServiceConfig.lookupSeparator.trim()) {
|
|
8380
|
+
delete value[this.lookupServiceConfig.entityName].label;
|
|
8381
|
+
}
|
|
8382
|
+
}
|
|
8383
|
+
};
|
|
8384
|
+
NaturePayrollRubricaLookupService.prototype.getSuggestionValue = function (displayFields, ownerEntity, value, separator) {
|
|
8385
|
+
return displayFields
|
|
8386
|
+
.map(function (field) { return getProp(value, ownerEntity + "." + field); })
|
|
8387
|
+
.reduce(function (acc, val) { return "" + acc + separator + val; });
|
|
8388
|
+
};
|
|
8389
|
+
NaturePayrollRubricaLookupService.prototype.getFormField = function () {
|
|
8390
|
+
var _this = this;
|
|
8391
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
8392
|
+
return new angularComponents.FormField({
|
|
8393
|
+
cancelLabel: (_a = this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.cancelLabel,
|
|
8394
|
+
clearLabel: (_b = this.lookupServiceConfig.dynamicFormOptions) === null || _b === void 0 ? void 0 : _b.clearLabel,
|
|
8395
|
+
recordLabel: (_c = this.lookupServiceConfig.dynamicFormOptions) === null || _c === void 0 ? void 0 : _c.recordLabel,
|
|
8396
|
+
recordsLabel: (_d = this.lookupServiceConfig.dynamicFormOptions) === null || _d === void 0 ? void 0 : _d.recordsLabel,
|
|
8397
|
+
searchEmptyTitle: (_e = this.lookupServiceConfig.dynamicFormOptions) === null || _e === void 0 ? void 0 : _e.searchEmptyTitle,
|
|
8398
|
+
searchFields: (_f = this.lookupServiceConfig.dynamicFormOptions) === null || _f === void 0 ? void 0 : _f.searchFields,
|
|
8399
|
+
searchTitle: (_g = this.lookupServiceConfig.dynamicFormOptions) === null || _g === void 0 ? void 0 : _g.searchTitle,
|
|
8400
|
+
selectLabel: (_h = this.lookupServiceConfig.dynamicFormOptions) === null || _h === void 0 ? void 0 : _h.selectLabel,
|
|
8401
|
+
dataKey: (_j = this.lookupServiceConfig.dynamicFormOptions) === null || _j === void 0 ? void 0 : _j.dataKey,
|
|
8402
|
+
emptyFieldLabel: (_k = this.lookupServiceConfig.dynamicFormOptions) === null || _k === void 0 ? void 0 : _k.emptyFieldLabel,
|
|
8403
|
+
emptyMessage: (_l = this.lookupServiceConfig.dynamicFormOptions) === null || _l === void 0 ? void 0 : _l.emptyMessage,
|
|
8404
|
+
filterLabel: (_m = this.lookupServiceConfig.dynamicFormOptions) === null || _m === void 0 ? void 0 : _m.filterLabel,
|
|
8405
|
+
filterTitle: (_o = this.lookupServiceConfig.dynamicFormOptions) === null || _o === void 0 ? void 0 : _o.filterTitle,
|
|
8406
|
+
label: (_p = this.lookupServiceConfig.dynamicFormOptions) === null || _p === void 0 ? void 0 : _p.label,
|
|
8407
|
+
lookupDisplayField: (_q = this.lookupServiceConfig.dynamicFormOptions) === null || _q === void 0 ? void 0 : _q.lookupDisplayField,
|
|
8408
|
+
multiple: (_r = this.lookupServiceConfig.dynamicFormOptions) === null || _r === void 0 ? void 0 : _r.multiple,
|
|
8409
|
+
name: (_s = this.lookupServiceConfig.dynamicFormOptions) === null || _s === void 0 ? void 0 : _s.name,
|
|
8410
|
+
onLookupRequest: function (value) { return _this.onNaturePayrollRubricaLookupRequest(value); },
|
|
8411
|
+
onSearchRequest: function (event) { return _this.onNaturePayrollRubricaSearchRequest(event); },
|
|
8412
|
+
required: function () { var _a; return (_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.required; },
|
|
8413
|
+
searchObservable: this.lookupServiceConfig.searchSubject,
|
|
8414
|
+
suggestionsObservable: this.lookupServiceConfig.lookupSubject,
|
|
8415
|
+
type: angularComponents.FieldType.Lookup,
|
|
8416
|
+
visible: function () { var _a; return !((_a = _this.lookupServiceConfig.dynamicFormOptions) === null || _a === void 0 ? void 0 : _a.isCollective); },
|
|
8417
|
+
});
|
|
8418
|
+
};
|
|
8419
|
+
NaturePayrollRubricaLookupService.prototype.onNaturePayrollRubricaSearchRequest = function (event) {
|
|
8420
|
+
var _this = this;
|
|
8421
|
+
var _a, _b;
|
|
8422
|
+
this.onNaturePayrollRubricaSearchRequestObservable(event, (_b = (_a = this.lookupServiceConfig) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.additionalFilter, true).subscribe(function (data) { return _this.lookupServiceConfig.searchSubject.next(data); });
|
|
8423
|
+
};
|
|
8424
|
+
NaturePayrollRubricaLookupService.prototype.onNaturePayrollRubricaSearchRequestObservable = function (event, additionalFilter, isDynamicForm) {
|
|
8425
|
+
var _this = this;
|
|
8426
|
+
if (isDynamicForm === void 0) { isDynamicForm = false; }
|
|
8427
|
+
var first = event.first, rows = event.rows, multiSortMeta = event.multiSortMeta, filterData = event.filterData;
|
|
8428
|
+
var page = first / rows;
|
|
8429
|
+
var sort = multiSortMeta;
|
|
8430
|
+
var naturePayrollRubricaFilterQuery = createSearchRequestFilter(filterData, this.getNaturePayrollRubricaSearchFields());
|
|
8431
|
+
naturePayrollRubricaFilterQuery = this.getFiltersDefaultNaturePayrollRubrica(naturePayrollRubricaFilterQuery, additionalFilter);
|
|
7821
8432
|
var displayFields = mergeUnique(this.lookupServiceConfig.lookupDisplayFields, __spread(this.lookupServiceConfig.lookupDisplayFields));
|
|
7822
8433
|
return this.naturePayrollRubricaService
|
|
7823
8434
|
.list({ page: page, sort: sort, filterQuery: naturePayrollRubricaFilterQuery, displayFields: displayFields })
|
|
@@ -10673,6 +11284,12 @@
|
|
|
10673
11284
|
"hcm_contract.employment_additional_info.employee": "Empregado",
|
|
10674
11285
|
"hcm_contract.employment_additional_info.employee_code": "Código",
|
|
10675
11286
|
"hcm_contract.employment_additional_info.employer_name": "Nome da empresa",
|
|
11287
|
+
"hcm_contract.employment_additional_info.employee_dependent": "Dependente do colaborador",
|
|
11288
|
+
"hcm_contract.employment_additional_info.employee_dependent_search_title": "Localizar o dependente do colaborador",
|
|
11289
|
+
"hcm_contract.employment_additional_info.employee_dependent_cod_pes": "Código do dependente",
|
|
11290
|
+
"hcm_contract.employment_additional_info.employee_dependent_nom_pes": "Nome do dependente",
|
|
11291
|
+
"hcm_contract.employment_additional_info.employee_dependent_employee_code": "Código do colaborador",
|
|
11292
|
+
"hcm_contract.employment_additional_info.employee_dependent_employee_nom_pes": "Nome do colaborador",
|
|
10676
11293
|
"hcm_contract.employment_additional_info.position_acting_type_code": "Código",
|
|
10677
11294
|
"hcm_contract.employment_additional_info.position_acting_type_name": "Descrição",
|
|
10678
11295
|
"hcm_contract.employment_additional_info.position_history_position_code": "Código",
|
|
@@ -10692,7 +11309,22 @@
|
|
|
10692
11309
|
"hcm_contract.employment_additional_info.employee_situation": "Situação",
|
|
10693
11310
|
"hcm_contract.employment_additional_info.resignation_situation_type_working": "Trabalhando",
|
|
10694
11311
|
"hcm_contract.employment_additional_info.resignation_situation_type_dismissed": "Desligado",
|
|
10695
|
-
"hcm_contract.employment_additional_info.resignation_situation_type_all": "Todos"
|
|
11312
|
+
"hcm_contract.employment_additional_info.resignation_situation_type_all": "Todos",
|
|
11313
|
+
"hcm_contract.employment_contract.employee_dependent": "Dependente",
|
|
11314
|
+
"hcm_contract.employment_contract.employee_dependent_search_title": "Localizar o dependente",
|
|
11315
|
+
"hcm_contract.employment_contract.employee_dependent_cod_pes": "Código do dependente",
|
|
11316
|
+
"hcm_contract.employment_contract.employee_dependent_nom_pes": "Nome do dependente",
|
|
11317
|
+
"hcm_contract.employment_contract.employee_dependent_employee_code": "Código do colaborador",
|
|
11318
|
+
"hcm_contract.employment_contract.employee_dependent_employee_nom_pes": "Nome do colaborador",
|
|
11319
|
+
"hcm_contract.employment_contract.cancel": "Cancelar",
|
|
11320
|
+
"hcm_contract.employment_contract.clear": "Limpar",
|
|
11321
|
+
"hcm_contract.employment_contract.filter": "Filtrar",
|
|
11322
|
+
"hcm_contract.employment_contract.filters": "Filtros",
|
|
11323
|
+
"hcm_contract.employment_contract.select": "Selecionar",
|
|
11324
|
+
"hcm_contract.employment_contract.nothing_found": "Nenhum registro encontrado",
|
|
11325
|
+
"hcm_contract.employment_contract.list_grid_empty_field": "Campo vazio",
|
|
11326
|
+
"hcm_contract.employment_contract.empty_message_field": "Nenhum resultado encontrado",
|
|
11327
|
+
"hcm_contract.employment_contract.records_found": "{{value}} registro(s) encontrado(s)"
|
|
10696
11328
|
};
|
|
10697
11329
|
|
|
10698
11330
|
var AnnotationTypeModule = /** @class */ (function () {
|
|
@@ -10767,6 +11399,20 @@
|
|
|
10767
11399
|
return CompanyLinkedLocationModule;
|
|
10768
11400
|
}());
|
|
10769
11401
|
|
|
11402
|
+
var ContributionTypeModule = /** @class */ (function () {
|
|
11403
|
+
function ContributionTypeModule() {
|
|
11404
|
+
}
|
|
11405
|
+
ContributionTypeModule = __decorate([
|
|
11406
|
+
core.NgModule({
|
|
11407
|
+
imports: [],
|
|
11408
|
+
providers: [
|
|
11409
|
+
ContributionTypeService
|
|
11410
|
+
]
|
|
11411
|
+
})
|
|
11412
|
+
], ContributionTypeModule);
|
|
11413
|
+
return ContributionTypeModule;
|
|
11414
|
+
}());
|
|
11415
|
+
|
|
10770
11416
|
var E001PesModule = /** @class */ (function () {
|
|
10771
11417
|
function E001PesModule() {
|
|
10772
11418
|
}
|
|
@@ -11061,6 +11707,30 @@
|
|
|
11061
11707
|
/*{CA:FILE_CONTENTS:START}*/
|
|
11062
11708
|
/*{CA:FILE_CONTENTS:END}*/
|
|
11063
11709
|
|
|
11710
|
+
var EmployeeDependentModule = /** @class */ (function () {
|
|
11711
|
+
function EmployeeDependentModule() {
|
|
11712
|
+
}
|
|
11713
|
+
EmployeeDependentModule = __decorate([
|
|
11714
|
+
core.NgModule({
|
|
11715
|
+
imports: [
|
|
11716
|
+
platformComponents.PermissionsModule.forChild([
|
|
11717
|
+
{
|
|
11718
|
+
name: "employeeDependent",
|
|
11719
|
+
actions: ["Visualizar", "Incluir", "Editar", "Excluir"],
|
|
11720
|
+
uri: "res://senior.com.br/hcm_contract/employment_contract/entities/employeeDependent",
|
|
11721
|
+
},
|
|
11722
|
+
]),
|
|
11723
|
+
],
|
|
11724
|
+
providers: [
|
|
11725
|
+
EmployeeDependentService,
|
|
11726
|
+
],
|
|
11727
|
+
declarations: [],
|
|
11728
|
+
exports: [],
|
|
11729
|
+
})
|
|
11730
|
+
], EmployeeDependentModule);
|
|
11731
|
+
return EmployeeDependentModule;
|
|
11732
|
+
}());
|
|
11733
|
+
|
|
11064
11734
|
var EmployeeModule = /** @class */ (function () {
|
|
11065
11735
|
function EmployeeModule() {
|
|
11066
11736
|
}
|
|
@@ -11605,6 +12275,20 @@
|
|
|
11605
12275
|
return SyndicateModule;
|
|
11606
12276
|
}());
|
|
11607
12277
|
|
|
12278
|
+
var ThirdPartyFpasModule = /** @class */ (function () {
|
|
12279
|
+
function ThirdPartyFpasModule() {
|
|
12280
|
+
}
|
|
12281
|
+
ThirdPartyFpasModule = __decorate([
|
|
12282
|
+
core.NgModule({
|
|
12283
|
+
imports: [],
|
|
12284
|
+
providers: [
|
|
12285
|
+
ThirdPartyFpasService,
|
|
12286
|
+
],
|
|
12287
|
+
})
|
|
12288
|
+
], ThirdPartyFpasModule);
|
|
12289
|
+
return ThirdPartyFpasModule;
|
|
12290
|
+
}());
|
|
12291
|
+
|
|
11608
12292
|
var VariableEntryModule = /** @class */ (function () {
|
|
11609
12293
|
function VariableEntryModule() {
|
|
11610
12294
|
}
|
|
@@ -11743,20 +12427,6 @@
|
|
|
11743
12427
|
return WorkshiftModule;
|
|
11744
12428
|
}());
|
|
11745
12429
|
|
|
11746
|
-
var ThirdPartyFpasModule = /** @class */ (function () {
|
|
11747
|
-
function ThirdPartyFpasModule() {
|
|
11748
|
-
}
|
|
11749
|
-
ThirdPartyFpasModule = __decorate([
|
|
11750
|
-
core.NgModule({
|
|
11751
|
-
imports: [],
|
|
11752
|
-
providers: [
|
|
11753
|
-
ThirdPartyFpasService,
|
|
11754
|
-
],
|
|
11755
|
-
})
|
|
11756
|
-
], ThirdPartyFpasModule);
|
|
11757
|
-
return ThirdPartyFpasModule;
|
|
11758
|
-
}());
|
|
11759
|
-
|
|
11760
12430
|
var CoreLookupModule = /** @class */ (function () {
|
|
11761
12431
|
function CoreLookupModule() {
|
|
11762
12432
|
}
|
|
@@ -11775,6 +12445,7 @@
|
|
|
11775
12445
|
PositionActingTypeModule,
|
|
11776
12446
|
PositionModule,
|
|
11777
12447
|
E001PesModule,
|
|
12448
|
+
EmployeeDependentModule,
|
|
11778
12449
|
EmployeeModule,
|
|
11779
12450
|
JobPositionModule,
|
|
11780
12451
|
WorkshiftModule,
|
|
@@ -11792,13 +12463,14 @@
|
|
|
11792
12463
|
InssTaxationModule,
|
|
11793
12464
|
InssTaxationGroupModule,
|
|
11794
12465
|
ThirdPartyFpasModule,
|
|
12466
|
+
ContributionTypeModule,
|
|
11795
12467
|
],
|
|
11796
12468
|
})
|
|
11797
12469
|
], CoreLookupModule);
|
|
11798
12470
|
return CoreLookupModule;
|
|
11799
12471
|
}());
|
|
11800
12472
|
|
|
11801
|
-
var moment = moment$
|
|
12473
|
+
var moment = moment$l; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
11802
12474
|
var E001Pes = /** @class */ (function () {
|
|
11803
12475
|
function E001Pes() {
|
|
11804
12476
|
this.excluido = false;
|
|
@@ -11823,7 +12495,7 @@
|
|
|
11823
12495
|
return E001Pes;
|
|
11824
12496
|
}());
|
|
11825
12497
|
|
|
11826
|
-
var moment$1 = moment$
|
|
12498
|
+
var moment$1 = moment$l;
|
|
11827
12499
|
var Employee = /** @class */ (function () {
|
|
11828
12500
|
function Employee() {
|
|
11829
12501
|
this.deleted = false;
|
|
@@ -11873,7 +12545,44 @@
|
|
|
11873
12545
|
return Employee;
|
|
11874
12546
|
}());
|
|
11875
12547
|
|
|
11876
|
-
var moment$2 = moment$
|
|
12548
|
+
var moment$2 = moment$l;
|
|
12549
|
+
var EmployeeDependent = /** @class */ (function () {
|
|
12550
|
+
function EmployeeDependent() {
|
|
12551
|
+
this.deleted = false;
|
|
12552
|
+
}
|
|
12553
|
+
EmployeeDependent.fromDto = function (employeeDependentDto, originEntity) {
|
|
12554
|
+
var model = __assign({}, employeeDependentDto);
|
|
12555
|
+
model.createdDate = model.createdDate && moment$2(model.createdDate).toDate();
|
|
12556
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$2(model.lastModifiedDate).toDate();
|
|
12557
|
+
var lookupSeparator = " - ";
|
|
12558
|
+
var displayFields = ["dependent.codPes", "dependent.nomPes"];
|
|
12559
|
+
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
12560
|
+
if (originEntity !== "Employee" && model.employee) {
|
|
12561
|
+
model.employee = Employee.fromDto(model.employee, "EmployeeDependent");
|
|
12562
|
+
}
|
|
12563
|
+
if (originEntity !== "E001Pes" && model.dependent) {
|
|
12564
|
+
model.dependent = E001Pes.fromDto(model.dependent, "EmployeeDependent");
|
|
12565
|
+
}
|
|
12566
|
+
return model;
|
|
12567
|
+
};
|
|
12568
|
+
EmployeeDependent.toDto = function (employeeDependent, originEntity) {
|
|
12569
|
+
var dto = __assign({}, employeeDependent);
|
|
12570
|
+
dto.createdDate = dto.createdDate && moment$2(dto.createdDate).format();
|
|
12571
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$2(dto.lastModifiedDate).format();
|
|
12572
|
+
delete dto.label;
|
|
12573
|
+
delete dto._discriminator;
|
|
12574
|
+
if (originEntity !== "Employee" && dto.employee) {
|
|
12575
|
+
dto.employee = Employee.toDto(dto.employee, "EmployeeDependent");
|
|
12576
|
+
}
|
|
12577
|
+
if (originEntity !== "E001Pes" && dto.dependent) {
|
|
12578
|
+
dto.dependent = E001Pes.toDto(dto.dependent, "EmployeeDependent");
|
|
12579
|
+
}
|
|
12580
|
+
return dto;
|
|
12581
|
+
};
|
|
12582
|
+
return EmployeeDependent;
|
|
12583
|
+
}());
|
|
12584
|
+
|
|
12585
|
+
var moment$3 = moment$l;
|
|
11877
12586
|
var Position = /** @class */ (function () {
|
|
11878
12587
|
function Position() {
|
|
11879
12588
|
this.deleted = false;
|
|
@@ -11884,8 +12593,8 @@
|
|
|
11884
12593
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
11885
12594
|
Position.fromDto = function (positionDto, originEntity) {
|
|
11886
12595
|
var model = __assign({}, positionDto);
|
|
11887
|
-
model.createdDate = model.createdDate && moment$
|
|
11888
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12596
|
+
model.createdDate = model.createdDate && moment$3(model.createdDate).toDate();
|
|
12597
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$3(model.lastModifiedDate).toDate();
|
|
11889
12598
|
var lookupSeparator = " - ";
|
|
11890
12599
|
var displayFields = [
|
|
11891
12600
|
"id",
|
|
@@ -11904,8 +12613,8 @@
|
|
|
11904
12613
|
};
|
|
11905
12614
|
Position.toDto = function (position, originEntity) {
|
|
11906
12615
|
var dto = __assign({}, position);
|
|
11907
|
-
dto.createdDate = dto.createdDate && moment$
|
|
11908
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12616
|
+
dto.createdDate = dto.createdDate && moment$3(dto.createdDate).format();
|
|
12617
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$3(dto.lastModifiedDate).format();
|
|
11909
12618
|
delete dto.label;
|
|
11910
12619
|
return dto;
|
|
11911
12620
|
};
|
|
@@ -11914,14 +12623,14 @@
|
|
|
11914
12623
|
/*{CA:FILE_CONTENTS:START}*/
|
|
11915
12624
|
/*{CA:FILE_CONTENTS:END}*/
|
|
11916
12625
|
|
|
11917
|
-
var moment$
|
|
12626
|
+
var moment$4 = moment$l;
|
|
11918
12627
|
var JobPositionStructure = /** @class */ (function () {
|
|
11919
12628
|
function JobPositionStructure() {
|
|
11920
12629
|
}
|
|
11921
12630
|
JobPositionStructure.fromDto = function (jobPositionStructureDto, originEntity) {
|
|
11922
12631
|
var model = __assign({}, jobPositionStructureDto);
|
|
11923
|
-
model.createdDate = model.createdDate && moment$
|
|
11924
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12632
|
+
model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
|
|
12633
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
|
|
11925
12634
|
var lookupSeparator = " - ";
|
|
11926
12635
|
var displayFields = ["id", "code", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
11927
12636
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -11929,22 +12638,22 @@
|
|
|
11929
12638
|
};
|
|
11930
12639
|
JobPositionStructure.toDto = function (jobPositionStructure, originEntity) {
|
|
11931
12640
|
var dto = __assign({}, jobPositionStructure);
|
|
11932
|
-
dto.createdDate = dto.createdDate && moment$
|
|
11933
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12641
|
+
dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
|
|
12642
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
|
|
11934
12643
|
delete dto.label;
|
|
11935
12644
|
return dto;
|
|
11936
12645
|
};
|
|
11937
12646
|
return JobPositionStructure;
|
|
11938
12647
|
}());
|
|
11939
12648
|
|
|
11940
|
-
var moment$
|
|
12649
|
+
var moment$5 = moment$l;
|
|
11941
12650
|
var JobPosition = /** @class */ (function () {
|
|
11942
12651
|
function JobPosition() {
|
|
11943
12652
|
}
|
|
11944
12653
|
JobPosition.fromDto = function (jobPositionDto, originEntity) {
|
|
11945
12654
|
var model = __assign({}, jobPositionDto);
|
|
11946
|
-
model.createdDate = model.createdDate && moment$
|
|
11947
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12655
|
+
model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
|
|
12656
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
|
|
11948
12657
|
var lookupSeparator = " - ";
|
|
11949
12658
|
var displayFields = [
|
|
11950
12659
|
"id",
|
|
@@ -11966,8 +12675,8 @@
|
|
|
11966
12675
|
};
|
|
11967
12676
|
JobPosition.toDto = function (jobPosition, originEntity) {
|
|
11968
12677
|
var dto = __assign({}, jobPosition);
|
|
11969
|
-
dto.createdDate = dto.createdDate && moment$
|
|
11970
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12678
|
+
dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
|
|
12679
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
|
|
11971
12680
|
delete dto.label;
|
|
11972
12681
|
if (originEntity !== "JobPositionStructure" && dto.jobPositionStructure)
|
|
11973
12682
|
dto.jobPositionStructure = JobPositionStructure.toDto(dto.jobPositionStructure, "JobPosition");
|
|
@@ -11976,14 +12685,14 @@
|
|
|
11976
12685
|
return JobPosition;
|
|
11977
12686
|
}());
|
|
11978
12687
|
|
|
11979
|
-
var moment$
|
|
12688
|
+
var moment$6 = moment$l;
|
|
11980
12689
|
var Syndicate = /** @class */ (function () {
|
|
11981
12690
|
function Syndicate() {
|
|
11982
12691
|
}
|
|
11983
12692
|
Syndicate.fromDto = function (syndicateDto, originEntity) {
|
|
11984
12693
|
var model = __assign({}, syndicateDto);
|
|
11985
|
-
model.createdDate = model.createdDate && moment$
|
|
11986
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12694
|
+
model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
|
|
12695
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
|
|
11987
12696
|
var lookupSeparator = " - ";
|
|
11988
12697
|
var displayFields = [
|
|
11989
12698
|
"id",
|
|
@@ -12001,22 +12710,22 @@
|
|
|
12001
12710
|
};
|
|
12002
12711
|
Syndicate.toDto = function (syndicate, originEntity) {
|
|
12003
12712
|
var dto = __assign({}, syndicate);
|
|
12004
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12005
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12713
|
+
dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
|
|
12714
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
|
|
12006
12715
|
delete dto.label;
|
|
12007
12716
|
return dto;
|
|
12008
12717
|
};
|
|
12009
12718
|
return Syndicate;
|
|
12010
12719
|
}());
|
|
12011
12720
|
|
|
12012
|
-
var moment$
|
|
12721
|
+
var moment$7 = moment$l;
|
|
12013
12722
|
var EmploymentRelationship = /** @class */ (function () {
|
|
12014
12723
|
function EmploymentRelationship() {
|
|
12015
12724
|
}
|
|
12016
12725
|
EmploymentRelationship.fromDto = function (employmentRelationshipDto, originEntity) {
|
|
12017
12726
|
var model = __assign({}, employmentRelationshipDto);
|
|
12018
|
-
model.createdDate = model.createdDate && moment$
|
|
12019
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12727
|
+
model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
|
|
12728
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
|
|
12020
12729
|
var lookupSeparator = " - ";
|
|
12021
12730
|
var displayFields = [
|
|
12022
12731
|
"id",
|
|
@@ -12034,23 +12743,23 @@
|
|
|
12034
12743
|
};
|
|
12035
12744
|
EmploymentRelationship.toDto = function (employmentRelationship, originEntity) {
|
|
12036
12745
|
var dto = __assign({}, employmentRelationship);
|
|
12037
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12038
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12746
|
+
dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
|
|
12747
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
|
|
12039
12748
|
delete dto.label;
|
|
12040
12749
|
return dto;
|
|
12041
12750
|
};
|
|
12042
12751
|
return EmploymentRelationship;
|
|
12043
12752
|
}());
|
|
12044
12753
|
|
|
12045
|
-
var moment$
|
|
12754
|
+
var moment$8 = moment$l; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
12046
12755
|
var Workshift = /** @class */ (function () {
|
|
12047
12756
|
function Workshift() {
|
|
12048
12757
|
this.deleted = false;
|
|
12049
12758
|
}
|
|
12050
12759
|
Workshift.fromDto = function (workshiftDto, originEntity) {
|
|
12051
12760
|
var model = __assign({}, workshiftDto);
|
|
12052
|
-
model.createdDate = model.createdDate && moment$
|
|
12053
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12761
|
+
model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
|
|
12762
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
|
|
12054
12763
|
var lookupSeparator = " - ";
|
|
12055
12764
|
var displayFields = [
|
|
12056
12765
|
"id",
|
|
@@ -12070,8 +12779,8 @@
|
|
|
12070
12779
|
};
|
|
12071
12780
|
Workshift.toDto = function (workshift, originEntity) {
|
|
12072
12781
|
var dto = __assign({}, workshift);
|
|
12073
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12074
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12782
|
+
dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
|
|
12783
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
|
|
12075
12784
|
delete dto.label;
|
|
12076
12785
|
delete dto._discriminator;
|
|
12077
12786
|
return dto;
|
|
@@ -12079,16 +12788,16 @@
|
|
|
12079
12788
|
return Workshift;
|
|
12080
12789
|
}());
|
|
12081
12790
|
|
|
12082
|
-
var moment$
|
|
12791
|
+
var moment$9 = moment$l; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
12083
12792
|
var WorkshiftGroup = /** @class */ (function () {
|
|
12084
12793
|
function WorkshiftGroup() {
|
|
12085
12794
|
this.deleted = false;
|
|
12086
12795
|
}
|
|
12087
12796
|
WorkshiftGroup.fromDto = function (workshiftGroupDto, originEntity) {
|
|
12088
12797
|
var model = __assign({}, workshiftGroupDto);
|
|
12089
|
-
model.baseDate = model.baseDate && moment$
|
|
12090
|
-
model.createdDate = model.createdDate && moment$
|
|
12091
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12798
|
+
model.baseDate = model.baseDate && moment$9(model.baseDate).toDate();
|
|
12799
|
+
model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
|
|
12800
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
|
|
12092
12801
|
var lookupSeparator = " - ";
|
|
12093
12802
|
var displayFields = [
|
|
12094
12803
|
"id",
|
|
@@ -12107,9 +12816,9 @@
|
|
|
12107
12816
|
};
|
|
12108
12817
|
WorkshiftGroup.toDto = function (workshiftGroup, originEntity) {
|
|
12109
12818
|
var dto = __assign({}, workshiftGroup);
|
|
12110
|
-
dto.baseDate = dto.baseDate && moment$
|
|
12111
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12112
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12819
|
+
dto.baseDate = dto.baseDate && moment$9(dto.baseDate).format("YYYY-MM-DD");
|
|
12820
|
+
dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
|
|
12821
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
|
|
12113
12822
|
delete dto.label;
|
|
12114
12823
|
delete dto._discriminator;
|
|
12115
12824
|
return dto;
|
|
@@ -12117,7 +12826,7 @@
|
|
|
12117
12826
|
return WorkshiftGroup;
|
|
12118
12827
|
}());
|
|
12119
12828
|
|
|
12120
|
-
var moment$
|
|
12829
|
+
var moment$a = moment$l;
|
|
12121
12830
|
var PositionActingType = /** @class */ (function () {
|
|
12122
12831
|
function PositionActingType() {
|
|
12123
12832
|
this.deleted = false;
|
|
@@ -12128,8 +12837,8 @@
|
|
|
12128
12837
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12129
12838
|
PositionActingType.fromDto = function (positionActingTypeDto, originEntity) {
|
|
12130
12839
|
var model = __assign({}, positionActingTypeDto);
|
|
12131
|
-
model.createdDate = model.createdDate && moment$
|
|
12132
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12840
|
+
model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
|
|
12841
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
|
|
12133
12842
|
var lookupSeparator = " - ";
|
|
12134
12843
|
var displayFields = [
|
|
12135
12844
|
"id",
|
|
@@ -12148,8 +12857,8 @@
|
|
|
12148
12857
|
};
|
|
12149
12858
|
PositionActingType.toDto = function (positionActingType, originEntity) {
|
|
12150
12859
|
var dto = __assign({}, positionActingType);
|
|
12151
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12152
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12860
|
+
dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
|
|
12861
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
|
|
12153
12862
|
delete dto.label;
|
|
12154
12863
|
return dto;
|
|
12155
12864
|
};
|
|
@@ -12158,7 +12867,7 @@
|
|
|
12158
12867
|
/*{CA:FILE_CONTENTS:START}*/
|
|
12159
12868
|
/*{CA:FILE_CONTENTS:END}*/
|
|
12160
12869
|
|
|
12161
|
-
var moment$
|
|
12870
|
+
var moment$b = moment$l;
|
|
12162
12871
|
var LocationStructure = /** @class */ (function () {
|
|
12163
12872
|
function LocationStructure() {
|
|
12164
12873
|
}
|
|
@@ -12166,8 +12875,8 @@
|
|
|
12166
12875
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12167
12876
|
LocationStructure.fromDto = function (locationStructureDto, originEntity) {
|
|
12168
12877
|
var model = __assign({}, locationStructureDto);
|
|
12169
|
-
model.createdDate = model.createdDate && moment$
|
|
12170
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12878
|
+
model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
|
|
12879
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
|
|
12171
12880
|
var lookupSeparator = " - ";
|
|
12172
12881
|
var displayFields = [
|
|
12173
12882
|
"id",
|
|
@@ -12186,8 +12895,8 @@
|
|
|
12186
12895
|
};
|
|
12187
12896
|
LocationStructure.toDto = function (locationStructure, originEntity) {
|
|
12188
12897
|
var dto = __assign({}, locationStructure);
|
|
12189
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12190
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12898
|
+
dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
|
|
12899
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
|
|
12191
12900
|
delete dto.label;
|
|
12192
12901
|
return dto;
|
|
12193
12902
|
};
|
|
@@ -12196,7 +12905,7 @@
|
|
|
12196
12905
|
/*{CA:FILE_CONTENTS:START}*/
|
|
12197
12906
|
/*{CA:FILE_CONTENTS:END}*/
|
|
12198
12907
|
|
|
12199
|
-
var moment$
|
|
12908
|
+
var moment$c = moment$l;
|
|
12200
12909
|
var Location = /** @class */ (function () {
|
|
12201
12910
|
function Location() {
|
|
12202
12911
|
}
|
|
@@ -12204,10 +12913,10 @@
|
|
|
12204
12913
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12205
12914
|
Location.fromDto = function (locationDto, originEntity) {
|
|
12206
12915
|
var model = __assign({}, locationDto);
|
|
12207
|
-
model.initialValidity = model.initialValidity && moment$
|
|
12208
|
-
model.finalValidity = model.finalValidity && moment$
|
|
12209
|
-
model.createdDate = model.createdDate && moment$
|
|
12210
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12916
|
+
model.initialValidity = model.initialValidity && moment$c(model.initialValidity).toDate();
|
|
12917
|
+
model.finalValidity = model.finalValidity && moment$c(model.finalValidity).toDate();
|
|
12918
|
+
model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
|
|
12919
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
|
|
12211
12920
|
var lookupSeparator = " - ";
|
|
12212
12921
|
var displayFields = [
|
|
12213
12922
|
"id",
|
|
@@ -12230,10 +12939,10 @@
|
|
|
12230
12939
|
};
|
|
12231
12940
|
Location.toDto = function (location, originEntity) {
|
|
12232
12941
|
var dto = __assign({}, location);
|
|
12233
|
-
dto.initialValidity = dto.initialValidity && moment$
|
|
12234
|
-
dto.finalValidity = dto.finalValidity && moment$
|
|
12235
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12236
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12942
|
+
dto.initialValidity = dto.initialValidity && moment$c(dto.initialValidity).format("YYYY-MM-DD");
|
|
12943
|
+
dto.finalValidity = dto.finalValidity && moment$c(dto.finalValidity).format("YYYY-MM-DD");
|
|
12944
|
+
dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
|
|
12945
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
|
|
12237
12946
|
delete dto.label;
|
|
12238
12947
|
if (originEntity !== "LocationStructure" && dto.locationStructure)
|
|
12239
12948
|
dto.locationStructure = LocationStructure.toDto(dto.locationStructure, "Location");
|
|
@@ -12244,7 +12953,7 @@
|
|
|
12244
12953
|
/*{CA:FILE_CONTENTS:START}*/
|
|
12245
12954
|
/*{CA:FILE_CONTENTS:END}*/
|
|
12246
12955
|
|
|
12247
|
-
var moment$
|
|
12956
|
+
var moment$d = moment$l;
|
|
12248
12957
|
var E030Ban = /** @class */ (function () {
|
|
12249
12958
|
function E030Ban() {
|
|
12250
12959
|
this.excluido = false;
|
|
@@ -12255,8 +12964,8 @@
|
|
|
12255
12964
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12256
12965
|
E030Ban.fromDto = function (e030BanDto, originEntity) {
|
|
12257
12966
|
var model = __assign({}, e030BanDto);
|
|
12258
|
-
model.createdDate = model.createdDate && moment$
|
|
12259
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
12967
|
+
model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
|
|
12968
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
|
|
12260
12969
|
var lookupSeparator = " - ";
|
|
12261
12970
|
var displayFields = [
|
|
12262
12971
|
"id",
|
|
@@ -12276,8 +12985,8 @@
|
|
|
12276
12985
|
};
|
|
12277
12986
|
E030Ban.toDto = function (e030Ban, originEntity) {
|
|
12278
12987
|
var dto = __assign({}, e030Ban);
|
|
12279
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12280
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
12988
|
+
dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
|
|
12989
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
|
|
12281
12990
|
delete dto.label;
|
|
12282
12991
|
return dto;
|
|
12283
12992
|
};
|
|
@@ -12286,7 +12995,7 @@
|
|
|
12286
12995
|
/*{CA:FILE_CONTENTS:START}*/
|
|
12287
12996
|
/*{CA:FILE_CONTENTS:END}*/
|
|
12288
12997
|
|
|
12289
|
-
var moment$
|
|
12998
|
+
var moment$e = moment$l;
|
|
12290
12999
|
var E030Age = /** @class */ (function () {
|
|
12291
13000
|
function E030Age() {
|
|
12292
13001
|
this.excluido = false;
|
|
@@ -12297,8 +13006,8 @@
|
|
|
12297
13006
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12298
13007
|
E030Age.fromDto = function (e030AgeDto, originEntity) {
|
|
12299
13008
|
var model = __assign({}, e030AgeDto);
|
|
12300
|
-
model.createdDate = model.createdDate && moment$
|
|
12301
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
13009
|
+
model.createdDate = model.createdDate && moment$e(model.createdDate).toDate();
|
|
13010
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$e(model.lastModifiedDate).toDate();
|
|
12302
13011
|
var lookupSeparator = " - ";
|
|
12303
13012
|
var displayFields = [
|
|
12304
13013
|
"id",
|
|
@@ -12319,8 +13028,8 @@
|
|
|
12319
13028
|
};
|
|
12320
13029
|
E030Age.toDto = function (e030Age, originEntity) {
|
|
12321
13030
|
var dto = __assign({}, e030Age);
|
|
12322
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12323
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
13031
|
+
dto.createdDate = dto.createdDate && moment$e(dto.createdDate).format();
|
|
13032
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$e(dto.lastModifiedDate).format();
|
|
12324
13033
|
delete dto.label;
|
|
12325
13034
|
if (originEntity !== "E030Ban" && dto.e030ban)
|
|
12326
13035
|
dto.e030ban = E030Ban.toDto(dto.e030ban, "E030Age");
|
|
@@ -12331,7 +13040,7 @@
|
|
|
12331
13040
|
/*{CA:FILE_CONTENTS:START}*/
|
|
12332
13041
|
/*{CA:FILE_CONTENTS:END}*/
|
|
12333
13042
|
|
|
12334
|
-
var moment$
|
|
13043
|
+
var moment$f = moment$l;
|
|
12335
13044
|
var E044Ccu = /** @class */ (function () {
|
|
12336
13045
|
function E044Ccu() {
|
|
12337
13046
|
}
|
|
@@ -12339,8 +13048,8 @@
|
|
|
12339
13048
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12340
13049
|
E044Ccu.fromDto = function (e044CcuDto, originEntity) {
|
|
12341
13050
|
var model = __assign({}, e044CcuDto);
|
|
12342
|
-
model.createdDate = model.createdDate && moment$
|
|
12343
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
13051
|
+
model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
|
|
13052
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
|
|
12344
13053
|
var lookupSeparator = " - ";
|
|
12345
13054
|
var displayFields = [
|
|
12346
13055
|
"id",
|
|
@@ -12359,8 +13068,8 @@
|
|
|
12359
13068
|
};
|
|
12360
13069
|
E044Ccu.toDto = function (e044Ccu, originEntity) {
|
|
12361
13070
|
var dto = __assign({}, e044Ccu);
|
|
12362
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12363
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
13071
|
+
dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
|
|
13072
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
|
|
12364
13073
|
delete dto.label;
|
|
12365
13074
|
return dto;
|
|
12366
13075
|
};
|
|
@@ -12369,7 +13078,7 @@
|
|
|
12369
13078
|
/*{CA:FILE_CONTENTS:START}*/
|
|
12370
13079
|
/*{CA:FILE_CONTENTS:END}*/
|
|
12371
13080
|
|
|
12372
|
-
var moment$
|
|
13081
|
+
var moment$g = moment$l;
|
|
12373
13082
|
var E070Emp = /** @class */ (function () {
|
|
12374
13083
|
function E070Emp() {
|
|
12375
13084
|
this.excluido = false;
|
|
@@ -12380,8 +13089,8 @@
|
|
|
12380
13089
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12381
13090
|
E070Emp.fromDto = function (e070EmpDto, originEntity) {
|
|
12382
13091
|
var model = __assign({}, e070EmpDto);
|
|
12383
|
-
model.createdDate = model.createdDate && moment$
|
|
12384
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
13092
|
+
model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
|
|
13093
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
|
|
12385
13094
|
var lookupSeparator = " - ";
|
|
12386
13095
|
var displayFields = [
|
|
12387
13096
|
"id",
|
|
@@ -12400,8 +13109,8 @@
|
|
|
12400
13109
|
};
|
|
12401
13110
|
E070Emp.toDto = function (e070Emp, originEntity) {
|
|
12402
13111
|
var dto = __assign({}, e070Emp);
|
|
12403
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12404
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
13112
|
+
dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
|
|
13113
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
|
|
12405
13114
|
delete dto.label;
|
|
12406
13115
|
return dto;
|
|
12407
13116
|
};
|
|
@@ -12410,7 +13119,7 @@
|
|
|
12410
13119
|
/*{CA:FILE_CONTENTS:START}*/
|
|
12411
13120
|
/*{CA:FILE_CONTENTS:END}*/
|
|
12412
13121
|
|
|
12413
|
-
var moment$
|
|
13122
|
+
var moment$h = moment$l;
|
|
12414
13123
|
var E070Fil = /** @class */ (function () {
|
|
12415
13124
|
function E070Fil() {
|
|
12416
13125
|
this.deleted = false;
|
|
@@ -12421,8 +13130,8 @@
|
|
|
12421
13130
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12422
13131
|
E070Fil.fromDto = function (e070FilDto, originEntity) {
|
|
12423
13132
|
var model = __assign({}, e070FilDto);
|
|
12424
|
-
model.createdDate = model.createdDate && moment$
|
|
12425
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
13133
|
+
model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
|
|
13134
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
|
|
12426
13135
|
var lookupSeparator = " - ";
|
|
12427
13136
|
var displayFields = [
|
|
12428
13137
|
"id",
|
|
@@ -12443,8 +13152,8 @@
|
|
|
12443
13152
|
};
|
|
12444
13153
|
E070Fil.toDto = function (e070Fil, originEntity) {
|
|
12445
13154
|
var dto = __assign({}, e070Fil);
|
|
12446
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12447
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
13155
|
+
dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
|
|
13156
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
|
|
12448
13157
|
delete dto.label;
|
|
12449
13158
|
if (originEntity !== "E070Emp" && dto.e070emp)
|
|
12450
13159
|
dto.e070emp = E070Emp.toDto(dto.e070emp, "E070Fil");
|
|
@@ -12455,7 +13164,7 @@
|
|
|
12455
13164
|
/*{CA:FILE_CONTENTS:START}*/
|
|
12456
13165
|
/*{CA:FILE_CONTENTS:END}*/
|
|
12457
13166
|
|
|
12458
|
-
var moment$
|
|
13167
|
+
var moment$i = moment$l;
|
|
12459
13168
|
var Holiday = /** @class */ (function () {
|
|
12460
13169
|
function Holiday() {
|
|
12461
13170
|
this.deleted = false;
|
|
@@ -12466,8 +13175,8 @@
|
|
|
12466
13175
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12467
13176
|
Holiday.fromDto = function (holidayDto, originEntity) {
|
|
12468
13177
|
var model = __assign({}, holidayDto);
|
|
12469
|
-
model.createdDate = model.createdDate && moment$
|
|
12470
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
13178
|
+
model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
|
|
13179
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
|
|
12471
13180
|
var lookupSeparator = " - ";
|
|
12472
13181
|
var displayFields = [
|
|
12473
13182
|
"id",
|
|
@@ -12488,8 +13197,8 @@
|
|
|
12488
13197
|
};
|
|
12489
13198
|
Holiday.toDto = function (holiday, originEntity) {
|
|
12490
13199
|
var dto = __assign({}, holiday);
|
|
12491
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12492
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
13200
|
+
dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
|
|
13201
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
|
|
12493
13202
|
delete dto.label;
|
|
12494
13203
|
return dto;
|
|
12495
13204
|
};
|
|
@@ -12498,7 +13207,7 @@
|
|
|
12498
13207
|
/*{CA:FILE_CONTENTS:START}*/
|
|
12499
13208
|
/*{CA:FILE_CONTENTS:END}*/
|
|
12500
13209
|
|
|
12501
|
-
var moment$
|
|
13210
|
+
var moment$j = moment$l;
|
|
12502
13211
|
var HolidayGroup = /** @class */ (function () {
|
|
12503
13212
|
function HolidayGroup() {
|
|
12504
13213
|
this.deleted = false;
|
|
@@ -12509,8 +13218,8 @@
|
|
|
12509
13218
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12510
13219
|
HolidayGroup.fromDto = function (holidayGroupDto, originEntity) {
|
|
12511
13220
|
var model = __assign({}, holidayGroupDto);
|
|
12512
|
-
model.createdDate = model.createdDate && moment$
|
|
12513
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
13221
|
+
model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
|
|
13222
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
|
|
12514
13223
|
var lookupSeparator = " - ";
|
|
12515
13224
|
var displayFields = [
|
|
12516
13225
|
"id",
|
|
@@ -12531,8 +13240,8 @@
|
|
|
12531
13240
|
};
|
|
12532
13241
|
HolidayGroup.toDto = function (holidayGroup, originEntity) {
|
|
12533
13242
|
var dto = __assign({}, holidayGroup);
|
|
12534
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12535
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
13243
|
+
dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
|
|
13244
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
|
|
12536
13245
|
delete dto.label;
|
|
12537
13246
|
if (originEntity !== "Holiday" && dto.holiday)
|
|
12538
13247
|
dto.holiday = Object.values(dto.holiday)
|
|
@@ -12546,7 +13255,7 @@
|
|
|
12546
13255
|
/*{CA:FILE_CONTENTS:END}*/
|
|
12547
13256
|
|
|
12548
13257
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
12549
|
-
var moment$
|
|
13258
|
+
var moment$k = moment$l; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
12550
13259
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
12551
13260
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
12552
13261
|
var AnnotationType = /** @class */ (function () {
|
|
@@ -12559,8 +13268,8 @@
|
|
|
12559
13268
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12560
13269
|
AnnotationType.fromDto = function (annotationTypeDto, originEntity) {
|
|
12561
13270
|
var model = __assign({}, annotationTypeDto);
|
|
12562
|
-
model.createdDate = model.createdDate && moment$
|
|
12563
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
13271
|
+
model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
|
|
13272
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
|
|
12564
13273
|
var lookupSeparator = " - ";
|
|
12565
13274
|
var displayFields = ["code", "name"];
|
|
12566
13275
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -12568,8 +13277,8 @@
|
|
|
12568
13277
|
};
|
|
12569
13278
|
AnnotationType.toDto = function (annotationType, originEntity) {
|
|
12570
13279
|
var dto = __assign({}, annotationType);
|
|
12571
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12572
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
13280
|
+
dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
|
|
13281
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
|
|
12573
13282
|
delete dto.label;
|
|
12574
13283
|
return dto;
|
|
12575
13284
|
};
|
|
@@ -12618,8 +13327,8 @@
|
|
|
12618
13327
|
}
|
|
12619
13328
|
Characteristics.fromDto = function (characteristicsDto, originEntity) {
|
|
12620
13329
|
var model = __assign({}, characteristicsDto);
|
|
12621
|
-
model.createdDate = model.createdDate && moment$
|
|
12622
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
13330
|
+
model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
|
|
13331
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
|
|
12623
13332
|
var lookupSeparator = " - ";
|
|
12624
13333
|
var displayFields = ["description", "XTCharacteristicCode"];
|
|
12625
13334
|
var values = displayFields
|
|
@@ -12630,8 +13339,8 @@
|
|
|
12630
13339
|
};
|
|
12631
13340
|
Characteristics.toDto = function (characteristics, originEntity) {
|
|
12632
13341
|
var dto = __assign({}, characteristics);
|
|
12633
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12634
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
13342
|
+
dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
|
|
13343
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
|
|
12635
13344
|
delete dto.label;
|
|
12636
13345
|
return dto;
|
|
12637
13346
|
};
|
|
@@ -12644,8 +13353,8 @@
|
|
|
12644
13353
|
}
|
|
12645
13354
|
Rules.fromDto = function (rulesDto, originEntity) {
|
|
12646
13355
|
var model = __assign({}, rulesDto);
|
|
12647
|
-
model.createdDate = model.createdDate && moment$
|
|
12648
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
13356
|
+
model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
|
|
13357
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
|
|
12649
13358
|
var lookupSeparator = " - ";
|
|
12650
13359
|
var displayFields = ["description"];
|
|
12651
13360
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -12653,8 +13362,8 @@
|
|
|
12653
13362
|
};
|
|
12654
13363
|
Rules.toDto = function (rules, originEntity) {
|
|
12655
13364
|
var dto = __assign({}, rules);
|
|
12656
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12657
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
13365
|
+
dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
|
|
13366
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
|
|
12658
13367
|
delete dto.label;
|
|
12659
13368
|
return dto;
|
|
12660
13369
|
};
|
|
@@ -12684,8 +13393,8 @@
|
|
|
12684
13393
|
}
|
|
12685
13394
|
AdministrativeJudicialCase.fromDto = function (administrativeJudicialCaseDto, originEntity) {
|
|
12686
13395
|
var model = __assign({}, administrativeJudicialCaseDto);
|
|
12687
|
-
model.dthger = model.dthger && moment$
|
|
12688
|
-
model.dthalt = model.dthalt && moment$
|
|
13396
|
+
model.dthger = model.dthger && moment$l(model.dthger).toDate();
|
|
13397
|
+
model.dthalt = model.dthalt && moment$l(model.dthalt).toDate();
|
|
12689
13398
|
var lookupSeparator = " - ";
|
|
12690
13399
|
model.label = ["company.nomEmp", "caseNumber"].map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
12691
13400
|
if (originEntity !== "E070Emp" && model.company)
|
|
@@ -12694,8 +13403,8 @@
|
|
|
12694
13403
|
};
|
|
12695
13404
|
AdministrativeJudicialCase.toDto = function (administrativeJudicialCase, originEntity) {
|
|
12696
13405
|
var dto = __assign({}, administrativeJudicialCase);
|
|
12697
|
-
dto.dthger = dto.dthger && moment$
|
|
12698
|
-
dto.dthalt = dto.dthalt && moment$
|
|
13406
|
+
dto.dthger = dto.dthger && moment$l(dto.dthger).format();
|
|
13407
|
+
dto.dthalt = dto.dthalt && moment$l(dto.dthalt).format();
|
|
12699
13408
|
delete dto.label;
|
|
12700
13409
|
if (originEntity !== "E070Emp" && dto.company)
|
|
12701
13410
|
dto.company = E070Emp.toDto(dto.company, "AdministrativeJudicialCase");
|
|
@@ -12713,8 +13422,8 @@
|
|
|
12713
13422
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
12714
13423
|
CompanyLinkedLocation.fromDto = function (companyLinkedLocationDto, originEntity) {
|
|
12715
13424
|
var model = __assign({}, companyLinkedLocationDto);
|
|
12716
|
-
model.createdDate = model.createdDate && moment$
|
|
12717
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
13425
|
+
model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
|
|
13426
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
|
|
12718
13427
|
var lookupSeparator = " - ";
|
|
12719
13428
|
var displayFields = [
|
|
12720
13429
|
"id",
|
|
@@ -12732,8 +13441,8 @@
|
|
|
12732
13441
|
};
|
|
12733
13442
|
CompanyLinkedLocation.toDto = function (jobPosition, originEntity) {
|
|
12734
13443
|
var dto = __assign({}, jobPosition);
|
|
12735
|
-
dto.createdDate = dto.createdDate && moment$
|
|
12736
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
13444
|
+
dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
|
|
13445
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
|
|
12737
13446
|
delete dto.label;
|
|
12738
13447
|
return dto;
|
|
12739
13448
|
};
|
|
@@ -12745,8 +13454,8 @@
|
|
|
12745
13454
|
}
|
|
12746
13455
|
NaturePayrollRubrica.fromDto = function (naturePayrollRubricaDto, originEntity) {
|
|
12747
13456
|
var model = __assign({}, naturePayrollRubricaDto);
|
|
12748
|
-
model.startDate = model.startDate && moment$
|
|
12749
|
-
model.endDate = model.endDate && moment$
|
|
13457
|
+
model.startDate = model.startDate && moment$l(model.startDate).toDate();
|
|
13458
|
+
model.endDate = model.endDate && moment$l(model.endDate).toDate();
|
|
12750
13459
|
var lookupSeparator = " - ";
|
|
12751
13460
|
var displayFields = ["id", "code", "name", "startDate", "endDate"];
|
|
12752
13461
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -12754,8 +13463,8 @@
|
|
|
12754
13463
|
};
|
|
12755
13464
|
NaturePayrollRubrica.toDto = function (naturePayrollRubrica, originEntity) {
|
|
12756
13465
|
var dto = __assign({}, naturePayrollRubrica);
|
|
12757
|
-
dto.startDate = dto.startDate && moment$
|
|
12758
|
-
dto.endDate = dto.endDate && moment$
|
|
13466
|
+
dto.startDate = dto.startDate && moment$l(dto.startDate).format("YYYY-MM-DD");
|
|
13467
|
+
dto.endDate = dto.endDate && moment$l(dto.endDate).format("YYYY-MM-DD");
|
|
12759
13468
|
delete dto.label;
|
|
12760
13469
|
return dto;
|
|
12761
13470
|
};
|
|
@@ -12781,6 +13490,24 @@
|
|
|
12781
13490
|
return InssTaxationGroup;
|
|
12782
13491
|
}());
|
|
12783
13492
|
|
|
13493
|
+
var ContributionType = /** @class */ (function () {
|
|
13494
|
+
function ContributionType() {
|
|
13495
|
+
}
|
|
13496
|
+
ContributionType.fromDto = function (contributionTypeDto, originEntity) {
|
|
13497
|
+
var model = __assign({}, contributionTypeDto);
|
|
13498
|
+
var lookupSeparator = ' - ';
|
|
13499
|
+
var displayFields = ['code', 'name'];
|
|
13500
|
+
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
13501
|
+
return model;
|
|
13502
|
+
};
|
|
13503
|
+
ContributionType.toDto = function (contributionType, originEntity) {
|
|
13504
|
+
var dto = __assign({}, contributionType);
|
|
13505
|
+
delete dto.label;
|
|
13506
|
+
return dto;
|
|
13507
|
+
};
|
|
13508
|
+
return ContributionType;
|
|
13509
|
+
}());
|
|
13510
|
+
|
|
12784
13511
|
// Core Module
|
|
12785
13512
|
|
|
12786
13513
|
var FILTER_KEY = 'filter';
|
|
@@ -12890,6 +13617,10 @@
|
|
|
12890
13617
|
exports.CompanyLookupComponent = CompanyLookupComponent;
|
|
12891
13618
|
exports.CompanyLookupModule = CompanyLookupModule;
|
|
12892
13619
|
exports.CompanyLookupService = CompanyLookupService;
|
|
13620
|
+
exports.ContributionType = ContributionType;
|
|
13621
|
+
exports.ContributionTypeLookupModule = ContributionTypeLookupModule;
|
|
13622
|
+
exports.ContributionTypeLookupService = ContributionTypeLookupService;
|
|
13623
|
+
exports.ContributionTypeService = ContributionTypeService;
|
|
12893
13624
|
exports.CoreLookupModule = CoreLookupModule;
|
|
12894
13625
|
exports.CostCenterLookupComponent = CostCenterLookupComponent;
|
|
12895
13626
|
exports.CostCenterLookupModule = CostCenterLookupModule;
|
|
@@ -12912,6 +13643,11 @@
|
|
|
12912
13643
|
exports.ESocialCategoryLookupService = ESocialCategoryLookupService;
|
|
12913
13644
|
exports.ESocialCategoryService = ESocialCategoryService;
|
|
12914
13645
|
exports.Employee = Employee;
|
|
13646
|
+
exports.EmployeeDependent = EmployeeDependent;
|
|
13647
|
+
exports.EmployeeDependentLookupComponent = EmployeeDependentLookupComponent;
|
|
13648
|
+
exports.EmployeeDependentLookupModule = EmployeeDependentLookupModule;
|
|
13649
|
+
exports.EmployeeDependentLookupService = EmployeeDependentLookupService;
|
|
13650
|
+
exports.EmployeeDependentService = EmployeeDependentService;
|
|
12915
13651
|
exports.EmployeeLookupComponent = EmployeeLookupComponent;
|
|
12916
13652
|
exports.EmployeeLookupModule = EmployeeLookupModule;
|
|
12917
13653
|
exports.EmployeeLookupService = EmployeeLookupService;
|
|
@@ -13010,24 +13746,27 @@
|
|
|
13010
13746
|
exports.getCharacteristicTypeOptions = getCharacteristicTypeOptions;
|
|
13011
13747
|
exports.ɵa = PisPasepTaxationService;
|
|
13012
13748
|
exports.ɵb = EntityService;
|
|
13013
|
-
exports.ɵba =
|
|
13014
|
-
exports.ɵbb =
|
|
13015
|
-
exports.ɵbc =
|
|
13016
|
-
exports.ɵbd =
|
|
13017
|
-
exports.ɵbe =
|
|
13018
|
-
exports.ɵbf =
|
|
13019
|
-
exports.ɵbg =
|
|
13020
|
-
exports.ɵbh =
|
|
13021
|
-
exports.ɵbi =
|
|
13022
|
-
exports.ɵbj =
|
|
13023
|
-
exports.ɵbk =
|
|
13024
|
-
exports.ɵbl =
|
|
13025
|
-
exports.ɵbm =
|
|
13026
|
-
exports.ɵbn =
|
|
13027
|
-
exports.ɵbo =
|
|
13028
|
-
exports.ɵbp =
|
|
13029
|
-
exports.ɵbq =
|
|
13030
|
-
exports.ɵbr =
|
|
13749
|
+
exports.ɵba = EmployeeDependentModule;
|
|
13750
|
+
exports.ɵbb = EmployeeModule;
|
|
13751
|
+
exports.ɵbc = JobPositionModule;
|
|
13752
|
+
exports.ɵbd = WorkshiftModule;
|
|
13753
|
+
exports.ɵbe = WorkshiftGroupModule;
|
|
13754
|
+
exports.ɵbf = WageTypeModule;
|
|
13755
|
+
exports.ɵbg = AnnotationTypeModule;
|
|
13756
|
+
exports.ɵbh = SyndicateModule;
|
|
13757
|
+
exports.ɵbi = VariableEntryModule;
|
|
13758
|
+
exports.ɵbj = CalculationDefinitionModule;
|
|
13759
|
+
exports.ɵbk = EmploymentRelationshipModule;
|
|
13760
|
+
exports.ɵbl = WageTypePayrollModule;
|
|
13761
|
+
exports.ɵbm = CompanyLinkedLocationModule;
|
|
13762
|
+
exports.ɵbn = FpasRegistrationModule;
|
|
13763
|
+
exports.ɵbo = NaturePayrollRubricaModule;
|
|
13764
|
+
exports.ɵbp = InssTaxationModule;
|
|
13765
|
+
exports.ɵbq = InssTaxationGroupModule;
|
|
13766
|
+
exports.ɵbr = ThirdPartyFpasModule;
|
|
13767
|
+
exports.ɵbs = ContributionTypeModule;
|
|
13768
|
+
exports.ɵbt = FILTER_MODULE_TYPES;
|
|
13769
|
+
exports.ɵbu = FilterModuleInterceptor;
|
|
13031
13770
|
exports.ɵc = SharedModule;
|
|
13032
13771
|
exports.ɵd = CompanyBranchLookupComponent;
|
|
13033
13772
|
exports.ɵe = PersonLookupComponent;
|
|
@@ -13035,23 +13774,23 @@
|
|
|
13035
13774
|
exports.ɵg = FpasRegistrationService;
|
|
13036
13775
|
exports.ɵh = ThirdPartyFpasLookupComponent;
|
|
13037
13776
|
exports.ɵi = ThirdPartyFpasService;
|
|
13038
|
-
exports.ɵj =
|
|
13039
|
-
exports.ɵk =
|
|
13040
|
-
exports.ɵl =
|
|
13041
|
-
exports.ɵm =
|
|
13042
|
-
exports.ɵn =
|
|
13043
|
-
exports.ɵo =
|
|
13044
|
-
exports.ɵp =
|
|
13045
|
-
exports.ɵq =
|
|
13046
|
-
exports.ɵr =
|
|
13047
|
-
exports.ɵs =
|
|
13048
|
-
exports.ɵt =
|
|
13049
|
-
exports.ɵu =
|
|
13050
|
-
exports.ɵv =
|
|
13051
|
-
exports.ɵw =
|
|
13052
|
-
exports.ɵx =
|
|
13053
|
-
exports.ɵy =
|
|
13054
|
-
exports.ɵz =
|
|
13777
|
+
exports.ɵj = ContributionTypeLookupComponent;
|
|
13778
|
+
exports.ɵk = FgtsTaxationService;
|
|
13779
|
+
exports.ɵl = InssTaxationService;
|
|
13780
|
+
exports.ɵm = IrrfTaxationService;
|
|
13781
|
+
exports.ɵn = E030AgeModule;
|
|
13782
|
+
exports.ɵo = E030BanModule;
|
|
13783
|
+
exports.ɵp = E044CcuModule;
|
|
13784
|
+
exports.ɵq = E070EmpModule;
|
|
13785
|
+
exports.ɵr = E070FilModule;
|
|
13786
|
+
exports.ɵs = HolidayModule;
|
|
13787
|
+
exports.ɵt = HolidayGroupModule;
|
|
13788
|
+
exports.ɵu = LocationModule;
|
|
13789
|
+
exports.ɵv = LocationStructureModule;
|
|
13790
|
+
exports.ɵw = LocationStructureService;
|
|
13791
|
+
exports.ɵx = PositionActingTypeModule;
|
|
13792
|
+
exports.ɵy = PositionModule;
|
|
13793
|
+
exports.ɵz = E001PesModule;
|
|
13055
13794
|
|
|
13056
13795
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13057
13796
|
|