ชื่อระดับลูกจ้าง
This commit is contained in:
parent
648baabaf1
commit
03084ca224
1 changed files with 30 additions and 37 deletions
|
|
@ -677,7 +677,7 @@ export class OrganizationDotnetController extends Controller {
|
|||
posLevel:
|
||||
(profile.posType == null || profile.posType?.posTypeShortName == null
|
||||
? ""
|
||||
: profile.posType?.posTypeShortName + " ") + (profile.posLevel?.posLevelName ?? null),
|
||||
: profile.posType?.posTypeShortName + " ") + (profile.posLevel?.posLevelName ?? ""),
|
||||
posType: profile.posType?.posTypeName ?? null,
|
||||
profileSalary: profile.profileSalary.length > 0 ? profile.profileSalary[0] : null,
|
||||
profileInsignia: profile.profileInsignias.length > 0 ? profile.profileInsignias[0] : null,
|
||||
|
|
@ -1391,9 +1391,10 @@ export class OrganizationDotnetController extends Controller {
|
|||
x.orgRevision?.orgRevisionIsCurrent == true,
|
||||
)?.orgChild4?.ancestorDNA ?? null,
|
||||
commander: fullname,
|
||||
posLevel: profile.posType?.posTypeShortName && profile.posLevel?.posLevelName
|
||||
? `${profile.posType.posTypeShortName} ${profile.posLevel.posLevelName}`
|
||||
: profile.posType?.posTypeShortName || profile.posLevel?.posLevelName || "",
|
||||
posLevel:
|
||||
(profile.posType == null || profile.posType?.posTypeShortName == null
|
||||
? ""
|
||||
: profile.posType?.posTypeShortName + " ") + (profile.posLevel?.posLevelName ?? ""),
|
||||
posType: profile.posType?.posTypeName ?? null,
|
||||
profileSalary: profile.profileSalary.length > 0 ? profile.profileSalary[0] : null,
|
||||
profileInsignia: profile.profileInsignias.length > 0 ? profile.profileInsignias[0] : null,
|
||||
|
|
@ -2566,16 +2567,10 @@ export class OrganizationDotnetController extends Controller {
|
|||
x.orgRevision?.orgRevisionIsCurrent == true,
|
||||
)?.orgChild4?.ancestorDNA ?? null,
|
||||
posNo: shortName ?? "",
|
||||
markDiscipline: profile.profileDisciplines.length > 0
|
||||
? true
|
||||
: false,
|
||||
markDiscipline: profile.profileDisciplines.length > 0 ? true : false,
|
||||
markLeave: false,
|
||||
markRate: profile.profileAssessments.length > 0
|
||||
? true
|
||||
: false,
|
||||
markInsignia: profile.profileInsignias.length > 0
|
||||
? true
|
||||
: false,
|
||||
markRate: profile.profileAssessments.length > 0 ? true : false,
|
||||
markInsignia: profile.profileInsignias.length > 0 ? true : false,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
@ -2690,9 +2685,10 @@ export class OrganizationDotnetController extends Controller {
|
|||
currentZipCode: profile.currentZipCode,
|
||||
// dutyTimeId: profile.dutyTimeId,
|
||||
// dutyTimeEffectiveDate: profile.dutyTimeEffectiveDate,
|
||||
posLevel: profile.posType?.posTypeShortName && profile.posLevel?.posLevelName
|
||||
? `${profile.posType.posTypeShortName} ${profile.posLevel.posLevelName}`
|
||||
: profile.posType?.posTypeShortName || profile.posLevel?.posLevelName || "",
|
||||
posLevel:
|
||||
(profile.posType == null || profile.posType?.posTypeShortName == null
|
||||
? ""
|
||||
: profile.posType?.posTypeShortName + " ") + (profile.posLevel?.posLevelName ?? ""),
|
||||
posType: profile.posType?.posTypeName ?? "",
|
||||
profileSalary: profile.profileSalary,
|
||||
profileInsignia: profile.profileInsignias.map((x) => {
|
||||
|
|
@ -2846,9 +2842,10 @@ export class OrganizationDotnetController extends Controller {
|
|||
currentZipCode: profile.currentZipCode,
|
||||
// dutyTimeId: profile.dutyTimeId,
|
||||
// dutyTimeEffectiveDate: profile.dutyTimeEffectiveDate,
|
||||
posLevel: profile.posType?.posTypeShortName && profile.posLevel?.posLevelName
|
||||
? `${profile.posType.posTypeShortName} ${profile.posLevel.posLevelName}`
|
||||
: profile.posType?.posTypeShortName || profile.posLevel?.posLevelName || "",
|
||||
posLevel:
|
||||
(profile.posType == null || profile.posType?.posTypeShortName == null
|
||||
? ""
|
||||
: profile.posType?.posTypeShortName + " ") + (profile.posLevel?.posLevelName ?? ""),
|
||||
posType: profile.posType?.posTypeName ?? "",
|
||||
profileSalary: profile.profileSalary.map((x) => {
|
||||
return { ...x, date: x.commandDateAffect ?? new Date() };
|
||||
|
|
@ -2951,16 +2948,10 @@ export class OrganizationDotnetController extends Controller {
|
|||
x.orgRevision?.orgRevisionIsCurrent == true,
|
||||
)?.orgChild4?.ancestorDNA ?? null,
|
||||
posNo: shortName ?? "",
|
||||
markDiscipline: profile.profileDisciplines.length > 0
|
||||
? true
|
||||
: false,
|
||||
markDiscipline: profile.profileDisciplines.length > 0 ? true : false,
|
||||
markLeave: false,
|
||||
markRate: profile.profileAssessments.length > 0
|
||||
? true
|
||||
: false,
|
||||
markInsignia: profile.profileInsignias.length > 0
|
||||
? true
|
||||
: false,
|
||||
markRate: profile.profileAssessments.length > 0 ? true : false,
|
||||
markInsignia: profile.profileInsignias.length > 0 ? true : false,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
@ -3946,9 +3937,10 @@ export class OrganizationDotnetController extends Controller {
|
|||
keycloak: item.keycloak,
|
||||
posNo: shortName,
|
||||
position: item.position,
|
||||
positionLevel: item.posLevel
|
||||
? `${item.posType.posTypeShortName} ${item.posLevel.posLevelName}`
|
||||
: "-",
|
||||
positionLevel:
|
||||
(item.posType == null || item.posType?.posTypeShortName == null
|
||||
? ""
|
||||
: item.posType?.posTypeShortName + " ") + (item.posLevel?.posLevelName ?? ""),
|
||||
positionType: item.posType?.posTypeName ?? null,
|
||||
oc: Oc,
|
||||
};
|
||||
|
|
@ -4099,9 +4091,10 @@ export class OrganizationDotnetController extends Controller {
|
|||
keycloak: item.keycloak,
|
||||
posNo: shortName,
|
||||
position: item.position,
|
||||
positionLevel: item.posLevel
|
||||
? `${item.posType.posTypeShortName} ${item.posLevel.posLevelName}`
|
||||
: "-",
|
||||
positionLevel:
|
||||
(item.posType == null || item.posType?.posTypeShortName == null
|
||||
? ""
|
||||
: item.posType?.posTypeShortName + " ") + (item.posLevel?.posLevelName ?? ""),
|
||||
positionType: item.posType?.posTypeName ?? null,
|
||||
oc: Oc,
|
||||
};
|
||||
|
|
@ -4328,9 +4321,9 @@ export class OrganizationDotnetController extends Controller {
|
|||
telephoneNumber: profile.telephoneNumber ?? "-",
|
||||
positionName: profile.position ?? "-",
|
||||
posLevel:
|
||||
profile.posType && profile.posLevel
|
||||
? `${profile.posType?.posTypeShortName} ${profile.posLevel?.posLevelName}`
|
||||
: "-",
|
||||
(profile.posType == null || profile.posType?.posTypeShortName == null
|
||||
? ""
|
||||
: profile.posType?.posTypeShortName + " ") + (profile.posLevel?.posLevelName ?? ""),
|
||||
posType: profile.posType?.posTypeName ?? "-",
|
||||
currentAddress:
|
||||
profile && profile.currentAddress
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue