สร้างทะเบียนประวัติ

This commit is contained in:
Kittapath 2024-03-29 09:44:09 +07:00
parent 55f1c1add8
commit 250e4860b3
2 changed files with 17 additions and 15 deletions

View file

@ -130,6 +130,8 @@ export class ProfileController extends Controller {
} }
const profile = Object.assign(new Profile(), body); const profile = Object.assign(new Profile(), body);
profile.isProbation = false;
profile.isLeave = false;
profile.createdUserId = request.user.sub; profile.createdUserId = request.user.sub;
profile.createdFullName = request.user.name; profile.createdFullName = request.user.name;
profile.lastUpdateUserId = request.user.sub; profile.lastUpdateUserId = request.user.sub;

View file

@ -546,21 +546,21 @@ export class CreateProfile {
firstName: string; firstName: string;
lastName: string; lastName: string;
position: string; position: string;
email: string | null; // email: string | null;
phone: string | null; // phone: string | null;
isProbation: boolean | null; // isProbation: boolean | null;
dateRetire: Date | null; // dateRetire: Date | null;
birthDate: Date | null; birthDate: Date | null;
ethnicity: string | null; // ethnicity: string | null;
telephoneNumber: string | null; // telephoneNumber: string | null;
nationality: string | null; // nationality: string | null;
citizenId: string; citizenId: string;
religion: string | null; // religion: string | null;
posLevelId: string | null; posLevelId: string | null;
posTypeId: string | null; posTypeId: string | null;
gender: string | null; // gender: string | null;
relationship: string | null; // relationship: string | null;
bloodGroup: string | null; // bloodGroup: string | null;
} }
export type UpdateProfile = { export type UpdateProfile = {
@ -568,12 +568,12 @@ export type UpdateProfile = {
prefix?: string | null; prefix?: string | null;
firstName?: string | null; firstName?: string | null;
lastName?: string | null; lastName?: string | null;
position?: string | null; // position?: string | null;
email?: string | null; email?: string | null;
phone?: string | null; phone?: string | null;
keycloak?: string | null; // keycloak?: string | null;
isProbation?: boolean | null; // isProbation?: boolean | null;
dateRetire?: Date | null; // dateRetire?: Date | null;
birthDate?: Date | null; birthDate?: Date | null;
ethnicity?: string | null; ethnicity?: string | null;
telephoneNumber?: string | null; telephoneNumber?: string | null;