<%@page contentType="text/html; charset=TIS620" language="java" %> <%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*,com.csc.library.formula.*"%> <%@page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*" %> <%@ include file="../CHECKPROFILE.jsp" %> <% request.setCharacterEncoding("TIS620"); %> <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","PI_LEAVEDESCHELP"); screen.setMaxLine(300); screen.process(); java.text.DecimalFormat df=new java.text.DecimalFormat("00.00"); ThaiUtilities thaicode=new ThaiUtilities(); CheckNull chk = new CheckNull(); String empName=thaicode.ASCII2Unicode(chk.chkNullString(request.getParameter("__empName"))); String empID=thaicode.ASCII2Unicode(chk.chkNullString(request.getParameter("__empID"))); String leaveDesc=thaicode.ASCII2Unicode(chk.chkNullString(request.getParameter("__lv_desc"))); FormulaString fs=new FormulaString(); %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" ng-app="myHR"> <html> <head> <title>Employee View</title> <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/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/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> setLang("<%=screen.getUProfile().get("lang")%>"); var swap = new swaplang(); var titlename = swap.swap2String("SW001861"); setPageTitle(titlename); function chkDateTime1(valueSearch){ var tmpval=""; with(document.cscform){ var valueSearch1=valueSearch.split("-"); if(valueSearch1.length==3){ if(valueSearch1[1].length==1){ valueSearch1[1]="0"+valueSearch1[1]; } if(valueSearch1[0].length==1){ valueSearch1[0]="0"+valueSearch1[0]; } valueSearch1[2]=parseInt(valueSearch1[2]); return valueSearch=valueSearch1[2]+"-"+valueSearch1[1]+"-"+valueSearch1[0]; } } } </script> </head> <body> <div class="bg-com"></div> <div class="container csc-content"> <form name="cscform" class="form-horizontal" method="post"> <input type="hidden" name="__screen" value="PI_LEAVEDESC"> <input type="hidden" name="__fixCon" value="<%=request.getParameter("__fixCon")%>"> <input type="hidden" name="__cmd" value=""> <input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>"> <input type="hidden" name="__companyid" value='<%=screen.getUProfile().get("companyid")%>'> <input type="hidden" name="__employeeid" value="<%=request.getParameter("__employeeid")%>"> <input type="hidden" name="__referPage" value=""> <input type="hidden" name="__childFilter"> <input type="hidden" name="__date_start" value="<%=request.getParameter("__date_start")%>"> <input type="hidden" name="__date_end" value="<%=request.getParameter("__date_end")%>"> <input type="hidden" name="date_start" value="<%=request.getParameter("date_start")%>"> <input type="hidden" name="date_end" value="<%=request.getParameter("date_end")%>"> <input type="hidden" name="__gorec"> <div id="toolTipLayer" style="position:absolute; visibility: hidden"></div> <script language="javascript">initToolTips();</script> <div class="csc-block-white"> <div class="container csc-content"> <table class="table table-head table-hover table-bordered table-title-left table-content-center"> <thead> <tr> <th swlang code='SW000193'>Seq</th> <th swlang code='SW001834'>Leave Date</th> <th swlang code='SW001835'>Leave Time</th> <th><label swlang code='SW000024'>Total</label> ( <label swlang code='SW011233'>HH MM</label> )</th> <th swlang code='SW001836'>Documnet No</th> </tr> </thead> <tbody> <% int i=0; //out.println(screen.inq.recCount()); while (screen.nextRec()) { i++; %> <tr> <td><%=i%></td> <td><%=screen.getString("dateid")%></td> <td><%=screen.getString("lv_bg_date")%>:<%=df.format(screen.inq.getCurrentDbRecord().getDouble("lv_bg_time"))%> - <%=screen.getString("lv_en_date")%>:<%=df.format(screen.inq.getCurrentDbRecord().getDouble("lv_en_time"))%> </td> <td><%=screen.getString("m_lv")%></td> <td><%=screen.getString("docid")%></td> </tr> <% } %> </tbody> </table> <div class="center"> <a href="javascript:close();" class="btn btn-primary" swlang code='SW012104'>Close</a> </div> </div> </div> </form> </div> </body> </html>