<%@page contentType="text/html; charset=UTF-8"%> <%@page import="java.util.*,java.io.*,java.text.*"%> <%@page import="com.csc.library.util.download.*"%> <%@page import="com.csc.library.util.ManageDocument"%> <%@page import="com.csc.library.approve.*,com.csc.library.databean.*"%> <%@page import="com.csc.library.entry.*,com.csc.library.utilities.*"%> <%@page import="com.csc.library.session.*"%> <%request.setCharacterEncoding("UTF-8");%> <jsp:useBean id="TEMPLATE_WORKFLOW" class="com.csc.library.system.Task" scope="page"/> <% TEMPLATE_WORKFLOW.setChannel(request,response); TEMPLATE_WORKFLOW.checkProfile(); if( TEMPLATE_WORKFLOW.getUProfile() != null ){ TEMPLATE_WORKFLOW.getUProfile().set("appname","WELFARE"); UIManager screenSingle = (UIManager) TEMPLATE_WORKFLOW.process("SingleEntry","TEMPLATE_WORKFLOW"); DecimalFormat df = new DecimalFormat("#,##0.00"); %> <% String wf = null; CheckNull chkNull = new CheckNull(); String dss1 = "none"; String dss2 = "none"; String dss3 = "none"; String dss4 = "none"; String dss5 = "none"; String stp= chkNull.chkNullString(request.getParameter("step_id")); if(stp.equals("2")){ dss1 =""; dss2 =""; dss3 =""; dss4 =""; dss5 =""; } Organization og = new Masfactor(screenSingle.getUProfile()); String subject = null; String remark = null; String emp_fullname = null; String bossid = og.getBoss(screenSingle.getUProfile().get("employeeid"),screenSingle.getUProfile().get("job")).get(0).toString(); String bossjob = bossid.substring(bossid.indexOf(":")+1); CscCalendar calendar = new CscCalendar(); long attach_time = Long.parseLong(chkNull.chkNullString(request.getParameter("attach_time"),String.valueOf(calendar.getTimeInMillis()))); if( !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ subject = chkNull.chkNullString(request.getParameter("subject")); remark = chkNull.chkNullString(request.getParameter("__remark")); emp_fullname = chkNull.chkNullString(request.getParameter("emp_fullname")); }else if( chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ response.sendRedirect("../MYNOTE/SENT_COMPLETE.jsp"); }else{ subject = ""; remark = ""; emp_fullname = ""; } bossid = bossid.substring(0,bossid.indexOf(":")); DbRecord memployee_dr = new InitialRecord(screenSingle.getUProfile()).getDbRecord("Memployee"); memployee_dr.setColumn("*"); memployee_dr.set("COMPANYID",screenSingle.getUProfile().get("companyid")); memployee_dr.set("EMPLOYEEID",bossid); memployee_dr.search(); //WF_STATUS 1 = รอการอนุมัติ // 3 = ยกเลิกการอนุมัติ // 4 = อนุมัติแล้ว // 5 = ไม่อนุมัติ // 6 = แก้ไขโดย HR // 7 = ส่งกลับ // 8 = ยกเลิกเอกสาร // 9 = ประวัติ if( (request.getParameter("__runno") == null || request.getParameter("__runno").equals("")) && (request.getParameter("__help") == null || request.getParameter("__help").equals("")) ){ screenSingle.clean(); } if( (!screenSingle.getDataLabel("WF_STATUS").equals("1")) && (!screenSingle.getDataLabel("WF_STATUS").equals("4")) && (!screenSingle.getDataLabel("WF_STATUS").equals("7")) ){ wf = "false"; }else{ wf = "true"; } if( request.getParameter("downfile") != null ){ ThaiUtilities tu = new ThaiUtilities(); String filePath = request.getParameter("downfile"); File f = new File(tu.ASCII2Unicode(filePath)); String fileName = f.getName(); String fileType = fileName.substring(fileName.indexOf(".")+1,fileName.length()); if ( f.exists() && f.canRead() ) { response.setContentType("application/octet-stream"); response.setHeader("Content-Disposition", "attachment; filename="+tu.Unicode2ASCII(f.getName())); response.setHeader("cache-control", "no-cache"); response.setContentLength((int) f.length()); BufferedInputStream fileInput = new BufferedInputStream(new FileInputStream(f)); byte buffer[] = new byte[8 * 1024]; out.clearBuffer(); OutputStream out_s = response.getOutputStream(); CopyStreams.copyStreamsWithoutClose(fileInput, out_s, buffer); out_s.flush(); out_s.close(); fileInput.close(); } } %> <jsp:useBean id="LOG_SENTHELP" class="com.csc.library.system.Task" scope="page"/> <% LOG_SENTHELP.setChannel(request, response); HelpEntry screenHelp = (HelpEntry) LOG_SENTHELP.process("HelpEntry","LOG_SENTHELP"); screenHelp.getInquiry().setFilter("COMPANYID = '"+screenHelp.getUProfile().get("companyid")+"' AND "+ "WF_ID = '"+chkNull.chkNullString(request.getParameter("wf_id"),"315")+"' AND "+ "WF_VER = '"+chkNull.chkNullString(request.getParameter("wf_ver"),"1")+"'" ); screenHelp.referLangOn(); screenHelp.process(); %> <!-- Insert useBean --> <HTML> <HEAD> <TITLE>myNOTE : Business Process Management Service</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> <!-- Insert Link --> <LINK HREF="../CSS/MYNOTE.css" REL="stylesheet" TYPE="text/css"> <LINK HREF="../CSS/MYNOTE_MENU.css" REL="stylesheet" TYPE="text/css"> <!-- Insert Script Import --> <SCRIPT TYPE='text/JavaScript' SRC='../JS/MYNOTE_SCREEN.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../JS/MYNOTE_MENU.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../JS/SCREEN.js'></SCRIPT> <SCRIPT LANGUAGE="JavaScript">setLang('<%=screenSingle.getUProfile().get("lang")%>');</SCRIPT> <!--DWR INCLUDE--> <script src="../JS/VIEWCALENDAR.js"></script> <script type='text/javascript' src='/hr/dwr/interface/SearchDWR.js'></script> <script type='text/javascript' src='/hr/dwr/engine.js'></script> <script type='text/javascript' src='/hr/dwr/util.js'></script> <script type="text/javascript" src="/hr/dwr/interface/SystemCode.js"></script> <script type="text/javascript" src="/hr/dwr/interface/CscCalendar.js"></script> <script type="text/javascript" src="/hr/dwr/interface/CheckRequisition.js"></script> <!--DWR INCLUDE--> <SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript"> <!-- ThaiCode[200]="ไม่สามารถเบิกได้"; EngCode[200]="Can not Request!"; ThaiCode[201]="ยอดสวัสดิการ "; EngCode[201]="Limit of welfare "; ThaiCode[202]="เบิกไปแล้ว"; EngCode[202]="Used amount"; ThaiCode[203]="คงเหลือ"; EngCode[203]="Remain"; ThaiCode[204]="กรุณาเลือกพนักงานด้วยค่ะ"; EngCode[204]="Please Insert Employee ID First"; ThaiCode[207]="ยอดเบิกต่อครั้ง"; EngCode[207]="request per time"; ThaiCode[205] = "กรอกเงินไม่ถูกต้อง !!!!!!\n กรอกได้ไม่เกิน "; EngCode[205] = " This Money is wrong !!!!!!\n Limit is "; ThaiCode[206] = "เงินรวมมั้งหมดไม่ถูกต้อง !!!!!!\n กรอกได้ไม่เกิน "; EngCode[206] = " Summary of Money is wrong !!!!!!\n Limit is "; function cloneValue(obj){ with(document.cscform){ var col= obj.name.substring(obj.name.length-2); eval("__wf__open"+col+".value = obj.value"); } } function chkSumValue(obj){ var indx = obj.name.substring(obj.name.length-2,obj.name.length-1); var nme = obj.name.substring(0,obj.name.length -2); with (document.cscform){ //eval("__wf__cost"); var a1 = eval("__wf__amount"+indx+".value"); a1 = a1.replace(',',''); var a2 =parseFloat(a1); var a3 = parseFloat(obj.value); // alert(a2+" "+indx); var sum = 0; for(a =0;a<elements.length;a++){ if(elements[a].name.indexOf(nme+indx)!=-1 && elements[a].value.length >0){ sum += parseFloat(elements[a].value); } } if( a3>a2){ alert(MyCode[205]+formatCurrency(a2)); }else{ if(sum> a2){ alert(MyCode[206]+formatCurrency(a2)); //obj.focus(); } } //alert(sum); } } var gg= 0; var ga = false; function ddd(){ gg=0; with(document.cscform){ // alert(1<=__wf__addval.value); for(a=1;a<=__wf__addval.value;a++){ ga = false; if(gg==0) eee(a); // alert("aaaaaaaa"); } return ga; } } function eee(n){ // alert("eeeeeeeeeee"); with (document.cscform){ if(eval("__wf__welfaredesc"+n+".value==''")){ alert(MyCode[0]); eval("__wf__welfaredesc"+n+".focus()"); gg=1; }else if(eval("__wf__diseasedesc"+n+".value==''")){ alert(MyCode[0]); eval("__wf__diseasedesc"+n+".focus()"); gg=1; }else if(eval("__wf__amount"+n+".value=='0'")){ alert(MyCode[0]); eval("__wf__amount"+n+".focus()"); gg=1; }else if(eval("__wf__receipt_number"+n+".value==''")){ alert(MyCode[0]); eval("__wf__receipt_number"+n+".focus()"); gg=1; } else if(eval("__wf__sitewel_name"+n+".value==''") && eval("__wf__other_sitewel"+n+".value==''")){ alert(MyCode[0]); eval("__wf__other_sitewel"+n+".focus()"); gg=1; } else ga=true; } } function chkInt1Slash() { if (this.value.indexOf("/") >= 0) chkInteger(); //CALL FUNCTION <> else chkIntAndSlash(); //CALL FUNCTION <> } function chkInt1Dot(ths) { if (ths.value.indexOf(".") >= 0) chkInteger(); //CALL FUNCTION <> else chkIntAndDot(); //CALL FUNCTION <> } function chkIntAndSlash(){ if ((window.event.keyCode != 47) && (window.event.keyCode < 48) || (window.event.keyCode > 57)) window.event.returnValue = false; } function chkIntAndDot(){ if ((window.event.keyCode != 46) && (window.event.keyCode < 48) || (window.event.keyCode > 57)) window.event.returnValue = false; } function chkInt1Percent() { if (this.value.indexOf("%") >= 0) chkInteger(); //CALL FUNCTION <> else chkIntAndPercent(); //CALL FUNCTION <> } function chkIntAndPercent(){ if ((window.event.keyCode != 37) && (window.event.keyCode < 48) || (window.event.keyCode > 57)) window.event.returnValue = false; } function openHelp(){ with( document.cscform ){ window.open("../WELFARE/HELP/WEL215_NSTDA.pdf","Help","left=150,top=150,width=700,height=570,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } var b1 ="true"; var b11 ="true"; var b12 ="true"; var b13 ="true"; var b14 ="true"; var b15 ="true"; var b2 = "true"; var b21 = "true"; var b22 = "true"; var b23 = "true"; var b24 = "true"; var b25 = "true"; var b3 = "true"; var b31 = "true"; var b32 = "true"; var b33 = "true"; var b34 = "true"; var b35 = "true"; var b4 = "true"; var b41 = "true"; var b42= "true"; var b43 = "true"; var b44 = "true"; var b45 = "true"; var b5= "true"; var b51= "true"; var b52= "true"; var b53= "true"; var b54= "true"; var b55= "true"; var mes2 = MyCode[200]+""; var mes11 = ""; var mes111 = ""; var mes112= ""; var mes113 = ""; var mes114 = ""; var mes115 = ""; var mes12 = ""; var mes121 = ""; var mes122 = ""; var mes123 = ""; var mes124 = ""; var mes125 = ""; var mes13 = ""; var mes131 = ""; var mes132 = ""; var mes133 = ""; var mes134 = ""; var mes135 = ""; var mes14 = ""; var mes141 = ""; var mes142 = ""; var mes143 = ""; var mes144 = ""; var mes145 = ""; var mes15 = ""; var mes151 = ""; var mes152 = ""; var mes153 = ""; var mes154 = ""; var mes155 = ""; var wid1 =""; var wid2 = ""; var wid3 = ""; var wid4 =""; var wid5 = ""; var rec1 = function(data1){ if(data1[0]!= "true") mes11 = "\n"+data1[4]+" = "+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b1 = data1[0]; } <!-- group 1 --> var rec11 = function(data1){ if(data1[0]!= "true") mes111 = data1[4]+" "+getOptionText("11")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b11 = data1[0]; } var rec12 = function(data1){ if(data1[0]!= "true") mes112 = "\n"+data1[4]+" "+getOptionText("12")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b12 = data1[0]; } var rec13 = function(data1){ if(data1[0]!= "true") mes113 = "\n"+data1[4]+" "+getOptionText("13")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b13 = data1[0]; } var rec14 = function(data1){ if(data1[0]!= "true") mes114 = "\n"+data1[4]+" "+getOptionText("14")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b14 = data1[0]; } var rec15 = function(data1){ if(data1[0]!= "true") mes115 = "\n"+data1[4]+" "+getOptionText("15")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b15 = data1[0]; } <!-- END group 1 --> <!-- group 2 --> var rec2 = function(data1){ if(data1[0]!= "true") mes12= "\n"+data1[4]+" "+getOptionText("2")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b2 = data1[0]; } var rec21 = function(data1){ if(data1[0]!= "true") mes121= "\n"+data1[4]+" "+getOptionText("21")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b21 = data1[0]; } var rec22 = function(data1){ if(data1[0]!= "true") mes121= "\n"+data1[4]+" "+getOptionText("22")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b22 = data1[0]; } var rec23 = function(data1){ if(data1[0]!= "true") mes123= "\n"+data1[4]+" "+getOptionText("23")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b23 = data1[0]; } var rec24 = function(data1){ if(data1[0]!= "true") mes124= "\n"+data1[4]+" "+getOptionText("24")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b24 = data1[0]; } var rec25 = function(data1){ if(data1[0]!= "true") mes125= "\n"+data1[4]+" "+getOptionText("25")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b25 = data1[0]; } <!-- END group 2 --> <!-- group 3 --> var rec3 = function(data1){ if(data1[0]!= "true") mes13= "\n"+data1[4]+" "+getOptionText("3")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b3 = data1[0]; } var rec31 = function(data1){ if(data1[0]!= "true") mes131= "\n"+data1[4]+" "+getOptionText("31")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b31 = data1[0]; } var rec32 = function(data1){ if(data1[0]!= "true") mes132= "\n"+data1[4]+" "+getOptionText("32")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b32 = data1[0]; } var rec33 = function(data1){ if(data1[0]!= "true") mes133= "\n"+data1[4]+" "+getOptionText("33")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b33 = data1[0]; } var rec34 = function(data1){ if(data1[0]!= "true") mes134= "\n"+data1[4]+" "+getOptionText("34")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b34 = data1[0]; } var rec35 = function(data1){ if(data1[0]!= "true") mes135= "\n"+data1[4]+" "+getOptionText("35")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b35 = data1[0]; } <!-- END group 3 --> <!-- group 3 --> var rec4 = function(data1){ if(data1[0]!= "true") mes14= "\n"+data1[4]+" "+getOptionText("4")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b4 = data1[0]; } var rec41 = function(data1){ if(data1[0]!= "true") mes141= "\n"+data1[4]+" "+getOptionText("41")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b41 = data1[0]; } var rec42 = function(data1){ if(data1[0]!= "true") mes142= "\n"+data1[4]+" "+getOptionText("42")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b42 = data1[0]; } var rec43 = function(data1){ if(data1[0]!= "true") mes143= "\n"+data1[4]+" "+getOptionText("43")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b43 = data1[0]; } var rec44 = function(data1){ if(data1[0]!= "true") mes144= "\n"+data1[4]+" "+getOptionText("44")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b44 = data1[0]; } var rec45 = function(data1){ if(data1[0]!= "true") mes145= "\n"+data1[4]+" "+getOptionText("45")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b45 = data1[0]; } <!-- END group 4 --> <!-- group 5 --> var rec5 = function(data1){ if(data1[0]!= "true") mes15= "\n"+data1[4]+" "+getOptionText("5")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b5 = data1[0]; } var rec51 = function(data1){ if(data1[0]!= "true") mes151= "\n"+data1[4]+" "+getOptionText("51")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b51 = data1[0]; } var rec52 = function(data1){ if(data1[0]!= "true") mes152= "\n"+data1[4]+" "+getOptionText("52")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b52 = data1[0]; } var rec53 = function(data1){ if(data1[0]!= "true") mes153= "\n"+data1[4]+" "+getOptionText("53")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b53 = data1[0]; } var rec54 = function(data1){ if(data1[0]!= "true") mes154= "\n"+data1[4]+" "+getOptionText("54")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b54 = data1[0]; } var rec55 = function(data1){ if(data1[0]!= "true") mes155= "\n"+data1[4]+" "+getOptionText("55")+" "+mes2+"\n"+MyCode[201]+"="+data1[2]+"\n"+MyCode[207]+"="+data1[5]+"\n"+MyCode[202]+" = "+data1[1]+"\n"+MyCode[203]+" = "+data1[3]+"\n"; b55 = data1[0]; } <!-- END group 5 --> function getOptionText(strIndex){ with(document.cscform){ var reStr=eval("__wf__detail"+strIndex+".options[__wf__detail"+strIndex+".selectedIndex].text"); return reStr; } } function GoWFM(){ with(document.cscform){ wid1 = __wf__welfare1.value; wid2 = __wf__welfare2.value; wid3 = __wf__welfare3.value; wid4 = __wf__welfare4.value; wid5 = __wf__welfare5.value; // alert("DDD"); // alert("AAAA"); // alert(wid1.length+" "+wid2.length+" "+wid3.length+" "+wid4.length+" "+wid5.length); if(ddd()){ if(wid1.length>0){ CheckRequisition.checkCondition(new Array(wid1,__wf__employeeid.value,__wf__open11.value,__wf__family1.value,__wf__receipt_date1.value,'',__wf__detail11.options[__wf__detail11.selectedIndex].value,__wf__sitewelid1.value,__wf__cost11.value,__wf__requisition_type.value),rec11); if(dt12.style.display!="none") CheckRequisition.checkCondition(new Array(wid1,__wf__employeeid.value,__wf__open12.value,__wf__family1.value,__wf__receipt_date1.value,'',__wf__detail12.options[__wf__detail12.selectedIndex].value,__wf__sitewelid1.value,__wf__cost12.value,__wf__requisition_type.value),rec12); if(dt13.style.display!="none") CheckRequisition.checkCondition(new Array(wid1,__wf__employeeid.value,__wf__open13.value,__wf__family1.value,__wf__receipt_date1.value,'',__wf__detail13.options[__wf__detail13.selectedIndex].value,__wf__sitewelid1.value,__wf__cost13.value,__wf__requisition_type.value),rec13); if(dt14.style.display!="none") CheckRequisition.checkCondition(new Array(wid1,__wf__employeeid.value,__wf__open14.value,__wf__family1.value,__wf__receipt_date1.value,'',__wf__detail14.options[__wf__detail14.selectedIndex].value,__wf__sitewelid1.value,__wf__cost14.value,__wf__requisition_type.value),rec14); if(dt15.style.display!="none") CheckRequisition.checkCondition(new Array(wid1,__wf__employeeid.value,__wf__open15.value,__wf__family1.value,__wf__receipt_date1.value,'',__wf__detail15.options[__wf__detail15.selectedIndex].value,__wf__sitewelid1.value,__wf__cost15.value,__wf__requisition_type.value),rec15); } if(wid2.length>0){ CheckRequisition.checkCondition(new Array(wid2,__wf__employeeid.value,__wf__open21.value,__wf__family2.value,__wf__receipt_date2.value,'',__wf__detail21.options[__wf__detail21.selectedIndex].value,__wf__sitewelid2.value,__wf__cost21.value,__wf__requisition_type.value),rec21); if(dt22.style.display!="none") CheckRequisition.checkCondition(new Array(wid2,__wf__employeeid.value,__wf__open22.value,__wf__family2.value,__wf__receipt_date2.value,'',__wf__detail22.options[__wf__detail22.selectedIndex].value,__wf__sitewelid2.value,__wf__cost22.value,__wf__requisition_type.value),rec22); if(dt23.style.display!="none") CheckRequisition.checkCondition(new Array(wid2,__wf__employeeid.value,__wf__open23.value,__wf__family2.value,__wf__receipt_date2.value,'',__wf__detail23.options[__wf__detail23.selectedIndex].value,__wf__sitewelid2.value,__wf__cost23.value,__wf__requisition_type.value),rec23); if(dt24.style.display!="none") CheckRequisition.checkCondition(new Array(wid2,__wf__employeeid.value,__wf__open24.value,__wf__family2.value,__wf__receipt_date2.value,'',__wf__detail24.options[__wf__detail24.selectedIndex].value,__wf__sitewelid2.value,__wf__cost24.value,__wf__requisition_type.value),rec24); if(dt25.style.display!="none") CheckRequisition.checkCondition(new Array(wid2,__wf__employeeid.value,__wf__open25.value,__wf__family2.value,__wf__receipt_date2.value,'',__wf__detail25.options[__wf__detail25.selectedIndex].value,__wf__sitewelid2.value,__wf__cost25.value,__wf__requisition_type.value),rec25); } if(wid3.length>0){ CheckRequisition.checkCondition(new Array(wid3,__wf__employeeid.value,__wf__open31.value,__wf__family3.value,__wf__receipt_date3.value,'',__wf__detail31.options[__wf__detail31.selectedIndex].value,__wf__sitewelid3.value,__wf__cost31.value,__wf__requisition_type.value),rec31); if(dt32.style.display!="none") CheckRequisition.checkCondition(new Array(wid3,__wf__employeeid.value,__wf__open32.value,__wf__family3.value,__wf__receipt_date3.value,'',__wf__detail32.options[__wf__detail32.selectedIndex].value,__wf__sitewelid3.value,__wf__cost32.value,__wf__requisition_type.value),rec32); if(dt33.style.display!="none") CheckRequisition.checkCondition(new Array(wid3,__wf__employeeid.value,__wf__open33.value,__wf__family3.value,__wf__receipt_date3.value,'',__wf__detail33.options[__wf__detail33.selectedIndex].value,__wf__sitewelid3.value,__wf__cost33.value,__wf__requisition_type.value),rec33); if(dt34.style.display!="none") CheckRequisition.checkCondition(new Array(wid3,__wf__employeeid.value,__wf__open34.value,__wf__family3.value,__wf__receipt_date3.value,'',__wf__detail34.options[__wf__detail34.selectedIndex].value,__wf__sitewelid3.value,__wf__cost35.value,__wf__requisition_type.value),rec34); if(dt35.style.display!="none") CheckRequisition.checkCondition(new Array(wid3,__wf__employeeid.value,__wf__open35.value,__wf__family3.value,__wf__receipt_date3.value,'',__wf__detail35.options[__wf__detail35.selectedIndex].value,__wf__sitewelid3.value,__wf__cost35.value,__wf__requisition_type.value),rec35); } if(wid4.length>0){ CheckRequisition.checkCondition(new Array(wid4,__wf__employeeid.value,__wf__open41.value,__wf__family4.value,__wf__receipt_date4.value,'',__wf__detail41.options[__wf__detail41.selectedIndex].value,__wf__sitewelid4.value,__wf__cost41.value,__wf__requisition_type.value),rec41); if(dt42.style.display!="none") CheckRequisition.checkCondition(new Array(wid4,__wf__employeeid.value,__wf__open42.value,__wf__family4.value,__wf__receipt_date4.value,'',__wf__detail42.options[__wf__detail42.selectedIndex].value,__wf__sitewelid4.value,__wf__cost42.value,__wf__requisition_type.value),rec42); if(dt43.style.display!="none") CheckRequisition.checkCondition(new Array(wid4,__wf__employeeid.value,__wf__open43.value,__wf__family4.value,__wf__receipt_date4.value,'',__wf__detail43.options[__wf__detail43.selectedIndex].value,__wf__sitewelid4.value,__wf__cost43.value,__wf__requisition_type.value),rec43); if(dt44.style.display!="none") CheckRequisition.checkCondition(new Array(wid4,__wf__employeeid.value,__wf__open44.value,__wf__family4.value,__wf__receipt_date4.value,'',__wf__detail44.options[__wf__detail44.selectedIndex].value,__wf__sitewelid4.value,__wf__cost44.value,__wf__requisition_type.value),rec44); if(dt45.style.display!="none") CheckRequisition.checkCondition(new Array(wid4,__wf__employeeid.value,__wf__open45.value,__wf__family4.value,__wf__receipt_date4.value,'',__wf__detail45.options[__wf__detail45.selectedIndex].value,__wf__sitewelid4.value,__wf__cost45.value,__wf__requisition_type.value),rec45); } if(wid5.length>0){ CheckRequisition.checkCondition(new Array(wid5,__wf__employeeid.value,__wf__open51.value,__wf__family5.value,__wf__receipt_date5.value,'',__wf__detail51.options[__wf__detail51.selectedIndex].value,__wf__sitewelid5.value,__wf__cost51.value,__wf__requisition_type.value),rec51); if(dt52.style.display!="none") CheckRequisition.checkCondition(new Array(wid5,__wf__employeeid.value,__wf__open52.value,__wf__family5.value,__wf__receipt_date5.value,'',__wf__detail52.options[__wf__detail52.selectedIndex].value,__wf__sitewelid5.value,__wf__cost52.value,__wf__requisition_type.value),rec52); if(dt52.style.display!="none") CheckRequisition.checkCondition(new Array(wid5,__wf__employeeid.value,__wf__open53.value,__wf__family5.value,__wf__receipt_date5.value,'',__wf__detail53.options[__wf__detail53.selectedIndex].value,__wf__sitewelid5.value,__wf__cost53.value,__wf__requisition_type.value),rec53); if(dt54.style.display!="none") CheckRequisition.checkCondition(new Array(wid5,__wf__employeeid.value,__wf__open54.value,__wf__family5.value,__wf__receipt_date5.value,'',__wf__detail54.options[__wf__detail54.selectedIndex].value,__wf__sitewelid5.value,__wf__cost54.value,__wf__requisition_type.value),rec54); if(dt55.style.display!="none") CheckRequisition.checkCondition(new Array(wid5,__wf__employeeid.value,__wf__open55.value,__wf__family5.value,__wf__receipt_date5.value,'',__wf__detail55.options[__wf__detail55.selectedIndex].value,__wf__sitewelid5.value,__wf__cost55.value,__wf__requisition_type.value),rec55); } setTimeout("process()",12000); }//end if ddd //else GoWF(); } // alert("--------------------3333333333333-----------------"); } function process(){ if(b11!="true" || b12!="true" || b13!="true" || b14!="true" || b15!="true"||b21!="true" || b22!="true" || b23!="true" || b24!="true" || b25!="true"||b31!="true" || b32!="true" || b33!="true" || b34!="true" || b35!="true"||b41!="true" || b42!="true" || b43!="true" || b44!="true" || b45!="true"||b51!="true" || b52!="true" || b53!="true" || b54!="true" || b55!="true"){ alert(mes2+mes111+mes112+mes113+mes114+mes115+mes121+mes122+mes123+mes124+mes125+mes131+mes132+mes133+mes134+mes135+mes141+mes142+mes143+mes144+mes145+mes151+mes152+mes153+mes154+mes155); }else{ GoWF(); } } function GoWFM2(){ with(document.cscform){ wid1 = __wf__welfare1.value; wid2 = __wf__welfare2.value; wid3 = __wf__welfare3.value; wid4 = __wf__welfare4.value; wid5 = __wf__welfare5.value; for(var a = 0;a<wf_command.length;a++){ if(wf_command[a].checked){ if( wf_command[a].value =="send"){ //alert(wf_command[a].value); // if(ddd()){ if(wid1.length>0){ CheckRequisition.checkCondition(new Array(wid1,__wf__employeeid.value,__wf__open11.value,__wf__family1.value,__wf__receipt_date1.value,'',__wf__detail11.options[__wf__detail11.selectedIndex].value,__wf__sitewelid1.value),rec11); if(dt12.style.display!="none") CheckRequisition.checkCondition(new Array(wid1,__wf__employeeid.value,__wf__open12.value,__wf__family1.value,__wf__receipt_date1.value,'',__wf__detail12.options[__wf__detail12.selectedIndex].value,__wf__sitewelid1.value),rec12); if(dt13.style.display!="none") CheckRequisition.checkCondition(new Array(wid1,__wf__employeeid.value,__wf__open13.value,__wf__family1.value,__wf__receipt_date1.value,'',__wf__detail13.options[__wf__detail13.selectedIndex].value,__wf__sitewelid1.value),rec13); if(dt14.style.display!="none") CheckRequisition.checkCondition(new Array(wid1,__wf__employeeid.value,__wf__open14.value,__wf__family1.value,__wf__receipt_date1.value,'',__wf__detail14.options[__wf__detail14.selectedIndex].value,__wf__sitewelid1.value),rec14); if(dt15.style.display!="none") CheckRequisition.checkCondition(new Array(wid1,__wf__employeeid.value,__wf__open15.value,__wf__family1.value,__wf__receipt_date1.value,'',__wf__detail15.options[__wf__detail15.selectedIndex].value,__wf__sitewelid1.value),rec15); } if(wid2.length>0){ CheckRequisition.checkCondition(new Array(wid2,__wf__employeeid.value,__wf__open21.value,__wf__family2.value,__wf__receipt_date2.value,'',__wf__detail21.options[__wf__detail21.selectedIndex].value,__wf__sitewelid2.value),rec21); if(dt22.style.display!="none") CheckRequisition.checkCondition(new Array(wid2,__wf__employeeid.value,__wf__open22.value,__wf__family2.value,__wf__receipt_date2.value,'',__wf__detail22.options[__wf__detail22.selectedIndex].value,__wf__sitewelid2.value),rec22); if(dt23.style.display!="none") CheckRequisition.checkCondition(new Array(wid2,__wf__employeeid.value,__wf__open23.value,__wf__family2.value,__wf__receipt_date2.value,'',__wf__detail23.options[__wf__detail23.selectedIndex].value,__wf__sitewelid2.value),rec23); if(dt24.style.display!="none") CheckRequisition.checkCondition(new Array(wid2,__wf__employeeid.value,__wf__open24.value,__wf__family2.value,__wf__receipt_date2.value,'',__wf__detail24.options[__wf__detail24.selectedIndex].value,__wf__sitewelid2.value),rec24); if(dt25.style.display!="none") CheckRequisition.checkCondition(new Array(wid2,__wf__employeeid.value,__wf__open25.value,__wf__family2.value,__wf__receipt_date2.value,'',__wf__detail25.options[__wf__detail25.selectedIndex].value,__wf__sitewelid2.value),rec25); } if(wid3.length>0){ CheckRequisition.checkCondition(new Array(wid3,__wf__employeeid.value,__wf__open31.value,__wf__family3.value,__wf__receipt_date3.value,'',__wf__detail31.options[__wf__detail31.selectedIndex].value,__wf__sitewelid3.value),rec31); if(dt32.style.display!="none") CheckRequisition.checkCondition(new Array(wid3,__wf__employeeid.value,__wf__open32.value,__wf__family3.value,__wf__receipt_date3.value,'',__wf__detail32.options[__wf__detail32.selectedIndex].value,__wf__sitewelid3.value),rec32); if(dt33.style.display!="none") CheckRequisition.checkCondition(new Array(wid3,__wf__employeeid.value,__wf__open33.value,__wf__family3.value,__wf__receipt_date3.value,'',__wf__detail33.options[__wf__detail33.selectedIndex].value,__wf__sitewelid3.value),rec33); if(dt34.style.display!="none") CheckRequisition.checkCondition(new Array(wid3,__wf__employeeid.value,__wf__open34.value,__wf__family3.value,__wf__receipt_date3.value,'',__wf__detail34.options[__wf__detail34.selectedIndex].value,__wf__sitewelid3.value),rec34); if(dt35.style.display!="none") CheckRequisition.checkCondition(new Array(wid3,__wf__employeeid.value,__wf__open35.value,__wf__family3.value,__wf__receipt_date3.value,'',__wf__detail35.options[__wf__detail35.selectedIndex].value,__wf__sitewelid3.value),rec35); } if(wid4.length>0){ CheckRequisition.checkCondition(new Array(wid4,__wf__employeeid.value,__wf__open41.value,__wf__family4.value,__wf__receipt_date4.value,'',__wf__detail41.options[__wf__detail41.selectedIndex].value,__wf__sitewelid4.value),rec41); if(dt42.style.display!="none") CheckRequisition.checkCondition(new Array(wid4,__wf__employeeid.value,__wf__open42.value,__wf__family4.value,__wf__receipt_date4.value,'',__wf__detail42.options[__wf__detail42.selectedIndex].value,__wf__sitewelid4.value),rec42); if(dt43.style.display!="none") CheckRequisition.checkCondition(new Array(wid4,__wf__employeeid.value,__wf__open43.value,__wf__family4.value,__wf__receipt_date4.value,'',__wf__detail43.options[__wf__detail43.selectedIndex].value,__wf__sitewelid4.value),rec43); if(dt44.style.display!="none") CheckRequisition.checkCondition(new Array(wid4,__wf__employeeid.value,__wf__open44.value,__wf__family4.value,__wf__receipt_date4.value,'',__wf__detail44.options[__wf__detail44.selectedIndex].value,__wf__sitewelid4.value),rec44); if(dt45.style.display!="none") CheckRequisition.checkCondition(new Array(wid4,__wf__employeeid.value,__wf__open45.value,__wf__family4.value,__wf__receipt_date4.value,'',__wf__detail45.options[__wf__detail45.selectedIndex].value,__wf__sitewelid4.value),rec45); } if(wid5.length>0){ CheckRequisition.checkCondition(new Array(wid5,__wf__employeeid.value,__wf__open51.value,__wf__family5.value,__wf__receipt_date5.value,'',__wf__detail51.options[__wf__detail51.selectedIndex].value,__wf__sitewelid5.value),rec51); if(dt52.style.display!="none") CheckRequisition.checkCondition(new Array(wid5,__wf__employeeid.value,__wf__open52.value,__wf__family5.value,__wf__receipt_date5.value,'',__wf__detail52.options[__wf__detail52.selectedIndex].value,__wf__sitewelid5.value),rec52); if(dt52.style.display!="none") CheckRequisition.checkCondition(new Array(wid5,__wf__employeeid.value,__wf__open53.value,__wf__family5.value,__wf__receipt_date5.value,'',__wf__detail53.options[__wf__detail53.selectedIndex].value,__wf__sitewelid5.value),rec53); if(dt54.style.display!="none") CheckRequisition.checkCondition(new Array(wid5,__wf__employeeid.value,__wf__open54.value,__wf__family5.value,__wf__receipt_date5.value,'',__wf__detail54.options[__wf__detail54.selectedIndex].value,__wf__sitewelid5.value),rec54); if(dt55.style.display!="none") CheckRequisition.checkCondition(new Array(wid5,__wf__employeeid.value,__wf__open55.value,__wf__family5.value,__wf__receipt_date5.value,'',__wf__detail55.options[__wf__detail55.selectedIndex].value,__wf__sitewelid5.value),rec55); } setTimeout("process()",12000); // }//end if ddd }else GoWF(); break; } } } } function goHelp(helpName,inputName,condition){ with( document.cscform ){ var helpReturn; var temp=""; if( inputName=="sendto" ){ temp = __fixCon.value; __fixCon.value="job='"+condition+"'"; helpReturn="wf_next_actor:EMPLOYEEID,sendto:MEMPLOYEE@FULLNAME"; linkHelp_SendToReturn(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="cc" ){ temp = __fixCon.value; helpReturn="wf_cc_actor:EMPLOYEEID,cc:MEMPLOYEE@FULLNAME"; linkHelp_SendToReturn(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__employeeid" ){ temp = __fixCon.value; helpReturn="__employeeid:EMPLOYEEID,MEMPLOYEE@FULLNAME,emp_fullname:MEMPLOYEE.FULLNAME"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; } else if(inputName=="__wf__employeeid" ){ helpReturn="__wf__employeeid:employeeid,__wf__empfullname:memployee.fullname"; __wf__family1.disabled=true; __wf__family2.disabled=true; __wf__family3.disabled=true; __wf__family4.disabled=true; __wf__family5.disabled=true; __wf__family1.value=""; __wf__family2.value=""; __wf__family3.value=""; __wf__family4.value=""; __wf__family5.value=""; linkHelp_Return(helpName,helpReturn); } else if(inputName=="__fundtableid" ){ helpReturn="__wf__new_fundtablem:fundtableid"; linkHelp_Return(helpName,helpReturn); } else if(inputName.indexOf("__sitewelid")!=-1 ){ var r = inputName.substring(inputName.lastIndexOf("d")+1); helpReturn="__wf__sitewelid"+r+":sitewelid,__wf__sitewelgid"+r+":sitewelgid,__wf__sitewel_name"+r+":msitewel.tdesc"; fixcon="siteweltype='0'"; linkHelp_ReturnF(helpName,helpReturn,fixcon); } else if(inputName.indexOf("__wf__welfare")!=-1 ){ var r = inputName.substring(inputName.lastIndexOf("e")+1); helpReturn= inputName+":welid,__wf__welfaredesc"+r+":tdesc,__wf__docgid"+r+":docgid,__wf__whouse"+r+":whouse"; fixcon="iseducation<>'1'"; linkHelp_ReturnW(helpName,helpReturn,fixcon); }else if(inputName.indexOf("__wf__disease")!=-1 ){ var r = inputName.substring(inputName.lastIndexOf("e")+1); helpReturn= inputName+":disid,__wf__diseasedesc"+r+":tdesc"; linkHelp_Return(helpName,helpReturn); }else if(inputName.indexOf("__wf__requisid")!=-1 ){ var r = inputName.substring(inputName.lastIndexOf("d")+1); helpReturn= inputName+":requisid,__wf__requisiddesc"+r+":tdesc"; linkHelp_Return(helpName,helpReturn); } } } function linkHelp_ReturnW(help,input,fixcon){ with( document.cscform ){ var param="WEL202_NSTDAHELP.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+fixcon+"&__checkVerify=off&__langOn=off&__chkreg=1&&employeeid="+__wf__employeeid.value; window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function linkHelp_ReturnF(help,input,fixcon){ with( document.cscform ){ var param="BROWSE_HELP.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+fixcon+"&__checkVerify=off&__langOn=off"; window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function linkHelp_SendToReturn(help,input){ with( document.cscform ){ var param="BROWSE_USER.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off"; window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function linkHelp_SendToReturn(help,input){ with( document.cscform ){ var param="BROWSE_USER.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off"; window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function linkHelp_Return(help,input){ with( document.cscform ){ var param="BROWSE_HELP.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off"; window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function linkHelp_Return1(help,input){ with( document.cscform ){ var param="WEL202_NSTDAHELP.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off"; //alert(param); window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function linkHelpWF(help,input){ with(document.cscform){ var temp = __fixCon.value; var fix = "wf_id='"+wf_id.value+"' and wf_ver='"+wf_ver.value+"' and initiator='<%=screenSingle.getUProfile().get("actor")%>' and (wf_status<>'4' and wf_status<>'6' and wf_status<>'3' and wf_status<>'8' and wf_status<>'A' and wf_status<>'B')"; var param="BROWSE_HELP.jsp?__helpName="+help+"&__fieldSearch="+input+"&__pageCall="+__screen.value+"&__fixCon="+fix; window.open(param,"Help","left=150,top=150,width=530,height=370,resizable=yes,scrollbars=yes,toolbar=no,status=yes"); __fixCon.value = temp; } } function addSentto(username,userid){ with( document.cscform ){ sendto.value = username; wf_next_actor.value = userid; document.getElementById("menu_child").style.visibility = 'hidden'; } } <!-- Insert JavaScript --> --> </SCRIPT> <script language="javascript"> function clssitewel(r){ with(document.cscform){ eval("__wf__sitewelid"+r+".value=''"); eval("__wf__sitewelgid"+r+".value=''"); eval("__wf__sitewel_name"+r+".value=''"); } } function goPages(num,dis){ with( document.cscform ){ var docgid = eval("__wf__docgid"+num).value; //docgid = docgid.substring(docgid.indexOf("$")+1); //alert(docgid); var sitewel = eval("__wf__sitewelgid"+num).value; var doclist =""; if(dis.length>0) { doclist = eval("__wf__attach"+num).value; }//alert(docgid+sitewel); var pam="WEL214_NSTDA.jsp?__num="+num+"&__fixCon=docgid='"+docgid+"'&__doclist="+doclist+"&__sitewelgid="+sitewel+"&__disabled="+dis; //alert(eval("__wf__attach"+num).value); } window.open(pam,"Help","left=150,top=150,width=700,height=500,toolbar=no,status=yes,scrollbars=yes"); } var callback1 = function(data1){ DWRUtil.setValue('__lfname_spouse', data1[0]); //DWRUtil.setValue('__ifname_spouse', data1[1]); //alert(data1[1]); } var degree = function(data1){ var str=""; for(i=0;i<data1.length;i++){ //alert(data1[i][0]+","+data1[i][1]+","+data1[i][2]); str = str + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; } DWRUtil.setValue('__degree',"<select name=\"__wf__educate1\">"+str+"</select>"); DWRUtil.setValue('__degree2',"<select name=\"__wf__educate2\">"+str+"</select>"); DWRUtil.setValue('__degree3',"<select name=\"__wf__educate3\">"+str+"</select>"); } var ddata1=null; var ddata2=null; var ddata3=null; var selectdegree = function(data1){ var d1=""; var d2=""; var d3=""; for(i=0;i<data1.length;i++){ if(ddata1==data1[i][0]) d1 = d1 + "<option value="+data1[i][0]+" selected >"+data1[i][1]+"</option>"; else d1 = d1 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(ddata2==data1[i][0]) d2 = d2 + "<option value="+data1[i][0]+" selected >"+data1[i][1]+"</option>"; else d2 = d2 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(ddata3==data1[i][0]) d3 = d3 + "<option value="+data1[i][0]+" selected >"+data1[i][1]+"</option>"; else d3 = d3 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; } DWRUtil.setValue('__degree',"<select name=\"__wf__educate1\" disabled>"+d1+"</select>"); DWRUtil.setValue('__degree2',"<select name=\"__wf__educate2\" disabled>"+d2+"</select>"); DWRUtil.setValue('__degree3',"<select name=\"__wf__educate3\" disabled>"+d3+"</select>"); } var institute = function(data1){ var str=""; for(i=0;i<data1.length;i++){ //alert(data1[i][0]+","+data1[i][1]+","+data1[i][2]); str = str + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; } DWRUtil.setValue('__institute',"<select name=\"__wf__institute1\">"+str+"</select>"); DWRUtil.setValue('__institute2',"<select name=\"__wf__institute2\">"+str+"</select>"); DWRUtil.setValue('__institute3',"<select name=\"__wf__institute3\">"+str+"</select>"); } var idata1=null; var idata2 = null; var idata3 = null; var selectinstitute = function(data1){ var i1=""; var i2=""; var i3=""; for(i=0;i<data1.length;i++){ if(idata1==data1[i][0]) i1 = i1 + "<option value="+data1[i][0]+" selected >"+data1[i][1]+"</option>"; else i1 = i1 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(idata2==data1[i][0]) i2 = i2 + "<option value="+data1[i][0]+" selected >"+data1[i][1]+"</option>"; else i2 = i2 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(idata3==data1[i][0]) i3 = i3 + "<option value="+data1[i][0]+" selected >"+data1[i][1]+"</option>"; else i3 = i3 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; } DWRUtil.setValue('__institute',"<select name=\"__wf__institute1\" disabled>"+i1+"</select>"); DWRUtil.setValue('__institute2',"<select name=\"__wf__institute2\" disabled>"+i2+"</select>"); DWRUtil.setValue('__institute3',"<select name=\"__wf__institute3\" disabled>"+i3+"</select>"); } var child = function(data1){ var str=""; for(i=0;i<data1.length;i++){ //alert(data1[i][0]+","+data1[i][1]+","+data1[i][2]); str = str + "<option value="+data1[i][0]+">"+data1[i][0]+"</option>"; } DWRUtil.setValue('__child',"<select name=\"__wf__child1\">"+str+"</select>"); DWRUtil.setValue('__child2',"<select name=\"__wf__child2\">"+str+"</select>"); DWRUtil.setValue('__child3',"<select name=\"__wf__child3\">"+str+"</select>"); } var cdata1 = null; var cdata2 = null; var cdata3 = null; var selectchild = function(data1){ var c1=""; var c2=""; var c3 =""; for(i=0;i<data1.length;i++){ //alert(data1[i][0]+","+data1[i][1]+","+data1[i][2]); if(cdata1==data1[i][4]) c1 = c1 + "<option value="+data1[i][0]+" selected>"+data1[i][0]+"</option>"; else c1 = c1 + "<option value="+data1[i][0]+">"+data1[i][0]+"</option>"; if(cdata2==data1[i][4]) c2 = c2 + "<option value="+data1[i][0]+" selected>"+data1[i][0]+"</option>"; else c2 = c2 + "<option value="+data1[i][0]+">"+data1[i][0]+"</option>"; if(cdata3==data1[i][4]) c3 = c3 + "<option value="+data1[i][0]+" selected>"+data1[i][0]+"</option>"; else c3 = c3 + "<option value="+data1[i][0]+">"+data1[i][0]+"</option>"; } DWRUtil.setValue('__child',"<select name=\"__wf__child1\" disabled>"+c1+"</select>"); DWRUtil.setValue('__child2',"<select name=\"__wf__child2\" disabled>"+c2+"</select>"); DWRUtil.setValue('__child3',"<select name=\"__wf__child3\" disabled>"+c3+"</select>"); } function showcol(co){ for(j =2;j<=parseInt(co);j++){ addcol(j); } document.cscform.__wf__addval.value = parseInt(co); } function addcol(num){ eval("wel"+num+"1.style.display=''"); eval("wel"+num+"2.style.display=''"); eval("dt"+num+"1.style.display=''"); } function delcol(num){ eval("wel"+num+"1.style.display='none'"); eval("wel"+num+"2.style.display='none'"); eval("dt"+num+"1.style.display='none'"); } function showtcol(num,co){ for(j =1;j<=parseInt(co);j++){ addtcol(num,j); } //document.cscform.__wf__addval.value = parseInt(co); } function addtcol(num,num2){ eval("dt"+num+num2+".style.display=''"); } function deltcol(num,num2){ eval("dt"+num+num2+".style.display='none'"); } var at1 =1; var at2 =1; var at3 =1; var at4 =1; var at5 =1; function addt(num){ //alert(eval("at"+num)); if(eval("at"+num)<5) eval("at"+num+"++"); addtcol(num,eval("at"+num)); //alert(addval); eval("document.cscform.__wf__at"+num+".value = at"+num); } function delt(num){ if(eval("at"+num) >1){ deltcol(num,eval("at"+num)); eval("at"+num+"--"); } //alert(addval); eval("document.cscform.__wf__at"+num+".value = at"+num); } var addval =1; function add(){ if(addval<5) addval++; addcol(addval); //alert(addval); document.cscform.__wf__addval.value = addval; } function del(){ if(addval >1){ eval("wel"+addval+"1.style.display='none'"); eval("wel"+addval+"2.style.display='none'"); eval("dt"+addval+"1.style.display='none'"); eval("dt"+addval+"2.style.display='none'"); eval("dt"+addval+"3.style.display='none'"); eval("dt"+addval+"4.style.display='none'"); eval("dt"+addval+"5.style.display='none'"); addval--; eval(" __wf__welfare"+addval+".value=''"); } //alert(addval); document.cscform.__wf__addval.value = addval; } var welfare = function(data1){ var str=""; for(i=0;i<data1.length;i++){ //alert(data1[i][0]+","+data1[i][1]+","+data1[i][2]); str = str + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+">"+data1[i][1]+"</option>"; } /* DWRUtil.setValue('__welfare1',"<select name=\"__wf__welfare1\" onChange=\"javascript:chkFamily(this);\">"+str+"</select>"); DWRUtil.setValue('__welfare2',"<select name=\"__wf__welfare2\" onChange=\"javascript:chkFamily(this);\">"+str+"</select>"); DWRUtil.setValue('__welfare3',"<select name=\"__wf__welfare3\" onChange=\"javascript:chkFamily(this);\">"+str+"</select>"); DWRUtil.setValue('__welfare4',"<select name=\"__wf__welfare4\" onChange=\"javascript:chkFamily(this);\">"+str+"</select>"); DWRUtil.setValue('__welfare5',"<select name=\"__wf__welfare5\" onChange=\"javascript:chkFamily(this);\">"+str+"</select>"); */ d = "<option value=>----------------Undified-------------</option>"; DWRUtil.setValue('__family1',"<select name=\"__wf__family1\" disabled>"+d+"</select>"); DWRUtil.setValue('__family2',"<select name=\"__wf__family2\" disabled>"+d+"</select>"); DWRUtil.setValue('__family3',"<select name=\"__wf__family3\" disabled>"+d+"</select>"); DWRUtil.setValue('__family4',"<select name=\"__wf__family4\" disabled>"+d+"</select>"); DWRUtil.setValue('__family5',"<select name=\"__wf__family5\" disabled>"+d+"</select>"); } wdata1 = null; wdata2 = null; wdata3 = null; wdata4 = null; wdata5 = null; var selectwelfare = function(data1){ wdata1 = wdata1.substring(0,wdata1.indexOf("$")-1); wdata2 = wdata2.substring(0,wdata2.indexOf("$")-1); wdata3 = wdata3.substring(0,wdata3.indexOf("$")-1); wdata4 = wdata4.substring(0,wdata4.indexOf("$")-1); wdata5 = wdata5.substring(0,wdata5.indexOf("$")-1); //alert(wdata1+","+wdata2+","+wdata3+","+wdata4+","+wdata5); var w1=""; var w2=""; var w3=""; var w4=""; var w5=""; for(i=0;i<data1.length;i++){ if(wdata1==data1[i][0]) w1= w1 + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+" selected>"+data1[i][1]+"</option>"; else w1= w1 + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+">"+data1[i][1]+"</option>"; if(wdata2==data1[i][0]) w2= w2 + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+" selected>"+data1[i][1]+"</option>"; else w2= w2 + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+">"+data1[i][1]+"</option>"; if(wdata3==data1[i][0]) w3= w3 + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+" selected>"+data1[i][1]+"</option>"; else w3= w3 + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+">"+data1[i][1]+"</option>"; if(wdata4==data1[i][0]) w4= w4 + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+" selected>"+data1[i][1]+"</option>"; else w4= w4 + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+">"+data1[i][1]+"</option>"; if(wdata5==data1[i][0]) w5= w5 + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+" selected>"+data1[i][1]+"</option>"; else w5= w5 + "<option value="+data1[i][0]+data1[i][3]+"$"+data1[i][4]+">"+data1[i][1]+"</option>"; } DWRUtil.setValue('__welfare1',"<select name=\"__wf__welfare1\" onChange=\"javascript:chkFamily(this);\" disabled>"+w1+"</select>"); DWRUtil.setValue('__welfare2',"<select name=\"__wf__welfare2\" onChange=\"javascript:chkFamily(this);\" disabled>"+w2+"</select>"); DWRUtil.setValue('__welfare3',"<select name=\"__wf__welfare3\" onChange=\"javascript:chkFamily(this);\" disabled>"+w3+"</select>"); DWRUtil.setValue('__welfare4',"<select name=\"__wf__welfare4\" onChange=\"javascript:chkFamily(this);\" disabled>"+w4+"</select>"); DWRUtil.setValue('__welfare5',"<select name=\"__wf__welfare5\" onChange=\"javascript:chkFamily(this);\" disabled>"+w5+"</select>"); d = "<option value=>----------------Undified-------------</option>"; /*DWRUtil.setValue('__family1',"<select name=\"__wf__family1\" disabled>"+d+"</select>"); DWRUtil.setValue('__family2',"<select name=\"__wf__family2\" disabled>"+d+"</select>"); DWRUtil.setValue('__family3',"<select name=\"__wf__family3\" disabled>"+d+"</select>"); DWRUtil.setValue('__family4',"<select name=\"__wf__family4\" disabled>"+d+"</select>"); DWRUtil.setValue('__family5',"<select name=\"__wf__family5\" disabled>"+d+"</select>");*/ } var ln = ""; function searchValue(line){ // f = obj.name.substring(obj.name.length-1); with(document.cscform){ //alert(line); if(line.indexOf("__wf__other_sitewel") != -1) eval(line+".value=''"); else{ obj = document.getElementById("__wf__whouse"+line); d = "<option value=>----------------Undified-------------</option>"; if(obj.value=="2") { SearchDWR.searchAll(new Array("mempl_family","fullname,employeeid,companyid,relationid,fnameid,lname,efname,elname,line_no","employeeid = '"+__wf__employeeid.value+"'","employeeid","langon"),family); ln = line; }else DWRUtil.setValue('__family'+line,"<select name=\"__wf__family"+line+"\" disabled>"+d+"</select>"); } } } function chkFamily(obj){ f = obj.name.substring(obj.name.length-1); d = "<option value=>----------------Undified-------------</option>"; if(obj.value.substring(obj.value.indexOf("$")-1,obj.value.indexOf("$"))=="2") SearchDWR.searchAll(new Array("mempl_family","fullname,employeeid,companyid,relationid,fnameid,lname,efname,elname,line_no","employeeid = '"+__wf__employeeid.value+"'","employeeid","langon"),family); else DWRUtil.setValue('__family'+f,"<select name=\"__wf__family"+f+"\" disabled>"+d+"</select>"); //alert(obj.name+" "+obj.value); //alert(obj.value.substring(obj.value.length-1)); } var mstr = null; var requis = function(data1){ mstr=""; for(i=0;i<data1.length;i++){ //alert(data1[i][0]+","+data1[i][1]+","+data1[i][2]); mstr = mstr + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; } setTimeout("xyz()",300); } function xyz(){ DWRUtil.setValue('__detail11',"<select name=\"__wf__detail11\">"+mstr+"</select>"); DWRUtil.setValue('__detail12',"<select name=\"__wf__detail12\">"+mstr+"</select>"); DWRUtil.setValue('__detail13',"<select name=\"__wf__detail13\">"+mstr+"</select>"); DWRUtil.setValue('__detail14',"<select name=\"__wf__detail14\">"+mstr+"</select>"); DWRUtil.setValue('__detail15',"<select name=\"__wf__detail15\">"+mstr+"</select>"); DWRUtil.setValue('__detail21',"<select name=\"__wf__detail21\">"+mstr+"</select>"); DWRUtil.setValue('__detail22',"<select name=\"__wf__detail22\">"+mstr+"</select>"); DWRUtil.setValue('__detail23',"<select name=\"__wf__detail23\">"+mstr+"</select>"); DWRUtil.setValue('__detail24',"<select name=\"__wf__detail24\">"+mstr+"</select>"); DWRUtil.setValue('__detail25',"<select name=\"__wf__detail25\">"+mstr+"</select>"); DWRUtil.setValue('__detail31',"<select name=\"__wf__detail31\">"+mstr+"</select>"); DWRUtil.setValue('__detail32',"<select name=\"__wf__detail32\">"+mstr+"</select>"); DWRUtil.setValue('__detail33',"<select name=\"__wf__detail33\">"+mstr+"</select>"); DWRUtil.setValue('__detail34',"<select name=\"__wf__detail34\">"+mstr+"</select>"); DWRUtil.setValue('__detail35',"<select name=\"__wf__detail35\">"+mstr+"</select>"); DWRUtil.setValue('__detail41',"<select name=\"__wf__detail41\">"+mstr+"</select>"); DWRUtil.setValue('__detail42',"<select name=\"__wf__detail42\">"+mstr+"</select>"); DWRUtil.setValue('__detail43',"<select name=\"__wf__detail43\">"+mstr+"</select>"); DWRUtil.setValue('__detail44',"<select name=\"__wf__detail44\">"+mstr+"</select>"); DWRUtil.setValue('__detail45',"<select name=\"__wf__detail45\">"+mstr+"</select>"); DWRUtil.setValue('__detail51',"<select name=\"__wf__detail51\">"+mstr+"</select>"); DWRUtil.setValue('__detail52',"<select name=\"__wf__detail52\">"+mstr+"</select>"); DWRUtil.setValue('__detail53',"<select name=\"__wf__detail53\">"+mstr+"</select>"); DWRUtil.setValue('__detail54',"<select name=\"__wf__detail54\">"+mstr+"</select>"); DWRUtil.setValue('__detail55',"<select name=\"__wf__detail55\">"+mstr+"</select>"); SearchDWR.searchAll(new Array("mempl_family","fullname,employeeid,companyid,relationid,fnameid,lname,efname,elname,line_no","employeeid = '"+document.cscform.__wf__employeeid.value+"'","employeeid","langon"),selectfamily); } var r11 = null; var r12 = null; var r13 = null; var r14 = null; var r15 = null; var r21 = null; var r22 = null; var r23 = null; var r24 = null; var r25 = null; var r31 = null; var r32 = null; var r33 = null; var r34 = null; var r35 = null; var r41 = null; var r42 = null; var r43 = null; var r44 = null; var r45 = null; var r51 = null; var r52 = null; var r53 = null; var r54 = null; var r55 = null; var rr1=""; var rr2=""; var rr3=""; var rr4=""; var rr5=""; var rr6=""; var rr7=""; var rr8=""; var rr9=""; var rr10=""; var rr11=""; var rr12=""; var rr13=""; var rr14=""; var rr15=""; var rr16=""; var rr17=""; var rr18=""; var rr19=""; var rr20=""; var rr21=""; var rr22=""; var rr23=""; var rr24=""; var rr25=""; var selectrequis = function(data1){ rr1=""; rr2=""; rr3=""; rr4=""; rr5=""; rr6=""; rr7=""; rr8=""; rr9=""; rr10=""; rr11=""; rr12=""; rr13=""; rr14=""; rr15=""; rr16=""; rr17=""; rr18=""; rr19=""; rr20=""; rr21=""; rr22=""; rr23=""; rr24=""; rr25=""; for(i=0;i<data1.length;i++){ if(r11==data1[i][0]) rr1 = rr1 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr1 = rr1 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r12==data1[i][0]) rr2 = rr2 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr2 = rr2 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r13==data1[i][0]) rr3 = rr3 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr3 = rr3 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r14==data1[i][0]) rr4 = rr4 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr4 = rr4 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r15==data1[i][0]) rr5 = rr5 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr5 = rr5 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r21==data1[i][0]) rr6 = rr6 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr6 = rr6 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r22==data1[i][0]) rr7 = rr7 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr7 = rr7 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r23==data1[i][0]) rr8 = rr8 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr8 = rr8 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r24==data1[i][0]) rr9 = rr9 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr9 = rr9 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r25==data1[i][0]) rr10 = rr10 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr10 = rr10 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r31==data1[i][0]) rr11 = rr11 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr11 = rr11 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r32==data1[i][0]) rr12 = rr12 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr12 = rr12 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r33==data1[i][0]) rr13 = rr13 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr13 = rr13 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r34==data1[i][0]) rr14= rr14 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr14= rr14 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r35==data1[i][0]) rr15 = rr15 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr15 = rr15 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r41==data1[i][0]) rr16= rr16 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr16 = rr16 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r42==data1[i][0]) rr17 = rr17 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr17 = rr17 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r43==data1[i][0]) rr18 = rr18 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr18 = rr18 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r44==data1[i][0]) rr19 = rr19 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr19 = rr19 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r45==data1[i][0]) rr20 = rr20 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr20 = rr20 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r51==data1[i][0]) rr21 = rr21 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr21 = rr21 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r52==data1[i][0]) rr22 = rr22 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr22 = rr22 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r53==data1[i][0]) rr23 = rr23 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr23 = rr23 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r54==data1[i][0]) rr24 = rr24 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr24= rr24 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(r55==data1[i][0]) rr25 = rr25 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else rr25 = rr25 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; } setTimeout("xyz2()",300); } function xyz2(){ DWRUtil.setValue('__detail11',"<select name=\"__wf__detail11\" disabled>"+rr1+"</select>"); DWRUtil.setValue('__detail12',"<select name=\"__wf__detail12\" disabled>"+rr2+"</select>"); DWRUtil.setValue('__detail13',"<select name=\"__wf__detail13\" disabled>"+rr3+"</select>"); DWRUtil.setValue('__detail14',"<select name=\"__wf__detail14\" disabled>"+rr4+"</select>"); DWRUtil.setValue('__detail15',"<select name=\"__wf__detail15\" disabled>"+rr5+"</select>"); DWRUtil.setValue('__detail21',"<select name=\"__wf__detail21\" disabled>"+rr6+"</select>"); DWRUtil.setValue('__detail22',"<select name=\"__wf__detail22\" disabled>"+rr7+"</select>"); DWRUtil.setValue('__detail23',"<select name=\"__wf__detail23\" disabled>"+rr8+"</select>"); DWRUtil.setValue('__detail24',"<select name=\"__wf__detail24\" disabled>"+rr9+"</select>"); DWRUtil.setValue('__detail25',"<select name=\"__wf__detail25\" disabled>"+rr10+"</select>"); DWRUtil.setValue('__detail31',"<select name=\"__wf__detail31\" disabled>"+rr11+"</select>"); DWRUtil.setValue('__detail32',"<select name=\"__wf__detail32\" disabled>"+rr12+"</select>"); DWRUtil.setValue('__detail33',"<select name=\"__wf__detail33\" disabled>"+rr13+"</select>"); DWRUtil.setValue('__detail34',"<select name=\"__wf__detail34\" disabled>"+rr14+"</select>"); DWRUtil.setValue('__detail35',"<select name=\"__wf__detail35\" disabled>"+rr15+"</select>"); DWRUtil.setValue('__detail41',"<select name=\"__wf__detail41\" disabled>"+rr16+"</select>"); DWRUtil.setValue('__detail42',"<select name=\"__wf__detail42\" disabled>"+rr17+"</select>"); DWRUtil.setValue('__detail43',"<select name=\"__wf__detail43\" disabled>"+rr18+"</select>"); DWRUtil.setValue('__detail44',"<select name=\"__wf__detail44\" disabled>"+rr19+"</select>"); DWRUtil.setValue('__detail45',"<select name=\"__wf__detail45\" disabled>"+rr20+"</select>"); DWRUtil.setValue('__detail51',"<select name=\"__wf__detail51\" disabled>"+rr21+"</select>"); DWRUtil.setValue('__detail52',"<select name=\"__wf__detail52\" disabled>"+rr22+"</select>"); DWRUtil.setValue('__detail53',"<select name=\"__wf__detail53\" disabled>"+rr23+"</select>"); DWRUtil.setValue('__detail54',"<select name=\"__wf__detail54\" disabled>"+rr24+"</select>"); DWRUtil.setValue('__detail55',"<select name=\"__wf__detail55\" disabled>"+rr25+"</select>"); } var disease = function(data1){ var str=""; for(i=0;i<data1.length;i++){ //alert(data1[i][0]+","+data1[i][1]+","+data1[i][2]); str = str + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; } /* DWRUtil.setValue('__disease1',"<select name=\"__wf__disease1\">"+str+"</select>"); DWRUtil.setValue('__disease2',"<select name=\"__wf__disease2\">"+str+"</select>"); DWRUtil.setValue('__disease3',"<select name=\"__wf__disease3\">"+str+"</select>"); DWRUtil.setValue('__disease4',"<select name=\"__wf__disease4\">"+str+"</select>"); DWRUtil.setValue('__disease5',"<select name=\"__wf__disease5\">"+str+"</select>"); */ } sdata1 = null; sdata2 = null; sdata3 = null; sdata4 = null; sdata5 = null; var selectdisease = function(data1){ var s1=""; var s2=""; var s3=""; var s4=""; var s5=""; for(i=0;i<data1.length;i++){ if(sdata1==data1[i][0]) s1 = s1 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else s1 = s1 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(sdata2==data1[i][0]) s2 = s2 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else s2 = s2 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(sdata3==data1[i][0]) s3 = s3 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else s3 = s3 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(sdata4==data1[i][0]) s4 = s4 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else s4 = s4 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; if(sdata5==data1[i][0]) s5 = s5 + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else s5 = s5 + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; } DWRUtil.setValue('__disease1',"<select name=\"__wf__disease1\" disabled>"+s1+"</select>"); DWRUtil.setValue('__disease2',"<select name=\"__wf__disease2\" disabled>"+s2+"</select>"); DWRUtil.setValue('__disease3',"<select name=\"__wf__disease3\" disabled>"+s3+"</select>"); DWRUtil.setValue('__disease4',"<select name=\"__wf__disease4\" disabled>"+s4+"</select>"); DWRUtil.setValue('__disease5',"<select name=\"__wf__disease5\" disabled>"+s5+"</select>"); } var f ="1"; var family = function(data1){ //alert("call family"); var str=""; for(i=0;i<data1.length;i++){ //alert(data1[i][0]+","+data1[i][1]+","+data1[i][2]); str = str + "<option value="+data1[i][8]+">"+data1[i][0]+"</option>"; } DWRUtil.setValue('__family'+ln,"<select name=\"__wf__family"+ln+"\">"+str+"</select>"); /*DWRUtil.setValue('__family2',"<select name=\"__wf__family2\">"+str+"</select>"); DWRUtil.setValue('__family3',"<select name=\"__wf__family3\">"+str+"</select>"); DWRUtil.setValue('__family4',"<select name=\"__wf__family4\">"+str+"</select>"); DWRUtil.setValue('__family5',"<select name=\"__wf__family5\">"+str+"</select>");*/ } fdata1 = null; fdata2 = null; fdata3 = null; fdata4 = null; fdata5 = null; var ff1=""; var ff2=""; var ff3=""; var ff4=""; var ff5=""; var selectfamily = function(data1){ //alert("call family"); //alert(fdata1+","+fdata2+","+fdata3+","+fdata4+","+fdata5); ff1=""; ff2=""; ff3=""; ff4=""; ff5=""; for(i=0;i<data1.length;i++){ if(fdata1==data1[i][8]) ff1 = ff1 + "<option value="+data1[i][8]+" selected>"+data1[i][0]+"</option>"; else ff1 = ff1 + "<option value="+data1[i][8]+">"+data1[i][0]+"</option>"; if(fdata2==data1[i][8]) ff2 = ff2 + "<option value="+data1[i][8]+" selected>"+data1[i][0]+"</option>"; else ff2 = ff2 + "<option value="+data1[i][8]+">"+data1[i][0]+"</option>"; if(fdata3==data1[i][8]) ff3 = ff3 + "<option value="+data1[i][8]+" selected>"+data1[i][0]+"</option>"; else ff3 = ff3 + "<option value="+data1[i][8]+">"+data1[i][0]+"</option>"; if(fdata4==data1[i][8]) ff4 = ff4 + "<option value="+data1[i][8]+" selected>"+data1[i][0]+"</option>"; else ff4 = ff4 + "<option value="+data1[i][8]+">"+data1[i][0]+"</option>"; if(fdata5==data1[i][8]) ff5 = ff5 + "<option value="+data1[i][8]+" selected>"+data1[i][0]+"</option>"; else ff5 = ff5 + "<option value="+data1[i][8]+">"+data1[i][0]+"</option>"; //alert(data1[i][0]); } if(fdata1=="") ff1="<option value=>----------------Undified-------------</option>"; if(fdata2=="") ff2="<option value=>----------------Undified-------------</option>"; if(fdata3=="") ff3="<option value=>----------------Undified-------------</option>"; if(fdata4=="") ff4="<option value=>----------------Undified-------------</option>"; if(fdata5=="") ff5="<option value=>----------------Undified-------------</option>"; //"<option value=>----------------Undified-------------</option>"; setTimeout("abc()",500); // alert("AAA"); } function abc(){ DWRUtil.setValue('__family1',"<select name=\"__wf__family1\" disabled>"+ff1+"</select>"); DWRUtil.setValue('__family2',"<select name=\"__wf__family2\" disabled>"+ff2+"</select>"); DWRUtil.setValue('__family3',"<select name=\"__wf__family3\" disabled>"+ff3+"</select>"); DWRUtil.setValue('__family4',"<select name=\"__wf__family4\" disabled>"+ff4+"</select>"); DWRUtil.setValue('__family5',"<select name=\"__wf__family5\" disabled>"+ff5+"</select>"); } var sitewel = function(data1){ var str=""; for(i=0;i<data1.length;i++){ //alert(data1[i][0]+","+data1[i][1]+","+data1[i][2]); str = str + "<option value="+data1[i][0]+">"+data1[i][2]+"</option>"; } DWRUtil.setValue('__sitewel1',"<select name=\"__wf__sitewel1\">"+str+"</select>"); DWRUtil.setValue('__sitewel2',"<select name=\"__wf__sitewel2\">"+str+"</select>"); DWRUtil.setValue('__sitewel3',"<select name=\"__wf__sitewel3\">"+str+"</select>"); DWRUtil.setValue('__sitewel4',"<select name=\"__wf__sitewel4\">"+str+"</select>"); DWRUtil.setValue('__sitewel5',"<select name=\"__wf__sitewel5\">"+str+"</select>"); } function sumScore(obj){ with (window.cscform){ var amount =0; for(i=0;i<elements.length;i++){ if(elements[i].name.indexOf("__wf__amount")!=-1 ){ amount += parseFloat(elements[i].value); } } //alert(amount); DWRUtil.setValue("__wf__grand_total",formatCurrency(amount)); } } function formatCurrency(num) { num = num.toString().replace(/\$|\,/g,''); if(isNaN(num)) num = "0"; sign = (num == (num = Math.abs(num))); num = Math.floor(num*100+0.50000000001); cents = num%100; num = Math.floor(num/100).toString(); if(cents<10) cents = "0" + cents; for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++) num = num.substring(0,num.length-(4*i+3))+','+ num.substring(num.length-(4*i+3)); return (((sign)?'':'-') + num + '.' + cents); } var callbackSys = function(data1){ var str=""; for(i=0;i<data1.length;i++){ str = str + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; } DWRUtil.setValue("__requisition","<select name=\"__wf__requisition_type\" >"+str+"</select>"); } var calback = null; var selectedcallbackSys = function(data1){ var str=""; for(i=0;i<data1.length;i++){ if(callback==data1[i][0]) str = str + "<option value="+data1[i][0]+" selected>"+data1[i][1]+"</option>"; else str = str + "<option value="+data1[i][0]+">"+data1[i][1]+"</option>"; } DWRUtil.setValue("__requisition","<select name=\"__wf__requisition_type\" disabled>"+str+"</select>"); } </script> </HEAD> <BODY BGCOLOR=#FFFFFF onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif','../IMAGES/BUTTON/SWAP/EDIT_SWAP20.gif','../IMAGES/BUTTON/SWAP/EXIT_SWAP20.gif','../IMAGES/MYNOTE/SEARCH.gif','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif')"> <!-- ImageReady Slices (02.psd) --> <FORM NAME="cscform" METHOD="post" ACTION="WEL215_NSTDA.jsp"> <!----------BEGIN CSC INITIAL ZONE ------------------------> <%=screenSingle.InitialVariable()%> <!----------END CSC INITIAL ZONE --------------------------> <INPUT TYPE="hidden" NAME="__screen" VALUE="WEL215_NSTDA"> <INPUT TYPE="hidden" NAME="__cmd" VALUE=""> <INPUT TYPE="hidden" NAME="__help" VALUE=""> <INPUT TYPE="hidden" NAME="__fixCon" VALUE=""> <INPUT TYPE="hidden" NAME="__notNull" VALUE="<%=screenSingle.getRequire()%>"> <INPUT TYPE="hidden" NAME="__companyid" VALUE="<%=screenSingle.getUProfile().get("companyid")%>"> <INPUT TYPE="hidden" NAME="wf_id" VALUE="315"> <INPUT TYPE="hidden" NAME="wf_ver" VALUE="<%=chkNull.chkNullString(request.getParameter("wf_ver"),"1")%>"> <INPUT TYPE="hidden" NAME="__wf_id" VALUE="315"> <INPUT TYPE="hidden" NAME="__wf_ver" VALUE="<%=chkNull.chkNullString(request.getParameter("wf_ver"),"1")%>"> <INPUT TYPE="hidden" NAME="wf_seq_no" VALUE="<%=chkNull.chkNullString(request.getParameter("wf_seq_no"),"0")%>"> <INPUT TYPE="hidden" NAME="step_id" VALUE="<%=chkNull.chkNullString(request.getParameter("step_id"),"0")%>"> <INPUT TYPE="hidden" NAME="step_seq_no" VALUE="<%=chkNull.chkNullString(request.getParameter("step_seq_no"),"0")%>"> <INPUT TYPE="hidden" NAME="wf_return_actor" VALUE="IINIT"> <INPUT TYPE="hidden" NAME="__oldDocumentID" VALUE="<%=screenSingle.getDataLabel("DOC_NO")%>"> <INPUT TYPE="hidden" NAME="__oldWF" VALUE="<%=screenSingle.getDataLabel("WF_STATUS")%>"> <INPUT TYPE="hidden" NAME="__wf" VALUE="<%=wf%>"> <INPUT TYPE="hidden" NAME="__wfcmd" VALUE="false"> <!-- Insert Hidden Field --> <input type="hidden" name="__calendar"> <script language="javascript">getInputFormatDate();</script> <input type="hidden" name="__language" value="<%= TEMPLATE_WORKFLOW.getUProfile().get("lang") %>"> <%//=screenSingle.getTagConfirm()%> <DIV ID="toolTipLayer" STYLE="position:absolute; visibility: hidden"></DIV> <SCRIPT LANGUAGE="JavaScript">initToolTips();</SCRIPT> <TABLE WIDTH=950 BORDER=0 ALIGN="center" CELLPADDING=0 CELLSPACING=0> <tr> <td> <jsp:include page="MYNOTE_HEAD.jsp" flush="true" /> <DIV ALIGN="right"> <% if( (request.getParameter("__singlereadonly") == null || request.getParameter("__readonly") == null) && request.getParameter("__singledisabled") == null && chkNull.chkNullString(request.getParameter("__help")).equals("") ){ String screen_value = chkNull.chkNullString(screenSingle.getDataLabel("SCREEN_VALUE")); String wf_status = chkNull.chkNullString(screenSingle.getDataLabel("WF_STATUS")); ManageDocument md = new ManageDocument(); md.setParam(new HashMap()); if( screen_value.length() > 0 ){ md.setWFDataValue(screen_value); }else{ screen_value = chkNull.chkNullString(request.getParameter("__screen_value")); if( screen_value.length() > 0 && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ md.setWFDataValue(screen_value); } } %> <INPUT TYPE="hidden" NAME="__initiator" VALUE="<%=screenSingle.getUProfile().get("actorid")%>"> <INPUT TYPE="hidden" NAME="__position_code" VALUE="<%=screenSingle.getUProfile().get("job")%>"> <INPUT TYPE="hidden" NAME="__doc_no" VALUE="<%=screenSingle.getDataLabel("DOC_NO")%>"> <INPUT TYPE="hidden" NAME="__screen_value" VALUE=""> <INPUT TYPE="hidden" NAME="__wfapprove" VALUE="false"> <INPUT TYPE="hidden" NAME="wf_command" VALUE="initiate"> <INPUT TYPE="hidden" NAME="__finflow" VALUE="0"> <INPUT TYPE="hidden" NAME="__wf_status" VALUE="<%=wf_status%>"> <INPUT TYPE="hidden" NAME="attach_time" VALUE="<%=attach_time%>"> <INPUT TYPE="hidden" NAME="reference_delete" VALUE=""> <INPUT TYPE="hidden" NAME="delete_file" VALUE=""> <!-- Head --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="EFEFEF"> <TD WIDTH="50%"><DIV ALIGN="left"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Initiator");</SCRIPT> : </STRONG><%=screenSingle.getUProfile().get("fullname")%></TD> <TD WIDTH="50%"><DIV ALIGN="right"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Position");</SCRIPT> : </STRONG><%=screenSingle.getUProfile().get("positionname")%></DIV></TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Head --> <br> <!-- Help --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="txt01"> <TR BGCOLOR="EFEFEF"> <TD WIDTH="99%" BGCOLOR="EFEFEF"> <DIV ALIGN="center"> <STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Request form of medical fee[HR]")</SCRIPT> </DIV> </TD> <TD BGCOLOR="EFEFEF"> <DIV ALIGN="right"> <A href="JavaScript:openHelp();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_HELP.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A> </DIV> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Help --> <BR> <!-- Send To --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD WIDTH="19%" BGCOLOR="#0099CC"><DIV ALIGN="right"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Send To");</SCRIPT> : </STRONG></DIV></TD> <TD WIDTH="81%" BGCOLOR="#EFEFEF"> <INPUT TYPE="text" NAME="sendto" SIZE="40" VALUE="<%=chkNull.chkNullString(request.getParameter("sendto"),memployee_dr.getString("FULLNAME"))%>" ID="menu_parent" READONLY> <INPUT TYPE="hidden" NAME="wf_next_actor" VALUE="<%=chkNull.chkNullString(request.getParameter("wf_next_actor"),memployee_dr.getString("EMPLOYEEID"))%>"> </TD> </TR> <TR BGCOLOR="#0099CC"> <TD WIDTH="19%" BGCOLOR="#0099CC"><DIV ALIGN="right"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Subject");</SCRIPT> : </STRONG></DIV></TD> <TD WIDTH="81%" BGCOLOR="#EFEFEF"> <INPUT TYPE="text" NAME="subject" SIZE="50" VALUE="<%=chkNull.chkNullString(subject)%>" onMouseOver="toolTip('<%=(screenSingle.getUProfile().get("lang").equals("tha")?"ชื่อเรื่อง":"Subject")%>')" onMouseOut="toolTip()" READONLY> <A HREF="JavaScript:linkHelpWF('WORKFLOW_DATAHELP','__docno');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('doc_no_image','','../IMAGES/MYNOTE/SEARCH.gif',1)"> <IMG SRC="../IMAGES/MYNOTE/SEARCH.gif" ALT="SEARCH" NAME="doc_no_image" WIDTH="20" HEIGHT="20" BORDER="0" ALIGN="absmiddle"> </A> <script language="javascript">document.cscform.subject.value=swap2String("Request form of medical fee")+"[HR]";</script> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Send To --> <BR> <!-- User Code --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#FFFFFF"></TR> </TABLE> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#FFFFFF"> <TD COLSPAN="2"> <!-- Insert Head --> </TD> </TR> </TABLE> <!-- Insert Code Step 1 --> <input type="hidden" name="__wf__employeeid" size="15" value="<%= TEMPLATE_WORKFLOW.getUProfile().get("employeeid") %>" readonly> <jsp:include page="WEL215_NSTDA_S1.jsp" flush="true"> <jsp:param name="dss1" value="<%=dss1%>"/> <jsp:param name="dss2" value="<%=dss2%>"/> <jsp:param name="dss3" value="<%=dss3%>"/> <jsp:param name="dss4" value="<%=dss4%>"/> <jsp:param name="dss5" value="<%=dss5%>"/> </jsp:include> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End User Code --> <BR> <!-- Remark --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD WIDTH="15%" VALIGN="top" BGCOLOR="#0099CC"><DIV ALIGN="right"><%=screenSingle.getLabel("REMARK")%> :</DIV></TD> <TD WIDTH="85%" BGCOLOR="#FFFFFF"> <%=screenSingle.getInput("REMARK")%> <% if( screenSingle.getDataLabel("REMARK").trim().length() < 1 ){ %> <SCRIPT LANGUAGE="JavaScript">setValue('__remark','<%=remark%>');</SCRIPT> <% } %> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Remark --> <BR> <!-- Reference Note --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <% boolean isReference = false; String reference_param = ""; DbInquiry wf_reference_di = (DbInquiry)screenSingle.getRecord().getChild("WF_REFERENCE"); if( wf_reference_di != null && wf_reference_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ isReference = true; do{ reference_param += ","+wf_reference_di.getString("REF_WF_ID")+":"+wf_reference_di.getString("REF_WF_VER")+":"+wf_reference_di.getString("REF_WF_SEQ_NO")+":"+ wf_reference_di.getString("REF_STEP_ID")+":"+wf_reference_di.getString("REF_STEP_SEQ_NO")+":"+wf_reference_di.getString("REF_ACTOR_ID")+":"+ wf_reference_di.getString("REF_ACTOR_SEQ_NO")+":"+wf_reference_di.getString("REF_POSITION_CODE"); }while( wf_reference_di.next() ); reference_param = reference_param.replaceFirst(",",""); }else{ if( !chkNull.chkNullString(request.getParameter("__cmd")).equalsIgnoreCase("save") ){ reference_param = chkNull.chkNullString(request.getParameter("reference_param")); } if( !chkNull.chkNullString(request.getParameter("reference_delete")).equals("") ){ String reference_delete = chkNull.chkNullString(request.getParameter("reference_delete")); String[] temp_delete = reference_delete.split(","); //System.out.println("Refer Delete : "+reference_delete); for( int i = 0 ; i < temp_delete.length ; i++ ){ reference_param = reference_param.replaceFirst(temp_delete[i],""); } reference_param = reference_param.replaceAll(",,",","); //System.out.println("Refer Param : "+reference_param); } } String[] temp = reference_param.split(","); if( temp.length > 0 && reference_param.length() > 0 ){ String[] temp2 = temp[0].split(":"); DbInquiry reference_di = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("VW_INCIDENT1"); reference_di.setColumn("*"); reference_di.setFilter("WF_ID = '"+temp2[0]+"' AND "+ "WF_VER = '"+temp2[1]+"' AND "+ "WF_SEQ_NO = '"+temp2[2]+"' AND "+ "STEP_ID = '"+temp2[3]+"' AND "+ "STEP_SEQ_NO = '"+temp2[4]+"' AND "+ "ACTOR_ID = '"+temp2[5]+"' AND "+ "ACTOR_SEQ_NO = '"+temp2[6]+"' AND "+ "POSITION_CODE = '"+temp2[7]+"'" ); reference_di.refresh(); if( reference_di.next() ){ %> <TR> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Reference Note");</script> :</STRONG></DIV></TD> <TD WIDTH="4%"><DIV ALIGN="center"><%=reference_di.getString("FMYNOTECHECK")%></DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"><%=reference_di.getString("FREFER_SUBJECT")%></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><%=new CscCalendar(Long.parseLong(reference_di.getString("WI_START_TIME"))).getDDMMYYYY()%></DIV></TD> </TR> <% } for( int i = 1 ; i < temp.length ; i++ ){ temp2 = temp[i].split(":"); reference_di.setFilter("WF_ID = '"+temp2[0]+"' AND "+ "WF_VER = '"+temp2[1]+"' AND "+ "WF_SEQ_NO = '"+temp2[2]+"' AND "+ "STEP_ID = '"+temp2[3]+"' AND "+ "STEP_SEQ_NO = '"+temp2[4]+"' AND "+ "ACTOR_ID = '"+temp2[5]+"' AND "+ "ACTOR_SEQ_NO = '"+temp2[6]+"' AND "+ "POSITION_CODE = '"+temp2[7]+"'" ); reference_di.refresh(); if( reference_di.next() ){ %> <TR> <TD WIDTH="18%"> </TD> <TD WIDTH="4%"><DIV ALIGN="center"><%=reference_di.getString("FMYNOTECHECK")%></DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"><%=reference_di.getString("FREFER_SUBJECT")%></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><%=new CscCalendar(Long.parseLong(reference_di.getString("WI_START_TIME"))).getDDMMYYYY()%></DIV></TD> </TR> <% } } }else{ %> <TR BGCOLOR="#0099CC"> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Reference Note");</script> :</STRONG></DIV></TD> <TD COLSPAN="4" BGCOLOR="#FFFFFF"> </TD> </TR> <% } if( !isReference ){ %> <INPUT TYPE="hidden" NAME="reference_param" VALUE="<%=reference_param%>"> <TR BGCOLOR="EFEFEF"> <TD WIDTH="18%" BGCOLOR="#FFFFFF"> </TD> <TD COLSPAN="4" BGCOLOR="#FFFFFF"><DIV ALIGN="right"><A HREF="#"></A><A HREF="JavaScript:;" onClick="MM_openBrWindow('REFERENCE_NOTE.jsp?wf_id='+wf_id.value+'&wf_ver='+wf_ver.value+'&reference_param=<%=reference_param%>','REFERENCE_NOTE','SCROLLBARS=yes,STATUS=yes,RESIZABLE=yes,WIDTH=550,HEIGHT=300')"><IMG SRC="../IMAGES/MYNOTE/SEARCH.gif" WIDTH="20" HEIGHT="20" BORDER="0"></A><A HREF="JavaScript:GoDelReference();"><IMG SRC="../IMAGES/MYNOTE/DEL.gif" WIDTH="20" HEIGHT="20" BORDER="0"></A></DIV></TD> </TR> <% } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Reference Note --> <BR> <!-- Attach File --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <% boolean isAttach = false; InitialEnvironment environment = new InitialEnvironment("GLOBAL"); Downloadfile download = null; DbInquiry attached_file_di = (DbInquiry)screenSingle.getRecord().getChild("ATTACHED_FILE"); if( attached_file_di != null && attached_file_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ isAttach = true; download = new Downloadfile(environment.getValue("DIRNOTEATTACHTFILE-dir")+screenSingle.getUProfile().get("companyid")+"/"+ attached_file_di.getString("WF_ID")+"/"+ attached_file_di.getString("WF_VER")+"/"+ attached_file_di.getString("WF_SEQ_NO")); }else{ if( !chkNull.chkNullString(request.getParameter("__cmd")).equalsIgnoreCase("save") ){ download = new Downloadfile(environment.getValue("DIRNOTEATTACHTEMP-dir")+attach_time); }else{ download = new Downloadfile(environment.getValue("DIRNOTEATTACHTEMP-dir")); } if( !chkNull.chkNullString(request.getParameter("delete_file")).equals("") ){ String[] file_name = request.getParameter("delete_file").split(","); for( int i = 0 ; i < file_name.length ; i++ ){ download.delFile(file_name[i]); } } } HashMap attach_file_hm = download.listFile(); ArrayList file_name = (ArrayList)attach_file_hm.get("file_name"); ArrayList file_size = (ArrayList)attach_file_hm.get("file_size"); if( file_name.size() > 0 ){ %> <TR> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Attach File");</script> :</STRONG></DIV></TD> <TD WIDTH="4%"><DIV ALIGN="center"> <INPUT TYPE="checkbox" NAME="attach_file" VALUE="<%=file_name.get(0)%>"> </DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"> <A HREF="<%=request.getRequestURI()+"?"+download.getDownloadLink((String)file_name.get(0))%>"><%=file_name.get(0)%></A> </DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"> <%=calendar.getDDMMYYYY()%> </DIV></TD> </TR> <% for( int i = 1 ; i < file_name.size() ; i++ ){ %> <TR> <TD WIDTH="18%"> </TD> <TD WIDTH="4%"><DIV ALIGN="center"> <INPUT TYPE="checkbox" NAME="attach_file" VALUE="<%=file_name.get(i)%>"> </DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"> <A HREF="<%=request.getRequestURI()+"?"+download.getDownloadLink((String)file_name.get(i))%>"><%=file_name.get(i)%></A> </DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"> <%=calendar.getDDMMYYYY()%> </DIV></TD> </TR> <% } }else{ %> <TR BGCOLOR="#0099CC"> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Attach File");</script> :</STRONG></DIV></TD> <TD COLSPAN="4" BGCOLOR="#FFFFFF"> </TD> </TR> <% } if( !isAttach ){ %> <TR BGCOLOR="EFEFEF"> <TD WIDTH="18%" BGCOLOR="#FFFFFF"> </TD> <TD COLSPAN="4" BGCOLOR="#FFFFFF"><DIV ALIGN="right"><A HREF="JavaScript:;" onClick="MM_openBrWindow('ATTACH_FILE.jsp?attach_time=<%=attach_time%>','ATTACH_FILE','SCROLLBARS=yes,STATUS=yes,RESIZABLE=yes,WIDTH=550,HEIGHT=300')"><IMG SRC="../IMAGES/MYNOTE/SEARCH.gif" WIDTH="20" HEIGHT="20" BORDER="0"></A><A HREF="JavaScript:GoDeleteAttachFile();"><IMG SRC="../IMAGES/MYNOTE/DEL.gif" WIDTH="20" HEIGHT="20" BORDER="0"></A></DIV></TD> </TR> <% } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Attach File --> <BR> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD><DIV ALIGN="right"><A HREF="JavaScript:GoWFM();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_SUBMIT.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A></DIV></TD> </TR> </TABLE> <!-- End Step 1 --> <!-- Step Cancel--> <% }else if( (request.getParameter("__singlereadonly") == null || request.getParameter("__readonly") == null) && request.getParameter("__singledisabled") == null && !chkNull.chkNullString(request.getParameter("__help")).equals("") ){ String screen_value = chkNull.chkNullString(screenSingle.getDataLabel("SCREEN_VALUE")); HashMap hm = new HashMap(); ManageDocument md = new ManageDocument(); hm.put("WF_ID",request.getParameter("wf_id")); hm.put("WF_VER",request.getParameter("wf_ver")); hm.put("WF_SEQ_NO",request.getParameter("wf_seq_no")); hm.put("STEP_ID",request.getParameter("step_id")); hm.put("STEP_SEQ_NO",request.getParameter("step_seq_no")); hm.put("ACTOR_ID",screenSingle.getUProfile().getActor()); hm.put("POSITION_CODE",screenSingle.getUProfile().get("job")); md.setUProfile(screenSingle.getUProfile()); md.setParam(hm); md.setVW_Incident(); md.setWFDataValue(screen_value); %> <INPUT TYPE="hidden" NAME="__wfapprove" VALUE="true"> <INPUT TYPE="hidden" NAME="__initiator" VALUE="<%=screenSingle.getDataLabel("INITIATOR")%>"> <INPUT TYPE="hidden" NAME="__position_code" VALUE="<%=screenSingle.getDataLabel("POSITION_CODE")%>"> <INPUT TYPE="hidden" NAME="__doc_no" VALUE="<%=screenSingle.getDataLabel("DOC_NO")%>"> <INPUT TYPE="hidden" NAME="__screen_value" VALUE="<%=screenSingle.getDataLabel("SCREEN_VALUE")%>"> <INPUT TYPE="hidden" NAME="__start_time" VALUE="<%=screenSingle.getDataLabel("START_TIME")%>"> <INPUT TYPE="hidden" NAME="__wf_status" VALUE="<%=screenSingle.getDataLabel("WF_STATUS")%>"> <!--INPUT TYPE="hidden" NAME="__runno" VALUE="<%=screenSingle.getDataLabel("RUNNO")%>"--> <INPUT TYPE="hidden" NAME="wf_command" VALUE=""> <!-- Head --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="EFEFEF"> <TD WIDTH="50%"><DIV ALIGN="left"> <STRONG> <SCRIPT LANGUAGE="JavaScript">swapLang("Initiator")</SCRIPT> : </STRONG><%=screenSingle.getDataLabel("VW_INCIDENT","INITIATOR_FNAME")+" "+screenSingle.getDataLabel("VW_INCIDENT","INITIATOR_LNAME")%></TD> <TD WIDTH="50%"><DIV ALIGN="right"><STRONG> <SCRIPT LANGUAGE="JavaScript">swapLang("Position")</SCRIPT> : </STRONG><%=screenSingle.getDataLabel("VW_INCIDENT","INITIATOR_TPOSITION")%></DIV></TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Head --> <BR> <!-- Help --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="txt01"> <TR BGCOLOR="EFEFEF"> <TD WIDTH="99%" BGCOLOR="EFEFEF"> <DIV ALIGN="center"> <STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Request form of medical fee[HR]")</SCRIPT> </DIV> </TD> <TD BGCOLOR="EFEFEF"> <DIV ALIGN="right"> <A href="JavaScript:openHelp();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_HELP.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A> </DIV> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Help --> <BR> <!-- Send To --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD WIDTH="19%" BGCOLOR="#0099CC"><DIV ALIGN="right"><STRONG> <SCRIPT LANGUAGE="JavaScript">swapLang("Subject")</SCRIPT> : </STRONG></DIV></TD> <TD WIDTH="81%" BGCOLOR="#EFEFEF"><INPUT TYPE="text" NAME="subject" SIZE="50" VALUE="<%=chkNull.chkNullString(subject)%>" onMouseOver="toolTip('<%=(screenSingle.getUProfile().get("lang").equals("tha")?"ชื่อเรื่อง":"Subject")%>')" onMouseOut="toolTip()" CLASS="txt01" READONLY> <SCRIPT LANGUAGE="JavaScript">document.cscform.subject.value=swap2String("Request form for welfare");</SCRIPT> <A HREF="JavaScript:linkHelpWF('WORKFLOW_DATAHELP','__docno');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('doc_no_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"> <IMG SRC="../IMAGES/BUTTON/MAIN/SEARCH20.gif" ALT="SEARCH" NAME="doc_no_image" WIDTH="20" HEIGHT="20" BORDER="0" ALIGN="absmiddle"> </A> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Send To --> <BR> <!-- User Code --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"> <!-- Start Code Step Cancel --> <input type="hidden" name="__wf__at1" value="<%= md.getWFDataValue("__wf__at1") %>"> <input type="hidden" name="__wf__at2" value="<%= md.getWFDataValue("__wf__at2") %>"> <input type="hidden" name="__wf__at3" value="<%= md.getWFDataValue("__wf__at3") %>"> <input type="hidden" name="__wf__at4" value="<%= md.getWFDataValue("__wf__at4") %>"> <input type="hidden" name="__wf__at5" value="<%= md.getWFDataValue("__wf__at5") %>"> <input type="hidden" name="__wf__attach1" value="<%= md.getWFDataValue("__wf__attach1") %>"> <input type="hidden" name="__wf__attach2" value="<%= md.getWFDataValue("__wf__attach2") %>"> <input type="hidden" name="__wf__attach3" value="<%= md.getWFDataValue("__wf__attach3") %>"> <input type="hidden" name="__wf__attach4" value="<%= md.getWFDataValue("__wf__attach4") %>"> <input type="hidden" name="__wf__attach5" value="<%= md.getWFDataValue("__wf__attach5") %>"> <input type="hidden" name="__wf__addval" value="<%= md.getWFDataValue("__wf__addval") %>"> <input type="hidden" name="__wf__employeeid" value="<%= md.getWFDataValue("__wf__employeeid") %>"> <script language="javascript">callback = "<%= md.getWFDataValue("__wf__requisition_type") %>"; </script> <% int addv = Integer.parseInt(md.getWFDataValue("__wf__addval")); if(addv<1) dss1 = "none"; if(addv<2) dss2 = "none"; if(addv<3) dss3 = "none"; if(addv<4) dss4 = "none"; if(addv<5) dss5 = "none"; %> <script language="javascript">//alert(document.cscform.__wf__employeeid.value);</script> <table class="inframe" cellspacing=1 cellpadding=0 border=0> <tbody> <tr> <td colspan="7" class="title1"><div align="center"> <script language="javascript">swapLang("Welfare List");</script> </div></td> </tr> <tr> <td class="desc" nowrap><div align="right"> <strong> <script language="javascript">swapLang("Employee");</script> :</strong></div></td> <td class="desc" nowrap><input type="text" name="__wf__empfullname" size="30" value="" readonly> <script language="JavaScript">setValue('__wf__empfullname','<%=md.getWFDataValue("__wf__empfullname")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Requisition Type");</script> </td> <td class="desc"><span id="__requisition"></span> <script language="javascript">SystemCode.getContentDWR(new Array("REQUISITION_TYPE","eng"),selectedcallbackSys);</script> <!--nput type="button" onClick="javascript:TEST2();" value="TEst"--> </td> <td width="7%" align="right" class="desc"><script language="javascript">swapLang("Send Date");</script> </td> <td colspan="2" class="desc"><input type="text" size="10" name="__wf__send_date2" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__send_date','<%=md.getWFDataValue("__wf__send_date")%>');</script></td> </tr> <tr> <td width="7%" class="title1"><div align="center"> <script language="javascript">swapLang("Welfare");</script> </div></td> <td width="31%" class="title1"><div align="center"> <script language="javascript">swapLang("Disease ");</script> </div></td> <td width="32%" class="title1"><div align="center"> <script language="javascript">swapLang("Name Surname In Family");</script> </div></td> <td width="7%" class="title1"><div align="center"> <script language="javascript">swapLang("Amount ");</script> </div></td> <td class="title1"><div align="center"> <script language="javascript">swapLang("Receipt Number");</script> </div></td> <td width="7%" class="title1"><div align="center"> <script language="javascript">swapLang("Receipt Date");</script> </div></td> <td width="8%" class="title1"><div align="center"> <script language="javascript">swapLang("Attach Doc");</script> </div></td> </tr> <!--/font--> <tr> <script language="JavaScript"> wdata1 = "<%= md.getWFDataValue("__wf__welfare1") %>"; wdata2 = "<%= md.getWFDataValue("__wf__welfare2") %>"; wdata3 = "<%= md.getWFDataValue("__wf__welfare3") %>"; wdata4 = "<%= md.getWFDataValue("__wf__welfare4") %>"; wdata5 = "<%= md.getWFDataValue("__wf__welfare5") %>"; sdata1 = "<%= md.getWFDataValue("__wf__disease1") %>"; sdata2 = "<%= md.getWFDataValue("__wf__disease2") %>"; sdata3 = "<%= md.getWFDataValue("__wf__disease3") %>"; sdata4 = "<%= md.getWFDataValue("__wf__disease4") %>"; sdata5 = "<%= md.getWFDataValue("__wf__disease5") %>"; fdata1 = "<%= md.getWFDataValue("__wf__family1") %>"; fdata2 = "<%= md.getWFDataValue("__wf__family2") %>"; fdata3 = "<%= md.getWFDataValue("__wf__family3") %>"; fdata4 = "<%= md.getWFDataValue("__wf__family4") %>"; fdata5 = "<%= md.getWFDataValue("__wf__family5") %>"; r11 = "<%= md.getWFDataValue("__wf__detail11") %>" r12 = "<%= md.getWFDataValue("__wf__detail12") %>" r13 = "<%= md.getWFDataValue("__wf__detail13") %>" r14 = "<%= md.getWFDataValue("__wf__detail14") %>" r15 = "<%= md.getWFDataValue("__wf__detail15") %>" r21 = "<%= md.getWFDataValue("__wf__detail21") %>" r22 = "<%= md.getWFDataValue("__wf__detail22") %>" r23 = "<%= md.getWFDataValue("__wf__detail23") %>" r24 = "<%= md.getWFDataValue("__wf__detail24") %>" r25 = "<%= md.getWFDataValue("__wf__detail25") %>" r31 = "<%= md.getWFDataValue("__wf__detail31") %>" r32 = "<%= md.getWFDataValue("__wf__detail32") %>" r33 = "<%= md.getWFDataValue("__wf__detail33") %>" r34 = "<%= md.getWFDataValue("__wf__detail34") %>" r35 = "<%= md.getWFDataValue("__wf__detail35") %>" r41 = "<%= md.getWFDataValue("__wf__detail41") %>" r42 = "<%= md.getWFDataValue("__wf__detail42") %>" r43 = "<%= md.getWFDataValue("__wf__detail43") %>" r44 = "<%= md.getWFDataValue("__wf__detail44") %>" r45 = "<%= md.getWFDataValue("__wf__detail45") %>" r51 = "<%= md.getWFDataValue("__wf__detail51") %>" r52 = "<%= md.getWFDataValue("__wf__detail52") %>" r53 = "<%= md.getWFDataValue("__wf__detail53") %>" r54 = "<%= md.getWFDataValue("__wf__detail54") %>" r55 = "<%= md.getWFDataValue("__wf__detail55") %>" </script> <td class="desc"><span id="__welfare1"></span> <input type="hidden" size="30" name="__wf__welfare1" readonly value="<%= md.getWFDataValue("__wf__welfare1") %>"> <input type="hidden" size="30" name="__wf__docgid1" readonly value="<%= md.getWFDataValue("__wf__docgid1") %>"> <input type="hidden" size="30" name="__wf__whouse1" readonly value="<%= md.getWFDataValue("__wf__whouse1") %>"> <input type="text" size="30" name="__wf__welfaredesc1" readonly value="<%= md.getWFDataValue("__wf__welfaredesc1") %>"> </td> <td class="desc"><span id="__disease1"></span> <script language="javascript">//SearchDWR.searchAll(new Array("mdisease","disid,tdesc,edesc","","disid","langon"),selectdisease);</script> <input type="hidden" size="30" name="__wf__disease1" readonly value="<%= md.getWFDataValue("__wf__disease1") %>"> <input type="text" size="30" name="__wf__diseasedesc1" readonly value="<%= md.getWFDataValue("__wf__diseasedesc1") %>"> </td> <td class="desc"><span id="__family1"></span></td> <td class="desc"><input name="__wf__amount1" readonly type="text" dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"> <script language="JavaScript">setValue('__wf__amount1','<%=md.getWFDataValue("__wf__amount1")%>');</script></td> <td class="desc"><input type="text" size="15" readonly name="__wf__receipt_number1" onKeyPress="javascript:chkInt1Dot(this);"> <script language="JavaScript">setValue('__wf__receipt_number1','<%=md.getWFDataValue("__wf__receipt_number1")%>');</script></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date1" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__receipt_date1','<%=md.getWFDataValue("__wf__receipt_date1")%>');</script> </td> <td class="desc"><div align="center"><a href="javascript:goPages('1','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1122','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image1122" width="20" border="0" align="absmiddle" id="Image1122" ></a></div></td> </tr> <tr> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid1" value="<%=md.getWFDataValue("__wf__sitewelid1")%>"><input type="hidden" size="50" name="__wf__sitewelgid1" value="<%=md.getWFDataValue("__wf__sitewelgid1")%>"> <input type="text" size="50" name="__wf__sitewel_name1" readonly> <script language="JavaScript">setValue('__wf__sitewel_name1','<%=md.getWFDataValue("__wf__sitewel_name1")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" readonly name="__wf__other_sitewel1" size="30"> <script language="JavaScript">setValue('__wf__other_sitewel1','<%=md.getWFDataValue("__wf__other_sitewel1")%>');</script></td> </tr> <tr id="dt11" style="display:<%= dss1 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail11"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost11" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost11','<%=md.getWFDataValue("__wf__cost11")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open11" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open11','<%=md.getWFDataValue("__wf__open11")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt12" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail12"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost12" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost12','<%=md.getWFDataValue("__wf__cost12")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open12" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open12','<%=md.getWFDataValue("__wf__open12")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt13" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail13"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost13" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost13','<%=md.getWFDataValue("__wf__cost13")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open13" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open13','<%=md.getWFDataValue("__wf__open13")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt14" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail14"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost14" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost14','<%=md.getWFDataValue("__wf__cost14")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open14" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open14','<%=md.getWFDataValue("__wf__open14")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt15" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail15"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost15" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost15','<%=md.getWFDataValue("__wf__cost15")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open15" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open15','<%=md.getWFDataValue("__wf__open15")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="wel21" style="display:none "> <td class="desc"><span id="__welfare2"></span> <input type="hidden" size="30" name="__wf__welfare2" readonly value="<%= md.getWFDataValue("__wf__welfare2") %>"> <input type="hidden" size="30" name="__wf__docgid2" readonly value="<%= md.getWFDataValue("__wf__docgid2") %>"> <input type="hidden" size="30" name="__wf__whouse2" readonly value="<%= md.getWFDataValue("__wf__whouse2") %>"> <input type="text" size="30" name="__wf__welfaredesc2" readonly value="<%= md.getWFDataValue("__wf__welfaredesc2") %>"> </td> <td class="desc"><span id="__disease2"></span> <input type="hidden" size="30" name="__wf__disease2" readonly value="<%= md.getWFDataValue("__wf__disease2") %>"> <input type="text" size="30" name="__wf__diseasedesc2" readonly value="<%= md.getWFDataValue("__wf__diseasedesc2") %>"> </td> <td class="desc"><span id="__family2"></span></td> <td class="desc"><input name="__wf__amount2" readonly type="text" dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"> <script language="JavaScript">setValue('__wf__amount2','<%=md.getWFDataValue("__wf__amount2")%>');</script></td> <td class="desc"><input type="text" size="15" name="__wf__receipt_number2" readonly onKeyPress="javascript:chkInt1Dot(this);"> <script language="JavaScript">setValue('__wf__receipt_number2','<%=md.getWFDataValue("__wf__receipt_number2")%>');</script></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date2" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__receipt_date2','<%=md.getWFDataValue("__wf__receipt_date2")%>');</script> </td> <td class="desc"><div align="center"><a href="javascript:goPages('2','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1222','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image1222" width="20" height="20" border="0" align="absmiddle" id="Image1222" ></a></div></td> </tr> <tr id="wel22" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid2" value="<%=md.getWFDataValue("__wf__sitewelid2")%>"><input type="hidden" size="50" name="__wf__sitewelgid2" value="<%=md.getWFDataValue("__wf__sitewelgid2")%>"> <script language="JavaScript">setValue('__wf__sitewelid2','<%=md.getWFDataValue("__wf__sitewelid2")%>');</script> <input type="text" size="50" name="__wf__sitewel_name2" readonly> <script language="JavaScript">setValue('__wf__sitewel_name2','<%=md.getWFDataValue("__wf__sitewel_name2")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" readonly name="__wf__other_sitewel2" size="30"> <script language="JavaScript">setValue('__wf__other_sitewel2','<%=md.getWFDataValue("__wf__other_sitewel2")%>');</script></td> </tr> <tr id="dt21" style="display:<%= dss2 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail21"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost21" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost21','<%=md.getWFDataValue("__wf__cost21")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open21" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"readonly> <script language="JavaScript">setValue('__wf__open21','<%=md.getWFDataValue("__wf__open21")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt22" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail22"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost22" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost22','<%=md.getWFDataValue("__wf__cost22")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open22" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open22','<%=md.getWFDataValue("__wf__open22")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt23" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail23"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost23" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost23','<%=md.getWFDataValue("__wf__cost23")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open23" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open23','<%=md.getWFDataValue("__wf__open23")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt24" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail24"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost24" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost24','<%=md.getWFDataValue("__wf__cost24")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open24" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open24','<%=md.getWFDataValue("__wf__open24")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt25" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail25"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost25" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost25','<%=md.getWFDataValue("__wf__cost25")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open25" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost25','<%=md.getWFDataValue("__wf__cost25")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="wel31" style="display:none "> <td class="desc"><span id="__welfare3"></span> <input type="hidden" size="30" name="__wf__welfare3" readonly value="<%= md.getWFDataValue("__wf__welfare3") %>"> <input type="hidden" size="30" name="__wf__docgid3" readonly value="<%= md.getWFDataValue("__wf__docgid3") %>"> <input type="hidden" size="30" name="__wf__whouse3" readonly value="<%= md.getWFDataValue("__wf__whouse3") %>"> <input type="text" size="30" name="__wf__welfaredesc3" readonly value="<%= md.getWFDataValue("__wf__welfaredesc3") %>"> </td> <td class="desc"><span id="__disease3"></span> <input type="hidden" size="30" name="__wf__disease3" readonly value="<%= md.getWFDataValue("__wf__disease3") %>"> <input type="text" size="30" name="__wf__diseasedesc3" readonly value="<%= md.getWFDataValue("__wf__diseasedesc3") %>"> </td> <td class="desc"><span id="__family3"></span></td> <td class="desc"><input name="__wf__amount3" type="text" readonly dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"> <script language="JavaScript">setValue('__wf__amount3','<%=md.getWFDataValue("__wf__amount3")%>');</script></td> <td class="desc"><input type="text" size="15" readonly name="__wf__receipt_number3" onKeyPress="javascript:chkInt1Dot(this);"> <script language="JavaScript">setValue('__wf__receipt_number3','<%=md.getWFDataValue("__wf__receipt_number3")%>');</script></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date3" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__receipt_date3','<%=md.getWFDataValue("__wf__receipt_date3")%>');</script> </td> <td class="desc"><div align="center"><a href="javascript:goPages('3','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1322','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image1322" width="20" border="0" align="absmiddle" id="Image1322"></a></div></td> </tr> <tr id="wel32" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid3" value="<%=md.getWFDataValue("__wf__sitewelid3")%>"><input type="hidden" size="50" name="__wf__sitewelgid3" value="<%=md.getWFDataValue("__wf__sitewelgid3")%>"> <script language="JavaScript">setValue('__wf__sitewelid3','<%=md.getWFDataValue("__wf__sitewelid3")%>');</script> <input type="text" size="50" name="__wf__sitewel_name3" readonly> <script language="JavaScript">setValue('__wf__sitewel_name3','<%=md.getWFDataValue("__wf__sitewel_name3")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" readonly name="__wf__other_sitewel3" size="30"> <script language="JavaScript">setValue('__wf__other_sitewel3','<%=md.getWFDataValue("__wf__other_sitewel3")%>');</script></td> </tr> <tr id="dt31" style="display:<%= dss3 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail31"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost31" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost31','<%=md.getWFDataValue("__wf__cost31")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open312" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open31','<%=md.getWFDataValue("__wf__open31")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt32" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail32"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost32" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost32','<%=md.getWFDataValue("__wf__cost32")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open32" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open32','<%=md.getWFDataValue("__wf__open32")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt33" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail33"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost33" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost33','<%=md.getWFDataValue("__wf__cost33")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open33" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open33','<%=md.getWFDataValue("__wf__open33")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt34" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail34"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost34" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost34','<%=md.getWFDataValue("__wf__cost34")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open34" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open34','<%=md.getWFDataValue("__wf__open34")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt35" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail35"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost35" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost35','<%=md.getWFDataValue("__wf__cost35")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open35" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open35','<%=md.getWFDataValue("__wf__open35")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="wel41" style="display:none "> <td class="desc"><span id="__welfare4"></span> <input type="hidden" size="30" name="__wf__welfare4" readonly value="<%= md.getWFDataValue("__wf__welfare4") %>"> <input type="hidden" size="30" name="__wf__docgid4" readonly value="<%= md.getWFDataValue("__wf__docgid4") %>"> <input type="hidden" size="30" name="__wf__whouse4" readonly value="<%= md.getWFDataValue("__wf__whouse4") %>"> <input type="text" size="30" name="__wf__welfaredesc4" readonly value="<%= md.getWFDataValue("__wf__welfaredesc4") %>"> </td> <td class="desc"><span id="__disease4"></span> <input type="hidden" size="30" name="__wf__disease4" readonly value="<%= md.getWFDataValue("__wf__disease4") %>"> <input type="text" size="30" name="__wf__diseasedesc4" readonly value="<%= md.getWFDataValue("__wf__diseasedesc4") %>"> </td> <td class="desc"><span id="__family4"></span></td> <td class="desc"><input name="__wf__amount4" type="text" readonly dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"> <script language="JavaScript">setValue('__wf__amount4','<%=md.getWFDataValue("__wf__amount4")%>');</script></td> <td class="desc"><input type="text" size="15" name="__wf__receipt_number4" readonly onKeyPress="javascript:chkInt1Dot(this);"> <script language="JavaScript">setValue('__wf__receipt_number4','<%=md.getWFDataValue("__wf__receipt_number4")%>');</script></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date4" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__receipt_date4','<%=md.getWFDataValue("__wf__receipt_date4")%>');</script> </td> <td class="desc"><div align="center"><a href="javascript:goPages('4','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1422','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image1422" width="20" border="0" align="absmiddle" id="Image1422" ></a></div></td> </tr> <tr id="wel42" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid4" value="<%=md.getWFDataValue("__wf__sitewelid4")%>"><input type="hidden" size="50" name="__wf__sitewelgid4" value="<%=md.getWFDataValue("__wf__sitewelgid4")%>"> <script language="JavaScript">setValue('__wf__sitewelid4','<%=md.getWFDataValue("__wf__sitewelid4")%>');</script> <input type="text" size="50" name="__wf__sitewel_name42" readonly> <script language="JavaScript">setValue('__wf__sitewel_name4','<%=md.getWFDataValue("__wf__sitewel_name4")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" name="__wf__other_sitewel42" size="30"> <script language="JavaScript">setValue('__wf__other_sitewel4','<%=md.getWFDataValue("__wf__other_sitewel4")%>');</script></td> </tr> <tr id="dt41" style="display:<%= dss4 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail41"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost41" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost41','<%=md.getWFDataValue("__wf__cost41")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open41" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open41','<%=md.getWFDataValue("__wf__open41")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt42" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail42"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost42" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost42','<%=md.getWFDataValue("__wf__cost42")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open42" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open42','<%=md.getWFDataValue("__wf__open42")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt43" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail43"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost43" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost43','<%=md.getWFDataValue("__wf__cost43")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open43" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open43','<%=md.getWFDataValue("__wf__open43")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt44" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail44"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost44" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"readonly> <script language="JavaScript">setValue('__wf__cost44','<%=md.getWFDataValue("__wf__cost44")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open44" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open44','<%=md.getWFDataValue("__wf__open44")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt45" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail45"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost45" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost45','<%=md.getWFDataValue("__wf__cost45")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open45" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open45','<%=md.getWFDataValue("__wf__open45")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="wel51" style="display:none "> <td class="desc"><span id="__welfare5"></span> <input type="hidden" size="30" name="__wf__welfare5" readonly value="<%= md.getWFDataValue("__wf__welfare5") %>"> <input type="hidden" size="30" name="__wf__docgid5" readonly value="<%= md.getWFDataValue("__wf__docgid5") %>"> <input type="hidden" size="30" name="__wf__whouse5" readonly value="<%= md.getWFDataValue("__wf__whouse5") %>"> <input type="text" size="30" name="__wf__welfaredesc5" readonly value="<%= md.getWFDataValue("__wf__welfaredesc5") %>"> </td> <td class="desc"><span id="__disease5"></span> <input type="hidden" size="30" name="__wf__disease5" readonly value="<%= md.getWFDataValue("__wf__disease5") %>"> <input type="text" size="30" name="__wf__diseasedesc5" readonly value="<%= md.getWFDataValue("__wf__diseasedesc5") %>"> </td> <td class="desc"><span id="__family5"></span></td> <td class="desc"><input type="text" size="8" dir="rtl" name="__wf__amount5" readonly value="0" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);"> <script language="JavaScript">setValue('__wf__amount5','<%=md.getWFDataValue("__wf__amount5")%>');</script></td> <td class="desc"><input type="text" size="15" name="__wf__receipt_number5" readonly onKeyPress="javascript:chkInt1Dot(this);"> <script language="JavaScript">setValue('__wf__receipt_number5','<%=md.getWFDataValue("__wf__receipt_number5")%>');</script></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date5" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__receipt_date5','<%=md.getWFDataValue("__wf__receipt_date5")%>');</script> </td> <td class="desc"><div align="center"><a href="javascript:goPages('5','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1522','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image1522" width="20" border="0" align="absmiddle" id="Image1522" ></a></div></td> </tr> <tr id="wel52" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid5" value="<%=md.getWFDataValue("__wf__sitewelid5")%>"><input type="hidden" size="50" name="__wf__sitewelgid5" value="<%=md.getWFDataValue("__wf__sitewelgid5")%>"> <script language="JavaScript">setValue('__wf__sitewelid5','<%=md.getWFDataValue("__wf__sitewelid5")%>');</script> <input type="text" size="50" name="__wf__sitewel_name5" readonly> <script language="JavaScript">setValue('__wf__sitewel_name5','<%=md.getWFDataValue("__wf__sitewel_name5")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" name="__wf__other_sitewel5" size="30"> <script language="JavaScript">setValue('__wf__other_sitewel5','<%=md.getWFDataValue("__wf__other_sitewel5")%>');</script></td> </tr> <tr> <tr id="dt51" style="display:<%= dss5 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail51"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost51" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost51','<%=md.getWFDataValue("__wf__cost51")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open51" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open51','<%=md.getWFDataValue("__wf__open51")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt52" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail52"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost52" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost52','<%=md.getWFDataValue("__wf__cost52")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open52" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open52','<%=md.getWFDataValue("__wf__open52")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt53" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail53"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost53" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost53','<%=md.getWFDataValue("__wf__cost53")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open532" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open53','<%=md.getWFDataValue("__wf__open53")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt54" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail54"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost54" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost54','<%=md.getWFDataValue("__wf__cost54")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open54" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open54','<%=md.getWFDataValue("__wf__open54")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt55" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail55"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost55" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost55','<%=md.getWFDataValue("__wf__cost55")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open55" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open55','<%=md.getWFDataValue("__wf__open55")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <td colspan="3" align="center" class="title1"><div align="center"> <script language="javascript">swapLang("Grand Total");</script> </div></td> <td align="right" class="title1"><span class="desc"> <input type="text" size="8" dir="rtl" name="__wf__grand_total" value="0" readonly> <script language="JavaScript">setValue('__wf__grand_total','<%=md.getWFDataValue("__wf__grand_total")%>');</script> </span></td> <td colspan="3" align="right" class="title1"><!--a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','../IMAGES/BUTTON/SWAP/EDIT_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/EDIT20.gif" alt="Add" name="Image13" width="20" border="0" align="absmiddle" id="Image13" onClick="add()"></a> <a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','../IMAGES/BUTTON/SWAP/EXIT_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/EXIT20.gif" alt="Delete" name="Image14" width="20" border="0" align="absmiddle" id="Image14" onClick="del()"></a--> </td> </tr> <tr> <td colspan="7"> <table cellspacing="0" cellpadding="0"> <tr> <td colspan="8"></td> </tr> <tr> <td colspan="8" class="desc2"><jsp:include page="./MSG01.jsp" flush="true" /></td> </tr> </table></td> </tr> <tr> </table> <script language="javascript">SearchDWR.searchAll(new Array("mrequisitiontype","requisid,tdesc,edesc","","requisid","langon"),selectrequis);</script> <script language="javascript">//SearchDWR.searchAll(new Array("mwelfare","welid,tdesc,edesc,whouse,docgid"," iseducation = '0'","welid","langon"),selectwelfare);</script> <script language="javascript">//SearchDWR.searchAll(new Array("mdisease","disid,tdesc,edesc","","disid","langon"),selectdisease);</script> <script language="javascript">SearchDWR.searchAll(new Array("mempl_family","fullname,employeeid,companyid,relationid,fnameid,lname,efname,elname,line_no","employeeid = '"+document.cscform.__wf__employeeid.value+"'","employeeid","langon"),selectfamily);</script> <SCRIPT LANGUAGE="JavaScript"> showcol(<%= md.getWFDataValue("__wf__addval") %>); var adval = parseInt('<%= md.getWFDataValue("__wf__addval") %>'); // alert(adval); if(adval !=""){ if(adval>=1) showtcol('1','<%= md.getWFDataValue("__wf__at1") %>'); if(adval>=2) showtcol('2','<%= md.getWFDataValue("__wf__at2") %>'); if(adval>=3) showtcol('3','<%= md.getWFDataValue("__wf__at3") %>'); if(adval>=4) showtcol('4','<%= md.getWFDataValue("__wf__at4") %>'); if(adval>=5) showtcol('5','<%= md.getWFDataValue("__wf__at5") %>'); } </SCRIPT> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End User Code --> <SCRIPT LANGUAGE="JavaScript">setDisabled();</SCRIPT> <!--BR--> <!-- WF Command --> <!-- End WF Command --> <BR> <!-- Remark --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD WIDTH="15%" VALIGN="top" BGCOLOR="#0099CC"><DIV ALIGN="right"><%=screenSingle.getLabel("REMARK")%> :</DIV></TD> <TD WIDTH="85%" BGCOLOR="#FFFFFF"><%=screenSingle.getInput("REMARK")%></TD> <SCRIPT LANGUAGE="JavaScript">setReadOnlyOn('__remark');</SCRIPT> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Remark --> <BR> <!-- Reference Note --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <% String reference_param = ""; DbInquiry wf_reference_di = (DbInquiry)screenSingle.getRecord().getChild("WF_REFERENCE"); if( wf_reference_di != null && wf_reference_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ reference_param = ""; do{ reference_param += ","+wf_reference_di.getString("REF_WF_ID")+":"+wf_reference_di.getString("REF_WF_VER")+":"+wf_reference_di.getString("REF_WF_SEQ_NO")+":"+ wf_reference_di.getString("REF_STEP_ID")+":"+wf_reference_di.getString("REF_STEP_SEQ_NO")+":"+wf_reference_di.getString("REF_ACTOR_ID")+":"+ wf_reference_di.getString("REF_ACTOR_SEQ_NO")+":"+wf_reference_di.getString("REF_POSITION_CODE"); }while( wf_reference_di.next() ); reference_param = reference_param.replaceFirst(",",""); }else{ reference_param = chkNull.chkNullString(request.getParameter("reference_param")); if( !chkNull.chkNullString(request.getParameter("reference_delete")).equals("") ){ String reference_delete = chkNull.chkNullString(request.getParameter("reference_delete")); String[] temp_delete = reference_delete.split(","); //System.out.println("Refer Delete : "+reference_delete); for( int i = 0 ; i < temp_delete.length ; i++ ){ reference_param = reference_param.replaceFirst(temp_delete[i],""); } reference_param = reference_param.replaceAll(",,",","); //System.out.println("Refer Param : "+reference_param); } } String[] temp = reference_param.split(","); if( temp.length > 0 && reference_param.length() > 0 ){ String[] temp2 = temp[0].split(":"); DbInquiry reference_di = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("VW_INCIDENT1"); reference_di.setColumn("*"); reference_di.setFilter("WF_ID = '"+temp2[0]+"' AND "+ "WF_VER = '"+temp2[1]+"' AND "+ "WF_SEQ_NO = '"+temp2[2]+"' AND "+ "STEP_ID = '"+temp2[3]+"' AND "+ "STEP_SEQ_NO = '"+temp2[4]+"' AND "+ "ACTOR_ID = '"+temp2[5]+"' AND "+ "ACTOR_SEQ_NO = '"+temp2[6]+"' AND "+ "POSITION_CODE = '"+temp2[7]+"'" ); reference_di.refresh(); if( reference_di.next() ){ %> <TR> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Reference Note");</script> :</STRONG></DIV></TD> <TD WIDTH="4%"><DIV ALIGN="center"><%=reference_di.getString("FMYNOTECHECK").replaceAll(">"," DISABLED>")%></DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"><%=reference_di.getString("FREFER_SUBJECT")%></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><%=new CscCalendar(Long.parseLong(reference_di.getString("WI_START_TIME"))).getDDMMYYYY()%></DIV></TD> </TR> <% } for( int i = 1 ; i < temp.length ; i++ ){ temp2 = temp[i].split(":"); reference_di.setFilter("WF_ID = '"+temp2[0]+"' AND "+ "WF_VER = '"+temp2[1]+"' AND "+ "WF_SEQ_NO = '"+temp2[2]+"' AND "+ "STEP_ID = '"+temp2[3]+"' AND "+ "STEP_SEQ_NO = '"+temp2[4]+"' AND "+ "ACTOR_ID = '"+temp2[5]+"' AND "+ "ACTOR_SEQ_NO = '"+temp2[6]+"' AND "+ "POSITION_CODE = '"+temp2[7]+"'" ); reference_di.refresh(); if( reference_di.next() ){ %> <TR> <TD WIDTH="18%"> </TD> <TD WIDTH="4%"><DIV ALIGN="center"><%=reference_di.getString("FMYNOTECHECK").replaceAll(">"," DISABLED>")%></DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"><%=reference_di.getString("FREFER_SUBJECT")%></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><%=new CscCalendar(Long.parseLong(reference_di.getString("WI_START_TIME"))).getDDMMYYYY()%></DIV></TD> </TR> <% } } }else{ %> <TR BGCOLOR="#0099CC"> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Reference Note");</script> :</STRONG></DIV></TD> <TD COLSPAN="4" BGCOLOR="#FFFFFF"> </TD> </TR> <% } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Reference Note --> <BR> <!-- Attach File --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <% InitialEnvironment environment = new InitialEnvironment("GLOBAL"); Downloadfile download = null; DbInquiry attached_file_di = (DbInquiry)screenSingle.getRecord().getChild("ATTACHED_FILE"); System.out.println("Inquiry : "+attached_file_di.foundData()); if( attached_file_di != null && attached_file_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ System.out.println("Path : "+screenSingle.getUProfile().get("companyid")+"/"+attached_file_di.getString("WF_ID")+"/"+attached_file_di.getString("WF_VER")+"/"+attached_file_di.getString("WF_SEQ_NO")); download = new Downloadfile(environment.getValue("DIRNOTEATTACHTFILE-dir")+screenSingle.getUProfile().get("companyid")+"/"+ chkNull.chkNullString(attached_file_di.getString("WF_ID"),"0")+"/"+ chkNull.chkNullString(attached_file_di.getString("WF_VER"),"0")+"/"+ chkNull.chkNullString(attached_file_di.getString("WF_SEQ_NO"),"0")); }else{ download = new Downloadfile(environment.getValue("DIRNOTEATTACHTEMP-dir")+attach_time); if( !chkNull.chkNullString(request.getParameter("delete_file")).equals("") ){ String[] file_name = request.getParameter("delete_file").split(","); for( int i = 0 ; i < file_name.length ; i++ ){ download.delFile(file_name[i]); } } } HashMap attach_file_hm = download.listFile(); ArrayList file_name = (ArrayList)attach_file_hm.get("file_name"); ArrayList file_size = (ArrayList)attach_file_hm.get("file_size"); if( file_name.size() > 0 ){ %> <TR> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Attach File");</script> :</STRONG></DIV></TD> <TD WIDTH="4%"><DIV ALIGN="center"> <INPUT TYPE="checkbox" NAME="attach_file" VALUE="<%=file_name.get(0)%>" DISABLED> </DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"> <A HREF="<%=request.getRequestURI()+"?"+download.getDownloadLink((String)file_name.get(0))%>"><%=file_name.get(0)%></A> </DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"> <%=calendar.getDDMMYYYY()%> </DIV></TD> </TR> <% for( int i = 1 ; i < file_name.size() ; i++ ){ %> <TR> <TD WIDTH="18%"> </TD> <TD WIDTH="4%"><DIV ALIGN="center"> <INPUT TYPE="checkbox" NAME="attach_file" VALUE="<%=file_name.get(i)%>" DISABLED> </DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"> <A HREF="<%=request.getRequestURI()+"?"+download.getDownloadLink((String)file_name.get(i))%>"><%=file_name.get(i)%></A> </DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"> <%=calendar.getDDMMYYYY()%> </DIV></TD> </TR> <% } }else{ %> <TR BGCOLOR="#0099CC"> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Attach File");</script> :</STRONG></DIV></TD> <TD COLSPAN="4" BGCOLOR="#FFFFFF"> </TD> </TR> <% } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Attach File --> <BR> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR CLASS="txt01"> <TD><DIV ALIGN="right"><A HREF="JavaScript:DelWF();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_CANCEL.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A></DIV></TD> </TR> </TABLE> <BR> <!-- Document Routing --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD COLSPAN="6" BGCOLOR="#0099CC"><DIV ALIGN="center"><STRONG>: <script language="javascript">swapLang("History Document Routing");</script> :</STRONG></DIV></TD> </TR> <TR BGCOLOR="#CCCCCC"> <TD WIDTH="5%"><DIV ALIGN="center"><script language="javascript">swapLang("No.");</script></DIV></TD> <TD WIDTH="25%"><DIV ALIGN="center"><script language="javascript">swapLang("Actor");</script></DIV></TD> <TD WIDTH="24%"><DIV ALIGN="center"><script language="javascript">swapLang("Position");</script></DIV></TD> <TD WIDTH="18%"><DIV ALIGN="center"><script language="javascript">swapLang("Start Time");</script></DIV></TD> <TD WIDTH="18%"><DIV ALIGN="center"><script language="javascript">swapLang("End Time");</script></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><script language="javascript">swapLang("Action");</script></DIV></TD> </TR> <% DbInquiry history_di = (DbInquiry)screenSingle.getRecord().getChild("VW_INCIDENT"); if( history_di != null && history_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ do{ %> <TR BGCOLOR="#0099CC"> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="right"><%=history_di.getString("STEP_SEQ_NO")%></DIV></TD> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="left"><%=history_di.getString("ACTOR_FNAME")+" "+history_di.getString("ACTOR_LNAME")%></DIV></TD> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="left"><%=history_di.getString("ACTOR_TPOSITION")%></DIV></TD> <% calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_START_TIME"))); %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"><%=calendar.getDDMMYYHHMMSS()%></DIV></TD> <% if( history_di.getString("AI_COMPLETION_TIME").equals("0") ){ %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"></DIV></TD> <% }else{ calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_COMPLETION_TIME"))); %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"><%=calendar.getDDMMYYHHMMSS()%></DIV></TD> <% } %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="right"><%=history_di.getString("FAI_ACTION")%></DIV></TD> </TR> <% }while( history_di.next() ); } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Document Routing --> <BR> <!-- Comment --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD BGCOLOR="#0099CC"><DIV ALIGN="center"><STRONG>: <script language="javascript">swapLang("View Comment");</script> :</STRONG></DIV></TD> </TR> <TR BGCOLOR="#0099CC"> <TD BGCOLOR="#FFFFFF"><% if( history_di != null ){ history_di.go(0); } if( history_di.recCount() > 0 ){ int comment_no = 1; history_di.go(0); while( history_di.next() ){ if( !history_di.getString("COMMENTS").trim().equals("") && !history_di.getString("AI_COMPLETION_TIME").equals("0") ){ calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_COMPLETION_TIME"))); %> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#CCCCCC"> <TD><STRONG><script language="javascript">swapLang("Comment No");</script> : <%=comment_no++%> </STRONG></TD> <TD COLSPAN="3"><DIV ALIGN="right"><script language="javascript">swapLang("Date");</script> : <%=calendar.getDDMMYYYY()%> <script language="javascript">swapLang("Time");</script> : <%=calendar.getHHMMSS()%></DIV></TD> </TR> <TR BGCOLOR="EFEFEF"> <TD WIDTH="18%" BGCOLOR="EFEFEF"><DIV ALIGN="right"><script language="javascript">swapLang("Name");</script> : </DIV></TD> <TD WIDTH="37%" BGCOLOR="EFEFEF"><%=history_di.getString("ACTOR_FNAME")+" "+history_di.getString("ACTOR_LNAME")%></TD> <TD WIDTH="16%" BGCOLOR="EFEFEF"><DIV ALIGN="right"><script language="javascript">swapLang("Position");</script> : </DIV></TD> <TD WIDTH="29%" BGCOLOR="EFEFEF"><%=history_di.getString("ACTOR_TPOSITION")%></TD> </TR> <TR BGCOLOR="EFEFEF"> <TD><DIV ALIGN="right"><script language="javascript">swapLang("Message");</script> :</DIV></TD> <TD COLSPAN="3"><%=history_di.getString("COMMENTS")%></TD> </TR> </TABLE> <% } } } %> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Comment --> <!-- End Step Cancel--> <% }else if( chkNull.chkNullString(request.getParameter("__singlereadonly")).equals("true") && chkNull.chkNullString(request.getParameter("__readonly")).equals("false") ){ String screen_value = chkNull.chkNullString(screenSingle.getDataLabel("SCREEN_VALUE")); HashMap hm = new HashMap(); ManageDocument md = new ManageDocument(); hm.put("WF_ID",request.getParameter("wf_id")); hm.put("WF_VER",request.getParameter("wf_ver")); hm.put("WF_SEQ_NO",request.getParameter("wf_seq_no")); hm.put("STEP_ID",request.getParameter("step_id")); hm.put("STEP_SEQ_NO",request.getParameter("step_seq_no")); hm.put("ACTOR_ID",screenSingle.getUProfile().getActor()); hm.put("POSITION_CODE",screenSingle.getUProfile().get("job")); md.setUProfile(screenSingle.getUProfile()); md.setParam(hm); md.setVW_Incident(); md.setWFDataValue(screen_value); if( md.getIncidentValue("READ_CHECK").equals("0") ){ md.changeReadFlag(); } %> <INPUT TYPE="hidden" NAME="__wfapprove" VALUE="true"> <INPUT TYPE="hidden" NAME="__initiator" VALUE="<%=screenSingle.getDataLabel("INITIATOR")%>"> <INPUT TYPE="hidden" NAME="__position_code" VALUE="<%=screenSingle.getDataLabel("POSITION_CODE")%>"> <INPUT TYPE="hidden" NAME="__doc_no" VALUE="<%=screenSingle.getDataLabel("DOC_NO")%>"> <INPUT TYPE="hidden" NAME="__screen_value" VALUE="<%=screenSingle.getDataLabel("SCREEN_VALUE")%>"> <INPUT TYPE="hidden" NAME="__start_time" VALUE="<%=screenSingle.getDataLabel("START_TIME")%>"> <!-- Head --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="EFEFEF"> <TD WIDTH="50%"><DIV ALIGN="left"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Initiator");</SCRIPT> : </STRONG><%=screenSingle.getDataLabel("VW_INCIDENT","initiator_fname")+" "+screenSingle.getDataLabel("VW_INCIDENT","initiator_lname")%></TD> <TD WIDTH="50%"><DIV ALIGN="right"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Position");</SCRIPT> : </STRONG><%=screenSingle.getDataLabel("VW_INCIDENT","INITIATOR_TPOSITION")%></DIV></TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Head --> <br> <!-- Help --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="txt01"> <TR BGCOLOR="EFEFEF"> <TD WIDTH="99%" BGCOLOR="EFEFEF"> <DIV ALIGN="center"> <STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Request form of medical fee[HR]")</SCRIPT> </DIV> </TD> <TD BGCOLOR="EFEFEF"> <DIV ALIGN="right"> <A href="JavaScript:openHelp();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_HELP.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A> </DIV> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Help --> <BR> <!-- Send To --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD WIDTH="19%" BGCOLOR="#0099CC"><DIV ALIGN="right"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Send To");</SCRIPT> : </STRONG></DIV></TD> <TD WIDTH="81%" BGCOLOR="#EFEFEF"> <INPUT TYPE="text" NAME="sendto" SIZE="40" VALUE="<%=chkNull.chkNullString(request.getParameter("sendto"),memployee_dr.getString("FULLNAME"))%>" ID="menu_parent" READONLY> <INPUT TYPE="hidden" NAME="wf_next_actor" VALUE="<%=chkNull.chkNullString(request.getParameter("wf_next_actor"),memployee_dr.getString("EMPLOYEEID"))%>"> </TD> </TR> <!--TR BGCOLOR="#0099CC"> <TD WIDTH="19%" BGCOLOR="#0099CC"><DIV ALIGN="right"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("CC");</SCRIPT> : </STRONG></DIV></TD> <TD WIDTH="81%" BGCOLOR="#EFEFEF"> <INPUT TYPE="text" NAME="cc" SIZE="40" VALUE="<%//=chkNull.chkNullString(request.getParameter("cc"))%>" READONLY> <A HREF="JavaScript:goHelp('MEMPLOYEEHELP','cc','');"><IMG SRC="../IMAGES/MYNOTE/534.gif" WIDTH="18" HEIGHT="17" BORDER="0" ALIGN="absmiddle"></A> <INPUT TYPE="hidden" NAME="wf_cc_actor" VALUE="<%//=chkNull.chkNullString(request.getParameter("wf_cc_actor"))%>"> </TD> </TR--> <TR BGCOLOR="#0099CC"> <TD WIDTH="19%" BGCOLOR="#0099CC"><DIV ALIGN="right"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Subject");</SCRIPT> : </STRONG></DIV></TD> <TD WIDTH="81%" BGCOLOR="#EFEFEF"> <INPUT TYPE="text" NAME="subject" SIZE="50" VALUE="<%=chkNull.chkNullString(subject)%>" onMouseOver="toolTip('<%=(screenSingle.getUProfile().get("lang").equals("tha")?"ชื่อเรื่อง":"Subject")%>')" onMouseOut="toolTip()" READONLY> <script language="javascript">document.cscform.subject.value=swap2String("Request form of medical fee")+"[HR]";</script> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Send To --> <BR> <!-- User Code --> <table WIDTH="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="5" height="5"><img src="../IMAGES/MYNOTE/C-T-L.gif" width="5" height="5"></td> <td height="5"><img src="../IMAGES/MYNOTE/T.gif" width="100%" height="5"></td> <td width="5" height="5"><img src="../IMAGES/MYNOTE/C-T-R.gif" width="5" height="5"></td> </tr> <tr> <td width="5" background="../IMAGES/MYNOTE/L2.gif"><font color="#FFFFFF"></font></td> <td valign="middle"><font face="MS Sans Serif" size="1" color="#FFFFFF"> <table width="100%" border="0" cellpadding="0" cellspacing="1" class="txt01"> <tr bgcolor="#FFFFFF"></tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="1" class="txt01"> <tr bgcolor="#FFFFFF"> <td colspan="2"><!-- Insert Head --> </td> </tr> </table> <!-- Insert Code Step 2 --> <input type="hidden" name="__wf__at1" value="<%= md.getWFDataValue("__wf__at1") %>"> <input type="hidden" name="__wf__at2" value="<%= md.getWFDataValue("__wf__at2") %>"> <input type="hidden" name="__wf__at3" value="<%= md.getWFDataValue("__wf__at3") %>"> <input type="hidden" name="__wf__at4" value="<%= md.getWFDataValue("__wf__at4") %>"> <input type="hidden" name="__wf__at5" value="<%= md.getWFDataValue("__wf__at5") %>"> <input type="hidden" name="__wf__attach1" value="<%= md.getWFDataValue("__wf__attach1") %>"> <input type="hidden" name="__wf__attach2" value="<%= md.getWFDataValue("__wf__attach2") %>"> <input type="hidden" name="__wf__attach3" value="<%= md.getWFDataValue("__wf__attach3") %>"> <input type="hidden" name="__wf__attach4" value="<%= md.getWFDataValue("__wf__attach4") %>"> <input type="hidden" name="__wf__attach5" value="<%= md.getWFDataValue("__wf__attach5") %>"> <input type="hidden" name="__wf__addval" value="<%= md.getWFDataValue("__wf__addval") %>"> <input type="hidden" name="__wf__employeeid" value="<%= md.getWFDataValue("__wf__employeeid") %>"> <script language="javascript">callback = "<%= md.getWFDataValue("__wf__requisition_type") %>"; </script> <% int addv = Integer.parseInt(md.getWFDataValue("__wf__addval")); if(addv<1) dss1 = "none"; if(addv<2) dss2 = "none"; if(addv<3) dss3 = "none"; if(addv<4) dss4 = "none"; if(addv<5) dss5 = "none"; %> <script language="javascript">//alert(document.cscform.__wf__employeeid.value);</script> <table class="inframe" cellspacing=1 cellpadding=0 border=0> <tbody> <tr> <td colspan="7" class="title1"><div align="center"> <script language="javascript">swapLang("Welfare List");</script> </div></td> </tr> <tr> <td class="desc" nowrap><div align="right"> <strong> <script language="javascript">swapLang("Employee");</script> :</strong></div></td> <td class="desc" nowrap><input type="text" name="__wf__empfullname" size="30" value="" readonly> <script language="JavaScript">setValue('__wf__empfullname','<%=md.getWFDataValue("__wf__empfullname")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Requisition Type");</script> </td> <td class="desc"><span id="__requisition"></span> <script language="javascript">SystemCode.getContentDWR(new Array("REQUISITION_TYPE","eng"),selectedcallbackSys);</script> <!--nput type="button" onClick="javascript:TEST2();" value="TEst"--> </td> <td width="7%" align="right" class="desc"><script language="javascript">swapLang("Send Date");</script> </td> <td colspan="2" class="desc"><input type="text" size="10" name="__wf__send_date2" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__send_date','<%=md.getWFDataValue("__wf__send_date")%>');</script></td> </tr> <tr> <td width="7%" class="title1"><div align="center"> <script language="javascript">swapLang("Welfare");</script> </div></td> <td width="31%" class="title1"><div align="center"> <script language="javascript">swapLang("Disease ");</script> </div></td> <td width="32%" class="title1"><div align="center"> <script language="javascript">swapLang("Name Surname In Family");</script> </div></td> <td width="7%" class="title1"><div align="center"> <script language="javascript">swapLang("Amount ");</script> </div></td> <td class="title1"><div align="center"> <script language="javascript">swapLang("Receipt Number");</script> </div></td> <td width="7%" class="title1"><div align="center"> <script language="javascript">swapLang("Receipt Date");</script> </div></td> <td width="8%" class="title1"><div align="center"> <script language="javascript">swapLang("Attach Doc");</script> </div></td> </tr> <!--/font--> <tr> <script language="JavaScript"> wdata1 = "<%= md.getWFDataValue("__wf__welfare1") %>"; wdata2 = "<%= md.getWFDataValue("__wf__welfare2") %>"; wdata3 = "<%= md.getWFDataValue("__wf__welfare3") %>"; wdata4 = "<%= md.getWFDataValue("__wf__welfare4") %>"; wdata5 = "<%= md.getWFDataValue("__wf__welfare5") %>"; sdata1 = "<%= md.getWFDataValue("__wf__disease1") %>"; sdata2 = "<%= md.getWFDataValue("__wf__disease2") %>"; sdata3 = "<%= md.getWFDataValue("__wf__disease3") %>"; sdata4 = "<%= md.getWFDataValue("__wf__disease4") %>"; sdata5 = "<%= md.getWFDataValue("__wf__disease5") %>"; fdata1 = "<%= md.getWFDataValue("__wf__family1") %>"; fdata2 = "<%= md.getWFDataValue("__wf__family2") %>"; fdata3 = "<%= md.getWFDataValue("__wf__family3") %>"; fdata4 = "<%= md.getWFDataValue("__wf__family4") %>"; fdata5 = "<%= md.getWFDataValue("__wf__family5") %>"; r11 = "<%= md.getWFDataValue("__wf__detail11") %>" r12 = "<%= md.getWFDataValue("__wf__detail12") %>" r13 = "<%= md.getWFDataValue("__wf__detail13") %>" r14 = "<%= md.getWFDataValue("__wf__detail14") %>" r15 = "<%= md.getWFDataValue("__wf__detail15") %>" r21 = "<%= md.getWFDataValue("__wf__detail21") %>" r22 = "<%= md.getWFDataValue("__wf__detail22") %>" r23 = "<%= md.getWFDataValue("__wf__detail23") %>" r24 = "<%= md.getWFDataValue("__wf__detail24") %>" r25 = "<%= md.getWFDataValue("__wf__detail25") %>" r31 = "<%= md.getWFDataValue("__wf__detail31") %>" r32 = "<%= md.getWFDataValue("__wf__detail32") %>" r33 = "<%= md.getWFDataValue("__wf__detail33") %>" r34 = "<%= md.getWFDataValue("__wf__detail34") %>" r35 = "<%= md.getWFDataValue("__wf__detail35") %>" r41 = "<%= md.getWFDataValue("__wf__detail41") %>" r42 = "<%= md.getWFDataValue("__wf__detail42") %>" r43 = "<%= md.getWFDataValue("__wf__detail43") %>" r44 = "<%= md.getWFDataValue("__wf__detail44") %>" r45 = "<%= md.getWFDataValue("__wf__detail45") %>" r51 = "<%= md.getWFDataValue("__wf__detail51") %>" r52 = "<%= md.getWFDataValue("__wf__detail52") %>" r53 = "<%= md.getWFDataValue("__wf__detail53") %>" r54 = "<%= md.getWFDataValue("__wf__detail54") %>" r55 = "<%= md.getWFDataValue("__wf__detail55") %>" </script> <td class="desc"><span id="__welfare1"></span> <input type="hidden" size="30" name="__wf__welfare1" readonly value="<%= md.getWFDataValue("__wf__welfare1") %>"> <input type="hidden" size="30" name="__wf__docgid1" readonly value="<%= md.getWFDataValue("__wf__docgid1") %>"> <input type="hidden" size="30" name="__wf__whouse1" readonly value="<%= md.getWFDataValue("__wf__whouse1") %>"> <input type="text" size="30" name="__wf__welfaredesc1" readonly value="<%= md.getWFDataValue("__wf__welfaredesc1") %>"> </td> <td class="desc"><span id="__disease1"></span> <script language="javascript">//SearchDWR.searchAll(new Array("mdisease","disid,tdesc,edesc","","disid","langon"),selectdisease);</script> <input type="hidden" size="30" name="__wf__disease1" readonly value="<%= md.getWFDataValue("__wf__disease1") %>"> <input type="text" size="30" name="__wf__diseasedesc1" readonly value="<%= md.getWFDataValue("__wf__diseasedesc1") %>"> </td> <td class="desc"><span id="__family1"></span></td> <td class="desc"><input name="__wf__amount1" readonly type="text" dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"> <script language="JavaScript">setValue('__wf__amount1','<%=md.getWFDataValue("__wf__amount1")%>');</script></td> <td class="desc"><input type="text" size="15" readonly name="__wf__receipt_number1" onKeyPress="javascript:chkInt1Dot(this);"> <script language="JavaScript">setValue('__wf__receipt_number1','<%=md.getWFDataValue("__wf__receipt_number1")%>');</script></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date1" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__receipt_date1','<%=md.getWFDataValue("__wf__receipt_date1")%>');</script> </td> <td class="desc"><div align="center"><a href="javascript:goPages('1','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1122','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image1122" width="20" border="0" align="absmiddle" id="Image1122" ></a></div></td> </tr> <tr> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid1" value="<%=md.getWFDataValue("__wf__sitewelid1")%>"><input type="hidden" size="50" name="__wf__sitewelgid1" value="<%=md.getWFDataValue("__wf__sitewelgid1")%>"> <input type="text" size="50" name="__wf__sitewel_name1" readonly> <script language="JavaScript">setValue('__wf__sitewel_name1','<%=md.getWFDataValue("__wf__sitewel_name1")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" readonly name="__wf__other_sitewel1" size="30"> <script language="JavaScript">setValue('__wf__other_sitewel1','<%=md.getWFDataValue("__wf__other_sitewel1")%>');</script></td> </tr> <tr id="dt11" style="display:<%= dss1 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail11"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost11" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost11','<%=md.getWFDataValue("__wf__cost11")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open11" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open11','<%=md.getWFDataValue("__wf__open11")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt12" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail12"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost12" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost12','<%=md.getWFDataValue("__wf__cost12")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open12" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open12','<%=md.getWFDataValue("__wf__open12")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt13" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail13"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost13" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost13','<%=md.getWFDataValue("__wf__cost13")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open13" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open13','<%=md.getWFDataValue("__wf__open13")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt14" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail14"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost14" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost14','<%=md.getWFDataValue("__wf__cost14")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open14" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open14','<%=md.getWFDataValue("__wf__open14")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt15" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail15"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost15" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost15','<%=md.getWFDataValue("__wf__cost15")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open15" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open15','<%=md.getWFDataValue("__wf__open15")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="wel21" style="display:none "> <td class="desc"><span id="__welfare2"></span> <input type="hidden" size="30" name="__wf__welfare2" readonly value="<%= md.getWFDataValue("__wf__welfare2") %>"> <input type="hidden" size="30" name="__wf__docgid2" readonly value="<%= md.getWFDataValue("__wf__docgid2") %>"> <input type="hidden" size="30" name="__wf__whouse2" readonly value="<%= md.getWFDataValue("__wf__whouse2") %>"> <input type="text" size="30" name="__wf__welfaredesc2" readonly value="<%= md.getWFDataValue("__wf__welfaredesc2") %>"> </td> <td class="desc"><span id="__disease2"></span> <input type="hidden" size="30" name="__wf__disease2" readonly value="<%= md.getWFDataValue("__wf__disease2") %>"> <input type="text" size="30" name="__wf__diseasedesc2" readonly value="<%= md.getWFDataValue("__wf__diseasedesc2") %>"> </td> <td class="desc"><span id="__family2"></span></td> <td class="desc"><input name="__wf__amount2" readonly type="text" dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"> <script language="JavaScript">setValue('__wf__amount2','<%=md.getWFDataValue("__wf__amount2")%>');</script></td> <td class="desc"><input type="text" size="15" name="__wf__receipt_number2" readonly onKeyPress="javascript:chkInt1Dot(this);"> <script language="JavaScript">setValue('__wf__receipt_number2','<%=md.getWFDataValue("__wf__receipt_number2")%>');</script></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date2" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__receipt_date2','<%=md.getWFDataValue("__wf__receipt_date2")%>');</script> </td> <td class="desc"><div align="center"><a href="javascript:goPages('2','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1222','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image1222" width="20" height="20" border="0" align="absmiddle" id="Image1222" ></a></div></td> </tr> <tr id="wel22" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid2" value="<%=md.getWFDataValue("__wf__sitewelid2")%>"><input type="hidden" size="50" name="__wf__sitewelgid2" value="<%=md.getWFDataValue("__wf__sitewelgid2")%>"> <script language="JavaScript">setValue('__wf__sitewelid2','<%=md.getWFDataValue("__wf__sitewelid2")%>');</script> <input type="text" size="50" name="__wf__sitewel_name2" readonly> <script language="JavaScript">setValue('__wf__sitewel_name2','<%=md.getWFDataValue("__wf__sitewel_name2")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" readonly name="__wf__other_sitewel2" size="30"> <script language="JavaScript">setValue('__wf__other_sitewel2','<%=md.getWFDataValue("__wf__other_sitewel2")%>');</script></td> </tr> <tr id="dt21" style="display:<%= dss2 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail21"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost21" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost21','<%=md.getWFDataValue("__wf__cost21")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open21" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"readonly> <script language="JavaScript">setValue('__wf__open21','<%=md.getWFDataValue("__wf__open21")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt22" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail22"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost22" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost22','<%=md.getWFDataValue("__wf__cost22")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open22" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open22','<%=md.getWFDataValue("__wf__open22")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt23" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail23"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost23" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost23','<%=md.getWFDataValue("__wf__cost23")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open23" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open23','<%=md.getWFDataValue("__wf__open23")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt24" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail24"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost24" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost24','<%=md.getWFDataValue("__wf__cost24")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open24" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open24','<%=md.getWFDataValue("__wf__open24")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt25" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail25"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost25" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost25','<%=md.getWFDataValue("__wf__cost25")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open25" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost25','<%=md.getWFDataValue("__wf__cost25")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="wel31" style="display:none "> <td class="desc"><span id="__welfare3"></span> <input type="hidden" size="30" name="__wf__welfare3" readonly value="<%= md.getWFDataValue("__wf__welfare3") %>"> <input type="hidden" size="30" name="__wf__docgid3" readonly value="<%= md.getWFDataValue("__wf__docgid3") %>"> <input type="hidden" size="30" name="__wf__whouse3" readonly value="<%= md.getWFDataValue("__wf__whouse3") %>"> <input type="text" size="30" name="__wf__welfaredesc3" readonly value="<%= md.getWFDataValue("__wf__welfaredesc3") %>"> </td> <td class="desc"><span id="__disease3"></span> <input type="hidden" size="30" name="__wf__disease3" readonly value="<%= md.getWFDataValue("__wf__disease3") %>"> <input type="text" size="30" name="__wf__diseasedesc3" readonly value="<%= md.getWFDataValue("__wf__diseasedesc3") %>"> </td> <td class="desc"><span id="__family3"></span></td> <td class="desc"><input name="__wf__amount3" type="text" readonly dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"> <script language="JavaScript">setValue('__wf__amount3','<%=md.getWFDataValue("__wf__amount3")%>');</script></td> <td class="desc"><input type="text" size="15" readonly name="__wf__receipt_number3" onKeyPress="javascript:chkInt1Dot(this);"> <script language="JavaScript">setValue('__wf__receipt_number3','<%=md.getWFDataValue("__wf__receipt_number3")%>');</script></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date3" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__receipt_date3','<%=md.getWFDataValue("__wf__receipt_date3")%>');</script> </td> <td class="desc"><div align="center"><a href="javascript:goPages('3','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1322','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image1322" width="20" border="0" align="absmiddle" id="Image1322"></a></div></td> </tr> <tr id="wel32" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid3" value="<%=md.getWFDataValue("__wf__sitewelid3")%>"><input type="hidden" size="50" name="__wf__sitewelgid3" value="<%=md.getWFDataValue("__wf__sitewelgid3")%>"> <script language="JavaScript">setValue('__wf__sitewelid3','<%=md.getWFDataValue("__wf__sitewelid3")%>');</script> <input type="text" size="50" name="__wf__sitewel_name3" readonly> <script language="JavaScript">setValue('__wf__sitewel_name3','<%=md.getWFDataValue("__wf__sitewel_name3")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" readonly name="__wf__other_sitewel3" size="30"> <script language="JavaScript">setValue('__wf__other_sitewel3','<%=md.getWFDataValue("__wf__other_sitewel3")%>');</script></td> </tr> <tr id="dt31" style="display:<%= dss3 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail31"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost31" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost31','<%=md.getWFDataValue("__wf__cost31")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open312" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open31','<%=md.getWFDataValue("__wf__open31")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt32" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail32"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost32" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost32','<%=md.getWFDataValue("__wf__cost32")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open32" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open32','<%=md.getWFDataValue("__wf__open32")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt33" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail33"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost33" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost33','<%=md.getWFDataValue("__wf__cost33")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open33" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open33','<%=md.getWFDataValue("__wf__open33")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt34" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail34"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost34" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost34','<%=md.getWFDataValue("__wf__cost34")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open34" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open34','<%=md.getWFDataValue("__wf__open34")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt35" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail35"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost35" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost35','<%=md.getWFDataValue("__wf__cost35")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open35" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open35','<%=md.getWFDataValue("__wf__open35")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="wel41" style="display:none "> <td class="desc"><span id="__welfare4"></span> <input type="hidden" size="30" name="__wf__welfare4" readonly value="<%= md.getWFDataValue("__wf__welfare4") %>"> <input type="hidden" size="30" name="__wf__docgid4" readonly value="<%= md.getWFDataValue("__wf__docgid4") %>"> <input type="hidden" size="30" name="__wf__whouse4" readonly value="<%= md.getWFDataValue("__wf__whouse4") %>"> <input type="text" size="30" name="__wf__welfaredesc4" readonly value="<%= md.getWFDataValue("__wf__welfaredesc4") %>"> </td> <td class="desc"><span id="__disease4"></span> <input type="hidden" size="30" name="__wf__disease4" readonly value="<%= md.getWFDataValue("__wf__disease4") %>"> <input type="text" size="30" name="__wf__diseasedesc4" readonly value="<%= md.getWFDataValue("__wf__diseasedesc4") %>"> </td> <td class="desc"><span id="__family4"></span></td> <td class="desc"><input name="__wf__amount4" type="text" readonly dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"> <script language="JavaScript">setValue('__wf__amount4','<%=md.getWFDataValue("__wf__amount4")%>');</script></td> <td class="desc"><input type="text" size="15" name="__wf__receipt_number4" readonly onKeyPress="javascript:chkInt1Dot(this);"> <script language="JavaScript">setValue('__wf__receipt_number4','<%=md.getWFDataValue("__wf__receipt_number4")%>');</script></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date4" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__receipt_date4','<%=md.getWFDataValue("__wf__receipt_date4")%>');</script> </td> <td class="desc"><div align="center"><a href="javascript:goPages('4','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1422','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image1422" width="20" border="0" align="absmiddle" id="Image1422" ></a></div></td> </tr> <tr id="wel42" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid4" value="<%=md.getWFDataValue("__wf__sitewelid4")%>"><input type="hidden" size="50" name="__wf__sitewelgid4" value="<%=md.getWFDataValue("__wf__sitewelgid4")%>"> <script language="JavaScript">setValue('__wf__sitewelid4','<%=md.getWFDataValue("__wf__sitewelid4")%>');</script> <input type="text" size="50" name="__wf__sitewel_name42" readonly> <script language="JavaScript">setValue('__wf__sitewel_name4','<%=md.getWFDataValue("__wf__sitewel_name4")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" name="__wf__other_sitewel42" size="30"> <script language="JavaScript">setValue('__wf__other_sitewel4','<%=md.getWFDataValue("__wf__other_sitewel4")%>');</script></td> </tr> <tr id="dt41" style="display:<%= dss4 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail41"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost41" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost41','<%=md.getWFDataValue("__wf__cost41")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open41" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open41','<%=md.getWFDataValue("__wf__open41")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt42" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail42"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost42" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost42','<%=md.getWFDataValue("__wf__cost42")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open42" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open42','<%=md.getWFDataValue("__wf__open42")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt43" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail43"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost43" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost43','<%=md.getWFDataValue("__wf__cost43")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open43" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open43','<%=md.getWFDataValue("__wf__open43")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt44" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail44"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost44" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"readonly> <script language="JavaScript">setValue('__wf__cost44','<%=md.getWFDataValue("__wf__cost44")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open44" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open44','<%=md.getWFDataValue("__wf__open44")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt45" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail45"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost45" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost45','<%=md.getWFDataValue("__wf__cost45")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open45" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open45','<%=md.getWFDataValue("__wf__open45")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="wel51" style="display:none "> <td class="desc"><span id="__welfare5"></span> <input type="hidden" size="30" name="__wf__welfare5" readonly value="<%= md.getWFDataValue("__wf__welfare5") %>"> <input type="hidden" size="30" name="__wf__docgid5" readonly value="<%= md.getWFDataValue("__wf__docgid5") %>"> <input type="hidden" size="30" name="__wf__whouse5" readonly value="<%= md.getWFDataValue("__wf__whouse5") %>"> <input type="text" size="30" name="__wf__welfaredesc5" readonly value="<%= md.getWFDataValue("__wf__welfaredesc5") %>"> </td> <td class="desc"><span id="__disease5"></span> <input type="hidden" size="30" name="__wf__disease5" readonly value="<%= md.getWFDataValue("__wf__disease5") %>"> <input type="text" size="30" name="__wf__diseasedesc5" readonly value="<%= md.getWFDataValue("__wf__diseasedesc5") %>"> </td> <td class="desc"><span id="__family5"></span></td> <td class="desc"><input type="text" size="8" dir="rtl" name="__wf__amount5" readonly value="0" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);"> <script language="JavaScript">setValue('__wf__amount5','<%=md.getWFDataValue("__wf__amount5")%>');</script></td> <td class="desc"><input type="text" size="15" name="__wf__receipt_number5" readonly onKeyPress="javascript:chkInt1Dot(this);"> <script language="JavaScript">setValue('__wf__receipt_number5','<%=md.getWFDataValue("__wf__receipt_number5")%>');</script></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date5" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"> <script language="JavaScript">setValue('__wf__receipt_date5','<%=md.getWFDataValue("__wf__receipt_date5")%>');</script> </td> <td class="desc"><div align="center"><a href="javascript:goPages('5','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1522','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image1522" width="20" border="0" align="absmiddle" id="Image1522" ></a></div></td> </tr> <tr id="wel52" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid5" value="<%=md.getWFDataValue("__wf__sitewelid5")%>"><input type="hidden" size="50" name="__wf__sitewelgid5" value="<%=md.getWFDataValue("__wf__sitewelgid5")%>"> <script language="JavaScript">setValue('__wf__sitewelid5','<%=md.getWFDataValue("__wf__sitewelid5")%>');</script> <input type="text" size="50" name="__wf__sitewel_name5" readonly> <script language="JavaScript">setValue('__wf__sitewel_name5','<%=md.getWFDataValue("__wf__sitewel_name5")%>');</script></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" name="__wf__other_sitewel5" size="30"> <script language="JavaScript">setValue('__wf__other_sitewel5','<%=md.getWFDataValue("__wf__other_sitewel5")%>');</script></td> </tr> <tr> <tr id="dt51" style="display:<%= dss5 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail51"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost51" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost51','<%=md.getWFDataValue("__wf__cost51")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open51" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open51','<%=md.getWFDataValue("__wf__open51")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt52" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail52"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost52" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost52','<%=md.getWFDataValue("__wf__cost52")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open52" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open52','<%=md.getWFDataValue("__wf__open52")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt53" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail53"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost53" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost53','<%=md.getWFDataValue("__wf__cost53")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open532" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open53','<%=md.getWFDataValue("__wf__open53")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt54" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail54"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost54" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost54','<%=md.getWFDataValue("__wf__cost54")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open54" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open54','<%=md.getWFDataValue("__wf__open54")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <tr id="dt55" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail55"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost55" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__cost55','<%=md.getWFDataValue("__wf__cost55")%>');</script></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open55" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl" readonly> <script language="JavaScript">setValue('__wf__open55','<%=md.getWFDataValue("__wf__open55")%>');</script></td> <td class="desc" nowrap><div align="center"> </div></td> </tr> <td colspan="3" align="center" class="title1"><div align="center"> <script language="javascript">swapLang("Grand Total");</script> </div></td> <td align="right" class="title1"><span class="desc"> <input type="text" size="8" dir="rtl" name="__wf__grand_total" value="0" readonly> <script language="JavaScript">setValue('__wf__grand_total','<%=md.getWFDataValue("__wf__grand_total")%>');</script> </span></td> <td colspan="3" align="right" class="title1"><!--a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','../IMAGES/BUTTON/SWAP/EDIT_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/EDIT20.gif" alt="Add" name="Image13" width="20" border="0" align="absmiddle" id="Image13" onClick="add()"></a> <a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','../IMAGES/BUTTON/SWAP/EXIT_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/EXIT20.gif" alt="Delete" name="Image14" width="20" border="0" align="absmiddle" id="Image14" onClick="del()"></a--> </td> </tr> <tr> <td colspan="7"> <table cellspacing="0" cellpadding="0"> <tr> <td colspan="8"></td> </tr> <tr> <td colspan="8" class="desc2"><jsp:include page="./MSG01.jsp" flush="true" /></td> </tr> </table></td> </tr> <tr> </table> <script language="javascript">SearchDWR.searchAll(new Array("mrequisitiontype","requisid,tdesc,edesc","","requisid","langon"),selectrequis);</script> <script language="javascript">//SearchDWR.searchAll(new Array("mwelfare","welid,tdesc,edesc,whouse,docgid"," iseducation = '0'","welid","langon"),selectwelfare);</script> <script language="javascript">//SearchDWR.searchAll(new Array("mdisease","disid,tdesc,edesc","","disid","langon"),selectdisease);</script> <script language="javascript">SearchDWR.searchAll(new Array("mempl_family","fullname,employeeid,companyid,relationid,fnameid,lname,efname,elname,line_no","employeeid = '"+document.cscform.__wf__employeeid.value+"'","employeeid","langon"),selectfamily);</script> <SCRIPT LANGUAGE="JavaScript"> showcol(<%= md.getWFDataValue("__wf__addval") %>); var adval = parseInt('<%= md.getWFDataValue("__wf__addval") %>'); // alert(adval); if(adval !=""){ if(adval>=1) showtcol('1','<%= md.getWFDataValue("__wf__at1") %>'); if(adval>=2) showtcol('2','<%= md.getWFDataValue("__wf__at2") %>'); if(adval>=3) showtcol('3','<%= md.getWFDataValue("__wf__at3") %>'); if(adval>=4) showtcol('4','<%= md.getWFDataValue("__wf__at4") %>'); if(adval>=5) showtcol('5','<%= md.getWFDataValue("__wf__at5") %>'); } </SCRIPT> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End User Code --> <SCRIPT LANGUAGE="JavaScript">//setDisabled();</SCRIPT> <BR> <!-- WF Command --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#EFEFEF"> <TD WIDTH="26%" BGCOLOR="#0099CC" ALIGN="right" CLASS="txt01"><SCRIPT LANGUAGE="JavaScript">swapLang("Command");</SCRIPT> :</TD> <TD WIDTH="74%" BGCOLOR="#EFEFEF"> <INPUT TYPE="radio" NAME="wf_command" VALUE="send" CHECKED> <SCRIPT LANGUAGE="JavaScript">swapLang("Send");</SCRIPT> <INPUT TYPE="radio" NAME="wf_command" VALUE="abort"> <SCRIPT LANGUAGE="JavaScript">swapLang("Reject");</SCRIPT> </TD> </TR> <TR BGCOLOR="#EFEFEF"> <TD WIDTH="26%" BGCOLOR="#0099CC" ALIGN="right" CLASS="txt01"><SCRIPT LANGUAGE="JavaScript">swapLang("Comments");</SCRIPT> :</TD> <TD WIDTH="74%" BGCOLOR="#EFEFEF"> <TEXTAREA NAME='comments' COLS='50' ROWS='4' WRAP=''></TEXTAREA> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End WF Command --> <BR> <!-- Remark --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD WIDTH="15%" VALIGN="top" BGCOLOR="#0099CC"><DIV ALIGN="right"><%=screenSingle.getLabel("REMARK")%> :</DIV></TD> <TD WIDTH="85%" BGCOLOR="#FFFFFF"> <%=screenSingle.getInput("REMARK")%> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Remark --> <BR> <!-- Reference Note --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <% String reference_param = ""; DbInquiry wf_reference_di = (DbInquiry)screenSingle.getRecord().getChild("WF_REFERENCE"); if( wf_reference_di != null && wf_reference_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ reference_param = ""; do{ reference_param += ","+wf_reference_di.getString("REF_WF_ID")+":"+wf_reference_di.getString("REF_WF_VER")+":"+wf_reference_di.getString("REF_WF_SEQ_NO")+":"+ wf_reference_di.getString("REF_STEP_ID")+":"+wf_reference_di.getString("REF_STEP_SEQ_NO")+":"+wf_reference_di.getString("REF_ACTOR_ID")+":"+ wf_reference_di.getString("REF_ACTOR_SEQ_NO")+":"+wf_reference_di.getString("REF_POSITION_CODE"); }while( wf_reference_di.next() ); reference_param = reference_param.replaceFirst(",",""); }else{ reference_param = chkNull.chkNullString(request.getParameter("reference_param")); if( !chkNull.chkNullString(request.getParameter("reference_delete")).equals("") ){ String reference_delete = chkNull.chkNullString(request.getParameter("reference_delete")); String[] temp_delete = reference_delete.split(","); //System.out.println("Refer Delete : "+reference_delete); for( int i = 0 ; i < temp_delete.length ; i++ ){ reference_param = reference_param.replaceFirst(temp_delete[i],""); } reference_param = reference_param.replaceAll(",,",","); //System.out.println("Refer Param : "+reference_param); } } String[] temp = reference_param.split(","); if( temp.length > 0 && reference_param.length() > 0 ){ String[] temp2 = temp[0].split(":"); DbInquiry reference_di = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("VW_INCIDENT1"); reference_di.setColumn("*"); reference_di.setFilter("WF_ID = '"+temp2[0]+"' AND "+ "WF_VER = '"+temp2[1]+"' AND "+ "WF_SEQ_NO = '"+temp2[2]+"' AND "+ "STEP_ID = '"+temp2[3]+"' AND "+ "STEP_SEQ_NO = '"+temp2[4]+"' AND "+ "ACTOR_ID = '"+temp2[5]+"' AND "+ "ACTOR_SEQ_NO = '"+temp2[6]+"' AND "+ "POSITION_CODE = '"+temp2[7]+"'" ); reference_di.refresh(); if( reference_di.next() ){ %> <TR> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Reference Note");</script> :</STRONG></DIV></TD> <TD WIDTH="4%"><DIV ALIGN="center"><%=reference_di.getString("FMYNOTECHECK").replaceAll(">"," DISABLED>")%></DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"><%=reference_di.getString("FREFER_SUBJECT")%></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><%=new CscCalendar(Long.parseLong(reference_di.getString("WI_START_TIME"))).getDDMMYYYY()%></DIV></TD> </TR> <% } for( int i = 1 ; i < temp.length ; i++ ){ temp2 = temp[i].split(":"); reference_di.setFilter("WF_ID = '"+temp2[0]+"' AND "+ "WF_VER = '"+temp2[1]+"' AND "+ "WF_SEQ_NO = '"+temp2[2]+"' AND "+ "STEP_ID = '"+temp2[3]+"' AND "+ "STEP_SEQ_NO = '"+temp2[4]+"' AND "+ "ACTOR_ID = '"+temp2[5]+"' AND "+ "ACTOR_SEQ_NO = '"+temp2[6]+"' AND "+ "POSITION_CODE = '"+temp2[7]+"'" ); reference_di.refresh(); if( reference_di.next() ){ %> <TR> <TD WIDTH="18%"> </TD> <TD WIDTH="4%"><DIV ALIGN="center"><%=reference_di.getString("FMYNOTECHECK").replaceAll(">"," DISABLED>")%></DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"><%=reference_di.getString("FREFER_SUBJECT")%></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><%=new CscCalendar(Long.parseLong(reference_di.getString("WI_START_TIME"))).getDDMMYYYY()%></DIV></TD> </TR> <% } } }else{ %> <TR BGCOLOR="#0099CC"> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Reference Note");</script> :</STRONG></DIV></TD> <TD COLSPAN="4" BGCOLOR="#FFFFFF"> </TD> </TR> <% } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Reference Note --> <BR> <!-- Attach File --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <% InitialEnvironment environment = new InitialEnvironment("GLOBAL"); Downloadfile download = null; DbInquiry attached_file_di = (DbInquiry)screenSingle.getRecord().getChild("ATTACHED_FILE"); if( attached_file_di != null && attached_file_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ download = new Downloadfile(environment.getValue("DIRNOTEATTACHTFILE-dir")+screenSingle.getUProfile().get("companyid")+"/"+ chkNull.chkNullString(request.getParameter("wf_id"),"0")+"/"+ chkNull.chkNullString(request.getParameter("wf_ver"),"0")+"/"+ chkNull.chkNullString(request.getParameter("wf_seq_no"),"0")); }else{ download = new Downloadfile(environment.getValue("DIRNOTEATTACHTEMP-dir")+attach_time); if( !chkNull.chkNullString(request.getParameter("delete_file")).equals("") ){ String[] file_name = request.getParameter("delete_file").split(","); for( int i = 0 ; i < file_name.length ; i++ ){ download.delFile(file_name[i]); } } } HashMap attach_file_hm = download.listFile(); ArrayList file_name = (ArrayList)attach_file_hm.get("file_name"); ArrayList file_size = (ArrayList)attach_file_hm.get("file_size"); if( file_name.size() > 0 ){ %> <TR> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Attach File");</script> :</STRONG></DIV></TD> <TD WIDTH="4%"><DIV ALIGN="center"> <INPUT TYPE="checkbox" NAME="attach_file" VALUE="<%=file_name.get(0)%>" DISABLED> </DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"> <A HREF="<%=request.getRequestURI()+"?"+download.getDownloadLink((String)file_name.get(0))%>"><%=file_name.get(0)%></A> </DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"> <%=calendar.getDDMMYYYY()%> </DIV></TD> </TR> <% for( int i = 1 ; i < file_name.size() ; i++ ){ %> <TR> <TD WIDTH="18%"> </TD> <TD WIDTH="4%"><DIV ALIGN="center"> <INPUT TYPE="checkbox" NAME="attach_file" VALUE="<%=file_name.get(i)%>" DISABLED> </DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"> <A HREF="<%=request.getRequestURI()+"?"+download.getDownloadLink((String)file_name.get(i))%>"><%=file_name.get(i)%></A> </DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"> <%=calendar.getDDMMYYYY()%> </DIV></TD> </TR> <% } }else{ %> <TR BGCOLOR="#0099CC"> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Attach File");</script> :</STRONG></DIV></TD> <TD COLSPAN="4" BGCOLOR="#FFFFFF"> </TD> </TR> <% } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Attach File --> <BR> <TABLE WIDTH="95%" BORDER="0" CELLSPACING="1" CELLPADDING="0" CLASS="txt01"> <TR CLASS="txt01"> <TD><DIV ALIGN="right"><A HREF="JavaScript:GoWFM2();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_SUBMIT.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A></DIV></TD> </TR> </TABLE> <BR> <!-- Document Routing --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD COLSPAN="6" BGCOLOR="#0099CC"><DIV ALIGN="center"><STRONG>: <script language="javascript">swapLang("History Document Routing");</script> :</STRONG></DIV></TD> </TR> <TR BGCOLOR="#CCCCCC"> <TD WIDTH="5%"><DIV ALIGN="center"><script language="javascript">swapLang("No.");</script></DIV></TD> <TD WIDTH="25%"><DIV ALIGN="center"><script language="javascript">swapLang("Actor");</script></DIV></TD> <TD WIDTH="24%"><DIV ALIGN="center"><script language="javascript">swapLang("Position");</script></DIV></TD> <TD WIDTH="18%"><DIV ALIGN="center"><script language="javascript">swapLang("Start Time");</script></DIV></TD> <TD WIDTH="18%"><DIV ALIGN="center"><script language="javascript">swapLang("End Time");</script></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><script language="javascript">swapLang("Action");</script></DIV></TD> </TR> <% DbInquiry history_di = (DbInquiry)screenSingle.getRecord().getChild("VW_INCIDENT"); if( history_di != null && history_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ do{ %> <TR BGCOLOR="#0099CC"> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="right"><%=history_di.getString("STEP_SEQ_NO")%></DIV></TD> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="left"><%=history_di.getString("ACTOR_FNAME")+" "+history_di.getString("ACTOR_LNAME")%></DIV></TD> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="left"><%=history_di.getString("ACTOR_TPOSITION")%></DIV></TD> <% calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_START_TIME"))); %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"><%=calendar.getDDMMYYHHMMSS()%></DIV></TD> <% if( history_di.getString("AI_COMPLETION_TIME").equals("0") ){ %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"></DIV></TD> <% }else{ calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_COMPLETION_TIME"))); %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"><%=calendar.getDDMMYYHHMMSS()%></DIV></TD> <% } %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="right"><%=history_di.getString("FAI_ACTION")%></DIV></TD> </TR> <% }while( history_di.next() ); } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Document Routing --> <BR> <!-- Comment --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD BGCOLOR="#0099CC"><DIV ALIGN="center"><STRONG>: <script language="javascript">swapLang("View Comment");</script> :</STRONG></DIV></TD> </TR> <TR BGCOLOR="#0099CC"> <TD BGCOLOR="#FFFFFF"><% if( history_di != null ){ history_di.go(0); } if( history_di.recCount() > 0 ){ int comment_no = 1; history_di.go(0); while( history_di.next() ){ if( !history_di.getString("COMMENTS").trim().equals("") && !history_di.getString("AI_COMPLETION_TIME").equals("0") ){ calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_COMPLETION_TIME"))); %> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#CCCCCC"> <TD><STRONG><script language="javascript">swapLang("Comment No");</script> : <%=comment_no++%> </STRONG></TD> <TD COLSPAN="3"><DIV ALIGN="right"><script language="javascript">swapLang("Date");</script> : <%=calendar.getDDMMYYYY()%> <script language="javascript">swapLang("Time");</script> : <%=calendar.getHHMMSS()%></DIV></TD> </TR> <TR BGCOLOR="EFEFEF"> <TD WIDTH="18%" BGCOLOR="EFEFEF"><DIV ALIGN="right"><script language="javascript">swapLang("Name");</script> : </DIV></TD> <TD WIDTH="37%" BGCOLOR="EFEFEF"><%=history_di.getString("ACTOR_FNAME")+" "+history_di.getString("ACTOR_LNAME")%></TD> <TD WIDTH="16%" BGCOLOR="EFEFEF"><DIV ALIGN="right"><script language="javascript">swapLang("Position");</script> : </DIV></TD> <TD WIDTH="29%" BGCOLOR="EFEFEF"><%=history_di.getString("ACTOR_TPOSITION")%></TD> </TR> <TR BGCOLOR="EFEFEF"> <TD><DIV ALIGN="right"><script language="javascript">swapLang("Message");</script> :</DIV></TD> <TD COLSPAN="3"><%=history_di.getString("COMMENTS")%></TD> </TR> </TABLE> <% } } } %> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Comment --> <!-- End Step 2 --> <% }else if( chkNull.chkNullString(request.getParameter("__singledisabled")).equals("true") && chkNull.chkNullString(request.getParameter("__readonly")).equals("true") ){ String screen_value = chkNull.chkNullString(screenSingle.getDataLabel("SCREEN_VALUE")); HashMap hm = new HashMap(); ManageDocument md = new ManageDocument(); hm.put("WF_ID",request.getParameter("wf_id")); hm.put("WF_VER",request.getParameter("wf_ver")); hm.put("WF_SEQ_NO",request.getParameter("wf_seq_no")); hm.put("STEP_ID",request.getParameter("step_id")); hm.put("STEP_SEQ_NO",request.getParameter("step_seq_no")); hm.put("ACTOR_ID",screenSingle.getUProfile().getActor()); hm.put("POSITION_CODE",screenSingle.getUProfile().get("job")); md.setUProfile(screenSingle.getUProfile()); md.setParam(hm); md.setVW_Incident(); md.setWFDataValue(screen_value); %> <!-- Head --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="EFEFEF"> <TD WIDTH="50%"><DIV ALIGN="left"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Initiator");</SCRIPT> : </STRONG><%=screenSingle.getDataLabel("VW_INCIDENT","INITIATOR_FNAME")+" "+screenSingle.getDataLabel("VW_INCIDENT","INITIATOR_LNAME")%></TD> <TD WIDTH="50%"><DIV ALIGN="right"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Position");</SCRIPT> : </STRONG><%=screenSingle.getDataLabel("VW_INCIDENT","INITIATOR_TPOSITION")%></DIV></TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Head --> <br> <!-- Help --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="txt01"> <TR BGCOLOR="EFEFEF"> <TD WIDTH="99%" BGCOLOR="EFEFEF"> <DIV ALIGN="center"> <STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Request form of medical fee[HR]")</SCRIPT> </DIV> </TD> <TD BGCOLOR="EFEFEF"> <DIV ALIGN="right"> <A href="JavaScript:openHelp();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_HELP.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A> </DIV> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Help --><BR> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD WIDTH="19%" BGCOLOR="#0099CC"><DIV ALIGN="right"><STRONG><SCRIPT LANGUAGE="JavaScript">swapLang("Subject");</SCRIPT> : </STRONG></DIV></TD> <TD WIDTH="81%" BGCOLOR="#EFEFEF"> <INPUT TYPE="text" NAME="subject" SIZE="50" VALUE="<%=screenSingle.getDataLabel("VW_INCIDENT","SUBJECT")%>"> </TD><script language="javascript">document.cscform.subject.value=swap2String("Request form of medical fee")+"[HR]";</script> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <BR> <!-- User Code --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#FFFFFF"></TR> </TABLE> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#FFFFFF"> <TD COLSPAN="2"> <!-- Insert Head --> </TD> </TR> </TABLE> <!-- Insert Code Step 3 --> <input type="hidden" name="__wf__at1" value="<%= md.getWFDataValue("__wf__at1") %>"> <input type="hidden" name="__wf__at2" value="<%= md.getWFDataValue("__wf__at2") %>"> <input type="hidden" name="__wf__at3" value="<%= md.getWFDataValue("__wf__at3") %>"> <input type="hidden" name="__wf__at4" value="<%= md.getWFDataValue("__wf__at4") %>"> <input type="hidden" name="__wf__at5" value="<%= md.getWFDataValue("__wf__at5") %>"> <input type="hidden" name="__wf__attach1" value="<%= md.getWFDataValue("__wf__attach1") %>"> <input type="hidden" name="__wf__attach2" value="<%= md.getWFDataValue("__wf__attach2") %>"> <input type="hidden" name="__wf__attach3" value="<%= md.getWFDataValue("__wf__attach3") %>"> <input type="hidden" name="__wf__attach4" value="<%= md.getWFDataValue("__wf__attach4") %>"> <input type="hidden" name="__wf__attach5" value="<%= md.getWFDataValue("__wf__attach5") %>"> <input type="hidden" name="__wf__addval" value="<%= md.getWFDataValue("__wf__addval") %>"> <input type="hidden" name="__wf__employeeid" value="<%= md.getWFDataValue("__wf__employeeid") %>"> <script language="javascript">callback = "<%= md.getWFDataValue("__wf__requisition_type") %>"; </script> <% int addv = Integer.parseInt(md.getWFDataValue("__wf__addval")); if(addv<=1) dss1 = "none"; if(addv<=2) dss2 = "none"; if(addv<=3) dss3 = "none"; if(addv<=4) dss4 = "none"; if(addv<=5) dss5 = "none"; %> <table class="inframe" cellspacing=1 cellpadding=0 border=0> <tbody> <tr> <td colspan="7" class="title1"> <div align="center"> <script language="javascript">swapLang("Welfare List");</script> </div></td> </tr> <tr> <td class="desc" nowrap><div align="right"> <strong> <script language="javascript">swapLang("Employee");</script>:</strong></div></td> <td class="desc" nowrap><input type="text" name="__wf__empfullname" size="30" value="" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__empfullname','<%=md.getWFDataValue("__wf__empfullname")%>');</SCRIPT></td> <td class="desc" align="right"><script language="javascript">swapLang("Requisition Type");</script> </td> <td class="desc"><span id="__requisition"></span><script language="javascript">SystemCode.getContentDWR(new Array("REQUISITION_TYPE","eng"),selectedcallbackSys);</script> <!--nput type="button" onClick="javascript:TEST2();" value="TEst"--> </td> <td width="7%" align="right" class="desc"><script language="javascript">swapLang("Send Date");</script> </td> <td colspan="2" class="desc"><input type="text" size="10" name="__wf__send_date" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__send_date','<%=md.getWFDataValue("__wf__send_date")%>');</SCRIPT></td> </tr> <tr> <td width="7%" class="title1"><div align="center"> <script language="javascript">swapLang("Welfare");</script> </div></td> <td width="31%" class="title1"><div align="center"> <script language="javascript">swapLang("Disease ");</script> </div></td> <td width="32%" class="title1"><div align="center"> <script language="javascript">swapLang("Name Surname In Family");</script> </div></td> <td width="7%" class="title1"><div align="center"> <script language="javascript">swapLang("Amount ");</script> </div></td> <td class="title1"><div align="center"> <script language="javascript">swapLang("Receipt Number");</script> </div></td> <td width="7%" class="title1"><div align="center"> <script language="javascript">swapLang("Receipt Date");</script> </div></td> <td width="8%" class="title1"><div align="center"> <script language="javascript">swapLang("Attach Doc");</script> </div></td> </tr> <tr> <script language="javascript"> wdata1 = "<%= md.getWFDataValue("__wf__welfare1") %>"; wdata2 = "<%= md.getWFDataValue("__wf__welfare2") %>"; wdata3 = "<%= md.getWFDataValue("__wf__welfare3") %>"; wdata4 = "<%= md.getWFDataValue("__wf__welfare4") %>"; wdata5 = "<%= md.getWFDataValue("__wf__welfare5") %>"; sdata1 = "<%= md.getWFDataValue("__wf__disease1") %>"; sdata2 = "<%= md.getWFDataValue("__wf__disease2") %>"; sdata3 = "<%= md.getWFDataValue("__wf__disease3") %>"; sdata4 = "<%= md.getWFDataValue("__wf__disease4") %>"; sdata5 = "<%= md.getWFDataValue("__wf__disease5") %>"; fdata1 = "<%= md.getWFDataValue("__wf__family1") %>"; fdata2 = "<%= md.getWFDataValue("__wf__family2") %>"; fdata3 = "<%= md.getWFDataValue("__wf__family3") %>"; fdata4 = "<%= md.getWFDataValue("__wf__family4") %>"; fdata5 = "<%= md.getWFDataValue("__wf__family5") %>"; r11 = "<%= md.getWFDataValue("__wf__detail11") %>" r12 = "<%= md.getWFDataValue("__wf__detail12") %>" r13 = "<%= md.getWFDataValue("__wf__detail13") %>" r14 = "<%= md.getWFDataValue("__wf__detail14") %>" r15 = "<%= md.getWFDataValue("__wf__detail15") %>" r21 = "<%= md.getWFDataValue("__wf__detail21") %>" r22 = "<%= md.getWFDataValue("__wf__detail22") %>" r23 = "<%= md.getWFDataValue("__wf__detail23") %>" r24 = "<%= md.getWFDataValue("__wf__detail24") %>" r25 = "<%= md.getWFDataValue("__wf__detail25") %>" r31 = "<%= md.getWFDataValue("__wf__detail31") %>" r32 = "<%= md.getWFDataValue("__wf__detail32") %>" r33 = "<%= md.getWFDataValue("__wf__detail33") %>" r34 = "<%= md.getWFDataValue("__wf__detail34") %>" r35 = "<%= md.getWFDataValue("__wf__detail35") %>" r41 = "<%= md.getWFDataValue("__wf__detail41") %>" r42 = "<%= md.getWFDataValue("__wf__detail42") %>" r43 = "<%= md.getWFDataValue("__wf__detail43") %>" r44 = "<%= md.getWFDataValue("__wf__detail44") %>" r45 = "<%= md.getWFDataValue("__wf__detail45") %>" r51 = "<%= md.getWFDataValue("__wf__detail51") %>" r52 = "<%= md.getWFDataValue("__wf__detail52") %>" r53 = "<%= md.getWFDataValue("__wf__detail53") %>" r54 = "<%= md.getWFDataValue("__wf__detail54") %>" r55 = "<%= md.getWFDataValue("__wf__detail55") %>" </script> <td class="desc"><span id="__welfare1"></span><script language="javascript">//SearchDWR.searchAll(new Array("mwelfare","welid,tdesc,edesc,whouse,docgid"," iseducation = '0'","welid","langon"),selectwelfare);</script> <input type="hidden" size="30" name="__wf__welfare1" readonly value="<%= md.getWFDataValue("__wf__welfare1") %>"> <input type="hidden" size="30" name="__wf__docgid1" readonly value="<%= md.getWFDataValue("__wf__docgid1") %>"> <input type="hidden" size="30" name="__wf__whouse1" readonly value="<%= md.getWFDataValue("__wf__whouse1") %>"> <input type="text" size="30" name="__wf__welfaredesc1" readonly value="<%= md.getWFDataValue("__wf__welfaredesc1") %>"> </td> <td class="desc"><span id="__disease1"></span><script language="javascript">//SearchDWR.searchAll(new Array("mdisease","disid,tdesc,edesc","","disid","langon"),selectdisease);</script> <input type="hidden" size="30" name="__wf__disease1" readonly value="<%= md.getWFDataValue("__wf__disease1") %>"> <input type="text" size="30" name="__wf__diseasedesc1" readonly value="<%= md.getWFDataValue("__wf__diseasedesc1") %>"></td> <td class="desc"><span id="__family1"></span></td> <td class="desc"><input name="__wf__amount1" readonly type="text" dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__amount1','<%=md.getWFDataValue("__wf__amount1")%>');</SCRIPT></td> <td class="desc"><input type="text" size="15" readonly name="__wf__receipt_number1" onKeyPress="javascript:chkInt1Dot(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_number1','<%=md.getWFDataValue("__wf__receipt_number1")%>');</SCRIPT></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date1" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_date1','<%=md.getWFDataValue("__wf__receipt_date1")%>');</SCRIPT> </td> <td class="desc"><div align="center"><a href="javascript:goPages('1','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image112','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image112" width="20" border="0" align="absmiddle" id="Image112" ></a></div></td> </tr> <tr> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid1"><input type="hidden" size="50" name="__wf__sitewelgid1" value="<%=md.getWFDataValue("__wf__sitewelid1")%>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewelid1','<%=md.getWFDataValue("__wf__sitewelid1")%>');</SCRIPT><input type="text" size="50" name="__wf__sitewel_name1" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewel_name1','<%=md.getWFDataValue("__wf__sitewel_name1")%>');</SCRIPT> <!--span id="__sitewel1"></span><script language="javascript">SearchDWR.searchAll(new Array("msitewel","sitewelid,companyid,tdesc,edesc","","sitewelid","langon"),sitewel);</script--></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" readonly name="__wf__other_sitewel1" size="30"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__other_sitewel1','<%=md.getWFDataValue("__wf__other_sitewel1")%>');</SCRIPT></td> </tr> <tr id="dt11" style="display:<%= dss1 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail11"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost11" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost11','<%=md.getWFDataValue("__wf__cost11")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open11" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open11','<%=md.getWFDataValue("__wf__open11")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt12" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail12"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost12" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost12','<%=md.getWFDataValue("__wf__cost12")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open12" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open12','<%=md.getWFDataValue("__wf__open12")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt13" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail13"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost13" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost13','<%=md.getWFDataValue("__wf__cost13")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open13" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open13','<%=md.getWFDataValue("__wf__open13")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt14" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail14"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost14" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost14','<%=md.getWFDataValue("__wf__cost14")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open14" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open14','<%=md.getWFDataValue("__wf__open14")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt15" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail15"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost15" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost15','<%=md.getWFDataValue("__wf__cost15")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open15" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open15','<%=md.getWFDataValue("__wf__open15")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="wel21" style="display:none "> <td class="desc"><span id="__welfare2"></span> <input type="hidden" size="30" name="__wf__welfare2" readonly value="<%= md.getWFDataValue("__wf__welfare2") %>"> <input type="hidden" size="30" name="__wf__docgid2" readonly value="<%= md.getWFDataValue("__wf__docgid2") %>"> <input type="hidden" size="30" name="__wf__whouse2" readonly value="<%= md.getWFDataValue("__wf__whouse2") %>"> <input type="text" size="30" name="__wf__welfaredesc2" readonly value="<%= md.getWFDataValue("__wf__welfaredesc2") %>"> </td> <td class="desc"><span id="__disease2"></span> <input type="hidden" size="30" name="__wf__disease2" readonly value="<%= md.getWFDataValue("__wf__disease2") %>"> <input type="text" size="30" name="__wf__diseasedesc2" readonly value="<%= md.getWFDataValue("__wf__diseasedesc2") %>"> </td> <td class="desc"><span id="__family2"></span></td> <td class="desc"><input name="__wf__amount2" readonly type="text" dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__amount2','<%=md.getWFDataValue("__wf__amount2")%>');</SCRIPT></td> <td class="desc"><input type="text" size="15" name="__wf__receipt_number2" readonly onKeyPress="javascript:chkInt1Dot(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_number2','<%=md.getWFDataValue("__wf__receipt_number2")%>');</SCRIPT></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date2" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_date2','<%=md.getWFDataValue("__wf__receipt_date2")%>');</SCRIPT> </td> <td class="desc"><div align="center"><a href="javascript:goPages('2','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image122','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image122" width="20" height="20" border="0" align="absmiddle" id="Image122" ></a></div></td> </tr> <tr id="wel22" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"> <input type="hidden" size="50" name="__wf__sitewelid2"><input type="hidden" size="50" name="__wf__sitewelgid2" value="<%=md.getWFDataValue("__wf__sitewelid2")%>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewelid2','<%=md.getWFDataValue("__wf__sitewelid2")%>');</SCRIPT><input type="text" size="50" name="__wf__sitewel_name2" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewel_name2','<%=md.getWFDataValue("__wf__sitewel_name2")%>');</SCRIPT></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" readonly name="__wf__other_sitewel2" size="30"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__other_sitewel2','<%=md.getWFDataValue("__wf__other_sitewel2")%>');</SCRIPT></td> </tr> <tr id="dt21" style="display:<%= dss2 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail21"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost21" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost21','<%=md.getWFDataValue("__wf__cost21")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open21" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open21','<%=md.getWFDataValue("__wf__open21")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt22" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail22"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost22" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost22','<%=md.getWFDataValue("__wf__cost22")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open22" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open22','<%=md.getWFDataValue("__wf__open22")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt23" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail23"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost23" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost23','<%=md.getWFDataValue("__wf__cost23")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open23" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open23','<%=md.getWFDataValue("__wf__open23")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt24" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail24"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost24" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost24','<%=md.getWFDataValue("__wf__cost24")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open24" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open24','<%=md.getWFDataValue("__wf__open24")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt25" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail25"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost25" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost25','<%=md.getWFDataValue("__wf__cost25")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open25" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost25','<%=md.getWFDataValue("__wf__cost25")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="wel31" style="display:none "> <td class="desc"><span id="__welfare3"></span> <input type="hidden" size="30" name="__wf__welfare3" readonly value="<%= md.getWFDataValue("__wf__welfare3") %>"> <input type="hidden" size="30" name="__wf__docgid3" readonly value="<%= md.getWFDataValue("__wf__docgid3") %>"> <input type="hidden" size="30" name="__wf__whouse3" readonly value="<%= md.getWFDataValue("__wf__whouse3") %>"> <input type="text" size="30" name="__wf__welfaredesc3" readonly value="<%= md.getWFDataValue("__wf__welfaredesc3") %>"> </td> <td class="desc"><span id="__disease3"></span> <input type="hidden" size="30" name="__wf__disease3" readonly value="<%= md.getWFDataValue("__wf__disease3") %>"> <input type="text" size="30" name="__wf__diseasedesc3" readonly value="<%= md.getWFDataValue("__wf__diseasedesc3") %>"> </td> <td class="desc"><span id="__family3"></span></td> <td class="desc"><input name="__wf__amount3" type="text" readonly dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__amount3','<%=md.getWFDataValue("__wf__amount3")%>');</SCRIPT></td> <td class="desc"><input type="text" size="15" readonly name="__wf__receipt_number3" onKeyPress="javascript:chkInt1Dot(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_number3','<%=md.getWFDataValue("__wf__receipt_number3")%>');</SCRIPT></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date3" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_date3','<%=md.getWFDataValue("__wf__receipt_date3")%>');</SCRIPT> </td> <td class="desc"><div align="center"><a href="javascript:goPages('3','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image132','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image132" width="20" border="0" align="absmiddle" id="Image132"></a></div></td> </tr> <tr id="wel32" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"> <input type="hidden" size="50" name="__wf__sitewelid3"><input type="hidden" size="50" name="__wf__sitewelgid3" value="<%=md.getWFDataValue("__wf__sitewelid3")%>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewelid3','<%=md.getWFDataValue("__wf__sitewelid3")%>');</SCRIPT><input type="text" size="50" name="__wf__sitewel_name3" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewel_name3','<%=md.getWFDataValue("__wf__sitewel_name3")%>');</SCRIPT></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" readonly name="__wf__other_sitewel3" size="30"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__other_sitewel3','<%=md.getWFDataValue("__wf__other_sitewel3")%>');</SCRIPT></td> </tr> <tr id="dt31" style="display:<%= dss3 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail31"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost31" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost31','<%=md.getWFDataValue("__wf__cost31")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open31" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open31','<%=md.getWFDataValue("__wf__open31")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt32" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail32"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost32" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost32','<%=md.getWFDataValue("__wf__cost32")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open32" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open32','<%=md.getWFDataValue("__wf__open32")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt33" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail33"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost33" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost33','<%=md.getWFDataValue("__wf__cost33")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open33" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open33','<%=md.getWFDataValue("__wf__open33")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt34" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail34"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost34" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost34','<%=md.getWFDataValue("__wf__cost34")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open34" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open34','<%=md.getWFDataValue("__wf__open34")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt35" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail35"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost35" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost35','<%=md.getWFDataValue("__wf__cost35")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open35" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open35','<%=md.getWFDataValue("__wf__open35")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="wel41" style="display:none "> <td class="desc"><span id="__welfare4"></span> <input type="hidden" size="30" name="__wf__welfare4" readonly value="<%= md.getWFDataValue("__wf__welfare4") %>"> <input type="hidden" size="30" name="__wf__docgid4" readonly value="<%= md.getWFDataValue("__wf__docgid4") %>"> <input type="hidden" size="30" name="__wf__whouse4" readonly value="<%= md.getWFDataValue("__wf__whouse4") %>"> <input type="text" size="30" name="__wf__welfaredesc4" readonly value="<%= md.getWFDataValue("__wf__welfaredesc4") %>"> </td> <td class="desc"><span id="__disease4"></span> <input type="hidden" size="30" name="__wf__disease4" readonly value="<%= md.getWFDataValue("__wf__disease4") %>"> <input type="text" size="30" name="__wf__diseasedesc4" readonly value="<%= md.getWFDataValue("__wf__diseasedesc4") %>"> </td> <td class="desc"><span id="__family4"></span></td> <td class="desc"><input name="__wf__amount4" type="text" readonly dir="rtl" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);" value="0" size="8"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__amount4','<%=md.getWFDataValue("__wf__amount4")%>');</SCRIPT></td> <td class="desc"><input type="text" size="15" name="__wf__receipt_number4" readonly onKeyPress="javascript:chkInt1Dot(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_number4','<%=md.getWFDataValue("__wf__receipt_number4")%>');</SCRIPT></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date4" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_date4','<%=md.getWFDataValue("__wf__receipt_date4")%>');</SCRIPT> </td> <td class="desc"><div align="center"><a href="javascript:goPages('4','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image142','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image142" width="20" border="0" align="absmiddle" id="Image142" ></a></div></td> </tr> <tr id="wel42" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"><input type="hidden" size="50" name="__wf__sitewelid4"><input type="hidden" size="50" name="__wf__sitewelgid4" value="<%=md.getWFDataValue("__wf__sitewelid4")%>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewelid4','<%=md.getWFDataValue("__wf__sitewelid4")%>');</SCRIPT> <input type="text" size="50" name="__wf__sitewel_name4" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewel_name4','<%=md.getWFDataValue("__wf__sitewel_name4")%>');</SCRIPT></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" name="__wf__other_sitewel4" size="30"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__other_sitewel4','<%=md.getWFDataValue("__wf__other_sitewel4")%>');</SCRIPT></td> </tr> <tr id="dt41" style="display:<%= dss4 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail41"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost41" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost41','<%=md.getWFDataValue("__wf__cost41")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open41" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open41','<%=md.getWFDataValue("__wf__open41")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt42" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail42"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost42" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost42','<%=md.getWFDataValue("__wf__cost42")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open42" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open42','<%=md.getWFDataValue("__wf__open42")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt43" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail43"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost43" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost43','<%=md.getWFDataValue("__wf__cost43")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open43" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open43','<%=md.getWFDataValue("__wf__open43")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt44" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail44"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost44" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost44','<%=md.getWFDataValue("__wf__cost44")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open44" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open44','<%=md.getWFDataValue("__wf__open44")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt45" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail45"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost45" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost45','<%=md.getWFDataValue("__wf__cost45")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open45" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open45','<%=md.getWFDataValue("__wf__open45")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="wel51" style="display:none "> <td class="desc"><span id="__welfare5"></span> <input type="hidden" size="30" name="__wf__welfare5" readonly value="<%= md.getWFDataValue("__wf__welfare5") %>"> <input type="hidden" size="30" name="__wf__docgid5" readonly value="<%= md.getWFDataValue("__wf__docgid5") %>"> <input type="hidden" size="30" name="__wf__whouse5" readonly value="<%= md.getWFDataValue("__wf__whouse5") %>"> <input type="text" size="30" name="__wf__welfaredesc5" readonly value="<%= md.getWFDataValue("__wf__welfaredesc5") %>"> </td> <td class="desc"><span id="__disease5"></span> <input type="hidden" size="30" name="__wf__disease5" readonly value="<%= md.getWFDataValue("__wf__disease5") %>"> <input type="text" size="30" name="__wf__diseasedesc5" readonly value="<%= md.getWFDataValue("__wf__diseasedesc5") %>"> </td> <td class="desc"><span id="__family5"></span></td> <td class="desc"><input type="text" size="8" dir="rtl" name="__wf__amount5" readonly value="0" onKeyPress="javascript:chkInt1Dot(this);" onKeyUp="javascript:sumScore(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__amount5','<%=md.getWFDataValue("__wf__amount5")%>');</SCRIPT></td> <td class="desc"><input type="text" size="15" name="__wf__receipt_number5" readonly onKeyPress="javascript:chkInt1Dot(this);"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_number5','<%=md.getWFDataValue("__wf__receipt_number5")%>');</SCRIPT></td> <td class="desc" nowrap><input type="text" size="10" name="__wf__receipt_date5" readonly value="<%= new CscCalendar().getDDMMYYYY() %>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__receipt_date5','<%=md.getWFDataValue("__wf__receipt_date5")%>');</SCRIPT> </td> <td class="desc"><div align="center"><a href="javascript:goPages('5','disabled');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image152','','../IMAGES/BUTTON/SWAP/COPY_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/COPY20.gif" alt="เอกสารแนบ" name="Image152" width="20" border="0" align="absmiddle" id="Image152" ></a></div></td> </tr> <tr id="wel52" style="display:none "> <td class="desc" align="right"><script language="javascript">swapLang("Nursing Home");</script></td> <td colspan="2" class="desc"> <input type="hidden" size="50" name="__wf__sitewelid5"><input type="hidden" size="50" name="__wf__sitewelgid5" value="<%=md.getWFDataValue("__wf__sitewelid5")%>"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewelid5','<%=md.getWFDataValue("__wf__sitewelid5")%>');</SCRIPT> <input type="text" size="50" name="__wf__sitewel_name5" readonly> <SCRIPT LANGUAGE="JavaScript">setValue('__wf__sitewel_name5','<%=md.getWFDataValue("__wf__sitewel_name5")%>');</SCRIPT></td> <td class="desc" align="right"><script language="javascript">swapLang("Other Nursing Home");</script></td> <td colspan="3" class="desc"><input type="text" name="__wf__other_sitewel5" size="30"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__other_sitewel5','<%=md.getWFDataValue("__wf__other_sitewel5")%>');</SCRIPT></td> </tr> <tr> <tr id="dt51" style="display:<%= dss5 %> "> <td class="desc"><div align="right"> <script language="javascript">swapLang("Detail");</script> </div></td> <td class="desc"><span id="__detail51"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost51" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost51','<%=md.getWFDataValue("__wf__cost51")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open51" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open51','<%=md.getWFDataValue("__wf__open51")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt52" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail52"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost52" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost52','<%=md.getWFDataValue("__wf__cost52")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open52" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open52','<%=md.getWFDataValue("__wf__open52")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt53" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail53"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost53" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost53','<%=md.getWFDataValue("__wf__cost53")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open532" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"> <SCRIPT LANGUAGE="JavaScript">setValue('__wf__open53','<%=md.getWFDataValue("__wf__open53")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt54" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail54"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost54" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost54','<%=md.getWFDataValue("__wf__cost54")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open54" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open54','<%=md.getWFDataValue("__wf__open54")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <tr id="dt55" style="display:none "> <td class="desc"><div align="right"> </div></td> <td class="desc"><span id="__detail55"></span> <td class="desc"><div align="right"> <script language="javascript">swapLang("Cost");</script> </div></td> <td class="desc"><input type="text" name="__wf__cost55" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__cost55','<%=md.getWFDataValue("__wf__cost55")%>');</SCRIPT></td> <td class="desc"><div align="right"> <script language="javascript">swapLang("Request");</script> </div></td> <td class="desc" nowrap><input type="text" name="__wf__open55" size="8" onKeyPress="javascript:chkInt1Dot(this);" dir="rtl"><SCRIPT LANGUAGE="JavaScript">setValue('__wf__open55','<%=md.getWFDataValue("__wf__open55")%>');</SCRIPT></td> <td class="desc" nowrap> <div align="center"> </div></td> </tr> <td colspan="3" align="center" class="title1"><div align="center"><script language="javascript">swapLang("Grand Total");</script></div></td> <td align="right" class="title1"><span class="desc"> <input type="text" size="8" dir="rtl" name="__wf__grand_total" value="0" readonly><SCRIPT LANGUAGE="JavaScript">setValue('__wf__grand_total','<%=md.getWFDataValue("__wf__grand_total")%>');</SCRIPT> </span></td> <td colspan="3" align="right" class="title1"> <!--a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','../IMAGES/BUTTON/SWAP/EDIT_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/EDIT20.gif" alt="Add" name="Image13" width="20" border="0" align="absmiddle" id="Image13" onClick="add()"></a> <a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','../IMAGES/BUTTON/SWAP/EXIT_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/EXIT20.gif" alt="Delete" name="Image14" width="20" border="0" align="absmiddle" id="Image14" onClick="del()"></a--> </td> </tr> <tr> <td colspan="7"> <table cellspacing="0" cellpadding="0"> <tr> <td colspan="8"></td> </tr> <tr> <td colspan="8" class="desc2"><jsp:include page="./MSG01.jsp" flush="true" /></td> </tr> </table></td> </tr> <tr> <!--td colspan="2" align="right"> <a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','../IMAGES/BUTTON/SWAP/EDIT_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/EDIT20.gif" alt="Add" name="Image15" width="20" border="0" align="absmiddle" id="Image15" onClick="add();"></a> <a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','../IMAGES/BUTTON/SWAP/EXIT_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/EXIT20.gif" alt="Delete" name="Image14" width="20" border="0" align="absmiddle" id="Image14" onClick="del()"></a> </td> </tr--> <!--tr> <td colspan="2" align="right"> <a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','../IMAGES/BUTTON/SWAP/EDIT_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/EDIT20.gif" alt="Add" name="Image13" width="20" border="0" align="absmiddle" id="Image13" onClick="add()"></a> <a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','../IMAGES/BUTTON/SWAP/EXIT_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/EXIT20.gif" alt="Delete" name="Image14" width="20" border="0" align="absmiddle" id="Image14" onClick="del()"></a> </td> </tr> <tr> <td colspan="2"> กรณีที่บุคคลในครอบครัวของพนักงานมีสิทธิได้รับเงินค่าเล่าเรียนบุตรจากหน่วยงานอื่น หรือบุคคลอื่นด้วย สำนักงานจะไม่ให้เงินสวัสดิการเกี่ยวกับค่าเล่าเรียนบุตร เว้นแต่เงินค่ารักษาพยาบาลที่ได้รับนั้นต่ำกว่าเงินสวัสดิการเกี่ยวกับค่าเล่าเรียนบุตรที่มีสิทธิตามข้อบังคับนี้ สำนักงานจะให้เฉพาะส่วนที่ยังขาดอยู่ แต่ไม่เกินอัตราที่กำหนดในข้อบังคับนี้ หากท่านไม่ปฏิบัติตามระเบียบว่าด้วยการเบิกค่าเล่าเรียนบุตรของ สวทช. จะมีความผิดทางวินัย</td> </tr--> </tbody> </table> <script language="javascript">SearchDWR.searchAll(new Array("mrequisitiontype","requisid,tdesc,edesc","","requisid","langon"),selectrequis);</script> <script language="javascript">//SearchDWR.searchAll(new Array("mwelfare","welid,tdesc,edesc,whouse,docgid"," iseducation = '0'","welid","langon"),selectwelfare);</script> <script language="javascript">//SearchDWR.searchAll(new Array("mdisease","disid,tdesc,edesc","","disid","langon"),selectdisease);</script> <script language="javascript">SearchDWR.searchAll(new Array("mempl_family","fullname,employeeid,companyid,relationid,fnameid,lname,efname,elname,line_no","employeeid = '"+document.cscform.__wf__employeeid.value+"'","employeeid","langon"),selectfamily);</script> <SCRIPT LANGUAGE="JavaScript"> showcol(<%= md.getWFDataValue("__wf__addval") %>); var adval = parseInt('<%= md.getWFDataValue("__wf__addval") %>'); // alert(adval); if(adval !=""){ if(adval>=1) showtcol('1','<%= md.getWFDataValue("__wf__at1") %>'); if(adval>=2) showtcol('2','<%= md.getWFDataValue("__wf__at2") %>'); if(adval>=3) showtcol('3','<%= md.getWFDataValue("__wf__at3") %>'); if(adval>=4) showtcol('4','<%= md.getWFDataValue("__wf__at4") %>'); if(adval>=5) showtcol('5','<%= md.getWFDataValue("__wf__at5") %>'); } </SCRIPT> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End User Code --> <SCRIPT LANGUAGE="JavaScript">setDisabled();</SCRIPT> <BR> <!-- Remark --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD WIDTH="15%" VALIGN="top" BGCOLOR="#0099CC"><DIV ALIGN="right"><%=screenSingle.getLabel("REMARK")%> :</DIV></TD> <TD WIDTH="85%" BGCOLOR="#FFFFFF"> <%=screenSingle.getInput("REMARK")%> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Remark --> <BR> <!-- Reference Note --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <% String reference_param = ""; DbInquiry wf_reference_di = (DbInquiry)screenSingle.getRecord().getChild("WF_REFERENCE"); if( wf_reference_di != null && wf_reference_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ reference_param = ""; do{ reference_param += ","+wf_reference_di.getString("REF_WF_ID")+":"+wf_reference_di.getString("REF_WF_VER")+":"+wf_reference_di.getString("REF_WF_SEQ_NO")+":"+ wf_reference_di.getString("REF_STEP_ID")+":"+wf_reference_di.getString("REF_STEP_SEQ_NO")+":"+wf_reference_di.getString("REF_ACTOR_ID")+":"+ wf_reference_di.getString("REF_ACTOR_SEQ_NO")+":"+wf_reference_di.getString("REF_POSITION_CODE"); }while( wf_reference_di.next() ); reference_param = reference_param.replaceFirst(",",""); }else{ reference_param = chkNull.chkNullString(request.getParameter("reference_param")); if( !chkNull.chkNullString(request.getParameter("reference_delete")).equals("") ){ String reference_delete = chkNull.chkNullString(request.getParameter("reference_delete")); String[] temp_delete = reference_delete.split(","); //System.out.println("Refer Delete : "+reference_delete); for( int i = 0 ; i < temp_delete.length ; i++ ){ reference_param = reference_param.replaceFirst(temp_delete[i],""); } reference_param = reference_param.replaceAll(",,",","); //System.out.println("Refer Param : "+reference_param); } } String[] temp = reference_param.split(","); if( temp.length > 0 && reference_param.length() > 0 ){ String[] temp2 = temp[0].split(":"); DbInquiry reference_di = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("VW_INCIDENT1"); reference_di.setColumn("*"); reference_di.setFilter("WF_ID = '"+temp2[0]+"' AND "+ "WF_VER = '"+temp2[1]+"' AND "+ "WF_SEQ_NO = '"+temp2[2]+"' AND "+ "STEP_ID = '"+temp2[3]+"' AND "+ "STEP_SEQ_NO = '"+temp2[4]+"' AND "+ "ACTOR_ID = '"+temp2[5]+"' AND "+ "ACTOR_SEQ_NO = '"+temp2[6]+"' AND "+ "POSITION_CODE = '"+temp2[7]+"'" ); reference_di.refresh(); if( reference_di.next() ){ %> <TR> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Reference Note");</script> :</STRONG></DIV></TD> <TD WIDTH="4%"><DIV ALIGN="center"><%=reference_di.getString("FMYNOTECHECK").replaceAll(">"," DISABLED>")%></DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"><%=reference_di.getString("FREFER_SUBJECT")%></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><%=new CscCalendar(Long.parseLong(reference_di.getString("WI_START_TIME"))).getDDMMYYYY()%></DIV></TD> </TR> <% } for( int i = 1 ; i < temp.length ; i++ ){ temp2 = temp[i].split(":"); reference_di.setFilter("WF_ID = '"+temp2[0]+"' AND "+ "WF_VER = '"+temp2[1]+"' AND "+ "WF_SEQ_NO = '"+temp2[2]+"' AND "+ "STEP_ID = '"+temp2[3]+"' AND "+ "STEP_SEQ_NO = '"+temp2[4]+"' AND "+ "ACTOR_ID = '"+temp2[5]+"' AND "+ "ACTOR_SEQ_NO = '"+temp2[6]+"' AND "+ "POSITION_CODE = '"+temp2[7]+"'" ); reference_di.refresh(); if( reference_di.next() ){ %> <TR> <TD WIDTH="18%"> </TD> <TD WIDTH="4%"><DIV ALIGN="center"><%=reference_di.getString("FMYNOTECHECK").replaceAll(">"," DISABLED>")%></DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"><%=reference_di.getString("FREFER_SUBJECT")%></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><%=new CscCalendar(Long.parseLong(reference_di.getString("WI_START_TIME"))).getDDMMYYYY()%></DIV></TD> </TR> <% } } }else{ %> <TR BGCOLOR="#0099CC"> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Reference Note");</script> :</STRONG></DIV></TD> <TD COLSPAN="4" BGCOLOR="#FFFFFF"> </TD> </TR> <% } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Reference Note --> <BR> <!-- Attach File --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <% InitialEnvironment environment = new InitialEnvironment("GLOBAL"); Downloadfile download = null; DbInquiry attached_file_di = (DbInquiry)screenSingle.getRecord().getChild("ATTACHED_FILE"); if( attached_file_di != null && attached_file_di.foundData() && !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){ download = new Downloadfile(environment.getValue("DIRNOTEATTACHTFILE-dir")+screenSingle.getUProfile().get("companyid")+"/"+ chkNull.chkNullString(request.getParameter("wf_id"),"0")+"/"+ chkNull.chkNullString(request.getParameter("wf_ver"),"0")+"/"+ chkNull.chkNullString(request.getParameter("wf_seq_no"),"0")); }else{ download = new Downloadfile(environment.getValue("DIRNOTEATTACHTEMP-dir")+attach_time); if( !chkNull.chkNullString(request.getParameter("delete_file")).equals("") ){ String[] file_name = request.getParameter("delete_file").split(","); for( int i = 0 ; i < file_name.length ; i++ ){ download.delFile(file_name[i]); } } } HashMap attach_file_hm = download.listFile(); ArrayList file_name = (ArrayList)attach_file_hm.get("file_name"); ArrayList file_size = (ArrayList)attach_file_hm.get("file_size"); if( file_name.size() > 0 ){ %> <TR> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Attach File");</script> :</STRONG></DIV></TD> <TD WIDTH="4%"><DIV ALIGN="center"> <INPUT TYPE="checkbox" NAME="attach_file" VALUE="<%=file_name.get(0)%>" DISABLED> </DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"> <A HREF="<%=request.getRequestURI()+"?"+download.getDownloadLink((String)file_name.get(0))%>"><%=file_name.get(0)%></A> </DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"> <%=calendar.getDDMMYYYY()%> </DIV></TD> </TR> <% for( int i = 1 ; i < file_name.size() ; i++ ){ %> <TR> <TD WIDTH="18%"> </TD> <TD WIDTH="4%"><DIV ALIGN="center"> <INPUT TYPE="checkbox" NAME="attach_file" VALUE="<%=file_name.get(i)%>" DISABLED> </DIV></TD> <TD WIDTH="68%"><DIV ALIGN="left"> <A HREF="<%=request.getRequestURI()+"?"+download.getDownloadLink((String)file_name.get(i))%>"><%=file_name.get(i)%></A> </DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"> <%=calendar.getDDMMYYYY()%> </DIV></TD> </TR> <% } }else{ %> <TR BGCOLOR="#0099CC"> <TD WIDTH="18%" BGCOLOR="#0099CC"><DIV ALIGN="left"><STRONG><script language="javascript">swapLang("Attach File");</script> :</STRONG></DIV></TD> <TD COLSPAN="4" BGCOLOR="#FFFFFF"> </TD> </TR> <% } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Attach File --> <BR> <!-- Document Routing --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD COLSPAN="6" BGCOLOR="#0099CC"><DIV ALIGN="center"><STRONG>: <script language="javascript">swapLang("History Document Routing");</script> :</STRONG></DIV></TD> </TR> <TR BGCOLOR="#CCCCCC"> <TD WIDTH="5%"><DIV ALIGN="center"><script language="javascript">swapLang("No.");</script></DIV></TD> <TD WIDTH="25%"><DIV ALIGN="center"><script language="javascript">swapLang("Actor");</script></DIV></TD> <TD WIDTH="24%"><DIV ALIGN="center"><script language="javascript">swapLang("Position");</script></DIV></TD> <TD WIDTH="18%"><DIV ALIGN="center"><script language="javascript">swapLang("Start Time");</script></DIV></TD> <TD WIDTH="18%"><DIV ALIGN="center"><script language="javascript">swapLang("End Time");</script></DIV></TD> <TD WIDTH="10%"><DIV ALIGN="center"><script language="javascript">swapLang("Action");</script></DIV></TD> </TR> <% DbInquiry history_di = (DbInquiry)screenSingle.getRecord().getChild("VW_INCIDENT"); if( history_di != null && history_di.foundData() ){ do{ %> <TR BGCOLOR="#0099CC"> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="right"><%=history_di.getString("STEP_SEQ_NO")%></DIV></TD> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="left"><%=history_di.getString("ACTOR_FNAME")+" "+history_di.getString("ACTOR_LNAME")%></DIV></TD> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="left"><%=history_di.getString("ACTOR_TPOSITION")%></DIV></TD> <% calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_START_TIME"))); %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"><%=calendar.getDDMMYYHHMMSS()%></DIV></TD> <% if( history_di.getString("AI_COMPLETION_TIME").equals("0") ){ %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"></DIV></TD> <% }else{ calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_COMPLETION_TIME"))); %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="center"><%=calendar.getDDMMYYHHMMSS()%></DIV></TD> <% } %> <TD BGCOLOR="#EFEFEF"><DIV ALIGN="right"><%=history_di.getString("FAI_ACTION")%></DIV></TD> </TR> <% }while( history_di.next() ); } %> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Document Routing --> <BR> <!-- Comment --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#0099CC"> <TD BGCOLOR="#0099CC"><DIV ALIGN="center"><STRONG>: <script language="javascript">swapLang("View Comment");</script> :</STRONG></DIV></TD> </TR> <TR BGCOLOR="#0099CC"> <TD BGCOLOR="#FFFFFF"><% if( history_di != null ){ history_di.go(0); } if( history_di.recCount() > 0 ){ int comment_no = 1; history_di.go(0); while( history_di.next() ){ if( !history_di.getString("COMMENTS").trim().equals("") && !history_di.getString("AI_COMPLETION_TIME").equals("0") ){ calendar.setTimeInMillis(Long.parseLong(history_di.getString("AI_COMPLETION_TIME"))); %> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <TR BGCOLOR="#CCCCCC"> <TD><STRONG><script language="javascript">swapLang("Comment No");</script> : <%=comment_no++%> </STRONG></TD> <TD COLSPAN="3"><DIV ALIGN="right"><script language="javascript">swapLang("Date");</script> : <%=calendar.getDDMMYYYY()%> <script language="javascript">swapLang("Time");</script> : <%=calendar.getHHMMSS()%></DIV></TD> </TR> <TR BGCOLOR="EFEFEF"> <TD WIDTH="18%" BGCOLOR="EFEFEF"><DIV ALIGN="right"><script language="javascript">swapLang("Name");</script> : </DIV></TD> <TD WIDTH="37%" BGCOLOR="EFEFEF"><%=history_di.getString("ACTOR_FNAME")+" "+history_di.getString("ACTOR_LNAME")%></TD> <TD WIDTH="16%" BGCOLOR="EFEFEF"><DIV ALIGN="right"><script language="javascript">swapLang("Position");</script> : </DIV></TD> <TD WIDTH="29%" BGCOLOR="EFEFEF"><%=history_di.getString("ACTOR_TPOSITION")%></TD> </TR> <TR BGCOLOR="EFEFEF"> <TD><DIV ALIGN="right"><script language="javascript">swapLang("Message");</script> :</DIV></TD> <TD COLSPAN="3"><%=history_di.getString("COMMENTS")%></TD> </TR> </TABLE> <% } } } %> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"><FONT COLOR="#FFFFFF"></FONT></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Comment --> <!-- End Step 3 --> <% } %> <BR></DIV> </TD> </TR> <TR> <TD COLSPAN="2" HEIGHT="20" BACKGROUND="../IMAGES/MYNOTE/BPM_09.jpg"><DIV ALIGN="center"><SPAN CLASS="txt02"> </SPAN></DIV></TD> </TR> </TABLE> <!----------BEGIN CSC ENDING ZONE ------------------------> <%=screenSingle.endJSP()%> <!----------END CSC ENDING ZONE --------------------------> </FORM> </BODY> </HTML> <% } %>