<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*"  %>
<%@ include file="../CHECKPROFILE.jsp" %>
<% request.setCharacterEncoding("UTF-8"); %>
<jsp:useBean id="REV011" scope="page" class="com.csc.library.system.Task"/>
<jsp:setProperty name="REV011" property="appname" value="empview" />
<%
	REV011.setChannel(request ,response);
	UIManager screen=(UIManager) REV011.process("MultiEntry","REV011");
	MultiLine multi2 = screen.getMultiLine("MCOMMITTEE");
	MultiLine multi3 = screen.getMultiLine("MAPPTRAN");
	CheckNull chkNull = new CheckNull();	


%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" ng-app="myHR">
	<head>

		<title>Requisition Details</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" type="text/css" href="../CSS/Bootstrap/css/bootstrap.css" />
		<link rel="stylesheet" type="text/css" href="../CSS/EMPVIEW_LAYOUT.min.css" />

		<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
		<script type="text/javascript" src="../JS/UTILITIES.js"></script>
		<script type="text/javascript"src="../JS/ACTIVE_OBJECT.js"></script>
		<script type="text/javascript" src="../JS/DDMENU.js"></script>
		<script type="text/javascript"src="../JS/EVENTS.js"></script>
		<script type='text/javascript' src='../JS/SCREEN.js'></script>
		<script src='../JS/EMPLOYEE.js'></script>
		<script src='../JS/DATEINPUT.js'></script>
		<script src='../JS/VIEWCALENDAR.js'></script>
		<script src='../JS/HOTKEY.js'></script>
		<script type="text/javascript" src="../JS/angular-1.3.15/angular.js"></script>
		<script type="text/javascript" src="../JS/ANGULAR/SCREEN_ANGULAR.js"></script>

		

		<script type="text/JavaScript">
			setLang("<%=screen.getUProfile().get("lang")%>");
			var swap = new swaplang();
            var titlename = swap.swap2String("SW012375");
			setPageTitle(titlename);

			function goView(id){
				var  pam="REV001.jsp?__help=__applicantid$"+id+";&__cmd=search;&isView=true";
				window.open(pam,"AppInfo","left=10,top=10,width=1250,height=620,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
			}

			function toolTip(){}
		

		</script>

	</head>
	<body>
		<div class="bg-com"></div>
	
		<div class="container csc-content">
			<form name="cscform" class="form-horizontal" method="post" action="REV011.jsp">
				<%=screen.InitialVariable()%>
				<script>getInputFormatDate();</script>
				<input name="__cmd" type="hidden" value="">
				<input name="__screen" type="hidden" value="REV011">
				<input name="__calendar" type="hidden">
				<input name="__notNull" type="hidden" value="">
				<input name="__help" type="hidden" value="">
				<input name="__gorec" type="hidden" value="">
				<input name="__headMulti" type="hidden" value="REV011">
				<input name="__childMulti" type="hidden" value="">
				<input name="__multiTable" type="hidden" value="MCANDIDATERE">
				<input name="__ack" type="hidden" value="">
				<input name="__maxrec" type="hidden" value="<%=screen.getTable("MCANDIDATERE").recCount()%>">
				<input name="__language" type="hidden" value='<%=screen.getUProfile().get("lang")%>'>
				<input name="__lastrec" type="hidden" value="<%=screen.getTable("MCANDIDATERE").recCount()%>">
				<input name="__companyid"  type="hidden" value='<%=screen.getUProfile().get("companyid")%>'>
				<input name="__employeeid"  type="hidden" value='<%=screen.getUProfile().get("employeeid")%>'>
				<input name="__afterUpdate" type="hidden" value="">
				<input name="__referPage" type="hidden"  value="">
				<input name="__fixCon" type="hidden"  value="">
				<input type="hidden" name="__list" VALUE="<%=chkNull.chkNullString(request.getParameter("__list"),"")%>">
				<input type="hidden" name="__autonum" value="">
				<input type="hidden" name="__clean" value="1">
			
				<table class="table table-head table-hover table-bordered table-left table-fixed">
					<tr>
						<th colspan="4" swlang code='SW002172'>Details</th>
					</tr>
					<tr>
						<th><%=screen.getLabel("REQUESTID")%></th>
						<td><%=screen.getDataLabel("REQUESTID")%></td>
						<th><%=screen.getLabel("REQ_STATUS")%></th>
						<td><%=screen.getRecord().getSystemCode("REQ_STATUS")%></td>
					</tr>
					<tr>
						<th><%=screen.getLabel("DOC_DATE")%></th>
						<td><%=screen.getDataLabel("DOC_DATE")%></td>
						<th><%=screen.getLabel("JOBID")%></th>
						<td><%=screen.getDataLabel("MJOBCODE","TDESC")%></td>
					</tr>
					<tr>
						<th><%=screen.getLabel("POSITIONID")%></th>
						<td><%=screen.getDataLabel("MPOSITION","TDESC")%></td>
						<th><%=screen.getLabel("EMP_TYPE")%></th>
						<td><%=screen.getRecord().getSystemCode("EMP_TYPE")%></td>
					</tr>
					<tr>
						<th swlang code='SW002106'>No of requirement</th> 
						<td><%=screen.getDataLabel("EMP_NUM")%></td>
						<th swlang code='SW012137'>Salary range</th>
						<td><%=screen.getDataLabel("FROMSALARY")%> - <%=screen.getDataLabel("TOSALARY")%> <label swlang code='SW000796'>Baht</label></td>
					</tr>
					<tr>
						<th swlang code='SW003417'>Gender</th> 
						<td><%=screen.getRecord().getSystemCode("SEX")%></td>
						<th swlang code='SW000172'>Age</th> 
						<td><%=screen.getDataLabel("FROMAGE")%> - <%=screen.getDataLabel("TOAGE")%> <label swlang code='SW000717'>Year</label></td>
					</tr>
					<tr>
						<th swlang code='SW012138'>Education Degree</th> 
						<td><%=screen.getDataLabel("DEGREE")%></td>
						<th><%=screen.getLabel("MAJOR")%></th>
						<td><%=screen.getDataLabel("MAJOR")%></td>
					</tr>
					<tr>
						<th><%=screen.getLabel("EXPERIENCE")%></th>
						<td><%=screen.getDataLabel("EXPERIENCE")%></td>
						<th><%=screen.getLabel("OTHER")%></th>
						<td><%=screen.getDataLabel("OTHER")%></td>
					</tr>
					<tr>
						<th><%=screen.getLabel("REQ_TYPE")%></th>
						<td><%=screen.getRecord().getSystemCode("REQ_TYPE")%></td>
						<th><%=screen.getLabel("REQUEST_BY")%></th>
						<td><%=screen.getDataLabel("MEMPLOYEE","FULLNAME")%></td>
					</tr>
					<tr>
						<th><%=screen.getLabel("REQUEST_DATE")%></th>
						<td colspan="3"><%=screen.getDataLabel("REQUEST_DATE")%></td>
					</tr>
				</table>
				
				<table class="table table-head table-hover table-bordered table-title-left">
					<thead>
						<tr>
							<th class="table-title" colspan="7" swlang code='SW001980'>Committee List</th>
						</tr>
						<tr>
							<th><center swlang code='SW000274'>Employee ID</center></th>
							<th swlang code='SW007745'>name surname</th>
							<th swlang code='SW000057'>Position</th>
							<th><%=screen.getLabel("memployee","bu1")%></th>
							<th><%=screen.getLabel("memployee","bu2")%></th>
							<th><%=screen.getLabel("memployee","bu3")%></th>
							<th swlang code='SW006761'>Email</th>
						</tr>
					</thead>
					<tbody>
						<% 
							multi2.goFirst();
							for(int i=1;!multi2.eof();multi2.next(),i++)
							{ 
								multi2.getTable().getCurrentRecordManager().referLangOn();
						%>
						<tr>
							<td><center><%=multi2.getData("MEMPLOYEE","EMPLOYEEID")%></center></td>
							<td><%=multi2.getData("MEMPLOYEE","fullname")%></td>
							<td><%=multi2.getData("MEMPLOYEE","POSITIONNAME")%></td>
							<td><%=multi2.getData("MEMPLOYEE","BU1NAME")%></td>
							<td><%=multi2.getData("MEMPLOYEE","BU2NAME")%></td>
							<td><%=multi2.getData("MEMPLOYEE","BU3NAME")%></td>
							<td><%=multi2.getData("MEMPLOYEE","EMAIL")%></td>
						</tr>
						<%
								multi2.getTable().getCurrentRecordManager().referLangOff();
							}
						%>
					</tbody>
				</table>
				
				
				<table class="table table-head table-hover table-bordered table-title-left">
					<thead>
						<tr>
							<th class="table-title"colspan="6" swlang code='SW012139'>List of Approved Applicant</th>
						</tr>
						<tr>
							<th><center swlang code='SW001393'>No.</center></th>
							<th><center swlang code='SW002159'>Applicant ID</center></th>
							<th swlang code='SW007745'>name surname</th>
							<th><center  swlang code='SW000172'>Age</center></th> 
							<th><center  swlang code='SW002055'>Sex</center></th>
							<th swlang code='SW002163'>Expected Start date</th>
						</tr>
					</thead>
					<tbody>
						<% 
							multi3.goFirst();
							for(int i=1;!multi3.eof();multi3.next(),i++)
							{					multi3.getTable().getCurrentRecordManager().referLangOn();
						%>
						<tr>
							<td><center><%=i%></center></td>
							<td><center><a href="javascript:goView('<%=multi3.getData("V1MCANDIDATERE","APPLICANTID")%>')"><%=multi3.getData("V1MCANDIDATERE","APPLICANTID")%></a></center></td>
							<td><%=multi3.getData("MAPPLICANT","FULLNAME")%></td>
							<td><%=multi3.getData("MAPPLICANT","AGES")%></td>
							<td><%=multi3.getTable().getCurrentRecordManager().getSystemCode("MAPPLICANT","SEX")%></td>
							<td><%=multi3.getData("MAPPLICANT","EXP_STARTDATE")%></td>
						</tr>
						 <%
								multi3.getTable().getCurrentRecordManager().referLangOff();
							}
						%>  
					</tbody>
				</table>
				<%=screen.endJSP()%>
			</form>
		</div>
	</body>
</html>