get tab7
This commit is contained in:
parent
78fb5b5c0a
commit
8a36a6c977
2 changed files with 27 additions and 4 deletions
|
|
@ -1410,6 +1410,29 @@ export class DevelopmentController extends Controller {
|
||||||
await this.developmentRepository.save(development, { data: request });
|
await this.developmentRepository.save(development, { data: request });
|
||||||
return new HttpSuccess(development.id);
|
return new HttpSuccess(development.id);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* API รายละเอียดโครงการ/หลักสูตรการฝึกอบรม tab6
|
||||||
|
*
|
||||||
|
* @summary DEV_00 - รายละเอียดโครงการ/หลักสูตรการฝึกอบรมtab6 #
|
||||||
|
*
|
||||||
|
* @param {string} id Id โครงการ
|
||||||
|
*/
|
||||||
|
@Get("tab7/{id}")
|
||||||
|
async GetDevelopemtTab7ById(@Path() id: string) {
|
||||||
|
const getDevelopment = await this.developmentRepository.findOne({
|
||||||
|
where: { id },
|
||||||
|
});
|
||||||
|
const _getDevelopment = {
|
||||||
|
id: getDevelopment ? getDevelopment.id : null,
|
||||||
|
accept: getDevelopment ? getDevelopment.accept : null,
|
||||||
|
receive: getDevelopment ? getDevelopment.receive : null,
|
||||||
|
approved: getDevelopment ? getDevelopment.approved : null,
|
||||||
|
budget: getDevelopment ? getDevelopment.budget : null,
|
||||||
|
budgetSub: getDevelopment ? getDevelopment.budgetSub : null,
|
||||||
|
budgetPay: getDevelopment ? getDevelopment.budgetPay : null,
|
||||||
|
};
|
||||||
|
return new HttpSuccess(_getDevelopment);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* API แก้ไขโครงการ/หลักสูตรการฝึกอบรม tab8
|
* API แก้ไขโครงการ/หลักสูตรการฝึกอบรม tab8
|
||||||
|
|
|
||||||
|
|
@ -821,8 +821,6 @@ export class UpdateDevelopment5 {
|
||||||
isOutBudget: boolean;
|
isOutBudget: boolean;
|
||||||
//end
|
//end
|
||||||
@Column()
|
@Column()
|
||||||
budgetPay: Double | null;
|
|
||||||
@Column()
|
|
||||||
expect: string | null;
|
expect: string | null;
|
||||||
@Column()
|
@Column()
|
||||||
topicAcademic: string | null;
|
topicAcademic: string | null;
|
||||||
|
|
@ -833,18 +831,20 @@ export class UpdateDevelopment5 {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UpdateDevelopment7 {
|
export class UpdateDevelopment7 {
|
||||||
//move from tab5
|
//move from tab5
|
||||||
@Column()
|
@Column()
|
||||||
budget: string | null;
|
budget: string | null;
|
||||||
@Column()
|
@Column()
|
||||||
budgetSub: string | null;
|
budgetSub: string | null;
|
||||||
@Column()
|
@Column()
|
||||||
|
budgetPay: Double | null;
|
||||||
|
@Column()
|
||||||
accept: Double | null;
|
accept: Double | null;
|
||||||
@Column()
|
@Column()
|
||||||
receive: Double | null;
|
receive: Double | null;
|
||||||
@Column()
|
@Column()
|
||||||
approved: Double | null;
|
approved: Double | null;
|
||||||
//end
|
//end
|
||||||
}
|
}
|
||||||
export class UpdateDevelopment8 {
|
export class UpdateDevelopment8 {
|
||||||
//move from tab5
|
//move from tab5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue