pms-evalution.component.ts 13.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316
import { Component, EventEmitter, Output } from '@angular/core';
export interface DataModel {
  hoshin: string
  performance: string
  target: string
  unit: string
  timeLine: string
  weight: string
  targetDegree: { check: string, text: string[] }
  summary: string
  score: string
}
export interface DataModel2 {
  performance: string
  target: string
  unit: string
  timeLine: string
  weight: string
  targetDegree: { check: string, text: string[] }
  summary: string
  score: string
}
export interface DataModel3 {
  competency: string
  weight: string
  targetDegree: { check: string, text: string[] }
  summary: string
  score: string
}
export interface DataModel4 {
  timeAttendance: string
  target: string
  unit: string
  weight: string
  targetDegree: { check: string, text: string[] }
  summary: string
  score: string
}
export interface DataModel5 {
  crossFunctionalProjectAssignment: string
  performanceIndicator: string
  target: string
  unit: string
  timeLine: string
  weight: string
  targetDegree: { check: string, text: string[] }
  summary: string
  score: string
}
export interface DataModel6 {
  specialActivities: string
  performanceIndicator: string
  target: string
  unit: string
  timeLine: string
  weight: string
  targetDegree: { check: string, text: string[] }
  summary: string
  score: string
}
export interface DataModel7 {
  evaluationFactor: string,
  rawScore: string,
  factors: string
  scoreObtained: string
  netScore: string
  Level: string
}
@Component({
  selector: 'app-pms-evalution',
  templateUrl: './pms-evalution.component.html',
  styleUrls: ['./pms-evalution.component.scss']
})
export class PmsEvalutionComponent {
  @Output() sendPageEvalution: EventEmitter<string> = new EventEmitter<string>();
  pathTitle = ['การประเมินผล', 'ประเมินผล']
  part1show = true
  dataList: DataModel[] = [{
    hoshin: "C1 CUSTOMER ORIENTED (SQCDME)",
    performance: "Customer Satisfaction (QCDS)",
    target: "95.0",
    unit: "%",
    timeLine: "November 2021",
    weight: "5.0",
    targetDegree: { check: "90-95% Award", text: [">95% Award", "90-95% Award", ">95% no award", "80-90% no award", "<80% no award"] },
    summary: "4",
    score: "20"
  }, {
    hoshin: "C2 MANUFACTURING OPTIMIZATION",
    performance: "Manufacturing performance",
    target: "100.0",
    unit: "%",
    timeLine: "November 2021",
    weight: "5.0",
    targetDegree: { check: "81-90%", text: [">90%", "81-90%", "71-80%", "61-70%", "<60%"] },
    summary: "4",
    score: "20"
  }]
  part2show = true
  data2List: DataModel2[] = [{
    performance: "ประสานงานกับวิทยากร ผู้เข้ารับการอบรมทั้งภายในและภายนอก ตามแผนการฝึกอบรมและพัฒนา",
    target: "80.0",
    unit: "%",
    timeLine: "Jan - Nov",
    weight: "10.0",
    targetDegree: { check: "จัดการอบรมได้ตามแผนและจำนวนผู้เข้ารับการอบรม81-90%จากเป้าหมาย", text: ["จัดการอบรมได้ตามแผนและจำนวนผู้เข้ารับการอบรม>90%จากเป้าหมาย", "จัดการอบรมได้ตามแผนและจำนวนผู้เข้ารับการอบรม81-90%จากเป้าหมาย", "จัดการอบรมได้ตามแผนและจำนวนผู้เข้ารับการอบรม80%จากเป้าหมาย", "จัดการอบรมได้ตามแผนและจำนวนผู้เข้ารับการอบรม70-79%จากเป้าหมาย", "จัดการอบรมได้ตามแผนและจำนวนผู้เข้ารับการอบรม<70%จากเป้าหมาย"] },
    summary: "4",
    score: "40"
  }, {
    performance: "2.1การบันทึกผลการฝึกอบรมในระบบ(2020 ใช้ Tigersoft)",
    target: "100.0",
    unit: "%",
    timeLine: "Jan - Nov",
    weight: "2.0",
    targetDegree: { check: "80-84", text: ["บันทึกภายใน", "บันทึกภายใน  3 วัน หลังฝึก การอบรม", "บันทึกภายใน 7 วัน หลังฝึก การอบรม", "80-84", "<79"] },
    summary: "2",
    score: "4"
  }, {
    performance: "2.2 การจัดทำรายงาน วิเคราะห์ ผลการฝึกอบรมในแต่ละหลักสูตร",
    target: "100.0",
    unit: "%",
    timeLine: "Jan - Nov",
    weight: "2.0",
    targetDegree: { check: "สรุปผลการฝึกอบรมในแต่ละเดือนวิเคาระห์เป็นรายปี", text: ["สรุปผลการฝึกอบรมในแต่ละเดือนวิเคาระห์ทุก6เดือน", "สรุปผลการฝึกอบรมในแต่ละเดือนวิเคาระห์เป็นรายปี", "สรุปผลการฝึกอบรมของเดือนไม่เกินวันที่3ของเดือนถัดไป", "สรุปผลการฝึกอบรมของเดือนเกินกว่าวันที่3ของเดือนถัดไป", "สรุปผลการฝึกอบรมของเดือนเกินกว่า3วัน จำนวน>38ครั้ง/ปี"] },
    summary: "4",
    score: "8"
  }]
  part3show = true
  data3List: DataModel3[] = [{
    competency: "Core Competency",
    weight: "10.0",
    targetDegree: { check: "76.00", text: ["", "", "76.00", "", ""] },
    summary: "3",
    score: "30"
  }, {
    competency: "Managerial Competency",
    weight: "10.0",
    targetDegree: { check: "68.00", text: ["", "", "", "68.00", ""] },
    summary: "2",
    score: "20"
  }, {
    competency: "Position Competency",
    weight: "10.0",
    targetDegree: { check: "89.00", text: ["", "89.00", "", "", ""] },
    summary: "4",
    score: "40"
  }]
  part4show = true
  data4List: DataModel4[] = [{
    timeAttendance: "ลาป่วย",
    target: "0.0",
    unit: "วัน",
    weight: "5.0",
    targetDegree: { check: "1-2", text: ["0.0", "1-2", "3-5", "6-10", ">10"] },
    summary: "2",
    score: "10"
  }, {
    timeAttendance: "ลาคลอดบุตร",
    target: "0.0",
    unit: "วัน",
    weight: "5.0",
    targetDegree: { check: "0.0", text: ["0.0", "<45", "45-90", "91-120", ">120"] },
    summary: "5",
    score: "25"
  }, {
    timeAttendance: "ลาฝึกอบรม (ไม่รับค่าจ้าง)",
    target: "0.0",
    unit: "วัน หรือ ครั้ง",
    weight: "5.0",
    targetDegree: { check: "0.0", text: ["0.0", "1-4", "5-10", "10-15", ">15"] },
    summary: "5",
    score: "25"
  }, {
    timeAttendance: "สาย",
    target: "0.0",
    unit: "ครั้ง",
    weight: "5.0",
    targetDegree: { check: ">6", text: ["0.0", "1-2", "3-4", "5-6", ">6"] },
    summary: "1",
    score: "5"
  }]
  part5show = true
  data5List: DataModel5[] = [{
    crossFunctionalProjectAssignment: "Business Continuity Plan (BCP)",
    performanceIndicator: "",
    target: "1.1 การเข้าร่วม ประชุม และเข้าร่วม ซ้อมแผน\n1.2 คะแนนการ ประเมินจากทีม ผู้บริหารและลูกค้ารวมกัน",
    unit: "",
    timeLine: "November 2021",
    weight: "1.0",
    targetDegree: { check: "เข้าร่วม 60 - 79% คะแนนการประเมิน 60- 79%", text: ["เข้าร่วม 90 - 100 % คะแนนการประเมิน 90- 100 %", "เข้าร่วม 80 - 89% คะแนนการประเมิน 80- 89%", "เข้าร่วม 60 - 79% คะแนนการประเมิน 60- 79%", "เข้าร่วม <59% คะแนนการประเมิน <59%", "ไม่เข้าร่วมกิจกรรมเลย"] },
    summary: "3",
    score: "3"
  }, {
    crossFunctionalProjectAssignment: "Safety committee",
    performanceIndicator: "",
    target: "เข้าร่วมประชุม, ร่วมกิจกรรม และปฏิบัติงานตามหน้าที่",
    unit: "",
    timeLine: "November 2021",
    weight: "1.0",
    targetDegree: { check: "เข้าร่วม 90-100%", text: ["เข้าร่วม 90-100%", "เข้าร่วม 70-80%", "เข้าร่วม 50%", "เข้าร่วม 30-40%", "เข้าร่วม 10-20%"] },
    summary: "5",
    score: "5"
  }]
  part6show = true
  data6List: DataModel6[] = [{
    specialActivities: "Kaizen",
    performanceIndicator: "",
    target: "1 Person / 1 Subject / 1 Month",
    unit: "Subject",
    timeLine: "Nov-21",
    weight: "1.0",
    targetDegree: { check: "1 เรื่อง x 12 เดือน", text: [">15 เรื่อง/ปี (ขั้นต่ำ 1 เรื่องเดือน)", ">12-15 เรื่อง/ปี (ขั้นต่ำ 1 เรื่องเดือน)", "1 เรื่อง x 12 เดือน", "10-12 เรื่อง/ปี (ขั้นต่ำ 1 เรื่องเดือน)", "<10 เรื่อง/ปี"] },
    summary: "3",
    score: "3"
  }, {
    specialActivities: "5S",
    performanceIndicator: "",
    target: "Result of Audit (Office)",
    unit: "%",
    timeLine: "Nov-21",
    weight: "0.5",
    targetDegree: { check: "89-85%", text: ["100-97%", "96-94%", "93-30%", "89-85%", "<84%"] },
    summary: "2",
    score: "1"
  }, {
    specialActivities: "QCC",
    performanceIndicator: "",
    target: "Present QCC Project",
    unit: "Project",
    timeLine: "Nov-21",
    weight: "1.0",
    targetDegree: { check: "ยื่นเรื่องและ นำเสนอผลงาน", text: ["อันดับ 1-3", "เข้ารอบ 5 ทีมสุดท้าย", "ยื่นเรื่องและ นำเสนอผลงาน", "สมัครสมาชิก และดำเนินกิจกรรมแต่ไม่ได้นำเสนอผลงาน", "ไม่เข้าร่วมกิจกรรม"] },
    summary: "3",
    score: "3"
  }, {
    specialActivities: "คณะกรรมการตามกิจกรรม",
    performanceIndicator: "",
    target: "5ส, Kaizen, QCC",
    unit: "Activity",
    timeLine: "Nov-21",
    weight: "0.5",
    targetDegree: { check: "1กิจกรรม", text: [">2 กิจกรรม", "2 กิจกรรม", "1กิจกรรม", " 89-85%", "<84%"] },
    summary: "3",
    score: "1.5"
  }]
  part7show = true
  data7List: DataModel7[] = [{
    evaluationFactor: "Part 1 : ประเมินผลการปฏิบัติงานตามนโยบายบริษัท (Hoshin)",
    rawScore: "100",
    factors: "15.00",
    scoreObtained: "80.00",
    netScore: "12",
    Level: "A = ดีเลิศ (Outstanding) >91"
  }, {
    evaluationFactor: "Part 2 : ประเมินผลการปฏิบัติงานประจำ (Job based KPIs)",
    rawScore: "100",
    factors: "30.00",
    scoreObtained: "74.29",
    netScore: "22.29",
    Level: "B = ดีมาก (Above Expectations)>81-90"
  }, {
    evaluationFactor: "Part 3 : ประเมินผลสมรรถนะที่สนับสนุนการปฏิบัติงาน (Skill Map)",
    rawScore: "100",
    factors: "35.00",
    scoreObtained: "60.00",
    netScore: "21",
    Level: "C = ดี (Meet Expectations)>71-80"
  }, {
    evaluationFactor: "Part 4 : จำนวนการเข้างาน( Time Attendance)",
    rawScore: "100",
    factors: "10.00",
    scoreObtained: "65.00",
    netScore: "6.5",
    Level: "D = ควรปรับปรุง (Below Expectations)>61-70"
  }, {
    evaluationFactor: "Part 5: งานที่ได้รับมอบหมายเพิ่มเติม (Cross Functional Project Assignment)",
    rawScore: "100",
    factors: "5.00",
    scoreObtained: "80.00",
    netScore: "4",
    Level: "E = ไม่น่าพอใจ (Unsatisfactory) ≤60"
  }, {
    evaluationFactor: "Part 6: กิจกรรมพิเศษ (Special Activities)",
    rawScore: "100",
    factors: "5.00",
    scoreObtained: "85.00",
    netScore: "4.25",
    Level: ""
  }]
  part8show = true
  part9show = true
  dataListFilter() {
    return this.dataList
  }
  data2ListFilter() {
    return this.data2List
  }
  data3ListFilter() {
    return this.data3List
  }
  data4ListFilter() {
    return this.data4List
  }
  data5ListFilter() {
    return this.data5List
  }
  data6ListFilter() {
    return this.data6List
  }
  data7ListFilter() {
    return this.data7List
  }
  returnPage() {
    this.sendPageEvalution.emit("")
  }
}