<%@ page contentType="text/html; charset=UTF-8"%> <%@ page import="com.csc.library.entry.HelpEntry,com.csc.library.system.Task"%> <%@ page import="com.csc.library.database.*,com.csc.library.session.*" %> <%@ page import="com.csc.library.utilities.CheckNull"%> <% request.setCharacterEncoding("UTF-8"); %> <jsp:useBean id="PSN104HELP" class="com.csc.library.system.Task" scope="page"/> <% CheckNull chk=new CheckNull(); PSN104HELP.setChannel(request, response); HelpEntry screen = (HelpEntry) PSN104HELP.process("HelpEntry","PSN104HELP"); String filter = "supervisor like ',%" +screen.getUProfile().get("employeeid") +"%,' "; screen.getInquiry().setFixFilter( filter ); //screen.getInquiry().setFilter( filter ); screen.setMaxLine(20); screen.process(); // set empview to UProfile String emp = chk.chkNullString(request.getParameter("__empview")); if( !emp.equalsIgnoreCase("") ){ String name =chk.chkNullString(request.getParameter("__subordinate_name")); screen.getUProfile().setEmv(emp, name); //out.println("Set UProfile {empview:" +emp +", subordinate_name:" +name +"}"); } String empview = screen.getUProfile().getEmvEmpId(); String subordinate_name = screen.getUProfile().getEmvName(); //out.println("Read UProfile {empview:" +empview +", subordinate_name:" +subordinate_name +"}"); %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="CSS/EMPVIEW.css" rel="stylesheet" type="text/css"> <link href="CSS/EMPLOYEE_VIEW.css" rel="stylesheet" type="text/css"> <script language="javascript" src="JS/SCREEN.js"></script> <script language="javascript">setLang("<%=screen.getUProfile().get("lang")%>");</script> <script language="JavaScript" type="text/JavaScript"> <!-- function setEmpView(emp,sname){ with(document.cscform){ __empview.value = emp; __subordinate_name.value = sname; submit(); } } //--> </script> <style type="text/css"> A{ font-family: "MS Sans Serif", sans-serif, "Microsoft Sans Serif"; font-size: 12px; text-decoration: underline; } A:link { color: #3366CC; text-decoration: underline; } A:visited { color: #3366CC; text-decoration: underline; } A:active { color: #3366CC; } A:hover { color: #3366CC; } TABLE.maxsize { width: 100%; } TABLE.large { width: 98%; } TABLE.largest{ width: 98%; } .forborder2 { FONT-FAMILY: "MS Sans Serif", sans-serif, "Microsoft Sans Serif"; background-color: #efefef; font-size: 12px; color: #3366CC; height: 14px; padding: 0px 2px; } .blankspace { height:10px; border: none; } td.row3 { BACKGROUND-COLOR: #CCCCCC; FONT-FAMILY: "MS Sans Serif", sans-serif, "Microsoft Sans Serif"; font-size: 12px; font-weight: bold; } td.bottom { FONT-FAMILY: "MS Sans Serif", sans-serif, "Microsoft Sans Serif"; font-size: 12px; color: #FFFFFF; font-weight: bold; background-color: #336699; border-style:none; border-width:medium; height: 10px; } td.header { FONT-FAMILY: "MS Sans Serif", sans-serif, "Microsoft Sans Serif"; font-size: 12px; color: #FFFFFF; font-weight: bold; background-color: #336699; text-align: right; height: 20px; } .textnomal { color: #000000; } </style> </head> <body leftmargin="0" topmargin="0"> <form name="cscform" method="post"> <input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>"> <input type="hidden" name="__fixCon" value=""> <input type ="hidden" name="__cmd" value=""> <input type="hidden" name="__screen" value="PSN104"> <input type="hidden" name="__goPage" value =""> <input type="hidden" name="__employeeid" value=""> <input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>"> <input type="hidden" name="__orderBy" value=""> <input type="hidden" name="__empview" value=""> <input type="hidden" name="__subordinate_name" value=""> <div align="center"> <table border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td align="center" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><jsp:include page="HEADER.jsp" flush="true" /></td> </tr> </table></td> </tr> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0" class="maxsize" > <tr> <td class="headbluebar"> <div align="center"> <script language="javascript">swapLang("Set Employee View");</script> </div></td> </tr> <tr> <td class="blankspace"> </td> </tr> <tr> <td><table border="0" align="center" cellpadding="0" cellspacing="0" class="largest"> <tr> <td><table border="0" align="center" cellpadding="0" cellspacing="0" class="maxsize"> <tr> <td width="50%" class="blankspace"></td> <td width="50%" class="blankspace"></td> </tr> <tr> <td height="25" colspan="2" align="center"><table width="600" border="0" cellpadding="0" cellspacing="0"> <tr> <td nowrap class="Text"><div><script language="javascript">swapLang("Order By")</script> </div></td> <td><%=screen.getTagOrder()%></td> <td> </td> <td nowrap class="Text"><div><script language="javascript">swapLang("Search By")</script> </div></td> <td><%=screen.getTagSearchBy()%></td> </tr> <tr> <td nowrap class="Text"><div><script language="javascript">swapLang("Condition")</script> </div></td> <td><%=screen.getTagConSearch()%></td> <td> </td> <td nowrap class="Text"><div><script language="javascript">swapLang("Key Value")</script> </div></td> <td><%=screen.getTagValueSearch()%> <a href="javascript:search();"><img src="IMAGES/BUTTON/MAIN/SEARCH20.gif" width="20" height="20" border="0" align="middle"></a></td> </tr> </table></td> </tr> <tr> <td colspan="2" class="blankspace" > </td> </tr> <tr> <td nowrap class="Text"><div> <script language="javascript">swapLang("Employee View")</script> : <span class="textnomal"><%=empview %> <%=subordinate_name %></span></div></td> <td align="right"><div><a href="javascript:setEmpView('<%=screen.getUProfile().get("employeeid")%>','<%=screen.getUProfile().get("fullname")%>');"><img src="IMAGES/BUTTON/DEFAULT.gif" width="73" height="23" border="0" align="absmiddle"></a> </div></td> </tr> <tr> <td nowrap class="Text"><div> <script language="javascript">swapLang("Found Data");</script> : <span class="textnomal"><%=screen.getInquiry().recCount() %></span> <script language="javascript">swapLang("record(s)");</script>. </div></td> <td align="right" class="Text"><div> <%=screen.getPageTag()%> </div></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td class="blankspace"> </td> </tr> <tr> <td><table border="0" align="center" cellpadding="0" cellspacing="0" class="largest"> <tr> <td><table border="0" align="center" cellpadding="0" cellspacing="1" class="maxsize"> <tr> <td height="20" align="center" class="row3"><script language="javascript">swapLang("Employee Code");</script></td> <td align="center" class="row3"><script language="JavaScript">swapLang("Name-Surname");</script></td> <td align="center" class="row3"><script language="JavaScript">swapLang("Position");</script></td> <td align="center" class="row3"><script language="JavaScript">swapLang("Department");</script></td> </tr> <% while(screen.nextRec()){ if(screen.checkLinePage()){ screen.referLangOn(); %> <tr> <td height="20" align="CENTER" class="forborder2"><a href="javascript:setEmpView('<%=screen.getString("employeeid")%>','<%=screen.getString("fullname")%>');"><%=screen.getString("employeeid")%></a></td> <td class="forborder2"><%=screen.getString("fullname")%></td> <td class="forborder2"><%=screen.getString("emp_position")%> - <%=screen.getString("mposition","tdesc")%></td> <td class="forborder2"><%=screen.getString("bu2")%> - <%=screen.getString("mbu2","tdesc")%></td> </tr> <% screen.referLangOff(); } if(screen.outLinePage()){ break; } } %> <!--tr> <td colspan="4" class="blankspace"></td> </tr--> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="46" colspan="3" valign="top"> </td> </tr> <tr> <td height="46" colspan="3" valign="top"><jsp:include page="FOOTER.jsp" flush="true" /></td> </tr> </table> </div> </form> </body> </html>