<%@page contentType="text/html; charset=UTF-8"%> <%@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.*" %> <jsp:useBean id="TRH003_4H" class="com.csc.library.system.Task" scope="page"/> <% TRH003_4H.setChannel(request,response); HelpEntry screen = (HelpEntry)TRH003_4H.process("HelpEntry","TRH003_4H"); CheckNull chk = new CheckNull(); String trainingid = chk.chkNullString(request.getParameter("trainingid")); String DecNo = chk.chkNullString(request.getParameter("DecNo")); String Rev = chk.chkNullString(request.getParameter("Rev")); String Date = chk.chkNullString(request.getParameter("Date")); String Request = chk.chkNullString(request.getParameter("Request")); String Content = chk.chkNullString(request.getParameter("Content")); String From = chk.chkNullString(request.getParameter("From")); String CopyRequest = chk.chkNullString(request.getParameter("CopyRequest")); String TopicTraining = chk.chkNullString(request.getParameter("TopicTraining")); String Requester = chk.chkNullString(request.getParameter("Requester")); String Endorsee = chk.chkNullString(request.getParameter("Endorsee")); String PosEndorsee = chk.chkNullString(request.getParameter("PosEndorsee")); String comment = chk.chkNullString(request.getParameter("comment")); screen.process(); screen.inq.setFilter("trainingid='"+trainingid+"'"); // where id screen.inq.refresh(); // refresh execute screen.inq.next(); // next 1 record screen.referLangOn(); CscCalendar date=new CscCalendar(); %> <!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"> <script type='text/javascript' src='../JS/MISC.js'></script> <script type='text/javascript' src='../JS/SCREEN.js'></script> <script type='text/javascript' src='../JS/ICONSMENU.js'></script> <script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script> <script type='text/javascript' src="../JS/VIEWCALENDAR.js"></script> <script language="JavaScript" > function printWindow(){ browserVersion = parseInt(navigator.appVersion) if (browserVersion >= 4) window.print() } </script> <style type="text/css"> #wrapper{ margin:auto; width:800px; border:1px #999 solid; } table tr td{ line-height:20px; } div{ display: block; margin:0; padding:0; } /* table ติดต่อ*/ .contact{ font-size: 12px; border-bottom:1px #000 solid; padding-bottom:10px; } .contact_lable{ padding-left:10px; font-size: 12px; width:100px; } /* table รายละเอียด*/ .content{ padding-top:5px; font-size: 12px; } .content_lable{ height:30px; font-size: 12px; padding-left:10px; width:250px; vertical-align:text-top; padding-bottom:10px; /*ความสุง TD*/ } .content_detail span { width:100%;font-size: 12px; height:30px; border-bottom:1px #000 solid; } .detail_multi span { text-decoration:underline; } div #signature{ margin-top:70px; } .detail{ width:99%; border-bottom:1px #000 solid; height:25px; } .signature{font-size: 12px; } .signature .center{ text-align:center; } .signature .center div { padding-bottom:6px; vertical-align:top; } #evaluate{ padding-left:170px; padding-top:10px; } .word-wrap { word-wrap: break-word; width:625px; white-space:normal; } @media print{ .no_print{display:none;} } </style> </head> <body leftmargin="0" topmargin="0" > <div id="toolTipLayer" style="position:absolute; visibility: hidden"></div> <form name="cscform" method="post" action="#"> <!----------BEGIN CSC INITIAL ZONE ------------------------> <%=screen.InitialVariable()%> <!----------END CSC INITIAL ZONE --------------------------> <input type="hidden"name="__screen" value="TRH003_4"> <input type="hidden" name="__fixCon" value=""> <input type="hidden" name="__help" value=""> <input type="hidden" name="__keyList" value=""> <input type="hidden" name="__cmd" value=""> <input type="hidden" name="__chkReq" value=""> <input type="hidden" name="__calendar"> <input type="hidden" name="__childFilter"> <script language="javascript">getInputFormatDate();</script> <input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>"> <input type="hidden" name="__user" value="<%=screen.getUProfile().getUserId()%>"> <input name="__companyid" type="hidden" value="<%=screen.getUProfile().get("companyid")%>"> <input type = "hidden" name = "__backpage" value = "<%=request.getParameter("__backpage")%>"> <div id="wrapper"> <div id="header"> <!--============== Header ============--> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style=" border-bottom:1px #000 solid" id="header" > <tr > <td width="16%" height="150" align="right" ><img src="../IMAGES/MYNOTE/tgsg.gif" /></td> <td width="59%" height="150" align="center" ><h3> THAI-GERMAN SPECIALTY GLASS CO., LTD.</h3> <h4>แบบขออนุมัติการจัดหลักสูตรและค่าใช้จ่าย</h4></td> <td width="25%" height="150" valign="middle" > <div style="font-size:12px"> <div><b>Doc.No. </b>: <%=DecNo%></div> <div><b>Rev. </b>: <%=Rev%></div> <div><b>Date. </b>: <%=Date%></div> <div> </div> "เราชาว TGSG จะมุ่งมั่น พัฒนาสินค้า<br> และบริการให้มีคุณภาพ เพื่อตอบสนอง<br> ความต้องการของลูกค้าอย่างต่อเนื่อง"</div> </td> </tr> </table> </div> <div id="clear"> </div> <!-- contact --> <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="contact" > <tr> <td class="contact_lable">เรียน : </td> <td ><div class="detail"><%=Request%></div></td> </tr> <tr> <td class="contact_lable">จาก :</td> <td ><div class="detail"><%=From%></div></td> </tr> <tr> <td class="contact_lable">สำเนาเรียน : </td> <td ><div class="detail"><%=CopyRequest%></div></td> </tr> <tr> <td class="contact_lable">เรื่อง : </td> <td ><div class="detail"><%=Content%></div></td> </tr> </table> <div id="clear"> </div> <table width="100%" border="0" align="center" class="content"> <tr> <td class="content_lable" >1. ชื่อหลักสูตร </td> <td > <div class="word-wrap"> <span style="text-decoration:underline"><%=screen.getDataLabel("MCOURSE","CRSDESC").replace("\r\n","")%> </span> </div></td> </tr> <tr> <td class="content_lable" >2. วัตถุประสงค์</td> <td > <% String objective = screen.getDataLabel("MCOURSE","OBJECTIVE").replace("\r\n",""); if(objective.equals("")){ out.print("<div class=\"detail\"></div>"); out.print("<div class=\"detail\"></div>"); out.print("<div class=\"detail\"></div>"); out.print("<div class=\"detail\"></div>"); out.print("<div class=\"detail\"></div>"); out.print("<div class=\"detail\"></div>"); }else{ int max = 95; while (max <= objective.length()) { String msg = objective.substring(0, max); out.print("<div class=\"detail\">"+msg+"</div>"); objective = objective.substring(max); } out.print("<div class=\"detail\">"+objective+"</div>"); } %> </td> </tr> <tr> <td class="content_lable">3. หัวข้อการอบรม</td> <td > <div class="detail"><%=TopicTraining%></div> </td> </tr> <tr> <td class="content_lable">4. คุณสมบัติผู้เข้าร่วมการอบรม</td> <td > <% String oproperty = screen.getDataLabel("MCOURSE","OBJECTIVE").replace("\r\n",""); if(oproperty.equals("")){ out.print("<div class=\"detail\"></div>"); out.print("<div class=\"detail\"></div>"); out.print("<div class=\"detail\"></div>"); out.print("<div class=\"detail\"></div>"); out.print("<div class=\"detail\"></div>"); out.print("<div class=\"detail\"></div>"); }else{ int max = 95; while (max <= oproperty.length()) { String msg = oproperty.substring(0, max); out.print("<div class=\"detail\">"+msg+"</div>"); oproperty = oproperty.substring(max); } out.print("<div class=\"detail\">"+oproperty+"</div>"); } %> </td> </tr> <tr> <td class="content_lable">5. จำนวนผู้เข้าร่วมการอบรม</td> <td ><div class="detail"><%=screen.getDataLabel("TOTALTRAINEE")%> คน</div></td> </tr> <tr> <td class="content_lable"> 6. สถานที่จัดการอบรม</td> <td ><div class="detail"><%=screen.getDataLabel("MTRLOCATION","LOCEDESC")%></div></td> </tr> <tr> <td class="content_lable">7. วันเวลาที่อบรม</td> <td ><div class="detail">เริ่มวันที่ <%=screen.getDataLabel("TTRAININGTIME","START_DATE")%> ถึง <%=screen.getDataLabel("TTRAININGTIME","END_DATE")%> เวลาตั้งแต่ <%=screen.getDataLabel("TTRAININGTIME","START_TIME")%> ถึง <%=screen.getDataLabel("TTRAININGTIME","END_TIME")%></div></td> </tr> <tr> <td class="content_lable">8. วิทยากรฝึกอบรม</td> <td ><div class="detail"><%=screen.getDataLabel("MTRAINER","TRFNAME")%> <%=screen.getDataLabel("MTRAINER","TRLNAME")%></div></td> </tr> <tr> <td class="content_lable"> 9. ประมาณค่าใช้จ่าย </td> <td > <% double total=0 ; do{%> <div class="detail"><span style="width:150px; line-height:2.0;">- <%=screen.getDataLabel("MEXPENSE","EXPDESC")%></span><span style="padding-left:100px;"><%=screen.getDataLabel("TTRAINEXP","USED")%></span> บาท</div> <% total += Double.parseDouble(screen.getDataLabel("TTRAINEXP","USED").replace(",","")); %> <%}while(((DbInquiry)screen.getInquiry().getChild("TTRAINEXP")).next());%> <div class="detail"><span style="width:150px; text-decoration:underline; line-height:2.0;" >รวมค่าใช้จ่าย </span> <span style="padding-left:100px;"><% out.print(total);%></span> บาท</div> </td> </tr> <tr> <td class="content_lable">10. ผู้รับผิดชอบโครงการ</td> <td ><div class="detail"> <% do{ %> <div><%=screen.inq.getChild("TTRAINRESP").getChild("MEMPLOYEE").getString("fullname")%></div> <%}while(((DbInquiry)screen.getInquiry().getChild("TTRAINRESP")).next());%> </div></td> </tr> <tr> <td class="content_lable">11. การประเมินผลการอบฝึกรม</td> <td > </td> </tr> <tr> <td colspan="2"> <div id="evaluate"> <div style="float:left ; width:150px"> <input id="content" type="checkbox" > ประเมินจากเนื้อหา</div> <div style="float:left; width:150px"> <input id="obserb" type="checkbox" > จากการสังเกตุการณ์</div> <div style="float:left; width:180px"> <input id="after_train" type="checkbox" > ติดตามหลังการฝึกอบรม</div> </div></td> </tr> <tr> <td><b style="text-decoration:underline; padding-left:10px;">หมายเหตุ :</b></td> <td style="padding-top:10px;"><%=comment%></td> </tr > <tr> <td height="40"> </td> </tr > <tr> <td colspan="2" height="38" style="padding-left:50px ;border-bottom:1px #000 solid ; border-top:1px #000 solid ">จึงเรียนมาเพื่อโปรดพิจารณา</td> </tr> <tr> <td></td> <td > <div style="float:right; padding-right:100px;"> <input id="after_train" type="checkbox" > ไม่อนุมัติ <input id="after_train" type="checkbox" > อนุมัติ</div> </td> </tr > </table> <table width="100%" border="0" align="center" class="signature"> <tr><td width="40%"> </td></tr> <tr> <td > <div class="center"> <div > ผู้ขออนุมัติ ........................................</div> <div> ( <%=Requester%> )</div> <div > วันที่ ....../....../......</div> </div> </td> <td width="20%" > </td> <td width="40%" > <div class="center"> <div >........................................</div> <div>( <%=Endorsee%> )</div> <div ><%=PosEndorsee%> </div> <div > วันที่ ....../....../......</div> </div> </td> </tr> </table> </div> <!----------BEGIN CSC ENDING ZONE ------------------------> <%=screen.endJSP()%> <!----------END CSC ENDING ZONE --------------------------> </form> </body> </html>