ทะเบียนประวัติ: เครื่องราชฯ (แก้ไข)

This commit is contained in:
puriphatt 2024-03-19 12:02:09 +07:00
parent 81763a632b
commit 21fd984366
4 changed files with 248 additions and 383 deletions

View file

@ -1,40 +1,38 @@
interface DataProps {
row: RequestItemsObject;
rowIndex: number;
interface RequestItemsObject {
profileId: string;
isActive: boolean;
year: number;
no: string;
volume: string;
section: string;
page: string;
receiveDate: Date | null;
insigniaId: string;
dateAnnounce: Date | null;
issue: string;
volumeNo: string;
refCommandDate: Date | null;
refCommandNo: string;
note: string;
}
//ข้อมูล
interface RequestItemsObject {
interface FormData {
id: string;
insigniaType: string;
insignia: string;
insigniaId: string;
isActive: boolean;
year: number;
receiveDate: Date | null;
insigniaId: string;
insigniaType: string;
no: string;
issue: string;
volumeNo: string;
volume: string;
section: string;
page: string;
receiveDate: Date;
dateAnnounce: Date|string|null;
dateAnnounce: Date | null;
refCommandNo: string;
refCommandDate: Date | null|string;
createdFullName: string;
createdAt: Date;
refCommandDate: Date | null;
note: string;
}
//columns
interface Columns {
[index: number]: {
name: String;
align: String;
label: String;
sortable: Boolean;
field: String;
headerStyle: String;
style: String;
};
}
export type { RequestItemsObject, Columns, DataProps };
export type { RequestItemsObject, FormData };

View file

@ -1,22 +1,58 @@
//ข้อมูล
interface ResponseObject {
id: string;
insigniaType: string;
insignia: string;
insigniaId: string;
createdAt: string;
createdUserId: Date | string;
lastUpdatedAt: Date | string;
lastUpdateUserId: string;
createdFullName: string;
lastUpdateFullName: string;
profileId: string;
isActive: boolean;
year: number;
no: string;
issue: string;
volumeNo: string;
volume: string;
section: string;
page: string;
receiveDate: Date;
dateAnnounce: Date;
receiveDate: Date | string;
insigniaId: string;
insignia: ResponseInsigniaObject;
dateAnnounce: Date | string;
issue: string;
volumeNo: string;
refCommandDate: Date | string;
refCommandNo: string;
refCommandDate: Date | null;
createdFullName: string;
createdAt: Date;
note: string;
insigniaName?: string
}
export type { ResponseObject };
interface ResponseInsigniaObject {
createdAt: Date;
createdFullName: string;
createdUserId: string;
id: string;
insigniaType: ResponseInsigniaType;
insigniaTypeId: string;
isActive: boolean;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: Date;
level: null;
name: string;
note: string;
shortName: string;
}
interface ResponseInsigniaType {
createdAt: Date;
createdFullName: string;
createdUserId: string;
id: string;
isActive: boolean;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: Date;
name: string;
}
export type { ResponseObject, ResponseInsigniaObject, ResponseInsigniaType };