<%@ 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_EMV010"); String lang = screen.getUProfile().get("lang"); CheckNull chk=new CheckNull(); ThaiUtilities thail = new ThaiUtilities(); java.text.DecimalFormat df=new java.text.DecimalFormat("#,###,##0.00"); String complainid=thail.ASCII2Unicode(chk.chkNullString(request.getParameter("__complainid"))); String caseid=thail.ASCII2Unicode(chk.chkNullString(request.getParameter("__caseid"))); screen.getInquiry().clearSubFilter(); screen.getInquiry().setFilter("complainid",complainid,"","between"); screen.getInquiry().setFilter("caseid",caseid,"","between"); 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" /> </head> <body> <div class="bg-com"></div> <jsp:include page="EMV_HEADMENU.jsp" flush="true" /> <script> setLang("<%=screen.getUProfile().get("lang")%>"); var swap = new swaplang(); var titlename = swap.swap2String("SW002015"); setPageTitle(titlename); function goHelp(helpName,inputName){ var helpReturn; var fcon=""; if(inputName=="__welid1" ){ helpReturn="__welid1:WELID,MWELFARE@WELID"; }else if(inputName=="__welid2" ){ helpReturn="__welid2:WELID,MWELFARE@WELID"; }else if(inputName=="__year" ){ helpReturn="__year:years"; } helpPageCon(helpName,helpReturn,fcon); } function GoSearch(){ search(); } function goPages(page,complainid,caseid){ with(document.cscform){ action=page; __complainid.value=complainid; __caseid.value=caseid; __cmd.value="search"; submit(); } } function backPage(page){ with(document.cscform){ action=page; submit(); } } </script> <section> <div class="container csc-content"> <form name="cscform" class="form-horizontal" method="post" action="WEL_EMV010.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="__complainid" value="<%=complainid%>"> <input type="hidden" name="__caseid" value="<%=caseid%>"> <input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>"> <input type="hidden" name="__fixCon" value=""> <input name="__screen" type="hidden" value="WEL_EMV010"> <%if(screen.nextRec()){%> <table class="table table-head table-hover table-bordered table-left table-fixed"> <thead> <tr> <th colspan=4 swlang code='SW002015'>Requisition</th> </tr> </thead> <tbody> <tr> <th><%=screen.getLabel("complainid")%></th> <td><%=screen.getString("complainid")%></td> <th><%=screen.getLabel("caseid")%></th> <td><%=screen.getString("caseid")%></td> </tr> <tr> <th><%=screen.getLabel("welid")%></th> <td><%=screen.getString("welid")%> <%=screen.getString("mwelfare","tdesc")%></td> <th><%=screen.getLabel("startdate")%></th> <td><%=screen.getString("startdate")%></td> </tr> <tr> <th><%=screen.getLabel("sitewelid")%></th> <td><%=screen.getString("sitewelid")%> <%=screen.getString("msitewel","tdesc")%></td> <th><%=screen.getLabel("enddate")%></th> <td><%=screen.getString("enddate")%></td> </tr> <tr> <th><%=screen.getLabel("disid")%></th> <td><%=screen.getString("disid")%> <%=screen.getString("mdisease","tdesc")%></td> <th><%=screen.getLabel("occurdate")%></th> <td><%=screen.getString("occurdate")%></td> </tr> <tr> <th><%=screen.getLabel("reqcost")%></th> <td><%=screen.getString("reqcost")%></td> <th><%=screen.getLabel("cost")%></th> <td><%=screen.getString("cost")%></td> </tr> <tr> <th><%=screen.getLabel("status")%></th> <td><%=screen.getInquiry().getCurrentDbRecord().getSystemCode("status")%></td> <th><%=screen.getLabel("approvestatus")%></th> <td><%=screen.getInquiry().getCurrentDbRecord().getSystemCode("approvestatus")%></td> </tr> <tr> <th><%=screen.getLabel("approvedate")%></th> <td colspan=3><%=screen.getString("approvedate")%></td> </tr> </tbody> </table> <%}%> <table class="table table-head table-hover table-bordered table-title-left table-content-center "> <thead> <tr> <th class="table-title" colspan=7 swlang code='SW002016'>Requisition of same welfare</th> </tr> <tr> <th><%=screen.getLabel("COMPLAINID")%></th> <th><%=screen.getLabel("CASEID")%></th> <th><%=screen.getLabel("occurdate")%></th> <th><%=screen.getLabel("REQCOST")%></th> <th><%=screen.getLabel("COST")%></th> <th><%=screen.getLabel("STATUS")%></th> <th><%=screen.getLabel("APPROVESTATUS")%></th> </tr> </thead> <tbody> <% screen.getInquiry().clearSubFilter(); screen.getInquiry().clearOldCondition(); screen.getInquiry().setFilter("welid",screen.getString("welid"),"","between"); screen.getInquiry().setFilter("employeeid",screen.getUProfile().get("employeeid"),"","between"); screen.getInquiry().setFilter("status","1","","between"); screen.getInquiry().setFilter("approvestatus","1","","between"); screen.getInquiry().refresh(); while (screen.nextRec()) { if(screen.checkLinePage()){ %> <tr> <td><a href="javascript:goPages('WEL_EMV010.jsp','<%=screen.getString("complainid")%>','<%=screen.getString("caseid")%>')"><%=screen.getString("complainid")%></a></td> <td><%=screen.getString("caseid")%></td> <td><%=screen.getString("occurdate")%></td> <td><%=screen.getString("reqcost")%></td> <td><%=screen.getString("cost")%></td> <td><%=screen.getInquiry().getCurrentDbRecord().getSystemCode("STATUS")%></td> <td><%=screen.getInquiry().getCurrentDbRecord().getSystemCode("APPROVESTATUS")%></td> </tr> <% } if(screen.outLinePage()){ break; } } %> </tbody> </table> </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>