<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@page contentType="text/html; charset=UTF-8" %> <%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.session.*,com.csc.library.utilities.*" %> <%@page import="java.util.*,java.io.*,java.text.DecimalFormat,com.csc.library.database.*,com.csc.library.components.*" %> <jsp:useBean id="TRRE044" class="com.csc.library.system.Task" scope="page"/> <% TRRE044.setChannel(request, response); HelpEntry screen = (HelpEntry) TRRE044.process("HelpEntry", "MEMPLOYEEHELP"); screen.setMaxLine(10); screen.process(); CheckNull chk = new CheckNull(); %> <html ng-app="myHR"> <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 language="javascript" src="../JS/DATEINPUT.js"></script> <script language="javascript" src="../JS/VIEWCALENDAR.js"></script> <script src="../JS/angular-1.3.15/angular.js" type="text/javascript"></script> <script src="../JS/ANGULAR/SCREEN_ANGULAR.js" type="text/javascript"></script> <script language="javascript">setLang('<%=screen.getUProfile().get("lang")%>');</script> <script language="JavaScript" type="text/JavaScript"> function GoExport() { with (document.cscform) { if(__trainingid.value !== "") { var param = "TRRE044_EXP.jsp?__filter=" + getFilter(); console.log(param); window.open(param,"printPDF","left=150,top=100,width=900,height=450,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } else { var msg = getLang() === "tha" ? "กรุณาเลือกรหัสรุ่น" : "Please Select Training ID"; alert(msg); } } } function goHelp(helpName,inputName) { var helpReturn = ""; var fixCon = ""; if (inputName.indexOf("__empid") > -1) { helpReturn=inputName+":employeeid"; } else if (inputName=="__branch" ) { helpReturn=inputName+":branchid,MBRANCH@TDESC"; } else if (inputName=="__bu1" ) { helpReturn=inputName+":bu1id,MBU1@TDESC"; } else if (inputName=="__bu2" ) { helpReturn=inputName+":bu2id,MBU2@TDESC"; } else if (inputName=="__bu3" ) { helpReturn=inputName+":bu3id,MBU3@TDESC"; } else if (inputName=="__bu4" ) { helpReturn=inputName+":bu4id,MBU4@TDESC"; } else if (inputName=="__bu5" ) { helpReturn=inputName+":bu5id,MBU5@TDESC"; } else if (inputName=="__trainingid" ) { helpReturn=inputName+":trainingid,HTRAINING@TRTITLE"; } else if (inputName=="__courseid" ) { helpReturn=inputName+":crsid,MCOURSE@CRSDESC"; } linkHelp_Return(helpName,helpReturn,fixCon); } function getFilter(){ var filter = ""; if($('input[name="__trainingid"]').val() !== ""){ filter = chkFilter(filter) + "trainingid = '"+$('input[name="__trainingid"]').val()+"'"; } return filter; } function chkFilter(filter){ if(filter!==""){ filter+=" and "; } return filter; } function getDateYYYYMMDD(dateinput){ /*var datearr = dateinput.split("\-"); return datearr[2] + "-" + datearr[1] + "-" +datearr[0];*/ return dateinput; } </script> </head> <body leftmargin="0" topmargin="0"> <form name="cscform" method="post" action="TRRE043.jsp"> <!----------BEGIN CSC INITIAL ZONE ------------------------> <%=screen.InitialVariable()%> <!----------END CSC INITIAL ZONE --------------------------> <input type="hidden" name="__screen" value="TRRE043"/> <input type="hidden" name="__cmd" value=""/> <input type="hidden" name="__help" value=""/> <input type="hidden" name="__goPage" value=""/> <input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>"/> <input type="hidden" name="__orderBy" value="<%=request.getParameter("__orderBy")%>"/> <input type="hidden" name="__helpName" value="<%=request.getParameter("__helpName")%>"/> <input type="hidden" name="__pageCall" value="<%=request.getParameter("__screen")%>"/> <input type="hidden" name="__fixCon" value="<%=request.getParameter("__fixCon")%>"/> <input type="hidden" name="__export" value=""/> <input type="hidden" name="__calendar" value=""/> <script language="JavaScript" >getInputFormatDate();</script> <br/> <div align="center"> <table class="large" cellpadding="0" cellspacing="0"> <tr> <td class="header">TRRE044, Report Lesson Plan </td> </tr> <tr> <td> <table align="center"> <tr style="display:none"> <td class="columnlabel" swlang code="SW000274">Employee ID</td> <td> <input type="text" name="__empid_start" size="15" value=""/> <a href="javascript:goHelp('MEMPLOYEEHELP','__empid_start');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__empid_start_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__empid_start_image" width="20" height="20" border="0" align="absmiddle"></a> - <input type="text" name="__empid_end" size="15" value=""/> <a href="javascript:goHelp('MEMPLOYEEHELP','__empid_end');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__empid_end_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__empid_end_image" width="20" height="20" border="0" align="absmiddle"></a> </td> </tr> <tr style="display:none"> <td class="columnlabel" swlang code="SW000008">Branch</td> <td> <input type="text" name="__branch" size="15" value=""/> <a href="javascript:goHelp('MBRANCHHELP','__branch');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__branch_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__branch_image" width="20" height="20" border="0" align="absmiddle"></a> <input type="text" name="MBRANCH@TDESC" size="35" value="" disabled/> </td> </tr> <tr style="display:none"> <td class="columnlabel"><%=screen.getInquiry().getCurrentDbRecord().getField("BU1").getDescription()%></td> <td> <input type="text" name="__bu1" size="15" value=""/> <a href="javascript:goHelp('MBU1HELP','__bu1');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__bu1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__bu1_image" width="20" height="20" border="0" align="absmiddle"></a> <input type="text" name="MBU1@TDESC" size="35" value="" disabled/> </td> </tr> <tr style="display:none"> <td class="columnlabel"><%=screen.getInquiry().getCurrentDbRecord().getField("BU2").getDescription()%></td> <td> <input type="text" name="__bu2" size="15" value=""/> <a href="javascript:goHelp('MBU2HELP','__bu2');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__bu2_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__bu2_image" width="20" height="20" border="0" align="absmiddle"></a> <input type="text" name="MBU2@TDESC" size="35" value="" disabled/> </td> </tr> <tr style="display:none"> <td class="columnlabel"><%=screen.getInquiry().getCurrentDbRecord().getField("BU3").getDescription()%></td> <td> <input type="text" name="__bu3" size="15" value=""/> <a href="javascript:goHelp('MBU3HELP','__bu3');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__bu3_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__bu3_image" width="20" height="20" border="0" align="absmiddle"></a> <input type="text" name="MBU3@TDESC" size="35" value="" disabled/> </td> </tr> <tr style="display:none"> <td class="columnlabel"><%=screen.getInquiry().getCurrentDbRecord().getField("BU4").getDescription()%></td> <td> <input type="text" name="__bu4" size="15" value=""/> <a href="javascript:goHelp('MBU4HELP','__bu4');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__bu4_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__bu4_image" width="20" height="20" border="0" align="absmiddle"></a> <input type="text" name="MBU4@TDESC" size="35" value="" disabled/> </td> </tr> <tr style="display:none"> <td class="columnlabel"><%=screen.getInquiry().getCurrentDbRecord().getField("BU5").getDescription()%></td> <td> <input type="text" name="__bu5" size="15" value=""/> <a href="javascript:goHelp('MBU5HELP','__bu5');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__bu5_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__bu5_image" width="20" height="20" border="0" align="absmiddle"></a> <input type="text" name="MBU5@TDESC" size="35" value="" disabled/> </td> </tr> <tr> <td class="columnlabel" swlang code="SW001050">Training ID</td> <td> <input type="text" name="__trainingid" size="15" value=""/> <a href="javascript:goHelp('HTRAININGHELP','__trainingid');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__trainingid_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__trainingid_image" width="20" height="20" border="0" align="absmiddle"></a> <input type="text" name="HTRAINING@TRTITLE" size="35" value="" disabled/> </td> </tr> <tr style="display:none"> <td class="columnlabel" swlang code="SW011988">Course ID</td> <td> <input type="text" name="__courseid" size="15" value=""/> <a href="javascript:goHelp('MCOURSEHELP','__courseid');" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('__courseid_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__courseid_image" width="20" height="20" border="0" align="absmiddle"></a> <input type="text" name="MCOURSE@CRSDESC" size="35" value="" disabled/> </td> </tr> <tr style="display:none"> <td class="columnlabel">Train Type</td> <td> <% ListBox listboxTrainType = new ListBox(); listboxTrainType.setUProfile(screen.getUProfile()); listboxTrainType.setName("train_type"); listboxTrainType.setValidCode("APPLICANT_TYPE"); listboxTrainType.setDisable("false"); listboxTrainType.setBlank(true); out.println(listboxTrainType.process()); %> </td> </tr> </table> </td> </tr> <tr> <td align="center"> <button type="button" class="btn btn-primary width100" swlang code="SW013178" onClick="javascript:GoExport();">EXPORT</button> </td> </tr> <tr> <td class="blankspace"></td> </tr> <tr bordercolor="0069B3"> <td class="bottom"></td> </tr> </table> </div> </form> </body> </html>