ALLEMPLIST.jsp 2.36 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
<!DOCTYPE html>
<%@page contentType="text/html; charset=UTF-8" language="java" %>
<%@page import="com.csc.library.entry.*,com.csc.library.system.*,com.csc.library.utilities.*"%>
<%@page import="com.csc.library.database.*,com.csc.library.session.*"  %>
<% request.setCharacterEncoding("UTF-8"); %>
<jsp:useBean id="COM" class="com.csc.library.system.Task" scope="page" />
<%
	COM.setChannel(request,response);
	CheckNull chk = new CheckNull();

	String mybranch = chk.chkNullString(request.getParameter("branch"));
	String positid = chk.chkNullString(request.getParameter("positid"));
	String mybu1 = chk.chkNullString(request.getParameter("bu1"));
	String mybu2 = chk.chkNullString(request.getParameter("bu2"));
	String mybu3 = chk.chkNullString(request.getParameter("bu3"));
	String mybu4 = chk.chkNullString(request.getParameter("bu4"));
	String mybu5 = chk.chkNullString(request.getParameter("bu5"));

	/*String bu =  chk.chkNullString(request.getParameter("bu"));
	String buid = chk.chkNullString(request.getParameter("buid"));*/

	String myfilter="branch ='"+mybranch+"'";

	/*if (!(bu.equals("")) && (!(buid.equals(""))) ){
		myfilter +=" AND "+bu+"='"+buid+"'";
	} else if (!(positid.equals(""))){
		myfilter +=" AND emp_position ='"+positid+"'";
	}*/

	if (!(mybu1.equals(""))){
		myfilter +=" AND bu1 ='"+mybu1+"'";
	}

	if (!(mybu2.equals(""))){
		myfilter +=" AND bu2 ='"+mybu2+"'";
	}

	if (!(mybu3.equals(""))){
		myfilter +=" AND bu3 ='"+mybu3+"'";
	}

	if (!(mybu4.equals(""))){
		myfilter +=" AND bu4 ='"+mybu4+"'";
	}

	if (!(mybu5.equals(""))){
		myfilter +=" AND bu5 ='"+mybu5+"'";
	}

	if (!(positid.equals(""))){
		myfilter +=" AND emp_position ='"+positid+"'";
	}

	HelpEntry screen = (HelpEntry)COM.process("HelpEntry","MEMPLOYEEHELP");
	screen.getInquiry().setFilter(myfilter);
	screen.getInquiry().refresh();
%>
<html>
	<head>
		<link rel="stylesheet" href="../CSS/Bootstrap/css/bootstrap.css">
		<link rel="stylesheet" href="../CSS/ADMIN-MENU.css" />
		<link rel="stylesheet" href="../CSS/main_mini.css" />
		<link rel="stylesheet" href="../CSS/font-awesome.css">
	</head>
	<body>
		<ul class="list-unstyled">
			<%
				if (screen.getInquiry().recCount()>0){
					while (screen.nextRec()){
			%>
					<li>
						<span class="tree-nochild"><%=screen.getString("fullname")%></span>
					</li>
			<%
					}
				}
			%>
		</ul>
		<script type="text/javascript">
		</script>
	</body>
</html>