<!-- ******************************** แบบประเมินสัมภาษณ์งาน DHAS ****************************************** -->
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ page import="com.csc.library.database.*,com.csc.library.session.*,com.csc.library.utilities.*,com.csc.library.utility.*"  %>
<%@ include file="../CHECKPROFILE.jsp" %>
<% request.setCharacterEncoding("UTF-8"); %>
<%
	CheckNull chk = new CheckNull();

	UProfile up = null;
	if (session != null){
		up = (UProfile)session.getAttribute("userprofile");
	}

	if (up == null){
		return ;
	}

	String p_candidateid = chk.chkNullString(request.getParameter("candidateid"));
	String p_committeeid = chk.chkNullString(request.getParameter("committeeid"));
	String p_judge = chk.chkNullString(request.getParameter("judge"));
	String p_notedit = chk.chkNullString(request.getParameter("notedit"),"false");

%>
<html ng-app='APS_INTERVIEW'>
	<head>
		<title>Employee View</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<%=request.getContextPath()%>/CSS/font-awesome.css">
		<link rel="stylesheet" href="<%=request.getContextPath()%>/CSS/Bootstrap/css/bootstrap.css">
		<link rel="stylesheet" href="<%=request.getContextPath()%>/JS/fullcalendar-yearview/fullcalendar.css"/>
		<link rel="stylesheet" href="<%=request.getContextPath()%>/CSS/Bootstrap/css/animate.min.css">
		<link rel="stylesheet" href="<%=request.getContextPath()%>/CSS/EMPVIEW_LAYOUT.min.css">
		<link rel="stylesheet" href="<%=request.getContextPath()%>/EMPVIEW/css/APP_UP/style_apsup.css" />

		<script type="text/javascript" src="<%=request.getContextPath()%>/JS/SCREEN.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/JS/jquery-2.1.3.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/public/lib/angular/angular.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/JS/ANGULAR/SCREEN_ANGULAR.js"></script>
		<script type='text/javascript' src="<%=request.getContextPath()%>/public/lib/angular-resource/angular-resource.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/JS/fullcalendar-yearview/lib/moment.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/JS/fullcalendar-yearview/fullcalendar.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/JS/fullcalendar-yearview/lang-all.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/JS/VIEWCALENDAR.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/JS/DATEINPUT.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/CSS/Bootstrap/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/JS/jquery-ui-1.11.4.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/JS/EMPVIEW_FUNC.js"></script>


		<script type='text/javascript' src='<%=request.getContextPath()%>/JS/urljobboard.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/EMPVIEW/JS/APS_INTERVIEW/Module.Controller.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/RECRUIT/js/services.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/EMPVIEW/JS/APS_INTERVIEW/services.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/EMPVIEW/JS/APS_INTERVIEW/APS_FORM_INTERVIEW_DHAS_RESULT.Controller.js'></script>
		<script type='text/javascript' src='<%=request.getContextPath()%>/EXAM/JS/CLASS/Question.Class.js'></script>

		<script type='text/javascript'>
			setLang('<%=up.get("lang")%>')
		</script>
	</head>
	<body ng-controller='APS_FORM_INTERVIEW_DHAS_RESULT'>
		<div class='bg-com'></div>
		<!-- Section ForChairman Only -->
		<section>
			<form name="cscform" class="form-horizontal" method="post" >
				<input type='hidden' name='candidateid' value='<%=p_candidateid%>'/>
				<input type='hidden' name='committeeid' value='<%=p_committeeid%>'/>
				<input type='hidden' name='judge' value='<%=p_judge%>'/>
				<input type='hidden' name='notedit' value='<%=p_notedit%>'/>
				<div class='container csc-content' id='target_warpper'>
					<div class='csc-block-white'>
						<div class='table-responsive'>
<%--							<table class="table table-head table-bordered" >--%>
<%--								<tr>--%>
<%--									<td rowspan ='2' class='b'> image</td>--%>
<%--								</tr>--%>
<%--							</table>--%>
							<table class="table table-head table-bordered" >
								<tr>
									<th colspan='10'>ใบสรุปผลประเมินผู้สมัคร</th>
								</tr>
								<tr>
									<td class='b' swlang code='SW001984'>fullname</td>
									<td colspan='3'>{{headdata.fullname}}</td>
									<td class='b' swlang code='SW000057'>position</td>
									<td colspan='2'>{{headdata.job}}</td>
<%--									<td class='b' >PL</td>--%>
<%--									<td colspan='2'>{{headdata.pl}}</td>--%>
								</tr>
<%--								<tr>--%>
<%--									<td class='b' swlang code=''>แผนก</td>--%>
<%--									<td colspan='2'>{{headdata.bu4}}</td>--%>
<%--									<td class='b' swlang code=''>ฝ่าย</td>--%>
<%--									<td colspan='2'>{{headdata.bu3}}</td>--%>
<%--									<td class='b' swlang code=''>ด้าน</td>--%>
<%--									<td colspan='3'>{{headdata.bu2}}</td>--%>
<%--								</tr>--%>
								<tr>
									<td class='b' colspan="5">ผลการประเมินฝ่ายบุคคล <input type="text" ng-model="formdata.form[0].percentFromHr" ng-disabled='headdata.status == 2 || notedit'> %</td>

									<td class='b' style="width:50%">ผลประเมินจากหน่วยงาน <input type="text" ng-model="formdata.form[0].percentFromDept" ng-disabled='headdata.status == 2 || notedit'> %</td>

								</tr>
							</table>
						</div>
						<div class='table-responsive'>
							<table class="table table-head table-bordered" >
								<tr>
									<th class='text-left' colspan='10'>ค่าคะแนนตามตำแหน่งงาน</th>
								</tr>
								<tr>
									<td class='center' colspan='3' style="width:25%">ค่าคะแนนตามตำแหน่งงาน<br>ประเมินโดยฝ่ายบุคคล</td>
									<td class='center' colspan='2' style="width:25%">คะแนนคุณวุฒิ/<br>ความรู้พื้นฐาน</td>
									<td class='center' colspan='3' style="width:25%">คะแนนความสามารถ<br>ทางการบริหาร/ ปฏิบัติงาน</td>
									<td class='center' colspan='2' style="width:25%">คะแนนรวม</td>
								</tr>
								<tr>
									<td class='center' colspan="1">Job Name</td>
									<td class='center' colspan='2'><input ng-disabled='headdata.status == 2 || notedit' type="text" ng-model="formdata.form[0].jobName" ></td>

									<td class='center' colspan='2' rowspan="2"><input ng-disabled='headdata.status == 2 || notedit' type="text" ng-model="formdata.form[0].basicallyScore"> คะแนน</td>
									<td class='center' colspan='3' rowspan="2"><input ng-disabled='headdata.status == 2 || notedit' type="text" ng-model="formdata.form[0].managementScore"> คะแนน</td>
									<td class='center' colspan='2' rowspan="2"><input ng-disabled='headdata.status == 2 || notedit' type="text" ng-model="formdata.form[0].sumScore"> คะแนน</td>
								</tr>
								<tr>
									<td class='center' colspan="1">Job Code</td>
									<td class='center' colspan='2'><input ng-disabled='headdata.status == 2 || notedit' type="text" ng-model="formdata.form[0].jobCode"></td>
								</tr>
							</table>
						</div>
						<div class='table-responsive'>
							<table class="table table-head table-bordered" >
								<tr>
									<th class='text-left' colspan='10'>ประเมินค่างานจากผลสัมภาษณ์ โดยผู้บริหาร / ผู้จัดการฝ่าย</th>
								</tr>
								<tr>
									<td class='text-left' colspan='10' >คาดว่าผู้สมัครจะสามารถปฏิบัติงานได้ตามมาตรฐานงานที่ <input ng-disabled='headdata.status == 2 || notedit' type="text" ng-model="formdata.form[0].estimatePercentJob"> % ของตำแหน่งงาน</td>

								</tr>
								<tr>
									<td class='text-left' >
										ผลการคัดเลือกจากหน่วยงาน
										<input ng-disabled='headdata.status == 2 || notedit' type="radio" name="deptRes" value="1" ng-model="formdata.form[0].resultFromDept"> ควรจ้าง
										<input ng-disabled='headdata.status == 2 || notedit' type="radio" name="deptRes" value="2" ng-model="formdata.form[0].resultFromDept"> ไม่ควรจ้าง
										<input ng-disabled='headdata.status == 2 || notedit' type="radio" name="deptRes" value="3" ng-model="formdata.form[0].resultFromDept"> สำรอง
									</td>
									<td class='text-left' >
										ขอจ้างเป็น
										<input ng-disabled='headdata.status == 2 || notedit' type="radio" name="empRes" value="1" ng-model="formdata.form[0].hire"> รายวัน
										<input ng-disabled='headdata.status == 2 || notedit' type="radio" name="empRes" value="2" ng-model="formdata.form[0].hire"> รายเดือน
									</td>

								</tr>
								<tr>
									<td class='text-left' colspan='10'>ความเห็นหน่วยงานเพิ่มเติม <input ng-disabled='headdata.status == 2 || notedit' style="width: 80%" type="text" ng-model="formdata.form[0].remarkFromDept"></td>
<%--									<td class='center' > </td>--%>
								</tr>
							</table>
						</div>
						<div class='table-responsive'>
							<table class="table table-head table-bordered" >
								<tr>
									<th class='text-left' colspan='6'>รายได้อื่นๆ สำหรับพนักงานขายเท่านั้น</th>
								</tr>
								<tr ng-repeat="$item in formdata.form[0].incentives">
									<td class='center' >{{$index + 1}}</td>
									<td class='center' >{{$item.name}}</td>
									<td class='center' ><input ng-disabled='headdata.status == 2 || notedit'  type="text" ng-model="$item.cost"></td>
									<td class='center' >บาท/วัน/เดือน</td>
									<td class='center' >เริ่มจ่ายตั้งแต่วันที่</td>
									<td class='center' ><input ng-disabled='headdata.status == 2 || notedit'  type="text" ng-model="$item.startDate"></td>
								</tr>
								<tr>
									<td class='text-right' colspan='5' >ลงชื่อ <input ng-disabled='headdata.status == 2 || notedit' style="width: 20%"  type="text" ng-model="formdata.form[0].sign.manager"></td>
									<td class='center' > ผู้บริหาร / ผู้จัดการฝ่าย</td>
								</tr>

							</table>
						</div>
						<div class='table-responsive'>
							<table class="table table-head table-bordered" >
								<tr>
									<th class='text-left' colspan='9'>การประเมินและข้อสรุปของฝ่ายบุคคล</th>
								</tr>
								<tr>
									<td class='center' >ผลการประเมินความสามารถผู้สมัคร</td>
									<td class='center' ><input ng-disabled='headdata.status == 2 || notedit'  type="text" ng-model="formdata.form[0].hr.score"></td>
									<td class='center' >คะแนน</td>
									<td class='center' >คูณอัตราจ้าง</td>
									<td class='center' ><input ng-disabled='headdata.status == 2 || notedit'  type="text" ng-model="formdata.form[0].hr.multiple"></td>
									<td class='center' >บาท / Point</td>
									<td class='center' >เท่ากับรายได้พึงประเมิน(รวมเงินโบนัสเฉลี่ย)</td>
									<td class='center' ><input ng-disabled='headdata.status == 2 || notedit'  type="text" ng-model="formdata.form[0].hr.incomeWithBonus"></td>
									<td class='text-left' >บาท</td>
								</tr>
								<tr>
									<td class='center' colspan='6'></td>
									<td class='center' >ประเมินการรายได้รวมต่อเดือน(ไม่รวมเงินโบนัส)</td>
									<td class='center' ><input ng-disabled='headdata.status == 2 || notedit'  type="text" ng-model="formdata.form[0].hr.incomeWithoutBonus"></td>
									<td class='text-left' >บาท</td>
								</tr>
								<tr>
									<td class='center' >1.รายได้คงที่ตามตำแหน่ง = Basic Salary</td>
									<td class='center' ><input ng-disabled='headdata.status == 2 || notedit'  type="text" ng-model="formdata.form[0].hr.basicSalary"></td>
									<td class='text-left' colspan='4'>บาท</td>
									<td class='center' >2.รายได้แปรผันตามผลงาน = M1PI</td>
									<td class='center' ><input ng-disabled='headdata.status == 2 || notedit'  type="text" ng-model="formdata.form[0].hr.m1pi"></td>
									<td class='text-left' >บาท</td>
								</tr>
								<tr>
									<td class='center' > Pre-QPI</td>
									<td class='center' ><input ng-disabled='headdata.status == 2 || notedit'  type="text" ng-model="formdata.form[0].hr.qpi"></td>
									<td class='text-left' colspan='4'>บาท</td>
									<td class='center' > M3PI</td>
									<td class='center' ><input ng-disabled='headdata.status == 2 || notedit'  type="text" ng-model="formdata.form[0].hr.m3pi"></td>
									<td class='text-left' >บาท</td>
								</tr>
								<tr>
									<td class='text-right' colspan='7' >ลงชื่อ <input ng-disabled='headdata.status == 2 || notedit' style="width: 20%"  type="text" ng-model="formdata.form[0].sign.hr"></td>
									<td class='center' colspan='2'> หน.ผ./ ผจก.ฝ่ายบุคคล</td>
								</tr>
							</table>
						</div>
						<div class='table-responsive'>
							<table class="table table-head table-bordered" >
								<tr>
									<th class='text-left' colspan='9'>การเห็นชอบของผู้บริหาร BU (ผู้จัดการอาวุโส /Ex. Director BU)</th>
								</tr>
								<tr>
									<td class='text-left' colspan='9' >
										1.สรุปผลการพิจารณา
										<input ng-disabled='headdata.status == 2 || notedit' type="radio" name="exRes" value="1" ng-model="formdata.form[0].ex.result"> อนุมัติ
										<input ng-disabled='headdata.status == 2 || notedit' type="radio" name="exRes" value="2" ng-model="formdata.form[0].ex.result"> ไม่อนุมัติ
										<input ng-disabled='headdata.status == 2 || notedit' type="radio" name="exRes" value="3" ng-model="formdata.form[0].ex.result"> อื่นๆ (ถ้ามี)
										<input ng-disabled='headdata.status == 2 || notedit' type="text" style="width: 70%" ng-model="formdata.form[0].ex.other" ng-disabled="formdata.form[0].ex.result != '3'">
									</td>
								</tr>
								<tr>
									<td  rowspan="2" colspan='2'>2.สรุปผลการประเมินรายได้</td>
									<td class='text-left' colspan='8' >
										<input ng-disabled='headdata.status == 2 || notedit' type="radio" name="esIncome" value="1" ng-model="formdata.form[0].ex.estimateIncome"> ตามมาตรฐานประเมินตำแหน่งงาน
									</td>
								</tr>
								<tr>
									<td class='text-left' >
										<input ng-disabled='headdata.status == 2 || notedit' type="radio" name="esIncome" value="2" ng-model="formdata.form[0].ex.estimateIncome"> อื่นๆ (ถ้ามี)
										<input ng-disabled='headdata.status == 2 || notedit' type="text" style="width: 50%" ng-model="formdata.form[0].ex.otherEstimateIncome" ng-disabled="formdata.form[0].ex.estimateIncome != '2'">
									</td>
								</tr>
								<tr>
									<td class='text-right' colspan='8'>ลงชื่อ <input ng-disabled='headdata.status == 2 || notedit' style="width: 20%"  type="text" ng-model="formdata.form[0].sign.ex"></td>
									<td class='center' > ผู้บริหาร BU</td>
								</tr>
							</table>
						</div>
						<div class='table-responsive'>
							<table class="table table-head table-bordered" >
								<tr>
									<th class='text-left' colspan='9'>การอนุมัติของ Seninor Ex Director / COO BU ขึ้นไป</th>
								</tr>
								<tr>
									<td class='center' colspan='9'>
										<input ng-disabled='headdata.status == 2 || notedit' type="text" style="width: 100%" ng-model="formdata.form[0].seniorEx.remark">
									</td>
								</tr>
								<tr>
									<td class='text-right' style="width: 75%">ลงชื่อ <input ng-disabled='headdata.status == 2 || notedit' style="width: 25%"  type="text" ng-model="formdata.form[0].sign.seniorEx"></td>
									<td class='center' > Seninor Ex Director / COO BU</td>
								</tr>
							</table>
						</div>
					</tbody>
				</table>
				<div class='pagebreak'></div>
				<div class="center new-line">
					<button type="button" class="btn btn-info" ng-click='saveDraff()'  ng-disabled='headdata.status == 2 ' >ผลประเมินก่อนหน้า</button>
					<button type="button" class="btn btn-info" ng-click='saveDraff()' swlang code='SW012867' ng-disabled='headdata.status == 2 ' ng-hide='notedit'>Save Draft</button>
					<button type="button" class="btn btn-info" ng-click='save()' swlang code='SW012098' ng-disabled='headdata.status == 2 ' ng-hide='notedit'>Submit</button>
					<%-- <button type="button" class="btn btn-warning" ng-click='goprint()' swlang code='SW005455'>Print</button> --%>
				</div>
				<div class='spece-bot'></div>
				</div> <!-- end csc-block-white -->
			</div> <!-- end csc-content -->
			</form>
		</section>
	</body>
</html>