APP_EMV013_MONITOR_3.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 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ page import="com.csc.library.entry.EmvHelpEntry,com.csc.library.system.*, com.csc.library.utilities.CheckNull"%>
<%@ page import="com.csc.library.report.ReportUDF, java.util.*"%>
<%@ include file="../CHECKPROFILE.jsp" %>
<% request.setCharacterEncoding("UTF-8"); %>
<jsp:useBean id="EMV" class="com.csc.library.system.Task" scope="page" />
<jsp:setProperty name="EMV" property="appname" value="EMPVIEW" />
<%
	EMV.setChannel( request, response );
	EmvHelpEntry screen = (EmvHelpEntry)EMV.process("EmvHelpEntry", "APP_EMV013");
	if(screen==null){
		return;
	}
	String employeeid = screen.getUProfile().get("employeeid");
	
	screen.setMaxLine(15);
	screen.getInquiry().setFilter("(apsapprove2 = '"+employeeid+"' ) and ASTID = 'AP70'");
	

	//out.println("filter :: " + screen.getInquiry().getFilter());

	screen.process();
	
%>

<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" />

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

		<script type="text/javascript">
			setLang("<%=screen.getUProfile().get("lang")%>");
			var swap = new swaplang();
            var titlename = swap.swap2String("SW012095");
			setPageTitle(titlename);
			
			function goHelp(helpName,inputName) {
				var helpReturn;
				var fixCon = "";
				if(inputName=="" ) {
					
				} 
						
				linkHelp_Return(helpName,helpReturn, fixCon);	
			}

			function ShowDetail( pages, _apsassessy,_apsassessor,_apsid ){
				with(document.cscform){
				var param = "APS702_GPF.jsp?apsid="+_apsid+"&apsassessor="+_apsassessor+"&apsassessy="+_apsassessy+"&bpage="+__screen.value+"&ass_level=3&isread=0&ass_level_save=1";
						//alert(param);
						action= param;
						submit();
				}
			}
			
			function GoSearch(){
				search();
			}
			
			function toolTip(){
			}
			

		</script>
		
		<section>
			<div class="container csc-content">
				<form name="cscform" class="form-horizontal" method="post" action="?">
					<%=screen.InitialVariable()%>
					<input type="hidden" name="__screen" value="APP_EMV013_MONITOR_3">
					<input type="hidden" name="__cmd" value="" />
					<input type="hidden" name="__help" value="" />
					<input type="hidden" name="__goPage" value="" />
					<input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>" />
					<input type="hidden" name="__orderBy" value="<%=request.getParameter("__orderBy")%>" />
					<input type="hidden" name="__helpName" value="<%=request.getParameter("__helpName")%>" />
					<input type="hidden" name="__pageCall" value="<%=request.getParameter("__screen")%>" />
					<input type="hidden" name="__fixCon" value="<%=request.getParameter("__fixCon")%>" />
					<input type="hidden" name="__subordinateid" value="" />
				
					<div class="table-responsive">	
						<table class="table table-head table-hover table-bordered table-title-left">
							<thead>
								<tr>
									<th colspan=8 class="table-title" swlang code='SW012095'>Probation Period Assessment</th>
								</tr>
								<tr>
									<th swlang code='SW000602'>Employeeid</th>
									<th swlang code='SW001984'>Fullname</th>
									<th><%=screen.getLabel("memployee","bu1")%></th>
									<th><%=screen.getLabel("memployee","bu2")%></th>
									<th><%=screen.getLabel("memployee","bu3")%></th>
									<th swlang code='SW005559'>Type</th>
									<th swlang code='SW000057'>Position</th>
									<th swlang code='SW000019'>Status</th>
								</tr>
							</thead>
							<tbody>
								<% 
									if(screen.getInquiry().recCount()>0) {
										while(screen.nextRec()){
												screen.referLangOn();
												ReportUDF ref = new ReportUDF();
								%>
								<tr>
									<%if(screen.getString("apsappstatus1").equals("A")){%>
									<td><a href="javascript:ShowDetail('ASP700','<%=screen.getString("apsassessy")%>','<%=screen.getString("apsassessor")%>','<%=screen.getString("apsid")%>');" ><%=screen.getString("simemp","employeeid")%></a></td>
									<%}else{%>
									<td><%=screen.getString("simemp","employeeid")%></td>
									<%}%>
									<td><%=screen.getString("simemp","fullname")%></td>
									<td><%=screen.getString("mbu1","tdesc")%></td>
									<td><%=screen.getString("mbu2","tdesc")%></td>
									<td><%=screen.getString("mbu3","tdesc")%></td>
									<td><%=screen.getInquiry().getCurrentDbRecord().getSystemCode("simemp","emp_type")%></td>
									<td><%=screen.getString("mposition","tdesc")%></td>
									<td><%=ref.getSystemCode("APPSTATUS_GPF","eng",screen.getString("apsappstatus2"))%></td>
								</tr>
								<%	
										screen.referLangOff();
										 } // while
									} else {
								%>
								<tr>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
								<%
									}
								%>
							</tbody>
						</table>
					</div>
					<%=screen.endJSP()%>
				</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>