diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 10b24067..17796845 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -310,7 +310,7 @@ export class ProfileController extends Controller { BirthDay: profiles?.birthDate ? new Date(profiles.birthDate).getDate().toString() : null, BirthDayText: profiles.birthDate != null - ? Extension.ToThaiNumber(Extension.ToThaiShortDate(profiles.birthDate)) + ? Extension.ToThaiNumber(Extension.ToThaiShortDate(profiles.birthDate).toString()) : "", BirthMonth: profiles?.birthDate ? new Date(profiles.birthDate).getMonth() + (1).toString() @@ -318,7 +318,7 @@ export class ProfileController extends Controller { BirthYear: profiles?.birthDate ? new Date(profiles.birthDate).getFullYear().toString() : null, BirthYearText: profiles.birthDate != null - ? Extension.ToThaiNumber(Extension.ToThaiShortDate(profiles.birthDate)) + ? Extension.ToThaiNumber(Extension.ToThaiShortDate(profiles.birthDate).toString()) : "", Address: "", District: "", @@ -423,6 +423,7 @@ export class ProfileController extends Controller { Position: item.position ?? null, PosNo: item.posNo ?? null, Salary: "", + Rank: item.positionLevel ?? null, RefAll: item.refCommandNo ?? null, PositionType: item.positionType ?? null, PositionLevel: item.positionLevel ?? null, diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 2007fe1e..5e82667e 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -323,7 +323,7 @@ export class ProfileEmployeeController extends Controller { BirthDay: profiles?.birthDate ? new Date(profiles.birthDate).getDate().toString() : null, BirthDayText: profiles.birthDate != null - ? Extension.ToThaiNumber(Extension.ToThaiShortDate(profiles.birthDate)) + ? Extension.ToThaiNumber(Extension.ToThaiShortDate(profiles.birthDate).toString()) : "", BirthMonth: profiles?.birthDate ? new Date(profiles.birthDate).getMonth() + (1).toString() @@ -331,7 +331,7 @@ export class ProfileEmployeeController extends Controller { BirthYear: profiles?.birthDate ? new Date(profiles.birthDate).getFullYear().toString() : null, BirthYearText: profiles.birthDate != null - ? Extension.ToThaiNumber(Extension.ToThaiShortDate(profiles.birthDate)) + ? Extension.ToThaiNumber(Extension.ToThaiShortDate(profiles.birthDate).toString()) : "", Address: "", District: "", @@ -436,6 +436,7 @@ export class ProfileEmployeeController extends Controller { Position: item.position ?? null, PosNo: item.posNo ?? null, Salary: "", + Rank: item.positionLevel ?? null, RefAll: item.refCommandNo ?? null, PositionType: item.positionType ?? null, PositionLevel: item.positionLevel ?? null,