hrms-mgt/src/modules/18_command/interface/request/Main.ts
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 00fc7eac26 fix(command): sort
2025-09-30 14:12:12 +07:00

76 lines
1.9 KiB
TypeScript

interface FormQuery {
page?: number;
pageSize?: number;
year: number;
keyword: string;
commandTypeId: string;
}
interface FormCommand {
commandYear: number;
commandNo: string;
commandTypeId?: string;
}
interface FormDataDetail {
issue: string | null; //คำสั่งเรื่อง
commandNo: string; //คำสั่งเลขที่
commandYear: number | null; //พ.ศ.
detailHeader: string; //เนื้อหาคำสั่งขึ้นต้น
detailBody: string; //เนื้อหาคำสั่งหลัก
detailFooter: string; //เนื้อหาคำสั่งลงท้าย
commandAffectDate: Date | null; //วันที่ลงนาม
commandExcecuteDate: Date | null; //วันที่คำสั่งมีผล
isBangkok: string | null; //คำสั่งสำนักปลัดกรุงเทพมหานคร
commandCode?: string; //รหัสคำสั่ง
}
interface FormCommandList {
id: string;
status: string;
commandTypeName: string;
commandNo: string;
commandCode: string;
commandYear: Date | null;
detailHeader: string;
detailBody: string;
detailFooter: string;
issue: string | null;
commandAffectDate: Date | null;
commandExcecuteDate: Date | null;
commandSysId: string;
isAttachment: boolean;
}
interface ListCommandSalaryType {
id: string;
createdAt: Date | null;
lastUpdatedAt: Date | null;
createdFullName: string;
lastUpdateFullName: string;
name: string;
commandSysId: string;
}
interface PersonInfo {
id: string;
citizenId: string;
prefix: string;
firstName: string;
lastName: string;
profileId: string;
order: number;
remarkVertical: string | null;
remarkHorizontal: string | null;
amount: number;
positionSalaryAmount: number;
mouthSalaryAmount: number;
}
export type {
FormQuery,
FormCommand,
FormDataDetail,
ListCommandSalaryType,
PersonInfo,
FormCommandList,
};