APPRAISAL_BU_SENA.jsp 5.25 KB
Newer Older
Thitichaipun Wutthisak committed
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
<!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.*"  %>
<%@ include file="../CHECKPROFILE.jsp" %>
<% request.setCharacterEncoding("UTF-8"); %>
<%
	CheckNull chk = new CheckNull();

	String p_apsid = chk.chkNullString(request.getParameter("apsid"));
	String p_apsgroup = chk.chkNullString(request.getParameter("apsgroup"));
	String p_subdata = chk.chkNullString(request.getParameter("subdata"));

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

	if (up == null){
		return ;
	}
%>
<html ng-app='APP_BU'>
	<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()%>/CSS/EMPVIEW_LAYOUT.min.css">
		<script type="text/javascript" src="../JS/SCREEN.js"></script>
		<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
		<script type="text/javascript" src="../public/lib/angular/angular.min.js"></script>
		<script type="text/javascript" src="../JS/ANGULAR/SCREEN_ANGULAR.js"></script>
		<script type='text/javascript' 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/ApsBuForm.Controller.js'></script>
		<style>
			.head-sm{
				width:9%;
			}
			.head-score{
				width: 10%;
			}
			.head-desc{
				width: 61%;
			}
			.head-comment{
				width: 20%;
			}
		</style>
		<script type='text/javascript'>
			setLang("<%=up.get("lang")%>")
		</script>
	</head>
	<body>
		<div class='bg-com'></div>
		<section ng-controller='ApsBuForm'>
			<div class='container csc-content'>
				<form name="cscform" class="form-horizontal" method="post">
					<input type='hidden' name='apsid' value="<%=p_apsid%>" />
					<input type='hidden' name='apsgroup' value="<%=p_apsgroup%>" />
					<input type='hidden' name='subdata' value="<%=p_subdata%>" />
					{{ setMyLang("<%=up.get("lang")%>") }}
					<div class="csc-block">
						<div class="center">
							<h2 class="csc-block-head" swlang code='SW011258'>Performance Appraisal</h2>
						</div>
						<div class="row">
							<div class="form-group">
								<div class="col-md-5 col-sm-5 col-xs-5">
									<label class="control-label label-right" >หน่วยงานที่ได้รับการประเมิน</label>
								</div>
								<div class="col-md-6 col-sm-6 col-xs-6">
									<label class="control-label" >{{ assessordata[0].budesc }}</label>
								</div>
							</div>
						</div><!-- row -->
						<div class="row">
							<div class="form-group">
								<div class="col-md-5 col-sm-5 col-xs-5">
									<label class="control-label label-right" swlang code='SW012262'>Year of Appraisal</label>
								</div>
								<div class="col-md-6 col-sm-6 col-xs-6">
									<label class="control-label" >{{ assessordata[0].apsyear }}</label>
								</div>
							</div>
						</div><!-- row -->
						<div class="row">
							<div class="form-group">
								<div class="col-md-5 col-sm-5 col-xs-5">
									<label class="control-label label-right" swlang code='SW012868'>Appraisal Type</label>
								</div>
								<div class="col-md-6 col-sm-6 col-xs-6">
									<label class="control-label">{{ assessordata[0].apstype }}</label>
								</div>
							</div>
						</div><!-- row -->
					</div><!-- end csc-block -->

					<div class='csc-block-white'>
						<div class="table-responsive">
							<table class="table table-head table-hover table-bordered">
								<thead>
									<tr>
										<th class="head-sm" swlang code='SW000193'>seq</th>
										<th class="head-desc" swlang code='SW002097'>Topic</th>
										<th class="head-score" swlang code='SW000013'>Score</th>
										<th class="head-comment" swlang code='SW001040'>Comment</th>
									</tr>
								</thead>
								<tbody>
									<tr ng-repeat='aps in apsform'>
										<td class='center'>{{ $index+1 }}</td>
										<td>{{ aps.desc }}</td>
										<td>
											<select class='form-control' ng-model='aps.score' ng-disabled='assessordata[0].apsstate == 1'>
												<option ng-repeat='sel in selectscore' value='{{ sel.score }}'>{{ getLabel(sel.show) }}</option>
											</select>
										</td>
										<td>
											<input class='form-control' ng-model='aps.comment' ng-disabled='(aps.score!=1 && aps.score!=5) || assessordata[0].apsstate == 1' type='text' ng-required="checkRequire(aps)">
										</td>
									</tr>
								</tbody>
							</table>
						</div> <!-- end table-responsive -->
						<div class="center">
							<a class="btn btn-primary" ng-click='saveDraff()' ng-disabled='assessordata[0].apsstate == 1' swlang code='SW012867'>Save Draft</a>
							<a class="btn btn-primary" ng-click='save()' ng-disabled='assessordata[0].apsstate == 1' swlang code='SW012098'>Submit</a>
						</div>
					</div>
				</form>
			</div>
		</section>
	</body>
</html>