hrms-mgt/src/modules/15_development/interface/request/Main.ts

199 lines
3.9 KiB
TypeScript
Raw Normal View History

interface FormQueryListProject {
year: number;
page: number;
pageSize: number;
keyword: string;
}
interface FormBasicinfo {
year: number;
org: string;
projectName: string;
reason: string;
objective: string;
}
interface FormGroupTarget {
groupTarget: string;
groupTargetSub: string;
position: string;
posType: string | null;
level: string | null;
type: string;
amount: number | null;
}
interface FormGroupRelate {
relate: string;
amount: number | null;
}
2024-03-29 18:05:19 +07:00
interface FormFollowResult {
metricType: string;
indicators: string;
target: string;
calculation: string;
measuRement: string;
results: string;
obstacles: string;
suggestions: string;
project: string;
}
interface FormFollowOther {
dateStart: Date | null;
dateEnd: Date | null;
totalDate: number;
address: string;
province: string;
budget: string;
accept: number | null;
receive: number | null;
approved: number | null;
budgetPay: number | null;
issues: string;
chance: string;
effects: string;
riskLevel: string;
riskManagement: string;
benefits: string;
topicsIssues: string;
trainingStudy: string;
2024-03-29 18:05:19 +07:00
}
interface FormAddHistory {
id: string;
name: string | null;
prefix: string;
rank: string;
firstName: string;
lastName: string;
citizenId: string;
level: string;
type: string;
posLevelId: string;
posTypeId: string;
position: string;
positionSide: string;
posNo: string;
oc: string;
[key: string]: any;
}
2024-04-04 12:38:48 +07:00
interface FormAddHistoryEmployee {
id: string;
name: string | null;
2024-04-04 12:38:48 +07:00
prefix: string;
rank: string;
firstName: string;
lastName: string;
citizenId: string;
level: string;
type: string;
posLevelId: string;
posTypeId: string;
position: string;
posNo: string;
oc: string;
[key: string]: any;
}
interface FormAddHistoryProject {
id: string;
project: string;
year: string;
trainingStart: string;
trainingEnd: string;
totalTraining: string;
location: string;
topic: string;
studyStart: string;
studyEnd: string;
organizingTraining: string;
[key: string]: any;
}
/** form เพิ่มรายการโครงการ/หลักสูตรการฝึกอบรม*/
interface FormAddProject {
year: number;
projectName: string;
reason: string;
objective: string;
metricType: string;
indicators: string;
target: string;
calculation: string;
measuRement: string;
results: string;
obstacles: string;
suggestions: string;
project: string;
isPassAllocate: boolean;
isPassNoAllocate: boolean;
isNoPass: boolean;
isBudget: boolean;
isOutBudget: boolean;
dateStart: Date | null;
dateEnd: Date | null;
totalDate: number | null;
address: string;
provinceId: string | null;
budget: string;
accept: number | string | null;
receive: number | string | null;
approved: number | string | null;
budgetPay: number | string | null;
issues: string;
chance: string;
effects: string;
riskLevel: string;
riskManagement: string;
expect: string;
topicAcademic: string;
addressAcademic: string;
provinceActualId: string | null;
actualPeoples: People[];
plannedPeoples: People[];
actualGoals: actualGoals[];
plannedGoals: PlannedGoals[];
}
interface People {
groupTarget: string;
amount: number | null;
}
interface actualGoals {
groupTarget: string;
groupTargetSub: string;
position: string;
posTypeActualId: string | null;
posLevelActualId: string | null;
type: string;
amount: number | null;
}
interface PlannedGoals {
groupTarget: string;
groupTargetSub: string;
position: string;
posTypePlannedId: string | null;
posLevelPlannedId: string | null;
type: string;
amount: number | null;
}
export type {
FormQueryListProject,
FormAddProject,
FormBasicinfo,
FormGroupTarget,
FormGroupRelate,
2024-03-29 18:05:19 +07:00
FormFollowResult,
FormFollowOther,
FormAddHistory,
FormAddHistoryProject,
2024-04-04 12:38:48 +07:00
FormAddHistoryEmployee,
};