[Edit SIT ระบบพัฒนา] รายการที่ต้องแก้ไข #1331
This commit is contained in:
parent
101eabbac0
commit
8c7cbef72b
6 changed files with 71 additions and 11 deletions
|
|
@ -2568,9 +2568,9 @@ export class DevelopmentController extends Controller {
|
|||
}
|
||||
|
||||
/**
|
||||
* API รายละเอียดโครงการ/หลักสูตรการฝึกอบรม tab6 ส่งบันทึกทะเบียนประวัติ
|
||||
* API รายละเอียดโครงการ/หลักสูตรการฝึกอบรม tab6 ส่งบันทึกทะเบียนประวัติ (ข้อมูลผลงาน>การฝึกอบรม/ดูงาน)
|
||||
*
|
||||
* @summary DEV_00 - รายละเอียดโครงการ/หลักสูตรการฝึกอบรมtab6 ส่งบันทึกทะเบียนประวัติ #
|
||||
* @summary DEV_00 - รายละเอียดโครงการ/หลักสูตรการฝึกอบรมtab6 ส่งบันทึกทะเบียนประวัติ (ข้อมูลผลงาน>การฝึกอบรม/ดูงาน) #
|
||||
*
|
||||
* @param {string} id Id โครงการ
|
||||
*/
|
||||
|
|
@ -2598,6 +2598,7 @@ export class DevelopmentController extends Controller {
|
|||
startDate: x.dateStart,
|
||||
endDate: x.dateEnd,
|
||||
isDate: true,
|
||||
developmentId: id
|
||||
})
|
||||
.then((x) => {
|
||||
_data.isDone = true;
|
||||
|
|
@ -2620,6 +2621,7 @@ export class DevelopmentController extends Controller {
|
|||
startDate: x.dateStart,
|
||||
endDate: x.dateEnd,
|
||||
isDate: true,
|
||||
developmentId: id
|
||||
})
|
||||
.then((x) => {
|
||||
_data.isDone = true;
|
||||
|
|
@ -2644,9 +2646,9 @@ export class DevelopmentController extends Controller {
|
|||
}
|
||||
|
||||
/**
|
||||
* API รายละเอียดโครงการ/หลักสูตรการฝึกอบรม tab6 IDP ส่งบันทึกทะเบียนประวัติ
|
||||
* API รายละเอียดโครงการ/หลักสูตรการฝึกอบรม tab6 IDP ส่งบันทึกทะเบียนประวัติ (ข้อมูลผลงาน>ผลการประเมินการปฏิบัติราชการ)
|
||||
*
|
||||
* @summary DEV_00 - รายละเอียดโครงการ/หลักสูตรการฝึกอบรมtab6 IDP ส่งบันทึกทะเบียนประวัติ #
|
||||
* @summary DEV_00 - รายละเอียดโครงการ/หลักสูตรการฝึกอบรมtab6 IDP ส่งบันทึกทะเบียนประวัติ (ข้อมูลผลงาน>ผลการประเมินการปฏิบัติราชการ)#
|
||||
*
|
||||
* @param {string} id Id โครงการ
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -322,7 +322,7 @@ export class DevelopmentScholarshipController extends Controller {
|
|||
bookNo: getDevelopment.bookNo ? getDevelopment.bookNo : null,
|
||||
bookNoDate: getDevelopment.bookNoDate ? getDevelopment.bookNoDate : null,
|
||||
bookApproveDate: getDevelopment.bookApproveDate ? getDevelopment.bookApproveDate : null,
|
||||
useOfficialTime: getDevelopment.useOfficialTime ? getDevelopment.useOfficialTime : false,
|
||||
useOfficialTime: getDevelopment.useOfficialTime ? getDevelopment.useOfficialTime : null,
|
||||
changeDetail: getDevelopment.changeDetail ? getDevelopment.changeDetail : null,
|
||||
scholarshipType: getDevelopment.scholarshipType ? getDevelopment.scholarshipType : null,
|
||||
fundType: getDevelopment.fundType ? getDevelopment.fundType : null,
|
||||
|
|
@ -484,7 +484,7 @@ export class DevelopmentScholarshipController extends Controller {
|
|||
bookNo: getDevelopment.bookNo ? getDevelopment.bookNo : null,
|
||||
bookNoDate: getDevelopment.bookNoDate ? getDevelopment.bookNoDate : null,
|
||||
bookApproveDate: getDevelopment.bookApproveDate ? getDevelopment.bookApproveDate : null,
|
||||
useOfficialTime: getDevelopment.useOfficialTime ? getDevelopment.useOfficialTime : false,
|
||||
useOfficialTime: getDevelopment.useOfficialTime ? getDevelopment.useOfficialTime : null,
|
||||
changeDetail: getDevelopment.changeDetail ? getDevelopment.changeDetail : null,
|
||||
scholarshipType: getDevelopment.scholarshipType ? getDevelopment.scholarshipType : null,
|
||||
fundType: getDevelopment.fundType ? getDevelopment.fundType : null,
|
||||
|
|
|
|||
|
|
@ -650,7 +650,7 @@ export class ReportController extends Controller {
|
|||
: Extension.ToThaiNumber(Extension.ToThaiFullDate3(getDevelopment.graduatedDate)),
|
||||
graduatedReason: getDevelopment.graduatedReason == null ? "" : getDevelopment.graduatedReason,
|
||||
useOfficialTime: getDevelopment.useOfficialTime,
|
||||
useOffTime: getDevelopment.useOfficialTime == true ? "🗹 ใช้ ☐ ไม่ใช้" : "☐ ใช้ 🗹 ไม่ใช้",
|
||||
useOffTime: getDevelopment.useOfficialTime == "NOUSETIME" ? "🗹 ใช้ ☐ ไม่ใช้" : "☐ ใช้ 🗹 ไม่ใช้",
|
||||
isGraduated: getDevelopment.isGraduated,
|
||||
isG1: getDevelopment.isGraduated == true ? "🗹" : "☐",
|
||||
isG2: getDevelopment.isGraduated == true ? "☐" : "🗹",
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export class DevelopmentAddress extends EntityBase {
|
|||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "โครงการ/หลักสูตรการฝึกอบรม",
|
||||
comment: "ชื่อจังหวัด (กรณีเลือกสถานที่ดำเนินการในประเทศ)",
|
||||
default: null,
|
||||
})
|
||||
provinceName: string;
|
||||
|
|
@ -32,6 +32,20 @@ export class DevelopmentAddress extends EntityBase {
|
|||
})
|
||||
developmentId: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "สถานที่ดำเนินการ ในประเทศ(IN_COUNTRY) หรือ ต่างประเทศ(ABROAD)",
|
||||
default: null,
|
||||
})
|
||||
addressType: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อประเทศ (กรณีเลือกสถานที่ดำเนินการต่างประเทศ)",
|
||||
default: null,
|
||||
})
|
||||
country: string;
|
||||
|
||||
@ManyToOne(() => Development, (development: Development) => development.developmentAddresss)
|
||||
@JoinColumn({ name: "developmentId" })
|
||||
development: Development;
|
||||
|
|
@ -39,6 +53,16 @@ export class DevelopmentAddress extends EntityBase {
|
|||
export class CreateDevelopmentAddress {
|
||||
@Column()
|
||||
address: string | null;
|
||||
|
||||
@Column()
|
||||
provinceId: string | null;
|
||||
|
||||
@Column()
|
||||
addressType?: string | null;
|
||||
|
||||
@Column()
|
||||
provinceName?: string | null;
|
||||
|
||||
@Column()
|
||||
country?: string | null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ export class DevelopmentScholarship extends EntityBase {
|
|||
comment: "ใช้เวลาราชการ",
|
||||
default: false,
|
||||
})
|
||||
useOfficialTime: boolean;
|
||||
useOfficialTime: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
|
|
@ -567,6 +567,13 @@ export class DevelopmentScholarship extends EntityBase {
|
|||
default: null,
|
||||
})
|
||||
graduatedReason: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "เงินอื่นๆ",
|
||||
default: null,
|
||||
})
|
||||
budgetSourceOther: number;
|
||||
}
|
||||
export class CreateDevelopmentScholarship {
|
||||
rootId: string | null;
|
||||
|
|
@ -604,7 +611,7 @@ export class CreateDevelopmentScholarship {
|
|||
bookNo: string | null;
|
||||
bookNoDate: Date | null;
|
||||
bookApproveDate: Date | null;
|
||||
useOfficialTime: boolean | false;
|
||||
useOfficialTime: string | null;
|
||||
changeDetail: string | null;
|
||||
scholarshipType: string | null;
|
||||
fundType: string | null;
|
||||
|
|
@ -631,6 +638,7 @@ export class CreateDevelopmentScholarship {
|
|||
totalPeriod: string | null;
|
||||
planType: string | null;
|
||||
isNoUseBudget: boolean | null;
|
||||
budgetSourceOther?: number | null;
|
||||
}
|
||||
|
||||
export class UpdateDevelopmentScholarship {
|
||||
|
|
@ -669,7 +677,7 @@ export class UpdateDevelopmentScholarship {
|
|||
bookNo: string | null;
|
||||
bookNoDate: Date | null;
|
||||
bookApproveDate: Date | null;
|
||||
useOfficialTime: boolean | false;
|
||||
useOfficialTime: string | null;
|
||||
changeDetail: string | null;
|
||||
scholarshipType: string | null;
|
||||
fundType: string | null;
|
||||
|
|
@ -696,6 +704,7 @@ export class UpdateDevelopmentScholarship {
|
|||
totalPeriod: string | null;
|
||||
planType: string | null;
|
||||
isNoUseBudget: boolean | null;
|
||||
budgetSourceOther?: number | null;
|
||||
}
|
||||
|
||||
export class UpdateDevelopmentScholarshipUser {
|
||||
|
|
@ -706,4 +715,5 @@ export class UpdateDevelopmentScholarshipUser {
|
|||
isGraduated: boolean | null;
|
||||
graduatedDate: Date | null;
|
||||
graduatedReason: string | null;
|
||||
budgetSourceOther?: number | null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableDevelopAddressAndDevelopScholashipAddFields1745290442590 implements MigrationInterface {
|
||||
name = 'UpdateTableDevelopAddressAndDevelopScholashipAddFields1745290442590'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`developmentScholarship\` ADD \`budgetSourceOther\` int NULL COMMENT 'เงินอื่นๆ'`);
|
||||
await queryRunner.query(`ALTER TABLE \`developmentAddress\` ADD \`addressType\` varchar(255) NULL COMMENT 'สถานที่ดำเนินการ ในประเทศ(IN_COUNTRY) หรือ ต่างประเทศ(ABROAD)'`);
|
||||
await queryRunner.query(`ALTER TABLE \`developmentAddress\` ADD \`country\` varchar(255) NULL COMMENT 'ชื่อประเทศ (กรณีเลือกสถานที่ดำเนินการต่างประเทศ)'`);
|
||||
await queryRunner.query(`ALTER TABLE \`developmentScholarship\` DROP COLUMN \`useOfficialTime\``);
|
||||
await queryRunner.query(`ALTER TABLE \`developmentScholarship\` ADD \`useOfficialTime\` varchar(255) NOT NULL COMMENT 'ใช้เวลาราชการ' DEFAULT 0`);
|
||||
await queryRunner.query(`ALTER TABLE \`developmentAddress\` CHANGE \`provinceName\` \`provinceName\` varchar(255) NULL COMMENT 'ชื่อจังหวัด (กรณีเลือกสถานที่ดำเนินการในประเทศ)'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`developmentAddress\` CHANGE \`provinceName\` \`provinceName\` varchar(255) NULL COMMENT 'โครงการ/หลักสูตรการฝึกอบรม'`);
|
||||
await queryRunner.query(`ALTER TABLE \`developmentScholarship\` DROP COLUMN \`useOfficialTime\``);
|
||||
await queryRunner.query(`ALTER TABLE \`developmentScholarship\` ADD \`useOfficialTime\` tinyint NOT NULL COMMENT 'ใช้เวลาราชการ' DEFAULT '0'`);
|
||||
await queryRunner.query(`ALTER TABLE \`developmentAddress\` DROP COLUMN \`country\``);
|
||||
await queryRunner.query(`ALTER TABLE \`developmentAddress\` DROP COLUMN \`addressType\``);
|
||||
await queryRunner.query(`ALTER TABLE \`developmentScholarship\` DROP COLUMN \`budgetSourceOther\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue