self-evaluation.component.html 19.7 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
<app-page-header [pathTitle]="pathTitle"></app-page-header>
<div class="bg-card-white">
</div>
<div class="block-main-content">
    <ng-container *ngTemplateOutlet="currentTemplate"></ng-container>
</div>

<ng-template #selfEvaluation1_2>
    <div class="font-size-18px font-weight-700 pt-1.5rem text-primary px-2rem">
        ประเมินผล ประจำปี 2024
    </div>
    <div class="pt-0.75rem">
        <div class="border-b border-gray-200 dark:border-white/10 px-2rem">
            <nav class=" flex space-x-2 rtl:space-x-reverse">
                <a class="border justify-center rounded-top-4px bg-primary text-white -mb-px py-2 px-3 inline-flex items-center gap-2 font-size-16px font-weight-500 text-center text-gray-600 active"
                    href="javascript:void(0);" id="card-type-item-1" data-hs-tab="#underline-1"
                    aria-controls="underline-1">
                    รอบการประเมินที่ 1/2
                </a>
                <a class="border justify-center rounded-top-4px bg-primary text-white -mb-px py-2 px-3 inline-flex items-center gap-2 font-size-16px font-weight-500 text-center text-gray-600 active"
                    href="javascript:void(0);" id="card-type-item-1" data-hs-tab="#underline-1"
                    aria-controls="underline-1">
                    รอบการประเมินที่ 2/2
                </a>
            </nav>
        </div>
        <div class="pt-50px">
            <div id="underline-1" role="tabpanel" aria-labelledby="underline-item-1">
                <div class="pb-2">
                    <div class="w-full min-height-50px justify-between items-center pb-2">
                        <div class="px-2rem py-3 bg-soft-secondary font-size-18px font-weight-700 text-primary">
                            ข้อมูลพนักงาน
                        </div>
                    </div>
                    <div class="p-2 grid grid-cols-12">
                        <div class="col-span-2"></div>
                        <div class="col-span-1 text-secondary">รหัสพนักงาน</div>
                        <div class="col-span-2">20220064</div>
                        <div class="col-span-1 text-secondary">ตำเเหน่ง</div>
                        <div class="col-span-6">Customer Service Officer - Chain Store</div>
                    </div>
                    <div class="p-2 grid grid-cols-12">
                        <div class="col-span-2"></div>
                        <div class="col-span-1 text-secondary">ชื่อ - สกุล</div>
                        <div class="col-span-2">อนันท์ ว่อง</div>
                        <div class="col-span-1 text-secondary">ฝ่าย</div>
                        <div class="col-span-6">ฝ่ายปฏิบัติการ</div>
                    </div>
                    <div class="p-2 grid grid-cols-12">
                        <div class="col-span-2"></div>
                        <div class="col-span-1 text-secondary">แผนก</div>
                        <div class="col-span-2">แผนกบริการลูกค้า</div>
                        <div class="col-span-1 text-secondary">ส่วน</div>
                        <div class="col-span-6">ส่วนงานบริการลูกค้า-Chain Store</div>
                    </div>
                    <div class="p-2 grid grid-cols-12">
                        <div class="col-span-2"></div>
                        <div class="col-span-1 text-secondary">ส่วนย่อย</div>
                        <div class="col-span-2">-</div>
                        <div class="col-span-1 text-secondary">ส่วนย่อย 1 </div>
                        <div class="col-span-6">-</div>
                    </div>
                </div>
                <div class="pb-2">
                    <div class="w-full min-height-50px justify-between items-center pb-2">
                        <div class="px-2rem py-3 bg-soft-secondary font-size-18px font-weight-700 text-primary">
                            รายละเอียดประเมินสมรรถนะ
                        </div>
                    </div>
                    <div class="overflow-auto rounded-top-0.65rem px-2rem p-2">
                        <table class="ti-custom-table ti-custom-table-head ti-custom-table-hover">
                            <thead class="height-50px">
                                <tr class="font-size-12px">
                                    <ng-container
                                        *ngFor="let item of ['รหัส','ชื่อเอกสาร','วันที่เริ่มต้น','วันที่สิ้นสุด','สถานะ','Action']; let f = first; let l = last">
                                        <th scope="col" class="relative px-10px py-10px bg-soft-secondary text-primary"
                                            [class.!text-center]="f||l">
                                            <span class="font-size-12px font-weight-700">{{ item }}</span>
                                            <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!l">
                                                <i class="ti ti-dots-vertical fs-l"></i>
                                            </div>
                                        </th>
                                    </ng-container>
                                </tr>
                            </thead>
                            <tbody *ngIf="!dataListFilter().length">
                                <tr>
                                    <td class="text-center" colspan="100%">
                                        ไม่พบข้อมูล
                                    </td>
                                </tr>
                            </tbody>
                            <tbody *ngIf="dataListFilter().length">
                                <tr *ngFor="let item of dataListFilter();let i = index">
                                    <td class="flex justify-center items-center">
                                        {{item.code}}
                                    </td>
                                    <td>
                                        {{item.name}}
                                    </td>
                                    <td>
                                        {{item.startDate}}
                                    </td>
                                    <td>
                                        {{item.endDate}}
                                    </td>
                                    <td>
                                        {{item.status}}
                                    </td>
                                    <td class="flex justify-center items-center">
                                        <span class="rounded-md bg-success text-white px-3 py-1 cursor-pointer"
                                            (click)="currentTemplate = selfEvaluation1_2Edit ; pathTitle = ['การประเมินผล', 'ประเมินผล']">
                                            ประเมิน
                                        </span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="pb-2">
                    <div class="w-full min-height-50px justify-between items-center pb-2">
                        <div class="px-2rem py-3 bg-soft-secondary font-size-18px font-weight-700 text-primary">
                            รายละเอียดประเมินผลงานการปฏิบัติงาน
                        </div>
                    </div>
                    <div class="overflow-auto rounded-top-0.65rem px-2rem p-2">
                        <table class="ti-custom-table ti-custom-table-head ti-custom-table-hover">
                            <thead class="height-50px">
                                <tr class="font-size-12px">
                                    <ng-container
                                        *ngFor="let item of ['รหัส','ชื่อเอกสาร','วันที่เริ่มต้น','วันที่สิ้นสุด','สถานะ','Action']; let f = first; let l = last">
                                        <th scope="col" class="relative px-10px py-10px bg-soft-secondary text-primary"
                                            [class.!text-center]="f||l">
                                            <span class="font-size-12px font-weight-700">{{ item }}</span>
                                            <div class="absolute top-1/2 transform -translate-y-1/2 right-0" *ngIf="!l">
                                                <i class="ti ti-dots-vertical fs-l"></i>
                                            </div>
                                        </th>
                                    </ng-container>
                                </tr>
                            </thead>
                            <tbody *ngIf="!dataList2Filter().length">
                                <tr>
                                    <td class="text-center" colspan="100%">
                                        ไม่พบข้อมูล
                                    </td>
                                </tr>
                            </tbody>
                            <tbody *ngIf="dataList2Filter().length">
                                <tr *ngFor="let item of dataList2Filter();let i = index">
                                    <td class="flex justify-center items-center">
                                        {{item.code}}
                                    </td>
                                    <td>
                                        {{item.name}}
                                    </td>
                                    <td>
                                        {{item.startDate}}
                                    </td>
                                    <td>
                                        {{item.endDate}}
                                    </td>
                                    <td>
                                        {{item.status}}
                                    </td>
                                    <td class="flex justify-center items-center">
                                        <span class="rounded-md bg-success text-white px-3 py-1 cursor-pointer">
                                            ประเมิน
                                        </span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</ng-template>



<ng-template #selfEvaluation1_2Edit>
    <div class="pb-2rem px-2rem pt-1.5rem w-full min-height-50px justify-between items-center">
        <div class="flex">
            <button type="button" class="ti-btn ti-btn-outline ti-btn-outline-light h-20px m-0 shadow-md text-blue-500"
                (click)="currentTemplate = selfEvaluation1_2 ;   pathTitle = ['การประเมินผล', 'ประเมินตนเอง']">
                <i class="ti ti-chevron-left"></i>
                ย้อนกลับ
            </button>
            <div class="font-size-18px font-weight-700 align-center text-primary pl-1rem">
                ประเมินผล ประจำปี 2024
            </div>
        </div>
    </div>
    <div class="pb-2rem px-2rem">
        <div class="font-size-18px font-weight-700 text-primary">
            แบบประเมินสมรรถนะพนักงาน ประจำปี 2024
        </div>
    </div>
    <div class="pb-2rem px-2rem">
        <div class="p-2 grid grid-cols-6 gap-3">
            <div class="grid-cols-1">
                <div class="text-gray-400">เครื่องมือประเมิน</div>
                <div class="text-gray-400">O = แบบสังเกต</div>
                <div class="text-gray-400">P = แบบการปฏิบัติงาน</div>
                <div class="text-gray-400">D = การบันทึก/เอกสาร</div>
                <div class="text-gray-400">I = การสัมภาษณ์</div>
                <div class="text-gray-400">T = แบบทดสอบ</div>
            </div>
            <div class="grid-cols-1">
                <div class="text-gray-400">คำชี้แจง</div>
                <div class="text-gray-400">- ใช้วิธีประเมินโดย ผู้บังคับบัญชา = 100 %</div>
            </div>
            <div class="col-span-2 grid-cols-1">
                <div class="text-gray-400">ระดับความสามารถ (Target Degree)</div>
                <div class="text-gray-400">ระดับ 1 = ไม่มีความรู้พื้นฐานเลย ขาดทักษะในงาน</div>
                <div class="text-gray-400">ระดับ 2 = มีความรู้ในงานบ้างแต่ยังไม่สามารถ ประยุกต์ใช้ในงานได้</div>
                <div class="text-gray-400">ระดับ 3 = นำความรู้มาประยุกต์ใช้ในงานได้ ปฏิบัติงานเองได้ด้วยตัวเอง
                    แก้ไขปัญหาหน้างานได้</div>
                <div class="text-gray-400">ระดับ 4 = สอนผู้อื่นได้ มีความคล่องตัว เชื่อมโยง ความรู้ในงานได้</div>
                <div class="text-gray-400">ระดับ 5 = มีความชำนาญ เชี่ยวชาญ เป็นที่ยอมรับ ในองค์กร</div>
            </div>
225
            <!-- <div class="grid-cols-1">
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
                <div class="text-gray-400 text-center">ระดับความคาดหวัง</div>
                <div class="text-gray-400 text-center">1</div>
                <div class="text-gray-400 text-center">2</div>
                <div class="text-gray-400 text-center">3</div>
                <div class="text-gray-400 text-center">4</div>
                <div class="text-gray-400 text-center">5</div>
                <div class="text-gray-400 text-center">6</div>
                <div class="text-gray-400 text-center">7</div>
                <div class="text-gray-400 text-center">8</div>
            </div>
            <div class="grid-cols-1">
                <div class="text-gray-400 text-center">สำหรับพนักงานระดับ</div>
                <div class="text-gray-400 text-center">O1 - O2</div>
                <div class="text-gray-400 text-center">O3 - O4</div>
                <div class="text-gray-400 text-center">S1 - S2</div>
                <div class="text-gray-400 text-center">S3 - S4</div>
                <div class="text-gray-400 text-center">M1 - M2</div>
                <div class="text-gray-400 text-center">M3 - M4</div>
                <div class="text-gray-400 text-center">E1 - E2</div>
                <div class="text-gray-400 text-center">E3 - E4</div>
246
            </div> -->
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
        </div>
    </div>
    <div class="pb-2rem px-2rem">
        <div class="overflow-auto rounded-top-0.65rem">
            <table class="ti-custom-table ti-custom-table-head ti-custom-table-hover2">
                <thead class="height-50px">
                    <tr class="font-size-12px">
                        <ng-container
                            *ngFor="let item of ['ลำดับที่','รหัสสมรรถนะ','ชื่อสมรรถนะ','Behavior Indicator (BI)','เครื่องมือประเมิน\n(ตัวย่อ)\n(O,P,D,I,T)']">
                            <th scope="col" rowspan="2"
                                class="relative px-10px py-10px bg-soft-secondary text-primary !text-center">
                                <span class="font-size-12px font-weight-700 ">{{ item }}</span>
                                <div class="absolute top-1/2 transform -translate-y-1/2 right-0">
                                    <i class="ti ti-dots-vertical fs-l"></i>
                                </div>
                            </th>
                        </ng-container>
                        <th scope="col" colspan="5"
                            class="relative px-10px py-10px bg-soft-secondary text-primary !text-center">
                            ระดับความสามารถ (Target Degree)
                        </th>
                    </tr>
                    <tr class="font-size-12px">
                        <ng-container *ngFor="let item of [5,4,3,2,1]">
                            <th scope="col" class="relative px-10px py-10px bg-soft-secondary text-primary text-center">
                                {{item}}
                            </th>
                        </ng-container>
                    </tr>
                </thead>
                <tbody *ngIf="!dataList3Filter().length">
278
                    <tr class="hover:table-hover2-hover">
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
                        <td class="text-center" colspan="100%">
                            ไม่พบข้อมูล
                        </td>
                    </tr>
                </tbody>
                <tbody *ngIf="dataList3Filter().length">
                    <ng-container *ngFor=" let data of dataList3Filter();let i = index">
                        <tr *ngFor="let item of data.bi;let i2 = index;let f = first"
                            (mouseenter)="hoveredCode = data.code" (mouseleave)="hoveredCode = null"
                            [ngClass]="{ 'table-hover2': data.code === hoveredCode ,'border-none':!f }">
                            <td class="align-start text-center">
                                <ng-container *ngIf="f">
                                    {{i+1}}
                                </ng-container>
                            </td>
                            <td class="align-start text-center">
                                <ng-container *ngIf="f">
                                    {{data.code}}
                                </ng-container>
                            </td>
299
                            <td class="align-start !white-space-normal">
300 301 302 303
                                <ng-container *ngIf="f">
                                    {{data.name}}
                                </ng-container>
                            </td>
304
                            <td class="align-start !white-space-normal">
305 306 307 308 309 310 311
                                {{item.name}}
                            </td>
                            <td class="align-center text-center">
                                {{showTools(item.tools)}}
                            </td>
                            <td class="align-center text-center"
                                *ngFor="let value of ['5','4','3','2','1']; let i3=index">
312
                                <input type="radio" [name]="'radio'+i+''+i2" class="ti-form-radio cursor-pointer"
313 314 315 316 317 318 319 320
                                    [id]="'radio'+i+''+i2+''+i3" [value]="value" [(ngModel)]="item.degree">
                            </td>
                        </tr>
                    </ng-container>
                </tbody>
            </table>
        </div>
    </div>
321
</ng-template>