diff --git a/src/components/information/Address.vue b/src/components/information/Address.vue index 8881a3505..0e0af573c 100644 --- a/src/components/information/Address.vue +++ b/src/components/information/Address.vue @@ -297,14 +297,14 @@ import type { Address, DataOption, zipCodeOption, -} from "@/modules/04_registry/components/profileType"; -import { defaultAddress } from "@/modules/04_registry/components/profileType"; -import HeaderTop from "@/modules/04_registry/components/Information/top.vue"; -import type { RequestItemsHistoryObject } from "@/modules/04_registry/interface/request/Address"; -import type { ResponseObject } from "@/modules/04_registry/interface/response/Address"; +} from "@/components/information/interface/profileType"; +import { defaultAddress } from "@/components/information/interface/profileType"; +import HeaderTop from "@/components/information/top.vue"; +import type { RequestItemsHistoryObject } from "@/components/information/interface/request/Address"; +import type { ResponseObject } from "@/components/information/interface/response/Address"; import HistoryTable from "@/components/TableHistory.vue"; import { useRoute } from "vue-router"; -import type { AddressOps } from "@/modules/04_registry/interface/index/Main"; +import type { AddressOps } from "@/components/information/interface/index/Main"; import type { QTableProps } from "quasar"; const props = defineProps({ diff --git a/src/components/information/Certicate.vue b/src/components/information/Certicate.vue index d08e8c3b2..fe17fc0f4 100644 --- a/src/components/information/Certicate.vue +++ b/src/components/information/Certicate.vue @@ -259,18 +259,18 @@ diff --git a/src/components/information/DialogHeader.vue b/src/components/information/DialogHeader.vue new file mode 100644 index 000000000..8aa03351d --- /dev/null +++ b/src/components/information/DialogHeader.vue @@ -0,0 +1,27 @@ + + diff --git a/src/components/information/DialogHistory.vue b/src/components/information/DialogHistory.vue new file mode 100644 index 000000000..7c08e3043 --- /dev/null +++ b/src/components/information/DialogHistory.vue @@ -0,0 +1,45 @@ + + diff --git a/src/components/information/Family.vue b/src/components/information/Family.vue index 8b9eaf90c..f6b3aab4d 100644 --- a/src/components/information/Family.vue +++ b/src/components/information/Family.vue @@ -1094,14 +1094,14 @@ import { useQuasar } from "quasar"; import type { Family, DataOption, -} from "@/modules/04_registry/components/profileType"; -import HeaderTop from "@/modules/04_registry/components/Information/top.vue"; -import DialogHistory from "@/modules/04_registry/components/DialogHistory.vue"; +} from "@/components/information/interface/profileType"; +import HeaderTop from "@/components/information/top.vue"; +import DialogHistory from "@/components/information/DialogHistory.vue"; import type { ResponseObject, childrenFamily, ResponseHistory, -} from "@/modules/04_registry/interface/response/Family"; +} from "@/components/information/interface/response/Family"; import http from "@/plugins/http"; import config from "@/app.config"; import { useRoute } from "vue-router"; diff --git a/src/components/information/Government.vue b/src/components/information/Government.vue index 35d6fca2a..fc7e75809 100644 --- a/src/components/information/Government.vue +++ b/src/components/information/Government.vue @@ -332,16 +332,16 @@ import { onMounted, ref, watch } from "vue"; import { useCounterMixin } from "@/stores/mixin"; import { useDataStore } from "@/stores/data"; import { useQuasar } from "quasar"; -import type { Goverment } from "@/modules/04_registry/components/profileType"; -import { defaultGoverment } from "@/modules/04_registry/components/profileType"; -import HeaderTop from "@/modules/04_registry/components/Information/top.vue"; +import type { Goverment } from "@/components/information/interface/profileType"; +import { defaultGoverment } from "@/components/information/interface/profileType"; +import HeaderTop from "@/components/information/top.vue"; import http from "@/plugins/http"; import config from "@/app.config"; import HistoryTable from "@/components/TableHistory.vue"; -import type { RequestItemsHistoryObject } from "@/modules/04_registry/interface/request/Government"; -import type { ResponseObject } from "@/modules/04_registry/interface/response/Government"; +import type { RequestItemsHistoryObject } from "@/components/information/interface/request/Government"; +import type { ResponseObject } from "@/components/information/interface/response/Government"; import { useRoute } from "vue-router"; -import { useProfileDataStore } from "@/modules/04_registry/store"; +import { useComponentProfileDataStore } from "@/components/information/store/store"; import { storeToRefs } from "pinia"; import type { QTableProps } from "quasar"; @@ -367,7 +367,7 @@ const dataStore = useDataStore(); const { loaderPage } = dataStore; const mixin = useCounterMixin(); const { date2Thai, success, dateToISO, messageError } = mixin; -const profileStore = useProfileDataStore(); +const profileStore = useComponentProfileDataStore(); const { birthDate, retireText } = storeToRefs(profileStore); const edit = ref(false); const govermentData = ref(defaultGoverment); diff --git a/src/components/information/Information.vue b/src/components/information/Information.vue index 1acf5f85d..ae55733a1 100644 --- a/src/components/information/Information.vue +++ b/src/components/information/Information.vue @@ -414,13 +414,13 @@ import { useQuasar } from "quasar"; import type { Information, DataOption, -} from "@/modules/04_registry/components/profileType"; -import { defaultInformation } from "@/modules/04_registry/components/profileType"; -import type { RequestItemsHistoryObject } from "@/modules/04_registry/interface/request/Information"; -import type { ResponseObject } from "@/modules/04_registry/interface/response/Information"; -import type { InformationOps } from "@/modules/04_registry/interface/index/Main"; -import OldName from "@/modules/04_registry/components/Information/OldName.vue"; -import HeaderTop from "@/modules/04_registry/components/Information/top.vue"; +} from "@/components/information/interface/profileType"; +import { defaultInformation } from "@/components/information/interface/profileType"; +import type { RequestItemsHistoryObject } from "@/components/information/interface/request/Information"; +import type { ResponseObject } from "@/components/information/interface/response/Information"; +import type { InformationOps } from "@/components/information/interface/index/Main"; +import OldName from "@/components/information/OldName.vue"; +import HeaderTop from "@/components/information/top.vue"; import HistoryTable from "@/components/TableHistory.vue"; import http from "@/plugins/http"; import config from "@/app.config"; diff --git a/src/components/information/OldName.vue b/src/components/information/OldName.vue new file mode 100644 index 000000000..54ee056a7 --- /dev/null +++ b/src/components/information/OldName.vue @@ -0,0 +1,973 @@ + + + + diff --git a/src/components/information/Table.vue b/src/components/information/Table.vue new file mode 100644 index 000000000..387fc9069 --- /dev/null +++ b/src/components/information/Table.vue @@ -0,0 +1,215 @@ + + + diff --git a/src/components/information/TableProfile.vue b/src/components/information/TableProfile.vue new file mode 100644 index 000000000..df25354eb --- /dev/null +++ b/src/components/information/TableProfile.vue @@ -0,0 +1,694 @@ + + + diff --git a/src/components/information/interface/index/Main.ts b/src/components/information/interface/index/Main.ts new file mode 100644 index 000000000..fe165e2b9 --- /dev/null +++ b/src/components/information/interface/index/Main.ts @@ -0,0 +1,84 @@ +import type { zipCodeOption } from "../../components/profileType"; +interface Pagination { + rowsPerPage: number; +} + +interface DataOption { + id: string; + name: string; + disable?: boolean; +} + +interface DataOptionLeave { + id: string; + name: string; + totalLeave: number; +} + +interface DataOptionInsignia { + id: string; + name: string; + typeName: string; +} + +interface treeTab { + id: string; + label: string; + children: treeTab[]; +} + +interface InformationOps { + prefixOps: DataOption[]; + prefixOldOps: DataOption[]; + genderOps: DataOption[]; + bloodOps: DataOption[]; + statusOps: DataOption[]; + religionOps: DataOption[]; + employeeClassOps: DataOption[]; + employeeTypeOps: DataOption[]; +} + +interface OldNameOps { + prefixOps: DataOption[]; + statusOps: DataOption[]; +} + +interface AddressOps { + provinceOps: DataOption[]; + districtOps: DataOption[]; + districtCOps: DataOption[]; + subdistrictOps: zipCodeOption[]; + subdistrictCOps: zipCodeOption[]; +} + +interface FamilyOps { + prefixOps: DataOption[]; +} + +interface EduOps { + levelOptions: DataOption[]; + positionPathOptions: DataOption[]; +} + +interface InsigniaOps { + insigniaOptions: DataOptionInsignia[]; +} + +interface DisciplineOps { + levelOptions: DataOption[]; +} + +export type { + Pagination, + DataOption, + DataOptionInsignia, + treeTab, + InformationOps, + OldNameOps, + AddressOps, + FamilyOps, + EduOps, + InsigniaOps, + DisciplineOps, + DataOptionLeave, +}; diff --git a/src/components/information/interface/profileType.ts b/src/components/information/interface/profileType.ts new file mode 100644 index 000000000..ab3b28b22 --- /dev/null +++ b/src/components/information/interface/profileType.ts @@ -0,0 +1,187 @@ +//interface class array object {name string ,id number} + +import type { childrenFamily } from "@/modules/04_registry/interface/response/Family"; +interface ChangeActive { + name: string; + id: number; +} + +//ข้อมูลส่วนตัว +interface Information { + cardid: string | null; + prefix: string | null; + age: string | null; + prefixId: string | null; + firstname: string | null; + lastname: string | null; + birthDate: Date | null; + genderId: string | null; + bloodId: string | null; + nationality: string | null; + ethnicity: string | null; + statusId: string | null; + religionId: string | null; + tel: string | null; + employeeType: string | null; + employeeClass: string | null; + profileType: string | null; +} + +interface Family { + prefixC: string | null; // couple + prefixIdC: string | null; + firstnameC: string | null; + lastnameC: string | null; + lastnameCOld: string | null; + occupationC: string | null; + citizenIdC: string | null; + liveC: string | null; + prefixM: string | null; // male + prefixIdM: string | null; + firstnameM: string | null; + lastnameM: string | null; + occupationM: string | null; + citizenIdM: string | null; + liveM: string | null; + prefixF: string | null; // female + prefixIdF: string | null; + firstnameF: string | null; + lastnameF: string | null; + occupationF: string | null; + citizenIdF: string | null; + liveF: string | null; + same: string | null; + childrens: childrenFamily[]; +} + +interface Address { + address: string | null; + provinceId: string | null; + districtId: string | null; + subdistrictId: string | null; + addressC: string | null; + provinceIdC: string | null; + districtIdC: string | null; + subdistrictIdC: string | null; + same: string | null; +} + +interface Goverment { + ocId: string | null; + positionId: string | null; + positionPathSide: string | null; + positionLine: string | null; + positionType: string | null; + positionLevel: string | null; + numberId: string | null; + positionExecutive: string | null; + positionExecutiveSide: string | null; + containDate: Date; + workDate: Date; + retireDate: string | null; + absent: number | null; + age: number | null; + ageAll: string | null; + reasonSameDate: string | null; +} + +interface DataOption { + id: string; + name: string; + zipCode?: string; +} + +interface zipCodeOption { + id: string; + name: string; + zipCode: string; +} + +const defaultGoverment: Goverment = { + ocId: null, + positionId: null, + positionPathSide: null, + positionLine: null, + positionType: null, + positionLevel: null, + numberId: null, + positionExecutive: null, + positionExecutiveSide: null, + containDate: new Date(), + workDate: new Date(), + retireDate: null, + absent: 0, + age: 0, + ageAll: null, + reasonSameDate: null, +}; + +const defaultAddress: Address = { + address: null, + provinceId: null, + districtId: null, + subdistrictId: null, + addressC: null, + provinceIdC: null, + districtIdC: null, + subdistrictIdC: null, + same: "0", +}; + +const defaultInformation: Information = { + cardid: null, + age: null, + prefix: null, + prefixId: null, + firstname: null, + lastname: null, + birthDate: null, + genderId: null, + bloodId: null, + nationality: null, + ethnicity: null, + statusId: null, + religionId: null, + tel: null, + employeeType: null, + employeeClass: null, + profileType: null, +}; + +const defaultFamily: Family = { + prefixC: null, + prefixIdC: null, + firstnameC: null, + lastnameC: null, + lastnameCOld: null, + occupationC: null, + citizenIdC: null, + liveC: "1", + prefixM: null, + prefixIdM: null, + firstnameM: null, + lastnameM: null, + occupationM: null, + citizenIdM: null, + liveM: "1", + prefixF: null, + prefixIdF: null, + firstnameF: null, + lastnameF: null, + occupationF: null, + citizenIdF: null, + liveF: "1", + same: "0", + childrens: [], +}; + +export { defaultInformation, defaultFamily, defaultAddress, defaultGoverment }; +export type { + ChangeActive, + Information, + Family, + Address, + Goverment, + DataOption, + zipCodeOption, +}; diff --git a/src/components/information/interface/request/Address.ts b/src/components/information/interface/request/Address.ts new file mode 100644 index 000000000..f8cff7753 --- /dev/null +++ b/src/components/information/interface/request/Address.ts @@ -0,0 +1,55 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + currentAddress: String | null; + currentDistrictId: String | null; + currentProvinceId: String | null; + currentSubDistrictId: String | null; + currentZipCode: String | null; + registrationAddress: String | null; + registrationDistrictId: String | null; + registrationProvinceId: String | null; + registrationSame: Boolean | null; + registrationSubDistrictId: String | null; + registrationZipCode: String | null; +} + +interface RequestItemsHistoryObject { + currentAddress: String | null; + currentDistrict: String | null; + currentProvince: String | null; + currentSubDistrict: String | null; + currentZipCode: String | null; + registrationAddress: String | null; + registrationDistrict: String | null; + registrationProvince: String | null; + registrationSame: Boolean | null; + registrationSubDistrict: String | null; + registrationZipCode: String | null; + createdFullName: String | null; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { + RequestItemsObject, + Columns, + DataProps, + RequestItemsHistoryObject, +}; diff --git a/src/components/information/interface/request/Assessment.ts b/src/components/information/interface/request/Assessment.ts new file mode 100644 index 000000000..58bcb2a51 --- /dev/null +++ b/src/components/information/interface/request/Assessment.ts @@ -0,0 +1,34 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + point1Total: number; + point1: number; + point2Total: number; + point2: number; + pointSumTotal: number; + pointSum: number; + name: string; + date: Date; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Certificate.ts b/src/components/information/interface/request/Certificate.ts new file mode 100644 index 000000000..a1df312c3 --- /dev/null +++ b/src/components/information/interface/request/Certificate.ts @@ -0,0 +1,31 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + certificateNo: string; + issuer: string; + issueDate: Date; + expireDate: Date; + certificateType: string; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Coin.ts b/src/components/information/interface/request/Coin.ts new file mode 100644 index 000000000..583338641 --- /dev/null +++ b/src/components/information/interface/request/Coin.ts @@ -0,0 +1,31 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + issuer: string; + detail: string; + issueDate: Date; + refCommandNo: string; + refCommandDate: Date | null; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Discipline.ts b/src/components/information/interface/request/Discipline.ts new file mode 100644 index 000000000..0cc0906c7 --- /dev/null +++ b/src/components/information/interface/request/Discipline.ts @@ -0,0 +1,32 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + level: string; + detail: string; + unStigma: string; + refCommandNo: string; + refCommandDate: Date | null; + date: Date; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Document.ts b/src/components/information/interface/request/Document.ts new file mode 100644 index 000000000..9e1c21855 --- /dev/null +++ b/src/components/information/interface/request/Document.ts @@ -0,0 +1,19 @@ +//ข้อมูล +interface RequestItemsObject { + name: String; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns }; diff --git a/src/components/information/interface/request/Education.ts b/src/components/information/interface/request/Education.ts new file mode 100644 index 000000000..28624d8d2 --- /dev/null +++ b/src/components/information/interface/request/Education.ts @@ -0,0 +1,45 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + level: string; + levelId: string; + positionPath: string; + isEducation: boolean; + institute: string; + degree: string; + field: string; + gpa: string; + country: string; + duration: string; + durationYear: number; + other: string; + fundName: string; + isDate: string | null; + finishDate: Date; + startDate: number; + endDate: number; + startDate2: Date; + endDate2: Date; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Family.ts b/src/components/information/interface/request/Family.ts new file mode 100644 index 000000000..334f2e81b --- /dev/null +++ b/src/components/information/interface/request/Family.ts @@ -0,0 +1,29 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + date: Date; + status: string; + level: string; + refNo: string; + refDate: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Government.ts b/src/components/information/interface/request/Government.ts new file mode 100644 index 000000000..3ef47a218 --- /dev/null +++ b/src/components/information/interface/request/Government.ts @@ -0,0 +1,55 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + date: Date; + status: string; + level: string; + refNo: string; + refDate: Date; +} + +interface RequestItemsHistoryObject { + oc: string | null; + position: string | null; + positionPathSide: string | null; + posNo: string | null; + positionLine: string | null; + positionType: string | null; + positionLevel: string | null; + positionExecutive: string | null; + positionExecutiveSide: string | null; + dateAppoint: Date; + dateStart: Date; + retireDate: string | null; + govAge: string | null; + govAgeAbsent: string | null; + govAgePlus: string | null; + reasonSameDate: string | null; + createdFullName: string | null; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { + RequestItemsObject, + Columns, + DataProps, + RequestItemsHistoryObject, +}; diff --git a/src/components/information/interface/request/Information.ts b/src/components/information/interface/request/Information.ts new file mode 100644 index 000000000..39aac0621 --- /dev/null +++ b/src/components/information/interface/request/Information.ts @@ -0,0 +1,59 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + birthDate: Date | null; + bloodGroupId: string | null; + citizenId: string | null; + firstName: string | null; + genderId: string | null; + lastName: string | null; + nationality: string | null; + prefixId: string | null; + race: string | null; + relationshipId: string | null; + religionId: string | null; + telephoneNumber: string | null; + employeeType: string | null; + employeeClass: string | null; +} + +interface RequestItemsHistoryObject { + citizenId: string | null; + prefix: string | null; + firstName: string | null; + lastName: string | null; + birthDate: Date; + gender: string | null; + relationship: string | null; + bloodGroup: string | null; + nationality: string | null; + race: string | null; + religion: string | null; + telephoneNumber: string | null; + createdFullName: string | null; + createdAt: Date; + employeeType: string | null; + employeeClass: string | null; +} + +//columns +interface Columns { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; +} + +export type { + RequestItemsObject, + Columns, + DataProps, + RequestItemsHistoryObject, +}; diff --git a/src/components/information/interface/request/Insignia.ts b/src/components/information/interface/request/Insignia.ts new file mode 100644 index 000000000..f017b879d --- /dev/null +++ b/src/components/information/interface/request/Insignia.ts @@ -0,0 +1,40 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + insigniaType: string; + insignia: string; + insigniaId: string; + year: number; + no: string; + issue: string; + volumeNo: string; + volume: string; + section: string; + page: string; + receiveDate: Date; + dateAnnounce: Date; + refCommandNo: string; + refCommandDate: Date | null; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Leave.ts b/src/components/information/interface/request/Leave.ts new file mode 100644 index 000000000..9693d517c --- /dev/null +++ b/src/components/information/interface/request/Leave.ts @@ -0,0 +1,42 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + typeLeave: string; + dateStartLeave: Date; + dateEndLeave: Date; + numLeave: number; + sumLeave: number; + totalLeave: number; + status: string; + reason: string; + typeLeaveId: string; +} + +//ข้อมูล +interface RequestItemsTotalObject { + typeLeaveId: string; + typeLeave: string; + totalLeave: number; + limitLeave: string; + remainLeave: 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, RequestItemsTotalObject }; diff --git a/src/components/information/interface/request/Main.ts b/src/components/information/interface/request/Main.ts new file mode 100644 index 000000000..9cf5c79b9 --- /dev/null +++ b/src/components/information/interface/request/Main.ts @@ -0,0 +1,49 @@ +//ข้อมูล +interface RequestItemsObject { + id: number; + fullname: String; + fullnameOld: String; + avatar: String; + citizenId: String; + oc: String; + position: String; + positionPathSide: String; + numberPosition: String | null; + positionLine: String; + positionType: String; + govAge: number; + positionLevel: String; + positionExecutive: String | null; + positionExecutiveSide: String | null; + refSalary: String; + positionEmployeePosition: String | null; + positionEmployeePositionSide: String | null; + positionEmployeeLevel: String | null; + positionEmployeeGroup: String | null; + dateAppoint: Date | string | null; + dateStart: Date | string | null; + createdAt: Date | string | null; + salaryDate: Date | string | null; + leaveReason: String; + age: String; + amount: String; + insignia: String; + insigniaLast: String; + isLeave: String; + leaveDateOrder: Date | string | null; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns }; diff --git a/src/components/information/interface/request/OldName.ts b/src/components/information/interface/request/OldName.ts new file mode 100644 index 000000000..0fde7fa45 --- /dev/null +++ b/src/components/information/interface/request/OldName.ts @@ -0,0 +1,32 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + prefix: string; + prefixId: string; + firstName: string; + lastName: string; + status: string; + file: string | null; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Other.ts b/src/components/information/interface/request/Other.ts new file mode 100644 index 000000000..90339caaa --- /dev/null +++ b/src/components/information/interface/request/Other.ts @@ -0,0 +1,28 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + date: Date; + detail: string; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Record.ts b/src/components/information/interface/request/Record.ts new file mode 100644 index 000000000..b40baaf49 --- /dev/null +++ b/src/components/information/interface/request/Record.ts @@ -0,0 +1,31 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + date: Date; + detail: string; + reference: string; + refCommandNo: string; + refCommandDate: Date | null; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Salary.ts b/src/components/information/interface/request/Salary.ts new file mode 100644 index 000000000..2f3977809 --- /dev/null +++ b/src/components/information/interface/request/Salary.ts @@ -0,0 +1,90 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +interface DataPropsEmployee { + row: RequestItemsEmployee; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + date: Date; + amount: number; + positionSalaryAmount: number; + mouthSalaryAmount: number; + oc: string; + ocId: string; + position: string; + positionId: string; + posNo: string; + posNoId: string; + positionLine: string; + positionLineId: string; + positionPathSide: string; + positionPathSideId: string; + positionType: string; + positionTypeId: string; + positionLevel: string; + positionLevelId: string; + positionExecutive: string; + positionExecutiveId: string; + positionExecutiveSide: string; + positionExecutiveSideId: string; + salaryClass: string; + salaryRef: string; + refCommandNo: string; + // refCommandDate: Date | null; + createdFullName: string; + createdAt: Date; +} + +interface RequestItemsEmployee { + amount: number; + createdAt: Date; + createdFullName: string; + date: Date; + id: string; + mouthSalaryAmount: number; + oc: string | null; + ocId: string; + posNo: string | null; + posNoId: string | null; + posNoEmployee: string | null; + positionEmployeeGroup: string | null; + positionEmployeeGroupId: string | null; + positionEmployeeLevel: string | null; + positionEmployeeLevelId: string | null; + positionEmployeePosition: string | null; + positionEmployeePositionId: string | null; + positionEmployeePositionSide: string | null; + positionEmployeePositionSideId: string | null; + positionSalaryAmount: number; + salaryClass: string | null; + salaryRef: string | null; + refCommandNo: string; + // refCommandDate: Date | null; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { + RequestItemsObject, + Columns, + DataProps, + RequestItemsEmployee, + DataPropsEmployee, +}; diff --git a/src/components/information/interface/request/Talent.ts b/src/components/information/interface/request/Talent.ts new file mode 100644 index 000000000..b66341543 --- /dev/null +++ b/src/components/information/interface/request/Talent.ts @@ -0,0 +1,30 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + field: string; + detail: string; + remark: string; + reference: string; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Train.ts b/src/components/information/interface/request/Train.ts new file mode 100644 index 000000000..6f0956578 --- /dev/null +++ b/src/components/information/interface/request/Train.ts @@ -0,0 +1,36 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + name: string; + topic: string; + yearly: number; + place: string; + duration: string; + department: string; + numberOrder: string; + dateOrder: Date; + startDate: Date; + endDate: Date; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/request/Work.ts b/src/components/information/interface/request/Work.ts new file mode 100644 index 000000000..58d2730cd --- /dev/null +++ b/src/components/information/interface/request/Work.ts @@ -0,0 +1,32 @@ +interface DataProps { + row: RequestItemsObject; + rowIndex: number; +} + +//ข้อมูล +interface RequestItemsObject { + id: string; + dateStart: Date; + dateEnd: Date; + detail: string; + reference: string; + refCommandNo: string; + refCommandDate: Date | null; + createdFullName: string; + createdAt: Date; +} + +//columns +interface Columns { + [index: number]: { + name: String; + align: String; + label: String; + sortable: Boolean; + field: String; + headerStyle: String; + style: String; + }; +} + +export type { RequestItemsObject, Columns, DataProps }; diff --git a/src/components/information/interface/response/Address.ts b/src/components/information/interface/response/Address.ts new file mode 100644 index 000000000..8769bd1b4 --- /dev/null +++ b/src/components/information/interface/response/Address.ts @@ -0,0 +1,34 @@ +//ข้อมูล +interface ResponseObject { + currentAddress: string | null; + currentDistrictId: string | null; + currentProvinceId: string | null; + currentSubDistrictId: string | null; + currentZipCode: string | null; + registrationAddress: string | null; + registrationDistrictId: string | null; + registrationProvinceId: string | null; + registrationSame: Boolean | null; + registrationSubDistrictId: string | null; + registrationZipCode: string | null; + createdFullName: string | null; + createdAt: Date; +} + +interface ResponseHistory { + currentAddress: string | null; + currentDistrictId: string | null; + currentProvinceId: string | null; + currentSubDistrictId: string | null; + currentZipCode: string | null; + registrationAddress: string | null; + registrationDistrictId: string | null; + registrationProvinceId: string | null; + registrationSame: string | null; + registrationSubDistrictId: string | null; + registrationZipCode: string | null; + createdFullName: string | null; + createdAt: Date; +} + +export type { ResponseObject, ResponseHistory }; diff --git a/src/components/information/interface/response/Assessment.ts b/src/components/information/interface/response/Assessment.ts new file mode 100644 index 000000000..af1f8598a --- /dev/null +++ b/src/components/information/interface/response/Assessment.ts @@ -0,0 +1,16 @@ +//ข้อมูล +interface ResponseObject { + id: string; + point1Total: number; + point1: number; + point2Total: number; + point2: number; + pointSumTotal: number; + pointSum: number; + name: string; + date: Date; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Certificate.ts b/src/components/information/interface/response/Certificate.ts new file mode 100644 index 000000000..32756682e --- /dev/null +++ b/src/components/information/interface/response/Certificate.ts @@ -0,0 +1,13 @@ +//ข้อมูล +interface ResponseObject { + id: string; + certificateNo: string; + issuer: string; + issueDate: Date; + expireDate: Date; + certificateType: string; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Coin.ts b/src/components/information/interface/response/Coin.ts new file mode 100644 index 000000000..578dcbb5e --- /dev/null +++ b/src/components/information/interface/response/Coin.ts @@ -0,0 +1,13 @@ +//ข้อมูล +interface ResponseObject { + id: string; + issuer: string; + detail: string; + issueDate: Date; + refCommandNo: string; + refCommandDate: Date | null; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Discipline.ts b/src/components/information/interface/response/Discipline.ts new file mode 100644 index 000000000..bb6ca4262 --- /dev/null +++ b/src/components/information/interface/response/Discipline.ts @@ -0,0 +1,14 @@ +//ข้อมูล +interface ResponseObject { + id: string; + level: string; + detail: string; + unStigma: string; + refCommandNo: string; + refCommandDate: Date; + date: Date; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Document.ts b/src/components/information/interface/response/Document.ts new file mode 100644 index 000000000..4365fe380 --- /dev/null +++ b/src/components/information/interface/response/Document.ts @@ -0,0 +1,6 @@ +//ข้อมูล +interface ResponseObject { + name: String; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Education.ts b/src/components/information/interface/response/Education.ts new file mode 100644 index 000000000..86bda975c --- /dev/null +++ b/src/components/information/interface/response/Education.ts @@ -0,0 +1,27 @@ +//ข้อมูล +interface ResponseObject { + id: string; + educationLevel: string; + educationLevelId: string; + positionPath: string; + isEducation: boolean; + institute: string; + degree: string; + field: string; + gpa: string; + country: string; + duration: string; + durationYear: number; + other: string; + fundName: string; + isDate: string | null; + finishDate: Date; + startDate: number; + endDate: number; + startDate2: Date; + endDate2: Date; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Family.ts b/src/components/information/interface/response/Family.ts new file mode 100644 index 000000000..04dc4b363 --- /dev/null +++ b/src/components/information/interface/response/Family.ts @@ -0,0 +1,64 @@ +//ข้อมูล +interface ResponseObject { + couple: Boolean | null; + couplePrefixId: string | null; + coupleFirstName: string | null; + coupleLastName: string | null; + coupleLastNameOld: string | null; + coupleCareer: string | null; + coupleLive: Boolean | null; + coupleCitizenId: string | null; + fatherPrefixId: string | null; + fatherFirstName: string | null; + fatherLastName: string | null; + fatherCareer: string | null; + fatherLive: Boolean | null; + fatherCitizenId: string | null; + motherPrefixId: string | null; + motherFirstName: string | null; + motherLastName: string | null; + motherCareer: string | null; + motherLive: Boolean | null; + motherCitizenId: string | null; + createdFullName: string | null; + createdAt: Date; + childrens: childrenFamily[]; +} + +interface ResponseHistory { + couple: string | null; + couplePrefixId: string | null; + coupleFirstName: string | null; + coupleLastName: string | null; + coupleLastNameOld: string | null; + coupleCareer: string | null; + coupleLive: string | null; + coupleCitizenId: string | null; + fatherPrefixId: string | null; + fatherFirstName: string | null; + fatherLastName: string | null; + fatherCareer: string | null; + fatherLive: string | null; + fatherCitizenId: string | null; + motherPrefixId: string | null; + motherFirstName: string | null; + motherLastName: string | null; + motherCareer: string | null; + motherLive: string | null; + motherCitizenId: string | null; + createdFullName: string | null; + createdAt: Date; + childrens: childrenFamily[]; +} + +interface childrenFamily { + id: string; + childrenPrefixId: string | null; + childrenFirstName: string | null; + childrenLastName: string | null; + childrenCareer: string | null; + childrenLive: string | null; + childrenCitizenId: string | null; +} + +export type { ResponseObject, childrenFamily, ResponseHistory }; diff --git a/src/components/information/interface/response/Government.ts b/src/components/information/interface/response/Government.ts new file mode 100644 index 000000000..69a4ef3aa --- /dev/null +++ b/src/components/information/interface/response/Government.ts @@ -0,0 +1,23 @@ +//ข้อมูล +interface ResponseObject { + oc: string | null; + positionExecutive: string | null; + positionExecutiveSide: string | null; + dateAppoint: Date | string; + dateStart: Date | string; + govAge: string | null; + govAgeAbsent: number | null; + govAgePlus: number | null; + positionLevel: string | null; + posNo: string | null; + position: string | null; + positionPathSide: string | null; + retireDate: string | null; + positionType: string | null; + positionLine: string | null; + createdFullName: string | null; + createdAt: Date; + reasonSameDate: string | null; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Information.ts b/src/components/information/interface/response/Information.ts new file mode 100644 index 000000000..cd0008734 --- /dev/null +++ b/src/components/information/interface/response/Information.ts @@ -0,0 +1,24 @@ +//ข้อมูล +interface ResponseObject { + changeName: boolean | null; + birthDate: Date; + bloodGroupId: string | null; + citizenId: string | null; + firstName: string | null; + genderId: string | null; + lastName: string | null; + nationality: string | null; + prefixId: string | null; + race: string | null; + relationshipId: string | null; + religionId: string | null; + telephoneNumber: string | null; + createdFullName: string | null; + createdAt: Date; + age: string | null; + employeeType: string | null; + employeeClass: string | null; + profileType: string | null; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Insignia.ts b/src/components/information/interface/response/Insignia.ts new file mode 100644 index 000000000..4d26152a0 --- /dev/null +++ b/src/components/information/interface/response/Insignia.ts @@ -0,0 +1,22 @@ +//ข้อมูล +interface ResponseObject { + id: string; + insigniaType: string; + insignia: string; + insigniaId: string; + year: number; + no: string; + issue: string; + volumeNo: string; + volume: string; + section: string; + page: string; + receiveDate: Date; + dateAnnounce: Date; + refCommandNo: string; + refCommandDate: Date | null; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Leave.ts b/src/components/information/interface/response/Leave.ts new file mode 100644 index 000000000..f5eb18b13 --- /dev/null +++ b/src/components/information/interface/response/Leave.ts @@ -0,0 +1,22 @@ +//ข้อมูล +interface ResponseObject { + id: string; + typeLeave: string; + dateStartLeave: Date; + dateEndLeave: Date; + numLeave: number; + sumLeave: number; + totalLeave: number; + status: string; + reason: string; + typeLeaveId: string; +} +interface ResponseTotalObject { + typeLeaveId: string; + typeLeave: string; + totalLeave: number; + limitLeave: string; + remainLeave: string; +} + +export type { ResponseObject, ResponseTotalObject }; diff --git a/src/components/information/interface/response/Main.ts b/src/components/information/interface/response/Main.ts new file mode 100644 index 000000000..28d372484 --- /dev/null +++ b/src/components/information/interface/response/Main.ts @@ -0,0 +1,37 @@ +//ข้อมูล +interface ResponseObject { + id: number; + fullname: String; + fullnameOld: String; + avatar: String; + citizenId: String; + oc: String; + position: String; + positionPathSide: String; + posNo: String | null; + posNoEmployee: String | null; + positionLine: String; + positionType: String; + govAge: number; + positionLevel: String; + positionExecutive: String | null; + positionExecutiveSide: String | null; + refSalary: String; + positionEmployeePosition: String | null; + positionEmployeePositionSide: String | null; + positionEmployeeLevel: String | null; + positionEmployeeGroup: String | null; + dateAppoint: Date | null; + dateStart: Date | null; + createdAt: Date | null; + salaryDate: Date | null; + leaveReason: string; + age: String; + amount: String; + insignia: String; + insigniaLast: String; + isLeave: boolean; + leaveDateOrder: Date | null; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/OldName.ts b/src/components/information/interface/response/OldName.ts new file mode 100644 index 000000000..f908976a1 --- /dev/null +++ b/src/components/information/interface/response/OldName.ts @@ -0,0 +1,14 @@ +//ข้อมูล +interface ResponseObject { + id: string; + prefix: string; + prefixId: string; + firstName: string; + lastName: string; + status: string; + file: string | null; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Other.ts b/src/components/information/interface/response/Other.ts new file mode 100644 index 000000000..7bce7e100 --- /dev/null +++ b/src/components/information/interface/response/Other.ts @@ -0,0 +1,10 @@ +//ข้อมูล +interface ResponseObject { + id: string; + date: Date; + detail: string; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Record.ts b/src/components/information/interface/response/Record.ts new file mode 100644 index 000000000..2ed425be7 --- /dev/null +++ b/src/components/information/interface/response/Record.ts @@ -0,0 +1,13 @@ +//ข้อมูล +interface ResponseObject { + id: string; + date: Date; + detail: string; + reference: string; + refCommandNo: string; + refCommandDate: Date | null; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Salary.ts b/src/components/information/interface/response/Salary.ts new file mode 100644 index 000000000..dbf255081 --- /dev/null +++ b/src/components/information/interface/response/Salary.ts @@ -0,0 +1,61 @@ +//ข้อมูล +interface ResponseObject { + id: string; + date: Date; + amount: number; + positionSalaryAmount: number; + mouthSalaryAmount: number; + oc: string; + ocId: string; + position: string; + positionId: string; + posNo: string; + posNoId: string; + positionLine: string; + positionLineId: string; + positionPathSide: string; + positionPathSideId: string; + positionType: string; + positionTypeId: string; + positionLevel: string; + positionLevelId: string; + positionExecutive: string; + positionExecutiveId: string; + positionExecutiveSide: string; + positionExecutiveSideId: string; + salaryClass: string; + salaryRef: string; + refCommandNo: string; + // refCommandDate: Date | null; + createdFullName: string; + createdAt: Date; +} + +interface ResponseObjectEmployee { + amount: number; + createdAt: Date; + createdFullName: string; + date: Date; + id: string; + mouthSalaryAmount: number; + oc: string | null; + ocId: string; + posNo: string | null; + posNoId: string | null; + posNoEmployee: string | null; + positionEmployeeGroup: string | null; + positionEmployeeGroupId: string | null; + positionEmployeeLevel: string | null; + positionEmployeeLevelId: string | null; + positionEmployeePosition: string | null; + positionEmployeePositionId: string | null; + positionEmployeePositionSide: string | null; + positionEmployeePositionSideId: string | null; + positionSalaryAmount: number; + salaryClass: string | null; + salaryRef: string | null; + refCommandNo: string; + // refCommandDate: Date | null; +} + +export type { ResponseObject, ResponseObjectEmployee }; diff --git a/src/components/information/interface/response/Talent.ts b/src/components/information/interface/response/Talent.ts new file mode 100644 index 000000000..35bddad2d --- /dev/null +++ b/src/components/information/interface/response/Talent.ts @@ -0,0 +1,12 @@ +//ข้อมูล +interface ResponseObject { + id: string; + field: string; + detail: string; + remark: string; + reference: string; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Train.ts b/src/components/information/interface/response/Train.ts new file mode 100644 index 000000000..6cd0ebda2 --- /dev/null +++ b/src/components/information/interface/response/Train.ts @@ -0,0 +1,18 @@ +//ข้อมูล +interface ResponseObject { + id: string; + name: string; + topic: string; + yearly: number; + place: string; + duration: string; + department: string; + numberOrder: string; + dateOrder: Date; + startDate: Date; + endDate: Date; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/response/Work.ts b/src/components/information/interface/response/Work.ts new file mode 100644 index 000000000..fb269cf17 --- /dev/null +++ b/src/components/information/interface/response/Work.ts @@ -0,0 +1,14 @@ +//ข้อมูล +interface ResponseObject { + id: string; + dateStart: Date; + dateEnd: Date; + detail: string; + reference: string; + refCommandNo: string; + refCommandDate: Date | null; + createdFullName: string; + createdAt: Date; +} + +export type { ResponseObject }; diff --git a/src/components/information/interface/store/main.ts b/src/components/information/interface/store/main.ts index 7c31dd81c..6d0452d09 100644 --- a/src/components/information/interface/store/main.ts +++ b/src/components/information/interface/store/main.ts @@ -17,4 +17,14 @@ interface Profile { document: { columns: String[] }; } -export type { Profile }; +interface DataOption { + id: string; + name: string; + zipCode?: string; +} + +interface Pagination { + rowsPerPage: number; +} + +export type { Profile, DataOption, Pagination };