<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ page import="com.csc.library.database.*,com.csc.library.session.*,com.csc.library.system.*,com.csc.library.utilities.*"  %>
<%@ include file="../CHECKPROFILE.jsp" %>
<% request.setCharacterEncoding("UTF-8"); %>
<%
	UProfile up = null;
	if (session != null){
		up = (UProfile) session.getAttribute("userprofile");
	}
%>
<html ng-app='APP_BU'>
	<head>
		<title>Employee View</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</head>
	<body>
		<div class='bg-com'></div>
		<jsp:include page="EMV_HEADMENU.jsp" flush="true" />
		<script src="../public/lib/angular-resource/angular-resource.min.js"></script>
		<script type='text/javascript' src='JS/APP_BU_SENA/Module.Controller.js'></script>
		<script type='text/javascript' src='JS/APP_BU_SENA/services.js'></script>
		<script type='text/javascript' src='JS/APP_BU_SENA/MyBuAppraise.Controller.js'></script>
		<script type='text/javascript'>
			setLang("<%=up.get("lang")%>");
		</script>
		<section ng-controller='MyBuAppraise'>
			<div class='container container-90 csc-content'>
				<form name='cscform' class='form-horizontal'>
					<div class='table-responsive'>
						<table class='table table-head table-title-left table-hover table-bordered'>
							<thead>
								<tr>
									<th class='table-title' colspan='{{ bulist.length+1 }}'>แสดงผลการปะเมินแต่ละหน่วยงาน</th>
								</tr>
								<tr>
									<th swlang code='SW002097'>Topic</th>
									<th ng-repeat='bulist in bulist'>{{ bulist.budesc }}</th>
								</tr>
							</thead>
							<tbody>
								<tr ng-repeat='asdata in assessdata'>
									<td>{{ asdata.desc }}</td>
									<td ng-repeat='bulist in bulist' class='center'>
										{{ getScore(bulist.scorelist[$parent.$index].score) }}
									</td>
								</tr>
								<tr>
									<td class='center' swlang code='SW000024'>Total</td>
									<td ng-repeat='bu in bulist' class='center'> {{ calScore($index) }}</td>
								</tr>
							</tbody>
						</table>
					</div>
				</form>
			</div>
			<a href="#top" id="top-button">
				<i class="fa fa-angle-up"></i>
				<div class="top-word">Back to top</div>
			</a>
		</section>
		<jsp:include page="FOOTER.jsp" flush="true" />
	</body>
</html>