REV002.jsp 5.8 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 137 138 139 140 141 142 143 144 145 146 147 148 149 150
<!DOCTYPE html>
<%@ page import="com.csc.library.entry.*,com.csc.library.utilities.*,com.csc.library.session.*,java.net.*"  contentType="text/html;charset=UTF-8"%>
<%@ include file="../CHECKPROFILE.jsp" %>
<%request.setCharacterEncoding("UTF-8");%>
<jsp:useBean id="REV002" scope="page" class="com.csc.library.system.Task"/><%
		REV002.setChannel(request ,response);
		HelpEntry screen=(HelpEntry) REV002.process("HelpEntry","REV002HELP");
		if(screen==null)return;
		screen.process();
		//screen.getInquiry().setOrderBy("cast(branch as int) asc");
		//screen.getInquiry().setOrderBy("(case when branch='' or branch is null then '99' else branch end) asc ");
		screen.getInquiry().setOrderBy("branch");

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

		<title>Vacancy Position</title>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<script type='text/javascript' src='../JS/RECSCREEN.js'></script>
		<script type='text/javascript' src='/hr/dwr/interface/SearchDWR.js'></script>
		<script type='text/javascript' src='/hr/dwr/engine.js'></script>
		<script type='text/javascript' src='/hr/dwr/util.js'></script>
		<script type="text/javascript" src="/hr/dwr/interface/SystemCode.js"></script>
		<script type="text/javascript" src="/hr/dwr/interface/CscCalendar.js"></script>

	</head>
	<body>
		<div class="bg-com"></div>
		<jsp:include page="EMV_HEADMENU.jsp" flush="true" />

		<script>
			setLang('<%=screen.getUProfile().get("lang")%>');
            var titlename = swap.swap2String("SW012345");
			setPageTitle(titlename);
			function goPages(reqid,jobid,jobdesc){
				with(document.cscform){
					  __language.value = getLang();
					  __requestid.value=reqid;
					  __referee1positionid.value=jobid;
					  __referee1position_desc.value=jobdesc;
					  isView.value="false";
						action ="REC201.jsp";
					  __cmd.value="search";
					  submit();
				}
			}
		</script>

		<section>
			<div class="container csc-content">
				<div class="csc-block-white">
					<form name="cscform" class="form-horizontal" method="get" action="REV002.jsp">
						<%=screen.InitialVariable()%>
						<input type="hidden" name="__screen"  value="REV002">
						<input type="hidden" name="__help"  size="50" value="">
						<input name="__fixCon" type="hidden" value="">
						<input type="hidden" name="__cmd"  value="">
						<input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>">
						<input type="hidden" name="__referPage" value="">
						<input type="hidden" name="__notNull" value="">
						<input type="hidden" name="__calendar">
						<input type="hidden" name="__referee1positionid" value="">
						<input type="hidden" name="__referee1position_desc" value="">
						<input type="hidden" name="__id_people" value="<%=request.getParameter("__id_people")%>">
						<input type="hidden" name="__employeeid" value="<%=request.getParameter("__employeeid")%>">
						<input type="hidden" name="__requestid" value="">
						<input type="hidden" name="isView" value="">
						<input type="hidden" name="__language">
						<script>getInputFormatDate();</script>

						<div class="container csc-content">
							<div class="center">
								<h2 swlang code='SW002243'>Vacancy Job</h2>
							</div>

							<%while(screen.nextRec()){
									int vacancy = Integer.parseInt(screen.getString("EMP_NUM"))-Integer.parseInt(screen.getString("EMP_NUMENTERED"));
									if(vacancy<=0)
									continue;
							%>

							<table class="table table-head table-hover table-bordered table-left table-fixed-small">
								<tr>
									<th colspan="2">
										<a class="csc-link" href="javascript:goPages('<%=screen.getDataLabel("REQUESTID")%>','<%=screen.getDataLabel("MJOBCODE","JOBCODEID")%>','<%=screen.getDataLabel("MJOBCODE","TDESC")%>')">
											<%=screen.getUProfile().get("lang").equalsIgnoreCase("tha")?screen.getDataLabel("MJOBCODE","TDESC"):screen.getDataLabel("MJOBCODE","EDESC")%>
										</a>
										&nbsp;:&nbsp;<%=vacancy%>&nbsp;&nbsp;<label class="control-label" swlang code='SW000057'>Position</label>
									</th>
								</tr>

								<tr>
									<th swlang code='SW001957'>Job Descriptions</th>
									<td><%=screen.getDataLabel("RESPONSIBILITY").replace("\n","<br>")%></td>
								</tr>
								<tr>
									<th swlang code='SW002055'>Sex</th>
									<td><%=screen.getInquiry().getCurrentDbRecord().getSystemCode("sex")%></td>
								</tr>
								<tr>
									<th swlang code='SW000172'>Age</th>
									<td><%=screen.getDataLabel("FROMAGE")%>-<%=screen.getDataLabel("TOAGE")%></td>
								</tr>
								<tr>
									<th swlang code='SW005741'>Degree</th>
									<td><%=screen.getDataLabel("DEGREE")%></td>
								</tr>
								<tr>
									<th swlang code='SW000208'>Major Name</th>
									<td><%=screen.getDataLabel("MMAJOR","TDESC")%></td>
								</tr>
								<tr>
									<th swlang code='SW002112'>Experience</th>
									<td><%=screen.getDataLabel("EXPERIENCE")%></td>
								</tr>
								<tr>
									<th swlang code='SW002113'>Others</th>
									<td><%=screen.getDataLabel("OTHER")%></td>
								</tr>
								<tr>
									<th swlang code='SW000008'>Company</th>
									<td><%=screen.getDataLabel("MBRANCH","TDESC")%></td>
								</tr>
								<tr>
									<td colspan=2>
										<a swlang code='SW002357' <!--href="javascript:goPages('<%=screen.getDataLabel("REQUESTID")%>','<%=screen.getDataLabel("MJOBCODE","JOBCODEID")%>','<%=screen.getDataLabel("MJOBCODE","TDESC")%>')">-->
											Click here if there is no job you are interesting in
										</a>
									</td>
								</tr>
							</table>
							<%}%>
						</div>
					</form>
				</div>
			</div>
			<a href="#top" id="top-button">
				<i class="fa fa-angle-up"></i>
				<div class="top-word">Back to top</div>
			</a>
		</section>

		<%=screen.endJSP()%>

		<jsp:include page="FOOTER.jsp" flush="true" />
	</body>
</html>