อัตรากำลังลูกจ้างชั่วคราว

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-01-08 18:07:09 +07:00
parent 896ac775c1
commit e26d739750
19 changed files with 4849 additions and 0 deletions

View file

@ -0,0 +1,153 @@
interface Pagination {
rowsPerPage: number;
}
interface DataOption {
id: string;
name: string;
}
interface ListMenu {
label: string;
icon: string;
type: string;
color: string;
}
interface FormDataAgency {
orgName: string;
orgShortName: string;
orgCode: string;
orgPhoneEx: string;
orgPhoneIn: string;
orgFax: string;
orgLevel: string;
orgLevelSub: string;
}
interface FormDataPosition {
shortName: string;
prefixNo: string;
positionNo: string;
suffixNo: string;
reason: string;
}
interface FormDataNewStructure {
orgRevisionId: string;
orgRevisionName: string;
typeDraft: string;
}
interface FormAgencyRef {
orgName: object | null;
orgShortName: object | null;
orgCode: object | null;
// orgPhoneEx: object | null;
// orgPhoneIn: object | null;
// orgFax: object | null;
orgLevel: object | null;
[key: string]: any;
}
interface FormPositionRef {
prefixNo: object | null;
positionNo: object | null;
[key: string]: any;
}
interface FormDateTimeRef {
dateTime: object | null;
[key: string]: any;
}
interface FormNewStructureRef {
orgRevisionName: object | null;
orgRevisionId: object | null;
type: object | null;
[key: string]: any;
}
interface HistoryType {
orgRevisionId: string;
orgRevisionName: string;
orgRevisionIsCurrent: boolean;
orgRevisionIsDraft: boolean;
orgRevisionCreatedAt: Date | string;
}
interface HistoryPostType {
id: string;
name: string;
lastUpdatedAt: Date;
orgRevisionName: string;
}
interface FormPositionSelect {
positionId: string;
positionName: string;
positionField: string;
positionType: string;
positionLevel: string;
positionExecutive: string;
positionExecutiveField: string;
positionArea: string;
}
interface FormPositionSelectRef {
positionName: object | null;
positionField: object | null;
positionType: object | null;
positionLevel: object | null;
positionExecutive: object | null;
positionExecutiveField: object | null;
positionArea: object | null;
[key: string]: any;
}
interface RowDetailPositions {
id: string;
positionId: string;
positionName: string;
positionField: string;
positionType: string;
positionLevel: string;
positionExecutive: string;
positionExecutiveField: string;
positionArea: string;
posTypeId: string;
posLevelId: string;
posExecutiveId: string;
isSpecial: boolean;
}
interface NewPagination {
descending: boolean;
page: number;
rowsPerPage: number;
sortBy: string;
}
interface DataDocumentList {
name: string;
val: string;
}
export type {
Pagination,
DataOption,
FormDataAgency,
FormDataPosition,
FormAgencyRef,
FormPositionRef,
FormDateTimeRef,
FormDataNewStructure,
FormNewStructureRef,
HistoryType,
ListMenu,
FormPositionSelect,
RowDetailPositions,
HistoryPostType,
FormPositionSelectRef,
NewPagination,
DataDocumentList,
};

View file

@ -0,0 +1,127 @@
interface DataPosition {
id: string;
orgRootId: string;
orgChild1Id: string | null;
orgChild2Id: string | null;
orgChild3Id: string | null;
orgChild4Id: string | null;
posMasterNoPrefix: string;
posMasterNo: string;
posMasterNoSuffix: string;
orgShortname: string;
positions: Position[];
positionName: string;
positionField: string;
posTypeId: string;
posTypeName: string;
posLevelId: string;
posLevelName: string;
posExecutiveId: string;
posExecutiveName: string;
positionExecutiveField: string;
positionArea: string;
positionIsSelected: string | boolean;
}
interface Position {
id: string;
positionName: string;
positionField: string;
posTypeId: string;
posTypeName: string;
posLevelId: string;
posLevelName: string;
posExecutiveId: string;
posExecutiveName: string;
positionExecutiveField: string;
positionArea: string;
positionIsSelected: boolean;
}
interface FormDetailPosition {
positionNo: string;
positionType: string;
positionPathSide: string;
positionLine: string;
positionSide: string;
positionLevel: string;
positionExecutive: string;
positionExecutiveSide: string;
status: string;
}
interface DataTree {
orgTreeId: string;
orgRootId?: string;
orgLevel: number;
orgName: string;
orgTreeName: string;
orgTreeShortName: string;
orgTreeCode: string;
orgCode: string;
orgTreeRank: string;
orgTreeOrder: number;
orgRootCode?: string;
orgTreePhoneEx: string;
orgTreePhoneIn: string;
orgTreeFax: string;
orgRevisionId: string;
orgRootName: string;
totalPosition: number;
totalPositionCurrentUse: number;
totalPositionCurrentVacant: number;
totalPositionNextUse: number;
totalPositionNextVacant: number;
totalRootPosition: number;
totalRootPositionCurrentUse: number;
totalRootPositionCurrentVacant: number;
totalRootPositionNextUse: number;
totalRootPositionNextVacant: number;
children?: DataTree[];
}
interface SeaechResult {
id: string;
citizenId: string;
name: string;
posTypeName: string;
posLevelName: string;
}
interface FormPositionFilter {
positionNo: string;
positionType: string;
positionLevel: string;
personal: string;
position: string;
status: string;
}
interface DataSortPos {
id: string;
name: string;
posMasterNo: number;
posMasterNoPrefix: string;
posMasterNoSuffix: string;
}
interface DataSortAgency {
name: string;
orgLevel: number;
orgRevisionId: string;
orgRootId: string;
orgTreeId: string;
orgTreeName: string;
orgTreeShortName: string;
}
export type {
DataPosition,
Position,
FormDetailPosition,
DataTree,
SeaechResult,
FormPositionFilter,
DataSortPos,
DataSortAgency,
};

View file

@ -0,0 +1,14 @@
interface DataSumCalendarObject {
id: number;
monthFull: String;
count: number;
color: String;
}
interface DataListsObject {
id: number;
count: number;
name: string;
}
export type { DataSumCalendarObject, DataListsObject };

View file

@ -0,0 +1,21 @@
interface FilterMaster {
id: string; //*Id node
type: number; //*ประเภทnode
isAll: boolean; //*(true->ทั้งหมด, false->ในระดับตัวเอง)
page: number; //*หน้า
pageSize: number; //*จำนวนแถวต่อหน้า
keyword: string; //ข้อความที่ต้องการค้นหา
revisionId?: string;
}
interface MovePos {
id: string;
type: number;
positionMaster: string[];
}
interface Inherit {
draftPositionId: string;
publishPositionId: string;
}
export type { FilterMaster, MovePos, Inherit };

View file

@ -0,0 +1,203 @@
interface DataActive {
activeId: string;
activeName: string;
draftId: string;
draftName: string;
isPublic: boolean;
orgPublishDate: Date | null;
}
interface SumPosition {
totalPosition: number;
totalPositionCurrentUse: number;
totalPositionCurrentVacant: number;
totalPositionNextUse: number;
totalPositionNextVacant: number;
totalRootPosition: number;
totalRootPositionCurrentUse: number;
totalRootPositionCurrentVacant: number;
totalRootPositionNextUse: number;
totalRootPositionNextVacant: number;
}
interface OrgTree {
orgTreeId: string;
orgRootId: string;
orgLevel: number;
orgTreeName: string;
orgTreeShortName: string;
orgTreeCode: string;
orgCode: string;
orgTreeRank: string;
orgTreeOrder: number | null;
orgRootCode: string;
orgTreePhoneEx: string;
orgTreePhoneIn: string;
orgTreeFax: string;
orgRevisionId: string;
children: OrgTree[];
}
interface OrgRevision {
orgRevisionCreatedAt: string | null;
orgRevisionId: string;
orgRevisionIsCurrent: boolean;
orgRevisionIsDraft: boolean;
orgRevisionName: string;
}
interface OptionType {
id: string;
posTypeName: string;
}
interface OptionLevel {
id: string;
posLevelName: string;
}
interface OptionExecutive {
id: string;
posExecutiveName: string;
}
interface DataPosition {
id: string;
posExecutiveId: string;
posExecutiveName: string;
posLevelId: string;
posLevelName: string;
posTypeId: string;
posTypeName: string;
positionArea: string;
positionExecutiveField: string;
positionField: string;
positionIsSelected: boolean;
positionName: string;
}
interface Position {
id: string; // id ตำแหน่ง
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
positionField: string; // สายงาน
posTypeId: string; // ประเภทตำแหน่ง
posTypeName: string; // ประเภทตำแหน่ง
posLevelId: string; // ระดับตำแหน่ง
posLevelName: string; // ระดับตำแหน่ง
posExecutiveId: string; // ตำแหน่งทางการบริหาร
posExecutiveName: string; // ตำแหน่งทางการบริหาร
positionExecutiveField: string; // ด้านทางการบริหาร
positionArea: string; // ด้าน/สาขา
positionIsSelected: boolean; // เป็นตำแหน่งที่ถูกเลือกในรอบนั้นๆ หรือไม่?
}
interface PosMaster {
id: string; // id อัตรากำลัง posmaster
orgShortname: string; // อักษรย่อตำแหน่ง
posMasterNoPrefix: string; // Prefix นำหน้าตำแหน่งเลขที่ เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
posMasterNo: number | string; // ตำแหน่งเลขที่ เป็นตัวเลข
posMasterNoSuffix: string | null; // Suffix หลังตำแหน่งเลขที่ เช่น ช.
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
positionField: string; // สายงาน
posTypeId: string; // ประเภทตำแหน่ง
posTypeName: string; // ประเภทตำแหน่ง
posLevelId: string; // ระดับตำแหน่ง
posLevelName: string; // ระดับตำแหน่ง
posExecutiveId: string; // ตำแหน่งทางการบริหาร
posExecutiveName: string; // ตำแหน่งทางการบริหาร
positionExecutiveField: string; // ด้านทางการบริหาร
positionArea: string; // ด้าน/สาขา
positionIsSelected: boolean; // เป็นตำแหน่งที่ถูกเลือกในรอบนั้นๆ หรือไม่?
fullNameCurrentHolder: string | null;
fullNameNextHolder: string | null;
positions: Position[]; // ตำแหน่ง
isSit: boolean;
profilePosition: string;
profilePostype: string;
profilePoslevel: string;
}
interface Position2 {
id: string; // id ตำแหน่ง
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
positionField: string; // สายงาน
posTypeId: string; // ประเภทตำแหน่ง
posTypeName: string; // ประเภทตำแหน่ง
posLevelId: string; // ระดับตำแหน่ง
posLevelName: string; // ระดับตำแหน่ง
posExecutiveId: string; // ตำแหน่งทางการบริหาร
posExecutiveName: string; // ตำแหน่งทางการบริหาร
positionExecutiveField: string; // ด้านทางการบริหาร
positionArea: string; // ด้าน/สาขา
positionIsSelected: string; // เป็นตำแหน่งที่ถูกเลือกในรอบนั้นๆ หรือไม่?
}
interface PosMaster2 {
id: string; // id อัตรากำลัง posmaster
orgShortname: string; // อักษรย่อตำแหน่ง
posMasterNoPrefix: string; // Prefix นำหน้าตำแหน่งเลขที่ เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
posMasterNo: number | string; // ตำแหน่งเลขที่ เป็นตัวเลข
posMasterNoSuffix: string | null; // Suffix หลังตำแหน่งเลขที่ เช่น ช.
positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)
positionField: string; // สายงาน
posTypeId: string; // ประเภทตำแหน่ง
posTypeName: string; // ประเภทตำแหน่ง
posLevelId: string; // ระดับตำแหน่ง
posLevelName: string; // ระดับตำแหน่ง
posExecutiveId: string; // ตำแหน่งทางการบริหาร
posExecutiveName: string; // ตำแหน่งทางการบริหาร
positionExecutiveField: string; // ด้านทางการบริหาร
positionArea: string; // ด้าน/สาขา
positionIsSelected: string; // เป็นตำแหน่งที่ถูกเลือกในรอบนั้นๆ หรือไม่?
positions: Position[]; // ตำแหน่ง
}
interface HistoryPos {
id: string; //id node
orgShotName: string; //ชื่อย่อส่วนราชการ
lastUpdatedAt: Date; //วันที่แก้ไข
posMasterNoPrefix: string; //Prefix นำหน้าตำแหน่งเลขที่ เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ)
posMasterNo: number; //ตำแหน่งเลขที่ เป็นตัวเลข
posMasterNoSuffix: string; //Suffix หลังตำแหน่งเลขที่ เช่น ช.
}
interface SelectPerson {
citizenId: string;
firstName: string;
id: string;
lastName: string;
posLevel: string;
posType: string;
position: string;
prefix: string;
}
interface PosLevels {
id: string;
posLevelAuthority: null;
posLevelName: string;
posLevelRank: number;
}
interface TypePos {
id: string;
PosLevels: PosLevels[];
posTypeName: string;
posTypeRank: number;
}
export type {
DataActive,
OrgTree,
OrgRevision,
OptionType,
OptionLevel,
OptionExecutive,
DataPosition,
PosMaster,
PosMaster2,
Position,
Position2,
SumPosition,
HistoryPos,
SelectPerson,
TypePos,
};