ปรับ code รายการโครงการ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-04-04 13:33:41 +07:00
parent f8304abfc4
commit 93a5d53df2
5 changed files with 106 additions and 26 deletions

View file

@ -20,4 +20,81 @@ interface ResListProject {
year: number;
}
export type { ResGroup, ResLevel, ResListProject };
interface ResDataProject {
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: ResPeople[];
plannedPeoples: ResPeople[];
actualGoals: ResActualGoals[];
plannedGoals: ResPlannedGoals[];
}
interface ResPeople {
groupTarget: string;
amount: number | null;
}
interface ResActualGoals {
groupTarget: string;
groupTargetSub: string;
position: string;
posTypeActualId: string | null;
posLevelActualId: string | null;
type: string;
amount: number | null;
}
interface ResPlannedGoals {
groupTarget: string;
groupTargetSub: string;
position: string;
posTypePlannedId: string | null;
posLevelPlannedId: string | null;
type: string;
amount: number | null;
}
export type {
ResGroup,
ResLevel,
ResListProject,
ResDataProject,
ResPeople,
ResActualGoals,
ResPlannedGoals,
};