<%@page contentType="text/html; charset=UTF-8"%> <%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*,com.csc.library.session.*,com.csc.library.report.*;"%> <jsp:useBean id="WEL333" class="com.csc.library.system.Task" scope="page" /> <% WEL333.setChannel(request, response); HelpEntry screen = (HelpEntry) WEL333.process("HelpEntry","WEL333"); CheckNull chk=new CheckNull(); WelfareUtilities wf=new WelfareUtilities(screen.getUProfile()); ThaiUtilities thail = new ThaiUtilities(); String condition=thail.ASCII2Unicode(chk.chkNullString(request.getParameter("__fixCon"))); String years=thail.ASCII2Unicode(chk.chkNullString(request.getParameter("__years"),wf.getYearString(new CscCalendar()))); CscCalendar cs=new CscCalendar(); if(years.length()>0){ screen.getInquiry().setFilter("employeeid='"+screen.getUProfile().get("employeeid").toString()+"' and years='"+years+"'"); }else{ screen.getInquiry().setFilter("employeeid='"+screen.getUProfile().get("employeeid").toString()+"' "); } if(years.length()>0){ screen.getInquiry().setFilter("employeeid='"+screen.getUProfile().get("employeeid").toString()+"' "); screen.getInquiry().getChild("Mempl_fhealth").setFilter("years='"+years+"'"); }else{ screen.getInquiry().setFilter("employeeid='"+screen.getUProfile().get("employeeid").toString()+"' "); } screen.process(); %> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > <link href="../CSS/TISCO.css" rel="stylesheet" type="text/css"> <link href="../CSS/bootstrap.css" rel="stylesheet" type="text/css"> <link href="../CSS/bootstrap_csc_backend.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script> <script type='text/javascript' src="../JS/bootstrap.js"></script> <script language="JavaScript" src="../JS/SCREEN.js"></script> <script type='text/javascript' src="../JS/ICONSMENU.js"></script> <script language='javascript' src="../JS/HOTKEY.js"></script> <script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script> <script language="JavaScript" type="text/JavaScript"> <!-- function GoSearch(){search();} function GoSave() {} function GoDelete(){ } function GoUpdate(){} function goHelp(helpName,inputName){ var helpReturn; var fixcon=document.cscform.__fixCon.value; document.cscform.__fixCon.value=""; if(inputName=="__employeeid1" ) helpReturn="__employeeid1:EMPLOYEEID,MEMPLOYEE@EMPLOYEEID"; else if(inputName=="__employeeid2" ) helpReturn="__employeeid2:EMPLOYEEID,MEMPLOYEE@EMPLOYEEID"; else if(inputName=="__bu11" ) helpReturn="__bu11:bu1id"; else if(inputName=="__bu12" ) helpReturn="__bu12:bu1id"; else if(inputName=="__bu21" ) helpReturn="__bu21:bu2id"; else if(inputName=="__bu22" ) helpReturn="__bu22:bu2id"; else if(inputName=="__bu31" ) helpReturn="__bu31:bu3id"; else if(inputName=="__bu32" ) helpReturn="__bu32:bu3id"; else if(inputName=="__position1" ) helpReturn="__position1:positionid"; else if(inputName=="__position2" ) helpReturn="__position2:positionid"; linkHelp_Return(helpName,helpReturn); document.cscform.__fixCon.value=fixcon; } function GoClean() { with(document.cscform) { __years1.value=""; __years2.value=""; } } function GoPage(years1,employeeid,group){ with(document.cscform){ __fixCon.value="years='"+years1+"'and employeeid='"+employeeid+"' and healthygid='"+group+"' "; __cmd.value="search"; action="WEL331.jsp"; submit(); } } //--> </script> <style type="text/css"> <!-- .style1 { font-size: 12px } --> </style> </head> <body > <div id="toolTipLayer" style="position:absolute; visibility: hidden"></div> <script language="javascript">initToolTips();</script> <form name="cscform" method="post" action="WEL333.jsp"> <!----------BEGIN CSC INITIAL ZONE ------------------------> <%=screen.InitialVariable()%> <!----------END CSC INITIAL ZONE --------------------------> <input type="hidden" name="__cmd" value=""> <input type="hidden" name="__help" value=""> <input type="hidden" name="__goPage" value=""> <input type="hidden" name="__notNull" value="<%//=screen.getRequire()%>"> <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="__language" value="<%=screen.getUProfile().get("lang")%>"> <input type="hidden" name="__lockPage" value=""> <input type="hidden" name="__calendar"> <input type="hidden" name="__screen" value="WEL333"> <input type="hidden" name="__webid"> <input type="hidden" name="__readposter"> <script language="javascript">getInputFormatDate();</script> <input type="hidden" name="__employeeid" value=""> <input type="hidden" name="__docno" value=""> <input type="hidden" name="__formulaid" value=""> <input name="__fixCon" type="hidden" value="<%=condition%>"> <input type="hidden" name="__orderBy" value="<%=request.getParameter("__orderBy")%>"> <input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>"> <input name="__complainid" type="hidden" value=""> <script language="JavaScript" src="../JS/HOTKEY.js"></script> <script language="javascript"> var titlename=swap2String('History of healthy'); </script> <br> <div align="center"> <table cellpadding="0" cellspacing="0" class="largest"> <tr > <td colspan="2" class="header" >WEL333, <script language="javascript">swapLang(titlename);</script> </td> </tr> <tr > <td ><table class="maxsize" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <td colspan="12" class="blankspace"> <table width="638" border="0" align="center" cellpadding="0" cellspacing="1" class="inframe"> <tr> <td colspan="2" class="blankspace"> </td> </tr> <tr> <td width="256" class="columnlabel"><%=screen.getLabel("MEMPL_FHEALTH","years")%></td> <td width="954"> <select name="__years"> <%for(int i=(cs.getYear()-3);i<(cs.getYear()+5);i++){%> <option value="<%=i%>" <%if(years.equals(String.valueOf(i))){ out.println("selected");}%>><%=i%></option> <%}%> </select></td> </tr> <tr> <td class="columnlabel"> </td> <td> <button type="button" class="btn btn-primary width100" swlang code="SW013168" onClick="GoSearch();">SEARCH</button></td> </tr> <tr> <td colspan="2" class="columnlabel"></td> </tr> </table> <br> <div align="right" class="style1"><%=screen.getPageTag()%></div> <table width="638" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#808080" class="inframe tablewithborder"> <tr class="title1"> <td width="231" class="row3"><div align="center"><%=screen.getLabel("MEMPL_FHEALTH","YEARS")%></div></td> <td width="231" class="row3"><div align="center"><%=screen.getLabel("MEMPL_FHEALTH","REGNO")%></div></td> <td width="231" class="row3"><div align="center"><%=screen.getLabel("MEMPL_FAMILY","RELATIONID")%></div></td> <td width="240" class="row3"><div align="center"><%=screen.getLabel("FULLNAME")%></div></td> <td width="240" class="row3"><div align="center"><%=screen.getLabel("MEMPL_FHEALTH","PLANID")%></div></td> <td width="240" class="row3"><div align="center"><%=screen.getLabel("MEMPL_FHEALTH","COST")%></div></td> </tr> <% screen.nextRec(); DbInquiry db=(DbInquiry)screen.getInquiry().getChild("MEMPL_FHEALTH"); do{ if(db.getString("planid").length()>0){ %> <tr> <td><%=screen.getString("MEMPL_FHEALTH","YEARS")%></td> <td><%=screen.getString("MEMPL_FHEALTH","REGNO")%></td> <td ><%=screen.getString("MRELATION","TDESC")%></td> <td ><%=screen.getString("MEMPL_FAMILY","FULLNAME")%></td> <td ><%=screen.getString("MEMPL_FHEALTH","PLANID")%></td> <td ><%=screen.getString("MEMPL_FHEALTH","COST")%></td> </tr> <% } }while(db.next()); %> <tr> <td colspan="12" class="blankspace"></td> </tr> <tr> <td colspan="12" class="bottom"></td> </tr> </table></td> </tr> </table> </form> </body> </html>