<!-- ******************************** แบบประเมินสัมภาษณ์งาน 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("p_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/InterviewForm.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")%>')
			$(function () {
				let contextPath = '<%=request.getContextPath()%>'
				let hrFullname = '<%=up.get("fullname")%>'
				let hrJob = '<%=up.get("jobname")%>'
				let scope = angular.element($('form[name="cscform"]')).scope();
				scope.$apply(function () {
					scope.hrFullname = hrFullname
					scope.hrJob = hrJob
					scope.contextPath = contextPath
				});
			});
		</script>
	</head>
	<body ng-controller='InterviewForm'>
		<div class='bg-com'></div>
		<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 ng-hide="isReady" class='loading-page'>
					<div class='spiner'></div>
				</div>

			  <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>
									<th colspan='10'>ใบประเมินผู้สมัครสำหรับแผนกบุคคล</th>
								</tr>
								<tr>
									<td class='b' swlang code='SW001984'>fullname</td>
									<td colspan='4'>
<%--										{{headdata.fullname}}--%>
										<master-prefix code="{{candidate.personal.prefixid}}"></master-prefix> {{candidate.personal.fname[lang]}} <span style="display: inline-block">{{candidate.personal.lname[lang]}}</span>
									</td>
									<td class='b' swlang code='SW000057'>position</td>
									<td colspan='4'>
<%--										{{headdata.job}}--%>
										<master-jobcode code="{{candidate.jobid}}"></master-jobcode>
									</td>
								</tr>
							</table>
						</div>

						<div class='table-responsive'>
							<table class="table table-head table-bordered" >
								<tr>
									<th class='b'>No.</th>
									<th class='b'>Personality Profile</th>
									<th class='b'>ความหมาย</th>
									<th class='b'>Very Low</th>
									<th class='b'>Low</th>
									<th class='b'>Below Average</th>
									<th class='b'>Average</th>
									<th class='b'>Average Above</th>
									<th class='b'>High</th>
									<th class='b'>Very High</th>
								</tr>
								<tr>
									<td class='center'>1</td>
									<td>Dominance</td>
									<td>บารมี-อิทธิพล</td>
									<td class='center'><span class='score1 b' ng-show='examdata.dominance == 0'>{{examdata.dominance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.dominance == 1 || examdata.dominance == 2'>{{examdata.dominance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.dominance == 3'>{{examdata.dominance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.dominance == 4 || examdata.dominance == 5'>{{examdata.dominance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.dominance == 6 '>{{examdata.dominance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.dominance == 7 || examdata.dominance == 8'>{{examdata.dominance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.dominance >= 9 && examdata.dominance <= 14' >{{examdata.dominance}}</span></td>
								</tr>
								<tr>
									<td class='center'>2</td>
									<td>Assertiveness </td>
									<td>กล้าพูด-กล้ายืนหยัด</td>
									<td class='center'><span class='score1 b' ng-show='examdata.assertiveness == 0 || examdata.assertiveness == 1'>{{examdata.assertiveness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.assertiveness == 2 || examdata.assertiveness == 3'>{{examdata.assertiveness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.assertiveness == 4 || examdata.assertiveness == 5'>{{examdata.assertiveness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.assertiveness == 6 || examdata.assertiveness == 7'>{{examdata.assertiveness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.assertiveness == 8 '>{{examdata.assertiveness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.assertiveness == 9 || examdata.assertiveness == 10'>{{examdata.assertiveness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.assertiveness >= 11 && examdata.assertiveness <= 14' >{{examdata.assertiveness}}</span></td>
								</tr>
								<tr>
									<td class='center'>3</td>
									<td>Need for Achievement</td>
									<td>ต้องการความสำเร็จ</td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAchievement >= 0 && examdata.needForAchievement <= 2'>{{examdata.needForAchievement}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAchievement == 3 || examdata.needForAchievement == 4'>{{examdata.needForAchievement}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAchievement == 5'>{{examdata.needForAchievement}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAchievement == 6 || examdata.needForAchievement == 7'>{{examdata.needForAchievement}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAchievement == 8 '>{{examdata.needForAchievement}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAchievement == 9 || examdata.needForAchievement == 10'>{{examdata.needForAchievement}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAchievement >= 11 && examdata.needForAchievement <= 14' >{{examdata.needForAchievement}}</span></td>
								</tr>
								<tr>
									<td class='center'>4</td>
									<td>Orderliness</td>
									<td>ความมีระเบียบ</td>
									<td class='center'><span class='score1 b' ng-show='examdata.orderliness == 0 || examdata.orderliness == 1'>{{examdata.orderliness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.orderliness == 2 || examdata.orderliness == 3'>{{examdata.orderliness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.orderliness == 4 || examdata.orderliness == 5'>{{examdata.orderliness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.orderliness == 6 || examdata.orderliness == 7'>{{examdata.orderliness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.orderliness == 8 '>{{examdata.orderliness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.orderliness == 9 || examdata.orderliness == 10'>{{examdata.orderliness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.orderliness >= 11 && examdata.orderliness <= 14' >{{examdata.orderliness}}</span></td>
								</tr>
								<tr>
									<td class='center'>5</td>
									<td>Autonomy</td>
									<td>เป็นตัวของตัวเอง</td>
									<td class='center'><span class='score1 b' ng-show='examdata.autonomy >= 0 && examdata.autonomy <= 2'>{{examdata.autonomy}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.autonomy == 3'>{{examdata.autonomy}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.autonomy == 4 || examdata.autonomy == 5'>{{examdata.autonomy}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.autonomy == 6 || examdata.autonomy == 7'>{{examdata.autonomy}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.autonomy == 8 || examdata.autonomy == 9'>{{examdata.autonomy}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.autonomy == 10 || examdata.autonomy == 11'>{{examdata.autonomy}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.autonomy >= 12 && examdata.autonomy <= 14' >{{examdata.autonomy}}</span></td>
								</tr>
								<tr>
									<td class='center'>6</td>
									<td>Need for Affiliation</td>
									<td>ต้องการสัมพันธ์</td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAffiliation >= 0 && examdata.needForAffiliation <= 3'>{{examdata.needForAffiliation}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAffiliation == 4'>{{examdata.needForAffiliation}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAffiliation == 5 || examdata.needForAffiliation == 6'>{{examdata.needForAffiliation}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAffiliation == 7 || examdata.needForAffiliation == 8'>{{examdata.needForAffiliation}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAffiliation == 9 || examdata.needForAffiliation == 10'>{{examdata.needForAffiliation}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAffiliation == 11 || examdata.needForAffiliation == 12'>{{examdata.needForAffiliation}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForAffiliation == 13 || examdata.needForAffiliation == 14' >{{examdata.needForAffiliation}}</span></td>
								</tr>
								<tr>
									<td class='center'>7</td>
									<td>Nurturance</td>
									<td>ชอบอภิบาลผู้อื่น</td>
									<td class='center'><span class='score1 b' ng-show='examdata.nurturance >= 0 && examdata.nurturance <= 3'>{{examdata.nurturance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.nurturance == 4 || examdata.nurturance == 5'>{{examdata.nurturance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.nurturance == 6'>{{examdata.nurturance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.nurturance == 7'>{{examdata.nurturance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.nurturance == 8 || examdata.nurturance == 9'>{{examdata.nurturance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.nurturance == 10 || examdata.nurturance == 11'>{{examdata.nurturance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.nurturance >= 12 && examdata.nurturance <= 14' >{{examdata.nurturance}}</span></td>
								</tr>
								<tr>
									<td class='center'>8</td>
									<td>Endurance</td>
									<td>ความอดทน</td>
									<td class='center'><span class='score1 b' ng-show='examdata.endurance == 0 || examdata.endurance == 1'>{{examdata.endurance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.endurance == 2 || examdata.endurance == 3'>{{examdata.endurance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.endurance == 4'>{{examdata.endurance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.endurance == 5 || examdata.endurance == 6'>{{examdata.endurance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.endurance == 7 || examdata.endurance == 8'>{{examdata.endurance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.endurance == 9 || examdata.endurance == 10'>{{examdata.endurance}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.endurance >= 11 && examdata.endurance <= 14' >{{examdata.endurance}}</span></td>
								</tr>
								<tr>
									<td class='center'>9</td>
									<td>Need for Recognition</td>
									<td>ต้องการเป็นที่ยกย่อง</td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForRecognition >= 0 && examdata.needForRecognition <= 4'>{{examdata.needForRecognition}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForRecognition == 5 || examdata.needForRecognition == 6'>{{examdata.needForRecognition}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForRecognition == 7'>{{examdata.needForRecognition}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForRecognition == 8 || examdata.needForRecognition == 9'>{{examdata.needForRecognition}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForRecognition == 10'>{{examdata.needForRecognition}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForRecognition == 11 || examdata.needForRecognition == 12'>{{examdata.needForRecognition}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.needForRecognition == 13 || examdata.needForRecognition == 14' >{{examdata.needForRecognition}}</span></td>
								</tr>
								<tr>
									<td class='center'>10</td>
									<td>Initiativeness</td>
									<td>ชอบริเริ่ม-ชักชวน</td>
									<td class='center'><span class='score1 b' ng-show='examdata.initiativeness == 0 || examdata.initiativeness == 1'>{{examdata.initiativeness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.initiativeness == 2 || examdata.initiativeness == 3'>{{examdata.initiativeness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.initiativeness == 4'>{{examdata.initiativeness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.initiativeness == 5 || examdata.initiativeness == 6'>{{examdata.initiativeness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.initiativeness == 7'>{{examdata.initiativeness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.initiativeness == 8 || examdata.initiativeness == 9'>{{examdata.initiativeness}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.initiativeness >= 10 && examdata.initiativeness <= 14' >{{examdata.initiativeness}}</span></td>
								</tr>
								<tr>
									<td class='center'>11</td>
									<td>Sociability</td>
									<td>ชอบสังคม</td>
									<td class='center'><span class='score1 b' ng-show='examdata.sociability == 0 || examdata.sociability == 1'>{{examdata.sociability}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.sociability == 2 || examdata.sociability == 3'>{{examdata.sociability}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.sociability == 4 || examdata.sociability == 5'>{{examdata.sociability}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.sociability == 6'>{{examdata.sociability}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.sociability == 7 || examdata.sociability == 8'>{{examdata.sociability}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.sociability == 9 || examdata.sociability == 10'>{{examdata.sociability}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.sociability >= 11 && examdata.sociability <= 14' >{{examdata.sociability}}</span></td>
								</tr>
								<tr>
									<td class='center'>12</td>
									<td>Responsibility</td>
									<td>ความรับผิดชอบ</td>
									<td class='center'><span class='score1 b' ng-show='examdata.responsibility >= 0 && examdata.responsibility <= 3'>{{examdata.responsibility}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.responsibility == 4 || examdata.responsibility == 5'>{{examdata.responsibility}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.responsibility == 6 || examdata.responsibility == 7'>{{examdata.responsibility}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.responsibility == 8 || examdata.responsibility == 9'>{{examdata.responsibility}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.responsibility == 10'>{{examdata.responsibility}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.responsibility == 11'>{{examdata.responsibility}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.responsibility >= 12 && examdata.responsibility <= 14' >{{examdata.responsibility}}</span></td>
								</tr>
								<tr>
									<td class='center'>13</td>
									<td>Honesty</td>
									<td>ความซื่อสัตย์</td>
									<td class='center'><span class='score1 b' ng-show='examdata.honesty >= 0 && examdata.honesty <= 3'>{{examdata.honesty}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.honesty == 4'>{{examdata.honesty}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.honesty == 5 || examdata.honesty == 6'>{{examdata.honesty}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.honesty == 7'>{{examdata.honesty}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.honesty == 8 || examdata.honesty == 9'>{{examdata.honesty}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.honesty == 10 || examdata.honesty == 11'>{{examdata.honesty}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.honesty >= 12 && examdata.honesty <= 14' >{{examdata.honesty}}</span></td>
								</tr>
								<tr>
									<td class='center'>14</td>
									<td>Positive Attitude</td>
									<td>ทัศนคติทางบวก</td>
									<td class='center'><span class='score1 b' ng-show='examdata.positiveAttitude >= 0 && examdata.positiveAttitude <= 5'>{{examdata.positiveAttitude}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.positiveAttitude == 6 || examdata.positiveAttitude == 7' >{{examdata.positiveAttitude}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.positiveAttitude == 8'>{{examdata.positiveAttitude}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.positiveAttitude == 9 || examdata.positiveAttitude == 10'>{{examdata.positiveAttitude}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.positiveAttitude == 11'>{{examdata.positiveAttitude}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.positiveAttitude == 12'>{{examdata.positiveAttitude}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.positiveAttitude == 13 || examdata.positiveAttitude == 14' >{{examdata.positiveAttitude}}</span></td>
								</tr>
								<tr>
									<td class='center'>15</td>
									<td>Self-Control</td>
									<td>การควบคุมตนเอง</td>
									<td class='center'><span class='score1 b' ng-show='examdata.selfControl >= 0 && examdata.selfControl <= 3'>{{examdata.selfControl}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.selfControl == 4 || examdata.selfControl == 5' >{{examdata.selfControl}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.selfControl == 6'>{{examdata.selfControl}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.selfControl == 7 || examdata.selfControl == 8'>{{examdata.selfControl}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.selfControl == 9 || examdata.selfControl == 10'>{{examdata.selfControl}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.selfControl == 11 || examdata.selfControl == 12'>{{examdata.selfControl}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.selfControl == 13 || examdata.selfControl == 14' >{{examdata.selfControl}}</span></td>
								</tr>
								<tr>
									<td class='center'>16</td>
									<td>Consistency</td>
									<td>ความคงเส้นคงวา</td>
									<td class='center'><span class='score1 b' ng-show='examdata.consistency >= 0 && examdata.consistency <= 6'>{{examdata.consistency}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.consistency == 7 || examdata.consistency == 8' >{{examdata.consistency}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.consistency == 9 || examdata.consistency == 10'>{{examdata.consistency}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.consistency == 11'>{{examdata.consistency}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.consistency == 12'>{{examdata.consistency}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.consistency == 13 || examdata.consistency == 14'>{{examdata.consistency}}</span></td>
									<td class='center'><span class='score1 b' ng-show='examdata.consistency == 15' >{{examdata.consistency}}</span></td>
								</tr>
							</table>
						</div>

						<div class='table-responsive'>
							<table class="table table-head table-bordered" >
								<tr>
									<th>NO/Aptitude Profile</th>
									<th>Norm</th>
									<th>Result</th>
									<th>No/Aptitude Profile</th>
									<th>Norm</th>
									<th>Result</th>
									<th>NO/Aptitude Profile</th>
									<th>Norm</th>
									<th>Result</th>
								</tr>
								<tr>
									<td>2. Supervisor</td>
									<td class='center'>BK.bank</td>
									<td class='center'>{{score2}}</td>
									<td>5. Numerical</td>
									<td class='center'>BBC</td>
									<td class='center'>{{score5}}</td>
									<td>6. English</td>
									<td class='center'>BBC</td>
									<td></td>
								</tr>
								<tr>
									<td>3. Abstract Reasoning</td>
									<td class='center'>BBC</td>
									<td class='center'>{{score3}}</td>
									<td>7. Advanced English</td>
									<td class='center'>UTCC</td>
									<td class='center'>{{score4}}</td>
									<td></td>
									<td class='center'>FEZ</td>
									<td></td>
								</tr>
								<tr>
									<td>4. Clerical</td>
									<td class='center'></td>
									<td></td>
									<td></td>
									<td class='center'>ABAC</td>
									<td></td>
									<td></td>
									<td class='center'>ABAC</td>
									<td></td>
								</tr>
							</table>
						</div>

						<div class='table-responsive'>
							<table class="table table-head table-bordered" >
								<thead>
									<tr>
										<th>ลำดับ</th>
										<th>หัวข้อการพิจารณาของแผนกบุคคล</th>
										<th>ดีมาก/5</th>
										<th>ดี/4</th>
										<th>ปานกลาง/3</th>
										<th>พอใช้/2</th>
										<th>ไม่ดี/1</th>
									</tr>
								</thead>
								<tbody>
									<tr ng-repeat='aps in formdata.form'>
										<td class='center'>{{$index+1}}</td>
										<td>{{aps.topic}}</td>
										<td class='center'><input class='score2' ng-model='aps.score' ng-value='5' type='radio' ng-disabled='formdata.status == 2 || notedit'/></td>
										<td class='center'><input class='score2' ng-model='aps.score' ng-value='4' type='radio' ng-disabled='formdata.status == 2 || notedit'/></td>
										<td class='center'><input class='score2' ng-model='aps.score' ng-value='3' type='radio' ng-disabled='formdata.status == 2 || notedit'/></td>
										<td class='center'><input class='score2' ng-model='aps.score' ng-value='2' type='radio' ng-disabled='formdata.status == 2 || notedit'/></td>
										<td class='center'><input class='score2' ng-model='aps.score' ng-value='1' type='radio' ng-disabled='formdata.status == 2 || notedit'/></td>
									</tr>
									<tr>
										<td class='trash b' colspan='2' >สรุป</td>
										<td class='center b'>{{ getSumScoreByScore(5) }}</td>
										<td class='center b'>{{ getSumScoreByScore(4) }}</td>
										<td class='center b'>{{ getSumScoreByScore(3) }}</td>
										<td class='center b'>{{ getSumScoreByScore(2) }}</td>
										<td class='center b'>{{ getSumScoreByScore(1) }}</td>
									</tr>
									<tr>
										<td class='trash b' colspan='2' >รวมคะแนน</td>
										<td class='center b' colspan='5' >{{ getSumScore() }}</td>
									</tr>
								</tbody>
							</table>

							<div class='pagebreak'></div>

							<div class="form-horizontal">
	              <div class="row">
									<div class="col-lg-12">
										<label class="b">ความเห็นแผนกบุคคลเพิ่มเติม </label>
										<a class='icon-btn' ng-click='addComment()' ng-hide='formdata.status == 2 '><i class="fa fa-plus"></i></a>

										<a class='icon-btn' ng-click='delComment()' ng-hide='formdata.status == 2 '><i class="fa fa-minus"></i></a>
	                </div>
								</div>
								<div class="row new-line" ng-repeat='com in formdata.comment track by $index'>
									<div class="col-lg-1 col-xs-1 trash">{{ $index+1 }}.</div>
									<div class="col-lg-11 col-xs-11 showtxt">
										<p class="hide"></p>
										<textarea rows="5" cols="120" ng-model='com.comment' ng-disabled='formdata.status == 2 || notedit'></textarea>
	                </div>
								</div>
							</div>

							<div class="form-horizontal new-line">
	              <div class="row">
									<div class="col-lg-7 col-xs-12">
										<div class="controls form-inline ">
											<input class='score3_1' ng-model='formdata.appropriate' value='1' type='radio' ng-disabled='formdata.status == 2 || notedit'/>
											<label class='label1'>เหมาะสม</label>
											<input class='score3_2' ng-model='formdata.appropriate' value='0' type='radio' ng-disabled='formdata.status == 2 || notedit'/>
											<label class='label2'>ไม่เหมาะสม</label>
											<input class='score3_3' ng-model='formdata.appropriate' value='2' type='radio' ng-disabled='formdata.status == 2 || notedit'/>
											<label class='label3'>เหมาะกับตำแหน่งอื่น</label>
											<label class='label3' ng-show='formdata.appropriate == 2'>(ระบุ)</label>
											<input class='form-control extend3' ng-model='formdata.job_other' type='text' ng-disabled='formdata.status == 2 || notedit' ng-show='formdata.appropriate == 2'/>
											<label id='job_other' ></label>
										</div>
									</div>

									<div class="col-lg-3 hide-print">
										<label class="b">ลงชื่อ </label>
										<label>{{formdata.committee_fullname}} </label>
									</div>
									<div class="col-lg-2 hide-print">
										<label>{{(formdata.apsdate | date : 'yyyy-MM-dd') | ddmmyyyyDate}}</label>
										<label> ผู้สัมภาษณ์</label>
									</div>

									<div class="col-xs-5 show-print"></div>
									<div class="col-xs-4 show-print">
										<label class="b">ลงชื่อ </label>
										<label>{{formdata.committee_fullname}} </label>
									</div>
									<div class="col-xs-3 show-print">
										<label> {{(formdata.apsdate | date : 'yyyy-MM-dd') | ddmmyyyyDate}}</label>
										<label> ผู้สัมภาษณ์</label>
									</div>
								</div>
							</div>
						<div class="center new-line">
							<button type="button" class="btn btn-info" ng-click='saveDraff()' swlang code='SW012867' ng-disabled='formdata.status == 2 ' ng-hide='notedit'>Save Draft</button>
							<button type="button" class="btn btn-info" ng-click='save()' swlang code='SW012098' ng-disabled='formdata.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 -->
				</div>
      </form>
		</section>
	</body>
</html>