<%@page contentType="text/html; charset=UTF-8"%> <%@page import="java.util.*,java.io.*"%> <%@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.*,com.csc.library.database.MyHashMap"%> <%@page import="com.csc.library.session.*"%> <%@page import="com.csc.library.components.*"%> <%request.setCharacterEncoding("UTF-8");%> <!-- Begin useBean --> <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","RECRUIT"); UIManager screenSingle = (UIManager) TEMPLATE_WORKFLOW.process("SingleEntry","TEMPLATE_WORKFLOW"); /*boolean isStep1 = false; boolean isStep2 = false; boolean isStep3 = false; boolean isStepCancel = false; boolean isStepComment = false; boolean isStepReturn = false; boolean isStepCopy = false; boolean isDraft = false; boolean isAdminEdit = false; boolean isAdminCancel = false; boolean isAdminDelete = false; boolean isAdminClean = false; boolean isArchive = false;*/ String wf = null; CheckNull chkNull = new CheckNull(); Organization og = new Masfactor(screenSingle.getUProfile()); String subject = null; String remark = null; String step_type = 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()))); ManageDocument md = new ManageDocument(); md.setUProfile(screenSingle.getUProfile()); md.setRequest(request); md.setScreen(screenSingle); String requestid = chkNull.chkNullString(request.getParameter("requestid")); //out.print("request======"+requestid); 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"); if(chkNull.chkNullString(request.getParameter("isAdminEdit")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_EDIT.jsp"); }else if(chkNull.chkNullString(request.getParameter("isAdminCancel")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_CANCEL.jsp"); }else if(chkNull.chkNullString(request.getParameter("isAdminClean")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_CLEAN.jsp"); }else if(chkNull.chkNullString(request.getParameter("isAdminDelete")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_DELETE.jsp"); }else{ 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(); } } String app = chkNull.chkNullString(request.getParameter("mapplicant")); DbInquiry ages = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("MAPPLICANT"); ages.setSchemaName(screenSingle.getUProfile().getSchemaName()); ages.setColumn("*"); ages.setFilter("applicantid='"+app+"'"); ages.refresh(); ages.next(); CscCalendar Currendate = new CscCalendar(ages.getString("birthday")); CscCalendar age = new CscCalendar(); String a = ""; String EmpYear = ""; String[] list = null; a = age.getAge(Currendate).toString(); list = a.split(":"); EmpYear = list[0].replace("0", ""); %> <!-- End useBean --> <HTML> <HEAD> <TITLE>myNOTE : Business Process Management Service</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> <!-- Begin Link --> <LINK HREF="../CSS/MYNOTE.css" REL="stylesheet" TYPE="text/css"> <LINK HREF="../CSS/MYNOTE_MENU.css" REL="stylesheet" TYPE="text/css"> <!-- End Link --> <!-- Begin Import Script --> <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 TYPE='text/JavaScript' SRC='../JS/DATEINPUT.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../JS/VIEWCALENDAR.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../JS/ICONSMENU.js'></SCRIPT> <SCRIPT LANGUAGE="JavaScript">setLang('<%=screenSingle.getUProfile().get("lang")%>');</SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../TA/JS/TA_SCREEN.js'></SCRIPT> <!-- End Import Script --> <!--DWR INCLUDE--> <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/Tot_m_date0_dwr.js"></script> <script type="text/javascript" src="/hr/dwr/interface/Tchangeshift_nstda_dwr.js"></script> <!--DWR INCLUDE--> <style type=text/css> TABLE.toolTip{ border:0; width:0px; background:#6699FF; font-family: "Microsoft Sans Serif", "MS Sans Serif", sans-serif; //color: #00000; font-size: 12px; } </style> <SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript"> <!-- function goHelp(helpName,inputName,condition){ with( document.cscform ){ var helpReturn; var temp; if( inputName == "sendto" ){ temp = __fixCon.value; //__fixCon.value="job='"+condition+"'"; if( condition.indexOf(",") > -1 ){ condition = condition.replace(/,/g,"','"); } //__fixCon.value="EMPLOYEEID IN ("+condition+")"; __fixCon.value="EMPLOYEEID IN ("+condition+") AND STATUS IN ('A','S','T','V')"; helpReturn="wf_next_actor:EMPLOYEEID,sendto:MEMPLOYEE@FULLNAME"; linkHelp_SendToReturn(helpName,helpReturn); __fixCon.value=temp; }else if( inputName == "cc" ){ temp = __fixCon.value; //__fixCon.value="STATUS IN ('A','S','T','V')"; helpReturn="wf_cc_actor:EMPLOYEEID,cc:MEMPLOYEE@FULLNAME"; //linkHelp_SendToReturn(helpName,helpReturn); linkHelp_CCReturn(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__jobid" ){ var fixcon=""; if(__wf__bu1.value!="") fixcon+=" and bu1='"+__wf__bu1.value+"'"; if(__wf__bu2.value!="") fixcon+=" and bu2='"+__wf__bu2.value+"'"; if(__wf__bu3.value!="") fixcon+=" and bu3='"+__wf__bu3.value+"'"; if(__wf__positionid.value!="") fixcon+=" and jobcode_position='"+__wf__positionid.value+"'"; if(__wf__branch.value!="") fixcon+=" and branchid='"+__wf__branch.value+"'"; if(fixcon.length>0) fixcon=fixcon.substring(4,fixcon .length); temp = __fixCon.value; __fixCon.value=fixcon; helpReturn="__wf__jobid:jobcodeid,__wf__jobDesc:tdesc,__wf__fromage:age0,__wf__toage:age1,__wf__experience:experience,__wf__responsibility:responsibility"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__positionid" ){ temp = __fixCon.value; helpReturn="__wf__positionid:positionid,__wf__positionDesc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__branch" ){ temp = __fixCon.value; helpReturn="__wf__branch:branchid,__wf__branchDesc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__bu1" ){ temp = __fixCon.value; helpReturn="__wf__bu1:bu1id,__wf__bu1Desc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__bu2" ){ var fixcon=""; if(__wf__bu1.value!="") fixcon+=" and parent='"+__wf__bu1.value+"'"; if(fixcon.length>0) fixcon=fixcon.substring(4,fixcon .length); temp = __fixCon.value; __fixCon.value=fixcon; helpReturn="__wf__bu2:bu2id,__wf__bu2Desc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__bu3" ){ var fixcon=""; if(__wf__bu2.value!="") fixcon+=" and parent='"+__wf__bu2.value+"'"; if(fixcon.length>0) fixcon=fixcon.substring(4,fixcon .length); temp = __fixCon.value; __fixCon.value=fixcon; helpReturn="__wf__bu3:bu3id,__wf__bu3Desc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if(inputName=="__wf__backgroundid"){ temp = __fixCon.value; helpReturn="__wf__backgroundid:backgroundid,__wf__degreeDesc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if(inputName=="__wf__majorid"){ temp = __fixCon.value; helpReturn="__wf__majorid:majorid,__wf__majorDesc:tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if(inputName.indexOf("__wf__fixtabid") > -1){ temp = __fixCon.value; no= inputName.substring(inputName.indexOf("__wf__fixtabid")+"__wf__fixtabid".length,inputName.length); helpReturn=inputName+":fixtabid,__wf__allaw_des"+no+":tdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if(inputName.indexOf("__wf__stepid") > -1){ temp = __fixCon.value; no= inputName.substring(inputName.indexOf("__wf__stepid")+"__wf__stepid".length,inputName.length); if(no==1){ helpReturn=inputName+":employeeid,__wf__stepfullname"+no+":fullname,wf_next_actor:employeeid,sendto:fullname"; }else{ helpReturn=inputName+":employeeid,__wf__stepfullname"+no+":fullname"; } linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; } } } function goHelp2(helpName,inputName,condition){ with( document.cscform ){ var helpReturn; var temp; if( inputName == "sendto" ){ temp = __fixCon.value; //__fixCon.value="job='"+condition+"'"; if( condition.indexOf(",") > -1 ){ condition = condition.replace(/,/g,"','"); } //__fixCon.value="EMPLOYEEID IN ("+condition+")"; __fixCon.value=condition + " AND STATUS IN ('A','S','T','V')"; helpReturn="wf_next_actor:EMPLOYEEID,sendto:__wf__fullname"; linkHelp_SendToReturn(helpName,helpReturn); __fixCon.value=temp; } } } 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 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<>'6' and wf_status<>'3' and wf_status<>'8' and wf_status<>'A' and wf_status<>'B' and wf_status<>'')"; 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 linkHelp_CCReturn(help,input){ with( document.cscform ){ var param = "BROWSE_USER_CC.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off"; window.open(param,"Help","left=450,top=30,width=550,height=600,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function openHelp(){ with( document.cscform ){ window.open("","Help","left=150,top=150,width=700,height=570,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function GetXmlHttpObject(){ var xmlHttp=null; try{ xmlHttp=new XMLHttpRequest(); if (xmlHttp.overrideMimeType) { xmlHttp.overrideMimeType('text/xml'); } } catch (e){ // alert(" Internet Explorer"); try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e){ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } function getList(scode,name,span,onchange){ var xmlHttp; if (scode.length==0){ document.getElementById(span).innerHTML=""; return; } xmlHttp=GetXmlHttpObject(); if (xmlHttp==null){ alert ("Your browser does not support AJAX!"); return; } var url="getSystemCode.jsp"; url=url+"?scode="+scode; url=url+"&name="+name; url=url+"&onchange="+onchange; xmlHttp.open("GET",url,true); xmlHttp.onreadystatechange=function(){stateChanged(xmlHttp,span,name,onchange);}; xmlHttp.send(null); } function stateChanged(xmlHttp,span,name,onchange){ if (xmlHttp.readyState==4&& xmlHttp.status == 200){ document.getElementById(span).innerHTML=xmlHttp.responseText; var shortname = name.substring(6,name.length); var v = document.getElementsByName(shortname); if(v&&v.length>0){ dwr.util.setValue(name,v[0].value); eval(onchange); } /*if(onchange!=""){ //alert(onchange); eval(onchange); }*/ } } function chkInteger(){ if ((window.event.keyCode < 49) || (window.event.keyCode > 53)) window.event.returnValue = false; } function chkChange(){ with(document.cscform){ if(__wf__emp_type.options[__wf__emp_type.selectedIndex].value=="1"||__wf__emp_type.options[__wf__emp_type.selectedIndex].value=="2"||__wf__emp_type.options[__wf__emp_type.selectedIndex].value=="3"){ document.getElementById("duration").style.display = ""; __wf__contact_duration.disabled=false; //__wf__contact_duration.focus(); } else{ document.getElementById("duration").style.display = "none"; __wf__contact_duration.disabled=true; } } } function goSearch(tbody){ var oldList =""; with(document.cscform){ if(tbody=="comList"){ for(var i=0;i<elements.length;i++){ if ((elements[i].type=="checkbox")&&elements[i].name.indexOf("cb_com")!=-1){ if(elements[i].value!=""){ oldList+="'"+elements[i].value+"',"; } } } } else if(tbody=="subList"){ for(var i=0;i<elements.length;i++){ if ((elements[i].type=="checkbox")&&elements[i].name.indexOf("cb_sub")!=-1){ if(elements[i].value!=""){ oldList+="'"+elements[i].value+"',"; } } } } } var page = "SearchEmp.jsp?tbody="+tbody+"&old="+oldList; var win = window.open( page,"Search","left=150,top=150,width=680,height=450,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } function setBranch(empid){ SearchDWR.searchAll(new Array("Memployee","branch","employeeid='"+empid+"'",""),function(data){ dwr.util.setValue("__wf__branchid",data[0][0]); }); } function searchEmployee(employeeid){ SearchDWR.searchDBXMLAll(new Array("REC101C","memployee.employeeid,memployee.fullname,mposition.tdesc,mcompany.tname,memployee.tel_no,mbu2.tdesc,mposition.tdesc,mbu3.tdesc,mjobcode_level.tdesc,mbu1.tdesc,mbu4.tdesc,mbu5.tdesc,memployee.firsthiredate","memployee:employeeid = '"+employeeid+"'","false","langoff"),employee); } var employee = function(data) { var employeeRec=new Array("__wf__employeeid_info","__wf__fullname_info","__wf__position_info","__wf__company_info","__wf__tel_info","__wf__dept_hr","__wf__position_hr"); if(data.length>0) { for(i=0;i<employeeRec.length;i++){ dwr.util.setValue(employeeRec[i],data[0][i]); } } } function searchMapplicant(applicantid){ //SearchDWR.searchDBXMLAll(new Array("mapplicanthelp","mapplicant.applicantid,mapplicant.fullname,mcompany.tname,mposition.tdesc,v1mjobcode.jobcode_level,V1MJOBCODE.tdesc,mbu1.tdesc,mbu2.tdesc,mbu3.tdesc,mbu4.tdesc,mbu5.tdesc,mapplicant.exp_startdate,mapplicant.exp_salary,","mapplicant:applicantid = '"+applicantid+"'","false","langoff"),applicant); SearchDWR.searchDBXMLAll(new Array("mapplicanthelp","mapplicant.applicantid,mapplicant.fullname,mapplicant.birthday,mcompany.tname,","mapplicant:applicantid = '"+applicantid+"'","false","langoff"),applicant); } var applicant = function(data) { var applicantRec=new Array("__wf__employeeid","__wf__fullname","__wf__companyDesc"); if(data.length>0) { for(i=0;i<applicantRec.length;i++){ //alert(applicantRec[i]+","+data[0][i]); dwr.util.setValue(applicantRec[i],data[0][i]); } } } function searchRequest(requestid){ SearchDWR.searchDBXMLAll(new Array("RECREQUEST","mposition.tdesc,mjobcode.jobcode_level,mjobcode.tdesc,mbu1.tdesc,mbu2.tdesc,mbu3.tdesc,mbu4.tdesc,mbu5.tdesc,","mrequest:requestid = '"+requestid+"'","false","langoff"),myrequest); } var myrequest = function(data) { var requestRec=new Array("__wf__positionDesc","__wf__jobcodelevelid","__wf__jobcodelevelDesc","__wf__bu1Desc","__wf__bu2Desc","__wf__bu3Desc","__wf__bu4Desc","__wf__bu5Desc"); if(data.length>0) { for(i=0;i<requestRec.length;i++){ //alert(applicantRec[i]+","+data[0][i]); dwr.util.setValue(requestRec[i],data[0][i]); } } } function searchEmp(list,tbody){ SearchDWR.searchDBXMLAll(new Array("REC101C","memployee.employeeid,memployee.fullname,mposition.tdesc,mbu1.tdesc,mbu2.tdesc,mbu3.tdesc,memployee.email", "MEMPLOYEE:employeeid in ("+string2Sql(list)+")", "false","langon"), { callback:function(data) { dwr.util.removeAllRows(tbody); if(data.length>0) { sendBack(data,tbody); } else{ dwr.util.removeAllRows(tbody); } } }); } function string2Sql(list){ if(list!="" && list !=undefined){ var temp= list.split(","); var sql=""; for(i=0;i<temp.length;i++){ sql+="'"+temp[i]+"',"; } sql = sql.substring(0,sql.length-1); return sql; } } function deleteSList(){ with(document.cscform){ for(var i=0;i<elements.length;i++){ if((elements[i].type=="checkbox")&&(elements[i].name.indexOf("cb_sub")!=-1)){ if(elements[i].checked){ //var z = "(?<=,|^)"; var x = "(^"+elements[i].value+",)|(,"+elements[i].value+"$)|(^"+elements[i].value+"$)"; var y = "(,"+elements[i].value+",)"; var regEx= new RegExp(x,"gi"); var regEx2= new RegExp(y,"gi"); //var regEx3= new RegExp(z,"gi"); __wf__slist.value=__wf__slist.value.replace(regEx2,",").replace(regEx,"").replace(elements[i].value,""); //__wf__slist.value=__wf__slist.value.replace(regEx3,""); } } } searchEmp(__wf__slist.value,"subList"); } } function sendBack(result,tbody){ with(document.cscform){ if(tbody=="comList"){ var cellFuncs = [ function(data1) { return "<input type='checkbox' name='cb_com' value='"+data1[0]+"'>"}, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[0]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[1]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[2]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[3]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[4]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[5]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[6]+"</span>"; } ]; } else if(tbody=="subList"){ var i =1; var cellFuncs = [ function(data1) { return "<input type='checkbox' name='cb_sub' value='"+data1[0]+"'>"}, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[0]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[1]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[2]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[3]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[4]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[5]+"</span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\"><select name=\"__wf__reason"+i+"\"><option value=\"0\">ลาออก</option><option value=\"1\">โอนย้าย</option></select></span>"; }, function(data1) { return "<span class='txt01' style=\"white-space:nowrap\"><input size=\"10\" type=\"text\" name=\"__wf__adjdate"+i+"\" onkeypress = \"chkIntegerOfDate(this.value)\" onblur = \"chkInputDate(this)\" onkeyup = \"formatDate(this)\" > <a href=\"javascript:chkCal('__wf__adjdate"+(i++)+"')\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('999','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)\" ><img src=\"../IMAGES/BUTTON/MAIN/CALENDAR20.gif\" alt=\"Calendar\" name=\"Image19\" width=\"20\" height=\"20\" border=\"0\" align=\"absmiddle\"></a></span>"; } ]; } dwr.util.addRows(tbody,result, cellFuncs, { rowCreator: function(options) { var row = document.createElement('tr'); row.style.backgroundColor = '#FFFFFF'; return row; }, cellCreator:function(options) { var td = document.createElement("td"); td.style.backgroundColor = '#EFEFEF'; td.align="center"; return td; } }); } } function preGoWF(){ with(document.cscform){ setAllwance(); GoWF(); } } function preS2GoWF(){ with(document.cscform){ if(getRadioValue(wf_command) =="send"){ __wf__candidatestatus.value = "8"; }else{ __wf__candidatestatus.value = "7"; } } setAllwance(); GoWF(); } function setDisabled(con){ with( document.cscform ){ for( i = 0 ; i < elements.length ; i++ ){ if( elements[i].type == 'text' || elements[i].type == 'textarea' || elements[i].type == 'checkbox' || elements[i].type == 'radio' || elements[i].type == 'select-one' ){ if( elements[i].name != 'sendto' && elements[i].name != 'cc' && elements[i].name != 'subject' && elements[i].name != 'wf_command' && elements[i].name != 'comments' && elements[i].name != '__remark' ){ if(elements[i].type != 'textarea') elements[i].disabled = con; else elements[i].readOnly = con; } } } } } function chkCal(obj){ if(document.cscform.isEditableStep.value=="true") viewCal(obj); } //Table Allow function addRow(){ with(document.cscform){ var tab = document.getElementById('subTable'); var lastrow = tab.rows.length; getRow(tab,lastrow); } } function getRow(tab,lastrow){ var iteration = lastrow; var row = tab.insertRow(lastrow); row.setAttribute("class", "txt01"); document.cscform.__wf__tab_count.value=iteration; document.cscform.rowlist.value += iteration+","; //cell1 var cell1 = row.insertCell(0); node ="<DIV align=center><input type=checkbox name=chk"+iteration+" id=chk"+iteration+" value="+iteration+"><input type=hidden name=index"+iteration+" id=index"+iteration+" value="+iteration+"></DIV>"; cell1.innerHTML = node; //cell2 var cell2 = row.insertCell(1); node = "<DIV align=center><input size=10 type=text name=__wf__fixtabid"+iteration+" readonly value=><a href=\"javascript:goHelp('MFIXTABHELP','__wf__fixtabid"+iteration+"');\" ><img src=\"../IMAGES/MYNOTE/SEARCH.gif\" name=fixsearch width=\"20\" height=\"20\" border=0 align=\"absmiddle\" /></a><input size=40 type=text name=__wf__allaw_des"+iteration+" readonly value=></DIV>"; cell2.innerHTML = node; //cell3 var cell3 = row.insertCell(2); node="<DIV align=center><input size=10 type=text name=__wf__amount_info"+iteration+" value=\"\" class=\"numeric\" onkeypress=\"checkWordNumber(this.value,event);\" onkeyup=\"sysIsEdit();checkComma(this,2);\" onblur=\"checkNumFloat(this,0.0,900000000);\" onfocus=\"callDelComma(this);\"><font style=\"font-size:10px; font-family:Tahoma, Geneva, sans-serif;\"> บาท</font></DIV>"; cell3.innerHTML = node; } <!--ลบ Row ของ Table --> function chkdelRow(){ try { var table = document.getElementById('subTable'); var rowCount = table.rows.length; for(var i=1; i<rowCount; i++) { var row = table.rows[i]; var chkbox = row.cells[0].childNodes[0].childNodes[0]; if((null != chkbox && true == chkbox.checked)) { table.deleteRow(i); delFromList(chkbox.value); rowCount--; i--; } } CalExpense(); }catch(e) { //alert(e); } //genLineIndex(); } function delFromList(row){ with(document.cscform){ var list = document.getElementsByName("rowlist")[0].value; if(list.indexOf(","+row+",") > -1){ document.getElementsByName("rowlist")[0].value=list.replace(","+row+",",","); }else{ document.getElementsByName("rowlist")[0].value=list.replace(""+row+",",""); } } } <!--End Of (ลบ Row ของ Table )--> function deleteRow(r){ //alert(r); // alert(table); var i=r.parentNode.parentNode.rowIndex; document.getElementById("subTable").deleteRow(r); //delSub(table); } /*function delRow(rowdel){ with(document.cscform){ var index = rowdel.split("#"); alert(index.length); for (int i=0;i<key.length;i++){ alert(key[i]); } } }*/ function deleteRows(){ with(document.cscform){ var tab = document.getElementById('subTable'); var checks = tab.document.cscform.getElementById("chk"); for(var i= checks.length-1; i>=0; i --){ if(checks[i].checked){ var indx = checks[i].value; tab.deleteRow(indx); } } var checks = tab.document.cscform.getElementById("chk"); for(var i= 0; i < checks.length; i++){ checks[i].value=i; } } } //End Table Allow function hideFixsearch(){ tmp = document.getElementsByName("fixsearch"); for(i=0 ;i<tmp.length;i++){ document.getElementsByName("fixsearch")[i].style.display ='none'; } } function delStep(val){ with(document.cscform){ document.getElementsByName("__wf__stepid"+val)[0].value ="" ; document.getElementsByName("__wf__stepfullname"+val)[0].value=""; } } function setAllwance(){ with(document.cscform){ fixtab = 0; amount = 0; tmp_allowance = ""; for(var i = 0;i<10;i++){ fixtab= document.getElementsByName("__wf__fixtabid"+i)[0]; amount = document.getElementsByName("__wf__amount_info"+i)[0]; if((typeof fixtab)!="undefined"&& !fixtab.value==""){ tmp_allowance += "::"+fixtab.value+":"+amount.value.replace(",",""); } } __wf__allowance.value = tmp_allowance; } } function goView(){ with(document.cscform){ var appid = __wf__employeeid.value; if(appid!=""){ var pam="REC201V.jsp?__help=__applicantid$"+appid+";&__cmd=search"; var pam="REC201.jsp?__setpage=view&__help=__applicantid$"+appid+";&__cmd=search"; window.open(pam,"Help"); } } } function chkworktime(){ with(document.cscform){ if(__wf__work_scheduled_time[0].checked){ __wf__days_experimental_work.disabled=false; }else if(__wf__work_scheduled_time[1].checked){ __wf__days_experimental_work.value=""; __wf__days_experimental_work.disabled=true; } } } //--> </SCRIPT> <script type="text/javascript" src="../JS/jquery-1.3.2.min.js" ></script> <script type="text/javascript"> $(function(){ $("td.column-label").css("width","25%"); }); </script> </HEAD> <BODY BGCOLOR=#FFFFFF> <!-- ImageReady Slices (02.psd) --> <div align="center"> <FORM NAME="cscform" METHOD="post" ACTION="RWF005_CPN.jsp"> <INPUT TYPE="hidden" NAME="__screen" VALUE="RWF005_CPN"> <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="__language" VALUE="<%=screenSingle.getUProfile().get("lang")%>"> <INPUT TYPE="hidden" NAME="__companyid" VALUE="<%=screenSingle.getUProfile().get("companyid")%>"> <INPUT TYPE="hidden" NAME="__calendar" VALUE=""> <SCRIPT LANGUAGE="JavaScript">getInputFormatDate();</SCRIPT> <INPUT TYPE="hidden" NAME="wf_id" VALUE="5002"> <INPUT TYPE="hidden" NAME="__wf_id" VALUE="5002"> <INPUT TYPE="hidden" NAME="wf_ver" VALUE="<%=chkNull.chkNullString(request.getParameter("wf_ver"),"1")%>"> <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="<%=chkNull.chkNullString(request.getParameter("__oldDocumentID"),screenSingle.getDataLabel("DOC_NO"))%>"> <INPUT TYPE="hidden" NAME="__oldWF" VALUE="<%=chkNull.chkNullString(request.getParameter("__oldWF"),screenSingle.getDataLabel("WF_STATUS"))%>"> <INPUT TYPE="hidden" NAME="__wf" VALUE="<%=wf%>"> <INPUT TYPE="hidden" NAME="__wfcmd" VALUE="false"> <INPUT TYPE="hidden" NAME="remark" VALUE="<%=remark%>"> <INPUT TYPE="hidden" NAME="__wf__limitot" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__limitot"), "false")%>"> <INPUT TYPE="hidden" NAME="draft_cmd" VALUE=""> <INPUT TYPE="hidden" NAME="draft_no" VALUE="<%=chkNull.chkNullString(request.getParameter("draft_no"),"0")%>"> <INPUT TYPE="hidden" NAME="admin_cmd" VALUE=""> <!-- Redirect Page --> <INPUT TYPE="hidden" NAME="isAdminEdit" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminEdit"))%>"> <INPUT TYPE="hidden" NAME="isAdminCancel" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminCancel"))%>"> <INPUT TYPE="hidden" NAME="isAdminClean" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminClean"))%>"> <INPUT TYPE="hidden" NAME="isAdminDelete" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminDelete"))%>"> <!--User--> <INPUT TYPE="hidden" NAME="__wf__tab_count" VALUE=""> <INPUT TYPE="hidden" NAME="__wf__candidatestatus" VALUE="7"> <INPUT TYPE="hidden" NAME="__wf__requestid" VALUE="<%=chkNull.chkNullString(request.getParameter("requestid"))%>"> <INPUT TYPE="hidden" NAME="requestid" VALUE="<%=chkNull.chkNullString(request.getParameter("requestid"))%>"> <INPUT TYPE="hidden" NAME="__wf__approvedate" VALUE="<%=calendar.getYYYYMMDD()%>"> <INPUT TYPE="hidden" NAME="__wf__allowance" VALUE=""> <INPUT TYPE="hidden" NAME="rowlist" ID="rowlist" VALUE=""> <!--End user--> <%=screenSingle.InitialVariable()%> <DIV ID="toolTipLayer" STYLE="position:absolute; visibility:hidden"></DIV> <SCRIPT LANGUAGE="JavaScript">initToolTips();</SCRIPT><%=screenSingle.endJSP()%> <table width="950" border="0" align="center" cellpadding="0" cellspacing="0"> <jsp:include page="MYNOTE_HEAD.jsp" flush="true"/> <div align="center"> <!-- Begin Step1 --> <%=md.getStepDocument("5001","1")%> <%=md.getHeadDocument()%> <br> <%=md.getHelpDocument("Request for employment")%> <br> <%=md.getSendToDocument("Request for employment")%> <br> <!-- Begin 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"></td> <td valign="middle"><font face="MS Sans Serif" size="1" color="#FFFFFF"> <%//if(chkNull.chkNullString(request.getParameter("step_id")).equals("8")){%> <!--div align="right"><a href="javascript:printPage();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image43','','../IMAGES/MYNOTE/BUTTON/BUTTON_PRINT.gif',1)"><img SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_PRINT.gif" alt="พิมพ์ใบขออัตรากำลัง" name="Image43" border="0" align="absmiddle" id="Image43"></a></div--> <%//}%> <table width="100%" border="0" cellpadding="0" cellspacing="1" class="txt01"> <!-- Begin User Code --> <% if( md.isStep1||md.isAdminEdit||md.isDraft ){ %> <%}else{%> <input type="hidden" name="__wf__stepid2" value="" readonly=""><input type="hidden" name="__wf__stepfullname2" value="" readonly=""> <input type="hidden" name="__wf__stepid1" value="" readonly=""><input type="hidden" name="__wf__stepfullname1" value="" readonly=""> <%}%> <tr bgcolor="#FFFFFF"> <td colspan="2" bgcolor="#0099cc" class="column-label"><div align="left"> <script language=JavaScript>swapLang("Request for employment ")</script> </div></td> </tr> <tr bgcolor="#FFFFFF"> <td width="240" class="column-label"><div align="right"> <script language=JavaScript>swapLang("Applicant")</script> </div></td> <td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__employeeid" value="<%=chkNull.chkNullString(request.getParameter("__wf__employeeid"),md.getWFDataValue("__wf__employeeid")) %>" readonly > <input size="40" type="text" name="__wf__fullname" value="<%=chkNull.chkNullString(request.getParameter("__wf__fullname"),md.getWFDataValue("__wf__fullname")) %>" readonly></td> </tr> <tr bgcolor="#FFFFFF"> <td class="column-label"><div align="right"> <script language=JavaScript>swapLang("Ages")</script> </div></td> <td width="982" bgcolor="#EFEFEF" class="txt01"><input size="10" type="text" name="__wf__birthday" value="<%=EmpYear%>" readonly> <script language=JavaScript>swapLang("Year")</script></td> </tr> <tr bgcolor="#FFFFFF"> <td class="column-label"><div align="right"> <script language=JavaScript>swapLang("Position")</script> </div></td> <td width="982" bgcolor="#EFEFEF" class="txt01"><input size="50" type="text" name="__wf__positionDesc" value="<%=chkNull.chkNullString(request.getParameter("__wf__positionDesc"),md.getWFDataValue("__wf__positionDesc")) %>" readonly></td> </tr> <!--tr bgcolor="#FFFFFF"> <td class="column-label"><div align="right"> <script language=JavaScript>swapLang("Level")</script> </div></td> <td width="982" bgcolor="#EFEFEF" class="txt01"><input type="hidden" name="__wf__jobcodelevelid" value="<%=chkNull.chkNullString(request.getParameter("__wf__jobcodelevelid"),md.getWFDataValue("__wf__jobcodelevelid")) %>" ><input size="50" type="text" name="__wf__jobcodelevelDesc" value="<%=chkNull.chkNullString(request.getParameter("__wf__jobcodelevelDesc"),md.getWFDataValue("__wf__jobcodelevelDesc")) %>" readonly></td> </tr--> <tr bgcolor="#FFFFFF"> <td class="column-label"><div align="right"> <script language=JavaScript>swapLang("Business Unit 1")</script> </div></td> <td width="982" bgcolor="#EFEFEF" class="txt01"><input size="50" type="text" name="__wf__bu1Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu1Desc"),md.getWFDataValue("__wf__bu1Desc")) %>" readonly></td> </tr> <tr bgcolor="#FFFFFF"> <td class="column-label"><div align="right"> <script language=JavaScript>swapLang("Business Unit 2")</script> </div></td> <td width="982" bgcolor="#EFEFEF" class="txt01"><input size="50" type="text" name="__wf__bu2Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu2Desc"),md.getWFDataValue("__wf__bu2Desc")) %>" readonly></td> </tr> <tr bgcolor="#FFFFFF"> <td class="column-label"><div align="right"> <script language=JavaScript>swapLang("Business Unit 3")</script> </div></td> <td width="982" bgcolor="#EFEFEF" class="txt01"><input size="50" type="text" name="__wf__bu3Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu3Desc"),md.getWFDataValue("__wf__bu3Desc")) %>" readonly></td> </tr> <tr bgcolor="#FFFFFF"> <td class="column-label"><div align="right"> <script language=JavaScript>swapLang("Business Unit 4")</script> </div></td> <td width="982" bgcolor="#EFEFEF" class="txt01"><input size="50" type="text" name="__wf__bu4Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu4Desc"),md.getWFDataValue("__wf__bu4Desc")) %>" readonly></td> </tr> <tr bgcolor="#FFFFFF"> <td class="column-label"><div align="right"> <script language=JavaScript>swapLang("Business Unit 5")</script> </div></td> <td width="982" bgcolor="#EFEFEF" class="txt01"><input size="50" type="text" name="__wf__bu5Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu5Desc"),md.getWFDataValue("__wf__bu5Desc")) %>" readonly></td> </tr> <%//} %> <tr bgcolor="#FFFFFF"> <td colspan="2" bgcolor="#0099cc" class="column-label"><div align="left"> <script language=JavaScript>swapLang("Detail of the employment")</script> </div></td> </tr> <tr> <td class="column-label"><div align="right"><script language=JavaScript>swapLang("Employment Objectives")</script></div></td> <td bgcolor="#EFEFEF" class="txt01"> <input type="radio" name="__wf__conditions__employment" value="1"> <script language=JavaScript>swapLang("Replenishments")</script> <input type="radio" name="__wf__conditions__employment" value="2"> <script language=JavaScript>swapLang("Expense budget")</script> <input type="radio" name="__wf__conditions__employment" value="3"> <script language=JavaScript>swapLang("Cost")</script> <input type="radio" name="__wf__conditions__employment" value="4"> <script language=JavaScript>swapLang("Renew contract")</script> </td> </tr> <% /* DbRecord emp_type =new InitialRecord(screenSingle.getUProfile()).getDbRecord("mrequest"); emp_type.setColumn("*"); emp_type.set("requestid",requestid); emp_type.set("companyid",screenSingle.getUProfile().get("companyid")); emp_type.search(); emp_type.getSystemCode("EMP_TYPE");*/ %> <tr> <td class="column-label"><div align="right"><script language=JavaScript>swapLang("Employment Type")</script></div></td> <td bgcolor="#EFEFEF" class="txt01"> <% if(!md.isStep1){ requestid=md.getWFDataValue("__wf__requestid"); } %> <select name="__wf__emp_type" id="__wf__emp_type" disabled > <% DbRecord emp_type =new InitialRecord(screenSingle.getUProfile()).getDbRecord("mrequest"); emp_type.setColumn("*"); emp_type.set("requestid",requestid); emp_type.set("companyid",screenSingle.getUProfile().get("companyid")); emp_type.search(); emp_type.getSystemCode("EMP_TYPE"); out.print("<option value="+emp_type.getString("emp_type")+">"+emp_type.getSystemCode("EMP_TYPE")+"</option>"); %> </select> </td> </tr> <tr> <td class="column-label"><div align="right"><script language=JavaScript>swapLang("Term employment contracts")</script></div></td> <td bgcolor="#EFEFEF" class="txt01"> <input type="text" name="__wf__firsthire_employment" onKeyPress = "chkIntegerOfDate(this.value)" onBlur = "chkInputDate(this)" onKeyUp = "formatDate(this)" value="<%=chkNull.chkNullString(request.getParameter("__wf__firsthire_employment"),new CscCalendar().getDDMMYYYY())%>" size="10"> <a href="javascript:viewCal('__wf__firsthire_employment')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('192','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" ><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image192" width="20" height="20" border="0" align="absmiddle"></a> <script language=JavaScript>swapLang("To day")</script> <input type="text" name="__wf__enddate_employment" onKeyPress = "chkIntegerOfDate(this.value)" onBlur = "chkInputDate(this)" onKeyUp = "formatDate(this)" value="<%=chkNull.chkNullString(request.getParameter("__wf__enddate_employment"),new CscCalendar().getDDMMYYYY())%>" size="10" > <a href="javascript:viewCal('__wf__enddate_employment')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('192','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" ><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image192" width="20" height="20" border="0" align="absmiddle"></a></td> </tr> <tr> <td class="column-label"><div align="right"><script language=JavaScript>swapLang("Detail of Applicant")</script></div></td> <td bgcolor="#EFEFEF" class="txt01"> <a href="javascript:goView();"><img width="89" height="37" src="../IMAGES/MYNOTE/BUTTON/BUTTON_VIEW.gif" border="0"/></a></td> </tr> <tr bgcolor="#FFFFFF"> <td colspan="2" bgcolor="#0099cc" class="column-label"> <div align="left"> <script language=JavaScript>swapLang("Details conditions employment")</script> </div> </td> </tr> <tr> <td class="column-label"><div align="right"><script language=JavaScript>swapLang("Conditions employment")</script></div></td> <td bgcolor="#EFEFEF" class="txt01"> <input type="radio" name="__wf__work_scheduled_time" value="0" onclick="chkworktime();"> <script language=JavaScript>swapLang("Experimental work scheduled time")</script> <input type="text" name="__wf__days_experimental_work" value="<%=chkNull.chkNullString(request.getParameter("__wf__days_experimental_work"))%>" size="5" onKeyPress="checkWordNumber(this.value,event);"> <script language=JavaScript>swapLang("Date date")</script></td> </tr> <tr> <td class="column-label"></td> <td bgcolor="#EFEFEF" class="txt01"> <input type="radio" name="__wf__work_scheduled_time" value="1" onclick="chkworktime();"> <script language=JavaScript>swapLang("Without Experimental work")</script></td> </tr> <tr> <td class="column-label"></td> <td bgcolor="#EFEFEF" class="txt01"> <input type="checkbox" name="__wf__medical__examination" value="1"> <script language=JavaScript>swapLang("Through medical examination")</script></td> </tr> <tr> <td class="column-label"></td> <td bgcolor="#EFEFEF" class="txt01"> <input type="checkbox" name="__wf__criminal" value="1" onClick="" > <script language=JavaScript>swapLang("Through the criminal")</script></td> </tr> <tr> <td class="column-label"></td> <td bgcolor="#EFEFEF" class="txt01"> <input type="checkbox" name="__wf__other_work" value="1" > <script language=JavaScript>swapLang("Other")</script> <input type="text" name="__wf__other" value="<%=chkNull.chkNullString(request.getParameter("__wf__other"))%>" size="50"></td> </tr> <tr bgcolor="#FFFFFF"> <td class="column-label"><div align="right"> <script language=JavaScript>swapLang("Start date")</script> </div></td> <td bgcolor="#EFEFEF" class="txt01"><input size="10" type="text" name="__wf__firsthiredate" onKeyPress = "chkIntegerOfDate(this.value)" onBlur = "chkInputDate(this)" onKeyUp = "formatDate(this)" value="<%=new CscCalendar().getDDMMYYYY()%>"> <%if(md.isStep1 ||(chkNull.chkNullStringToInt(request.getParameter("step_id"))>=4 && md.isStep2)){%> <a href="javascript:viewCal('__wf__firsthiredate')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('192','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" ><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image192" width="20" height="20" border="0" align="absmiddle"></a> <%}%> </td> </tr> <tr bgcolor="#FFFFFF"> <td class="column-label"><div align="right"> <script language=JavaScript>swapLang("Salary")</script> </div></td> <td width="982" bgcolor="#EFEFEF" class="txt01"><input size="10" type="text" name="__wf__salary" value="<%=chkNull.chkNullString(request.getParameter("__wf__salary"),md.getWFDataValue("__wf__salary")) %>" class="numeric" onKeyPress="checkWordNumber(this.value,event);" onKeyUp="sysIsEdit();checkComma(this,2);" onBlur="checkNumFloat(this,0.0,900000000);" onFocus="callDelComma(this);" > <script language=JavaScript>swapLang("Bath") </script></td> </tr> <tr> <td colspan="2"> </td> </tr> <input type="hidden" name="__wf__list" value="<%=chkNull.chkNullString(request.getParameter("__wf__list"),md.getWFDataValue("__wf__list"))%>"> <input type="hidden" name="__wf__slist" value="<%=chkNull.chkNullString(request.getParameter("__wf__slist"),md.getWFDataValue("__wf__slist"))%>"> <input type="hidden" name="__wf__branchid" value="<%=chkNull.chkNullString(request.getParameter("__wf__branchid"),md.getWFDataValue("__wf__branchid"))%>"> <input type="hidden" name="__wf__docno" value="<%=screenSingle.getDataLabel("DOC_NO")%>"> <!-- End User Code --> </table> </font></td> <td width="5" background="../IMAGES/MYNOTE/R2.gif"></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> <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"></td> <td valign="middle"><font face="MS Sans Serif" size="1" color="#FFFFFF"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" CLASS="txt01"> <tr bgcolor="#FFFFFF"> <td colspan="4" bgcolor="#0099cc" class="column-label"><div align="left"><script language=JavaScript>swapLang("Committee List")</script></div></td> </tr> <tr bgcolor="#FFFFFF"> <td class="column-label"></td> <td class="column-label"><div align="center"><script language=JavaScript>swapLang("Name Lastname")</script></div></td> <td class="column-label"><div align="center"><script language=JavaScript>swapLang("Referee s Position")</script></div></td> <td class="column-label"><div align="center"><script language=JavaScript>swapLang("Belong")</script></div></td> </tr> <!-- ข้อมูลกรรมการสัมภาษณ์งาน --> <% MyHashMap hm = new MyHashMap() , hmBu1 =new MyHashMap() , hmBu2 = new MyHashMap(); DbInquiry inqBu4 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("MBU4"); inqBu4.setSchemaName(screenSingle.getUProfile().getSchemaName()); inqBu4.setColumn("*"); DbInquiry inqMcom = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("MCOMMITTEE"); inqMcom.setSchemaName(screenSingle.getUProfile().getSchemaName()); inqMcom.setFilter("requestid='"+requestid+"'"); inqMcom.setColumn("*"); DbInquiry inqPosition = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("MPOSITION"); inqPosition.setSchemaName(screenSingle.getUProfile().getSchemaName()); inqPosition.setColumn("*"); DbInquiry inqEmp = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry(); inqEmp.setSchemaName(screenSingle.getUProfile().getSchemaName()); inqEmp.initMyTable("MEMPLOYEE", "EMPLOYEEID in (select employeeid from MCOMMITTEE where requestid='"+requestid+"')", ""); inqEmp.setColumn("*"); inqEmp.referLangOff(); inqEmp.putChild(inqBu4); inqEmp.putChild(inqMcom); inqEmp.putChild(inqPosition); inqEmp.refresh(); //out.println(inqEmp.getFilter()); while(inqEmp.next()){ hm.putAll( inqEmp.getMyHashMap() ); Iterator it = inqEmp.getChildTable().keySet().iterator(); while(it.hasNext()){ DbInquiry cName = (DbInquiry)inqEmp.getChild( (String)it.next() ); MyHashMap hm2 = cName.getMyHashMap(); Iterator it2 = hm2.keySet().iterator(); while(it2.hasNext()){ String k = (String)it2.next(); hm.put( cName.getTableName()+"@"+k , hm2.getString(k) ); } } } %> <% inqEmp.refresh(); int num =1; while(inqEmp.next()){ %> <tr bgcolor="#FFFFFF"> <td bgcolor="#EFEFEF" class="txt01"><div align="center"><%=num%></div></td> <td bgcolor="#EFEFEF" class="txt01"> <%=inqEmp.getString("fullname")%></td> <td bgcolor="#EFEFEF" class="txt01"> <%=chkNull.chkNullString(hm.getString("MPOSITION@tdesc"),"")%></td> <td bgcolor="#EFEFEF" class="txt01"> <%=chkNull.chkNullString(hm.getString("MBU4@tdesc"),"")%></td> </tr> <% num++; }%> <!-- จบ ข้อมูลกรรมการสัมภาษณ์งาน --> </table> </font></td> <td width="5" background="../IMAGES/MYNOTE/R2.gif"></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/> <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"></td> <td valign="middle"><font face="MS Sans Serif" size="1" color="#FFFFFF"> <table width="100%" border="0" cellpadding="0" cellspacing="1" class="txt01"> <!-- Begin User Code --> <tr bgcolor="#FFFFFF"> <td colspan="2" bgcolor="#EFEFEF" class="txt01"> <table width="100%" border="0" cellpadding="0" cellspacing='1' id="subTable"> <tbody id="head"> <tr> <td bgcolor="#0099CC" class="column-title"><div align="center"></div></td> <td bgcolor="#0099CC" class="column-title" nowrap><div align="center"> <script language="javascript">swapLang("List");</script><br/>Lite </div></td> <td bgcolor="#0099CC" class="column-title" nowrap><div align="center"> <script language="javascript">swapLang("Amount money");</script>: <script language=JavaScript>swapLang("Bath")</script><br/>Amount</div> </div></td> </tr> </tbody> <tbody id="subList" > </tbody> <%if(md.isStep1){%> <%}%> </table></td> </tr> <tr bgcolor="#FFFFFF"> <td colspan="2" bgcolor="#EFEFEF" class="txt01"> <div align='center' ><%if(md.isStep1||(chkNull.chkNullStringToInt(request.getParameter("step_id"))>=4 && md.isStep2)){%> <a href='javascript:addRow();' ><img src='../IMAGES/BUTTON/MYNOTE/ADD.gif' border='0'></a> <a href='javascript:chkdelRow();' ><img src='../IMAGES/BUTTON/MYNOTE/DELETE.gif' border='0'></a> <%}%></div></td> </tr> <input type="hidden" name="__wf__list" value="<%=chkNull.chkNullString(request.getParameter("__wf__list"),md.getWFDataValue("__wf__list"))%>"> <input type="hidden" name="__wf__slist" value="<%=chkNull.chkNullString(request.getParameter("__wf__slist"),md.getWFDataValue("__wf__slist"))%>"> <input type="hidden" name="__wf__branchid" value="<%=chkNull.chkNullString(request.getParameter("__wf__branchid"),md.getWFDataValue("__wf__branchid"))%>"> <input type="hidden" name="__wf__docno" value="<%=screenSingle.getDataLabel("DOC_NO")%>"> <!-- End User Code --> <tr bgcolor="#EFEFEF" style="display:none"> <td width="240" class="column-label" align="right"><script language="JavaScript">swapLang("Priority");</script></td> <td width="982" bgcolor="#EFEFEF"><input type="radio" name="priority" value="0" checked> <script language="JavaScript">swapLang("Normal")</script> <input type="radio" name="priority" value="1"> <script language="JavaScript">swapLang("High")</script> <input type="radio" name="priority" value="2"> <script language="JavaScript">swapLang("Highest")</script></td> </tr> </table> </font></td> <td width="5" background="../IMAGES/MYNOTE/R2.gif"></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> <p><!-- End Code --> <br> <%=md.getRemarkDocument()%> <br> <%=md.getWorkflowCommandDocument()%> <br> <!--br--> <%=md.getReferenceNoteDocument()%> <!--br--> <br> <%=md.getAttachFileDocument()%> <br> <%//=md.getWorkflowButtonDocument("GoWF")%> <!-- Begin Workflow Button --> <% if( !md.isStep3 ){ %> </p> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <% if( md.isStep1 ){ %> <td><div align="right"><a href="JavaScript:preGoWF();"><img src="../IMAGES/MYNOTE/BUTTON/BUTTON_SUBMIT.gif" width="89" height="37" border="0"></a></div></td> <% }else if( md.isStepCancel || md.isAdminCancel){ %> <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> <% }else if( md.isStep2 || md.isStepComment ){ %> <td><div align="right"><a href="JavaScript:preS2GoWF();"><img src="../IMAGES/MYNOTE/BUTTON/BUTTON_SUBMIT.gif" width="89" height="37" border="0"></a></div></td> <% }else if( md.isStepReturn ){ %> <td><div align="right"><a href="JavaScript:EditWF();"><img src="../IMAGES/MYNOTE/BUTTON/BUTTON_EDIT.gif" width="89" height="37" border="0"></a><a href="JavaScript:DelWF();"><img src="../IMAGES/MYNOTE/BUTTON/BUTTON_CANCEL.gif" width="89" height="37" border="0"></a></div></td> <% }else if( md.isStepCopy ){ %> <td><div align="right"><a href="JavaScript:CopyWF();"><img src="../IMAGES/MYNOTE/BUTTON/BUTTON_EDIT.gif" width="89" height="37" border="0"></a></div></td> <% }else if( md.isAdminEdit ){ %> <td><div align="right"><a href="JavaScript:AdminEditWF();"><img src="../IMAGES/MYNOTE/BUTTON/BUTTON_SAVE.gif" width="89" height="37" border="0"></a></div></td> <% }else if( md.isAdminDelete ){ %> <td><div align="right"><a href="JavaScript:AdminDeleteWF();"><img src="../IMAGES/MYNOTE/BUTTON/BUTTON_DELETE.gif" width="89" height="37" border="0"></a></div></td> <% }else if( md.isAdminClean ){ %> <td><div align="right"><a href="JavaScript:AdminCleanWF();"><img src="../IMAGES/MYNOTE/BUTTON/BUTTON_CLEAN.gif" width="89" height="37" border="0"></a></div></td> <% } %> </tr> </table> <%}%> <!-- End Workflow Button --> <br> <%=md.getRoutingDocument()%> <br> <%=md.getCommentDocument()%> <br> <!-- Begin Set Value --> <% if(md.isStep1){ %> <!-- Begin Set Value Step1 --> <script language="JavaScript"> searchEmployee('<%=screenSingle.getUProfile().get("employeeid")%>'); searchMapplicant('<%=chkNull.chkNullString(request.getParameter("mapplicant"),"") %>'); searchRequest('<%=chkNull.chkNullString(request.getParameter("requestid"),"") %>'); setValue('priority','<%=chkNull.chkNullString(request.getParameter("priority"),"0")%>'); setValue('__remark',document.cscform.remark.value); setValue('__wf__employeeid','<%=chkNull.chkNullString(request.getParameter("__wf__employeeid"),"") %>'); setValue('__wf__fullname','<%=chkNull.chkNullString(request.getParameter("__wf__fullname"),"") %>'); setValue('__wf__companyDesc','<%=chkNull.chkNullString(request.getParameter("__wf__companyDesc"),"") %>'); setValue('__wf__positionDesc','<%=chkNull.chkNullString(request.getParameter("__wf__positionDesc"),"") %>'); setValue('__wf__jobcodelevelDesc','<%=chkNull.chkNullString(request.getParameter("__wf__jobcodelevelDesc")) %>'); setValue('__wf__bu1Desc','<%=chkNull.chkNullString(request.getParameter("__wf__bu1Desc"),"") %>'); setValue('__wf__bu2Desc','<%=chkNull.chkNullString(request.getParameter("__wf__bu2Desc"),"") %>'); setValue('__wf__bu3Desc','<%=chkNull.chkNullString(request.getParameter("__wf__bu3Desc"),"") %>'); setValue('__wf__bu4Desc','<%=chkNull.chkNullString(request.getParameter("__wf__bu4Desc"),"") %>'); setValue('__wf__bu5Desc','<%=chkNull.chkNullString(request.getParameter("__wf__bu5Desc"),"") %>'); //setValue('__wf__firsthiredate','<%=chkNull.chkNullString(request.getParameter("__wf__firsthiredate"),"") %>'); setValue('__wf__fullname_info','<%=chkNull.chkNullString(request.getParameter("__wf__fullname_info")) %>'); setValue('__wf__position_info','<%=chkNull.chkNullString(request.getParameter("__wf__position_info"),"") %>'); setValue('__wf__company_info','<%=chkNull.chkNullString(request.getParameter("__wf__company_info"),"") %>'); setValue('__wf__tel_info','<%=chkNull.chkNullString(request.getParameter("__wf__tel_info"),"") %>'); setValue('__wf__reason','<%=chkNull.chkNullString(request.getParameter("__wf__reason"),"") %>'); setValue('__wf__dept_hr','<%=chkNull.chkNullString(request.getParameter("__wf__dept_hr"),"") %>'); setValue('__wf__position_hr','<%=chkNull.chkNullString(request.getParameter("__wf__position_hr"),"") %>'); setValue('__wf__startdate','<%=chkNull.chkNullString(request.getParameter("__wf__startdate"),new CscCalendar().getDDMMYYYY()) %>'); setValue('__wf__salary','<%=chkNull.chkNullString(request.getParameter("__wf__salary"),"") %>'); setValue('__wf__allowance','<%=chkNull.chkNullString(request.getParameter("__wf__allowance"),"") %>'); setValue('__wf__candidatestatus','<%=chkNull.chkNullString(request.getParameter("__wf__candidatestatus"),"") %>'); setValue('__wf__stepid1','<%=chkNull.chkNullString(request.getParameter("__wf__stepid1"),"") %>'); setValue('__wf__stepid2','<%=chkNull.chkNullString(request.getParameter("__wf__stepid2"),"") %>'); setValue('__wf__stepfullname1','<%=chkNull.chkNullString(request.getParameter("__wf__stepfullname1"),"") %>'); setValue('__wf__stepfullname2','<%=chkNull.chkNullString(request.getParameter("__wf__stepfullname2"),"") %>'); setValue('__wf__jobcodelevelid','<%=chkNull.chkNullString(request.getParameter("__wf__jobcodelevelid"),"") %>'); setValue('__wf__requestid','<%=chkNull.chkNullString(request.getParameter("__wf__requestid"),request.getParameter("requestid")) %>'); </script> <!-- End Set Value Step1 --> <% }else if(md.isStep2 || md.isStepCancel || md.isStepComment || md.isStepReturn || md.isStepCopy || md.isDraft ){ %> <!-- Begin Set Value Step2 --> <script language="JavaScript"> if('<%=md.getWFDataValue("__wf__tab_count")%>'!=""){ for(var j=0;j<parseInt('<%=md.getWFDataValue("__wf__tab_count")%>');j++) addRow(); } searchMapplicant('<%=chkNull.chkNullString(md.getWFDataValue("__wf__employeeid"),"") %>'); searchRequest('<%=chkNull.chkNullString(md.getWFDataValue("__wf__requestid"),"") %>'); setValue('priority','<%=screenSingle.getDataLabel("VW_INCIDENT","PRIORITY")%>'); setValue('__wf__employeeid','<%=md.getWFDataValue("__wf__employeeid")%>'); setValue('__wf__fullname','<%=md.getWFDataValue("__wf__fullname")%>'); setValue('__wf__companyDesc','<%=md.getWFDataValue("__wf__companyDesc")%>'); setValue('__wf__positionDesc','<%=md.getWFDataValue("__wf__positionDesc")%>'); setValue('__wf__jobcodelevelDesc','<%=md.getWFDataValue("__wf__jobcodelevelDesc")%>'); setValue('__wf__bu1Desc','<%=md.getWFDataValue("__wf__bu1Desc")%>'); setValue('__wf__bu2Desc','<%=md.getWFDataValue("__wf__bu2Desc")%>'); setValue('__wf__bu3Desc','<%=md.getWFDataValue("__wf__bu3Desc")%>'); setValue('__wf__bu4Desc','<%=md.getWFDataValue("__wf__bu4Desc")%>'); setValue('__wf__bu5Desc','<%=md.getWFDataValue("__wf__bu5Desc")%>'); setValue('__wf__conditions__employment','<%=md.getWFDataValue("__wf__conditions__employment")%>'); setValue('__wf__emp_type','<%=md.getWFDataValue("__wf__emp_type")%>'); setValue('__wf__firsthire_employment','<%=md.getWFDataValue("__wf__firsthire_employment")%>'); setValue('__wf__enddate_employment','<%=md.getWFDataValue("__wf__enddate_employment")%>'); setValue('__wf__work_scheduled_time','<%=md.getWFDataValue("__wf__work_scheduled_time")%>'); setValue('__wf__days_experimental_work','<%=md.getWFDataValue("__wf__days_experimental_work")%>'); setValue('__wf__medical__examination','<%=md.getWFDataValue("__wf__medical__examination")%>'); setValue('__wf__criminal','<%=md.getWFDataValue("__wf__criminal")%>'); setValue('__wf__other_work','<%=md.getWFDataValue("__wf__other_work")%>'); setValue('__wf__other','<%=md.getWFDataValue("__wf__other")%>'); setValue('__wf__firsthiredate','<%=md.getWFDataValue("__wf__firsthiredate")%>'); setTimeout("setValue('__wf__salary','<%=md.getWFDataValue("__wf__salary")%>');",2000); setValue('__wf__fullname_info','<%=md.getWFDataValue("__wf__fullname_info")%>'); setValue('__wf__position_info','<%=md.getWFDataValue("__wf__position_info")%>'); setValue('__wf__company_info','<%=md.getWFDataValue("__wf__company_info")%>'); setValue('__wf__tel_info','<%=md.getWFDataValue("__wf__tel_info")%>'); setValue('__wf__reason','<%=md.getWFDataValue("__wf__reason")%>'); setValue('__wf__dept_hr','<%=md.getWFDataValue("__wf__dept_hr")%>'); setValue('__wf__position_hr','<%=md.getWFDataValue("__wf__position_hr")%>'); setValue('__wf__startdate','<%=md.getWFDataValue("__wf__startdate")%>'); setValue('__wf__candidatestatus','<%=md.getWFDataValue("__wf__candidatestatus")%>'); setValue('__wf__requestid','<%=md.getWFDataValue("__wf__requestid")%>'); setValue('__wf__stepid1','<%=md.getWFDataValue("__wf__stepid1")%>'); setValue('__wf__stepid2','<%=md.getWFDataValue("__wf__stepid2")%>'); setValue('__wf__stepfullname1','<%=md.getWFDataValue("__wf__stepfullname1")%>'); setValue('__wf__stepfullname2','<%=md.getWFDataValue("__wf__stepfullname2")%>'); setValue('__wf__jobcodelevelid','<%=md.getWFDataValue("__wf__jobcodelevelid")%>'); setValue('__wf__approvedate','<%=calendar.getYYYYMMDD()%>'); setValue('__remark',document.cscform.remark.value); //setValue('__remark','<%=md.getWFDataValue("__wf__jobcodelevelid")%>'); <% String tmp_allowance =""; String fixtabid =""; String amount =""; String disableds=(chkNull.chkNullStringToInt(request.getParameter("step_id"))<4)?"true":"false"; for(int i = 0;i<10;i++){ fixtabid= chkNull.chkNullString(md.getWFDataValue("__wf__fixtabid"+i),""); amount = chkNull.chkNullString(md.getWFDataValue("__wf__amount_info"+i),""); if(!fixtabid.equals("")){ tmp_allowance += "::"+fixtabid+":"+amount; } out.print("setTimeout(\"setValue('__wf__fixtabid"+i+"','"+chkNull.chkNullString(md.getWFDataValue("__wf__fixtabid"+i),"") +"')"+(md.isDraft?"":";setDisabled("+disableds+")")+"\",3000);"); out.print("setTimeout(\"setValue('__wf__allaw_des"+i+"','"+chkNull.chkNullString(md.getWFDataValue("__wf__allaw_des"+i),"") +"')"+(md.isDraft?"":";setDisabled("+disableds+")")+"\",3000);"); out.print("setTimeout(\"setValue('__wf__amount_info"+i+"','"+chkNull.chkNullString(md.getWFDataValue("__wf__amount_info"+i),"") +"')"+(md.isDraft?"":";setDisabled("+disableds+")")+"\",3000);"); } %> setValue('__wf__allowance','<%=tmp_allowance.replaceAll(",","") %>'); <% if( !md.isDraft || chkNull.chkNullStringToInt(request.getParameter("step_id"))<4 ){ %> hideFixsearch(); setDisabled(true); <% }else{ %> setValue('__checkPage','false'); <%}%> </script> <!-- End Set Value Step2 --> <% }else if( md.isStep3 || md.isAdminEdit || md.isAdminCancel || md.isAdminDelete || md.isAdminClean || md.isArchive){ %> <!-- Begin Set Value Step3 --> <script language="JavaScript"> if('<%=md.getWFDataValue("__wf__tab_count")%>'!=""){ for(var j=0;j<parseInt('<%=md.getWFDataValue("__wf__tab_count")%>');j++) addRow(); } searchMapplicant('<%=chkNull.chkNullString(md.getWFDataValue("__wf__employeeid"),"") %>'); searchRequest('<%=chkNull.chkNullString(md.getWFDataValue("__wf__requestid"),"") %>'); setValue('priority','<%=screenSingle.getDataLabel("VW_INCIDENT","PRIORITY")%>'); setValue('__wf__employeeid','<%=md.getWFDataValue("__wf__employeeid")%>'); setValue('__wf__fullname','<%=md.getWFDataValue("__wf__fullname")%>'); setValue('__wf__companyDesc','<%=md.getWFDataValue("__wf__companyDesc")%>'); setValue('__wf__positionDesc','<%=md.getWFDataValue("__wf__positionDesc")%>'); setValue('__wf__jobcodelevelDesc','<%=md.getWFDataValue("__wf__jobcodelevelDesc")%>'); setValue('__wf__bu1Desc','<%=md.getWFDataValue("__wf__bu1Desc")%>'); setValue('__wf__bu2Desc','<%=md.getWFDataValue("__wf__bu2Desc")%>'); setValue('__wf__bu3Desc','<%=md.getWFDataValue("__wf__bu3Desc")%>'); setValue('__wf__bu4Desc','<%=md.getWFDataValue("__wf__bu4Desc")%>'); setValue('__wf__bu5Desc','<%=md.getWFDataValue("__wf__bu5Desc")%>'); setValue('__wf__conditions__employment','<%=md.getWFDataValue("__wf__conditions__employment")%>'); setValue('__wf__emp_type','<%=md.getWFDataValue("__wf__emp_type")%>'); setValue('__wf__firsthire_employment','<%=md.getWFDataValue("__wf__firsthire_employment")%>'); setValue('__wf__enddate_employment','<%=md.getWFDataValue("__wf__enddate_employment")%>'); setValue('__wf__work_scheduled_time','<%=md.getWFDataValue("__wf__work_scheduled_time")%>'); setValue('__wf__days_experimental_work','<%=md.getWFDataValue("__wf__days_experimental_work")%>'); setValue('__wf__medical__examination','<%=md.getWFDataValue("__wf__medical__examination")%>'); setValue('__wf__criminal','<%=md.getWFDataValue("__wf__criminal")%>'); setValue('__wf__other_work','<%=md.getWFDataValue("__wf__other_work")%>'); setValue('__wf__other','<%=md.getWFDataValue("__wf__other")%>'); setValue('__wf__firsthiredate','<%=md.getWFDataValue("__wf__firsthiredate")%>'); setTimeout("setValue('__wf__salary','<%=md.getWFDataValue("__wf__salary")%>');",2000); setValue('__wf__fullname_info','<%=md.getWFDataValue("__wf__fullname_info")%>'); setValue('__wf__position_info','<%=md.getWFDataValue("__wf__position_info")%>'); setValue('__wf__company_info','<%=md.getWFDataValue("__wf__company_info")%>'); setValue('__wf__tel_info','<%=md.getWFDataValue("__wf__tel_info")%>'); setValue('__wf__reason','<%=md.getWFDataValue("__wf__reason")%>'); setValue('__wf__dept_hr','<%=md.getWFDataValue("__wf__dept_hr")%>'); setValue('__wf__position_hr','<%=md.getWFDataValue("__wf__position_hr")%>'); setValue('__wf__startdate','<%=md.getWFDataValue("__wf__startdate")%>'); setValue('__wf__candidatestatus','<%=md.getWFDataValue("__wf__candidatestatus")%>'); setValue('__wf__requestid','<%=md.getWFDataValue("__wf__requestid")%>'); setValue('__wf__stepid1','<%=md.getWFDataValue("__wf__stepid1")%>'); setValue('__wf__stepid2','<%=md.getWFDataValue("__wf__stepid2")%>'); setValue('__wf__stepfullname1','<%=md.getWFDataValue("__wf__stepfullname1")%>'); setValue('__wf__stepfullname2','<%=md.getWFDataValue("__wf__stepfullname2")%>'); setValue('__wf__jobcodelevelid','<%=md.getWFDataValue("__wf__jobcodelevelid")%>'); setValue('__wf__approvedate','<%=calendar.getYYYYMMDD()%>'); setValue('__remark',document.cscform.remark.value); //setValue('__remark','<%=md.getWFDataValue("__wf__jobcodelevelid")%>'); //chkChange(); hideFixsearch(); setValue('__checkPage','false'); <% for(int i = 0;i<10;i++){ out.print("setTimeout(\"setValue('__wf__fixtabid"+i+"','"+chkNull.chkNullString(md.getWFDataValue("__wf__fixtabid"+i),"") +"')"+(md.isDraft?"":";setDisabled(true)")+"\",3000);"); out.print("setTimeout(\"setValue('__wf__allaw_des"+i+"','"+chkNull.chkNullString(md.getWFDataValue("__wf__allaw_des"+i),"") +"')"+(md.isDraft?"":";setDisabled(true)")+"\",3000);"); out.print("setTimeout(\"setValue('__wf__amount_info"+i+"','"+chkNull.chkNullString(md.getWFDataValue("__wf__amount_info"+i),"") +"')"+(md.isDraft?"":";setDisabled(true)")+"\",3000);"); } %> <%if(!md.isAdminEdit){%> setDisabled(true); <%}%> </script> <!-- End Set Value Step3 --> <% } %> <!-- End Set Value --> </div> <!--td valign="top" background="../IMAGES/MYNOTE/BPM_07.jpg"> </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--> </FORM> </div> </BODY> </HTML> <% } %>