WEL_EMV005.jsp 4.86 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
<%@ 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="EMV" class="com.csc.library.system.Task" scope="page"/>
<jsp:setProperty name="EMV" property="appname" value="empview" />
<%
	EMV.setChannel(request, response);
	HelpEntry screen = (HelpEntry) EMV.process("HelpEntry","WEL_EMV005");
	String	lang = screen.getUProfile().get("lang");
	CheckNull chk=new CheckNull();
	ThaiUtilities thail = new ThaiUtilities();
	String condition=thail.ASCII2Unicode(chk.chkNullString(request.getParameter("__fixCon")));  
	CscCalendar cs=new CscCalendar();
	screen.process();

%>
<!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=TIS620" />

		<script type="text/javascript" src="../JS/EVENTS.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/SCREEN.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 src="../JS/VIEWCALENDAR.js"></script>
		
		<script>
			setLang("<%=screen.getUProfile().get("lang")%>");
			var swap = new swaplang();
            var titlename = swap.swap2String("SW002018");
			setPageTitle(titlename);
			
				function goHelp(helpName,inputName){
				var helpReturn;
				var fcon="";
					if(inputName=="__asset1" ){
						helpReturn="__asset1:assetid";
					}else 		if(inputName=="__asset2" ){
						helpReturn="__asset2:assetid";
					}	
					 helpPageCon(helpName,helpReturn,fcon);
				 
			}

			function GoSearch(){
					search();
			}

			function GoPage(years1,employeeid,group){
					with(document.cscform){
							__fixCon.value="years='"+years1+"'and employeeid='"+employeeid+"' and healthygid='"+group+"' ";
							__cmd.value="search";
							action="WEL_EMV005.jsp";
							submit();
					}
			}
		</script>

	</head>
	<body>
		<div class="bg-com"></div>
		<jsp:include page="EMV_HEADMENU.jsp" flush="true" />
	
		<section>
			<div class="container csc-content">
				<form name="cscform" class="form-horizontal" method="post" action="WEL_EMV005.jsp">
					<input name="__cmd" type="hidden" value="">
					<input type="hidden" name="__calendar">
					<script language="javascript">getInputFormatDate();</script>
					<input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>">
					<input type="hidden" name="__help" value="">
					<input type="hidden" name="__goPage" value="">
					<input type="hidden" name="__orderBy" value="">
					<input type="hidden" name="__helpReturn" value="">
					<input type="hidden" name="__helpName" value="">
					<input type="hidden" name="__pageCall" value="">
					<input type="hidden" name="__referPage" value="">
					<input type="hidden" name="__lockPage" value="">
					<input type="hidden" name="__companyid"  value="<%=screen.getUProfile().get("companyid")%>">
					<input type="hidden" name="__fixCon" value="<%=condition%>">
					<input type="hidden" name="__calendar" value="">
					<input name="__screen" type="hidden" value="WEL_EMV005">	
				
					<table class="table table-head table-hover table-bordered table-title-left ">
						<thead>
							<tr>
								<th class="table-title" colspan=3><span swlang code='SW002018'>History of healthy</span>&nbsp;<%=screen.getString("years")%> (<%=screen.getString("healthdate")%>)</th>
							</tr>
							<tr>
								<th swlang code='SW002019'>Seq no</th>
								<th swlang code='SW002020'>List of healthy</th>
								<th swlang code='SW000012'>Description</th>
							</tr>
						</thead>
						<tbody>
							<% screen.nextRec();%>
							<%
								java.text.DecimalFormat df=new java.text.DecimalFormat ("00");
								for(int i =1;i<=50;i++)
								{
									if(!screen.getString("healthy"+df.format(i)).equalsIgnoreCase("NONE"))
									{
							%>
							<tr>
								<td class="center">
									<%=df.format(i)%><input type="hidden" name="__col<%=i%>" value="<%=screen.getString("healthy"+df.format(i))%>">
									<input type="hidden" name="__col<%=i%>" value="<%=screen.getString("healthy"+df.format(i))%>">
								</td>
								<td><%=screen.getString("coldesc"+df.format(i))%></td>
								<td><%=screen.getString("value"+i)%></td>
							</tr>
							<%   
									}
								}
							%>
						</tbody>
					</table>
							
				</form>
			</div>
		</section>
		<jsp:include page="FOOTER.jsp" flush="true" />
	</body>
</html>