TREMP012W.jsp 3.33 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
<%@ 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.*"  %>
<%@ page import="com.csc.library.databean.*"  %>
<% request.setCharacterEncoding("UTF-8"); %>
<%@ include file="../CHECKPROFILE.jsp" %>
<jsp:useBean id="TREMP012W" class="com.csc.library.system.Task" scope="page" />
<jsp:setProperty name="TREMP012W" property="appname" value="empview" />
<%
	TREMP012W.setChannel(request,response);
	UIManager screen = (UIManager) TREMP012W.process("MultiEntry","TREMP012",true);
	CheckNull chk = new CheckNull();

	//String newempid = request.getParameter("");
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" ng-app="myHR">
	<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" 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/angular-1.3.15/angular.js"></script>
		<script type="text/javascript" src="../JS/ANGULAR/SCREEN_ANGULAR.js"></script>
		<script type="text/javascript"src="../JS/EVENTS.js"></script>
		<script type="text/javascript"src="../JS/SCREEN.js"></script>
		<script type="text/javascript">setLang('<%=screen.getUProfile().get("lang")%>');</script>
		<script type='text/javascript'>
			function closePage(){
				window.opener.document.cscform.submit();
				window.close();
			}

			function refershMyPage(emp){
				var tmp = emp;
				with(document.cscform){
					if(tmp!=""){
						empid.value = tmp;
						submit();
					}
				}
			}
		</script>
	</head>
	<body class="bg-com">
		<section>

			<div class="container csc-content">
				<form name="cscform" method="post" class="form-horizontal" action="TREMP012W.jsp">
					<input type="hidden" name="__cmd" value="multi">
					<input type="hidden" name="__screen" value="TRA012">
					<input type="hidden" name="__childMulti" value="TRA0126E">
					<input type="hidden" name="__multiTable" value="RESERVER">
					<input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>">
					<input type="hidden" name="__trainingid" value="<%=chk.chkNullString(request.getParameter("__trainingid"))%>" />
					<input type="hidden" name="empid" value="">
					<div class="csc-block-white-crystal">
						<div class="center">
							<h2><script>swapLang('Employee list');</script></h2>
						</div>

						<div class="center">
							<div><script>swapLang('Please wait');</script></div>
							<div><script>swapLang("For process Reserver Detail");</script></div>
						</div>
					</div>

					<script type="text/javascript">refershMyPage('<%=chk.chkNullString(request.getParameter("newempid"))%>');</script>
					<%
						if(!chk.chkNullString(request.getParameter("empid")).equals("")){
							Simttraining simtrn = (Simttraining)screen.getRecord("TTRAINING");

							if (simtrn.addMultiReserver()){
					%>
								<script>closePage();</script>
					<%
							}
						}
					%>
				</form>
			</div>
		</section>
	</body>
</html>