Commit 5b6fe696 by Nattana Chaiyamat

กำหนดค่าระบบการประเมิน เพิ่ม active: true

parent 3c3beb07
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
</table> </table>
</div> </div>
</div> </div>
<div class="py-1rem px-2rem"> <div class="py-1rem px-2rem hidden">
<div class="py-2 grid grid-cols-6 gap-3"> <div class="py-2 grid grid-cols-6 gap-3">
<div class="col-span-6">หมายเหตุ : กรณี HR จัดอบรมให้ต้องเป็นไปตามเกณฑ์ที่ส่วนกลางกำหนดขึ้น</div> <div class="col-span-6">หมายเหตุ : กรณี HR จัดอบรมให้ต้องเป็นไปตามเกณฑ์ที่ส่วนกลางกำหนดขึ้น</div>
<div class="col-span-6 grid grid-cols-6 gap-2"> <div class="col-span-6 grid grid-cols-6 gap-2">
......
...@@ -37,7 +37,7 @@ export class AssessmentSystemConfigurationComponent { ...@@ -37,7 +37,7 @@ export class AssessmentSystemConfigurationComponent {
} }
saveSetting() { saveSetting() {
this.setting.loading = true this.setting.loading = true
this.pmsSettingAssessmentService.post(new MyPmsSettingAssessmentModel({ ...this.setting.data, expectationLevel: +(this.setting.data.expectationLevel) })).subscribe({ this.pmsSettingAssessmentService.post(new MyPmsSettingAssessmentModel({ ...this.setting.data, active: true, expectationLevel: +(this.setting.data.expectationLevel) })).subscribe({
next: response => { next: response => {
if (response.success) { if (response.success) {
this.showAlert(response.message, 'success') this.showAlert(response.message, 'success')
......
...@@ -10,6 +10,7 @@ export interface PmsSettingAssessmentModel { ...@@ -10,6 +10,7 @@ export interface PmsSettingAssessmentModel {
settingScore3: number settingScore3: number
settingScore2: number settingScore2: number
settingScore1: number settingScore1: number
active: boolean
} }
export class MyPmsSettingAssessmentModel implements PmsSettingAssessmentModel { export class MyPmsSettingAssessmentModel implements PmsSettingAssessmentModel {
...@@ -24,7 +25,7 @@ export class MyPmsSettingAssessmentModel implements PmsSettingAssessmentModel { ...@@ -24,7 +25,7 @@ export class MyPmsSettingAssessmentModel implements PmsSettingAssessmentModel {
settingScore3: number settingScore3: number
settingScore2: number settingScore2: number
settingScore1: number settingScore1: number
active: boolean
constructor(data?: Partial<PmsSettingAssessmentModel>) { constructor(data?: Partial<PmsSettingAssessmentModel>) {
this.apsyear = data?.apsyear || ""; this.apsyear = data?.apsyear || "";
this.companyId = data?.companyId || ""; this.companyId = data?.companyId || "";
...@@ -37,5 +38,6 @@ export class MyPmsSettingAssessmentModel implements PmsSettingAssessmentModel { ...@@ -37,5 +38,6 @@ export class MyPmsSettingAssessmentModel implements PmsSettingAssessmentModel {
this.settingScore3 = data?.settingScore3 ?? 0; this.settingScore3 = data?.settingScore3 ?? 0;
this.settingScore2 = data?.settingScore2 ?? 0; this.settingScore2 = data?.settingScore2 ?? 0;
this.settingScore1 = data?.settingScore1 ?? 0; this.settingScore1 = data?.settingScore1 ?? 0;
this.active = data?.active ?? false;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment