<%@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.databean.util.FileUtil"%> <%@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.*"%> <%@page import="com.csc.library.components.*"%> <%@page import="com.csc.library.report.ReportUDF"%> <%request.setCharacterEncoding("UTF-8");%> <!-- Begin useBean --> <jsp:useBean id="TEMPLATE_WORKFLOW" class="com.csc.library.system.Task" scope="page"/> <jsp:setProperty name="TEMPLATE_WORKFLOW" property="classauthen" value="WorkflowUIAuthen" /> <% TEMPLATE_WORKFLOW.setChannel(request,response); TEMPLATE_WORKFLOW.checkProfile(); if( TEMPLATE_WORKFLOW.getUProfile() != null ){ TEMPLATE_WORKFLOW.getUProfile().set("appname","PERSONAL"); UIManager screenSingle = (UIManager) TEMPLATE_WORKFLOW.process("SingleEntry","TEMPLATE_WORKFLOW"); /* boolean isStep1 = false; boolean isStep2 = false; boolean isStep3 = false; boolean isStepCancel = false; boolean isStepComment = 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); 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") ){ /* if( chkNull.chkNullString(request.getParameter("__checkPage")).equals("true") ){ response.sendRedirect("../MYNOTE/SENT_COMPLETE.jsp"); }else{ response.sendRedirect("../MYNOTE/INBOX.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"); } // 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(); } } %> <!-- End useBean --> <html ng-app="myHR"> <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='/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/MovementTypeSetup.js'></script> <link HREF="../CSS/start/jquery-ui-1.9.2.custom.css" REL="stylesheet" TYPE="text/css"> <SCRIPT TYPE='text/JavaScript' SRC='../JS/jquery-1.7.2.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../JS/jquery-ui-1.9.2.js'></SCRIPT> <script src="../JS/angular-1.3.15/angular.js" type="text/javascript"></script> <script src="../JS/ANGULAR/SCREEN_ANGULAR.js" type="text/javascript"></script> <!-- End Import Script --> <!-- 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 --> <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+"')"; helpReturn="wf_next_actor:EMPLOYEEID,sendto:__wf__MEMPLOYEE@FULLNAME"; linkHelp_SendToReturn(helpName,helpReturn); __fixCon.value=temp; }else if( inputName == "cc" ){ temp = __fixCon.value; helpReturn="wf_cc_actor:EMPLOYEEID,cc:__wf__MEMPLOYEE@FULLNAME"; linkHelp_CCReturn(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__wf__employeeid" ){ temp = __fixCon.value; __fixCon.value = "status in (select statuscode from mempl_status where statustype = 'A')"; chkChooseEmployeeID.value = "idsearch"; helpReturn="__wf__employeeid:EMPLOYEEID"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName == "__wf__resignreason" ) { helpReturn="__wf__resignreason:resignreasonid,__wf__tadjposition$status$1:status,__wf__resignreason_tdesc:edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__sup_resignreason" ) { helpReturn="__wf__sup_resignreason:resignreasonid,__wf__sup_resignreason_tdesc:edesc"; linkHelp_Return(helpName,helpReturn); } else if(inputName=="__wf__hr_resignreason" ) { helpReturn="__wf__hr_resignreason:resignreasonid,__wf__hr_resignreason_tdesc:edesc"; linkHelp_Return(helpName,helpReturn); } } } function linkhelp_return_madjreason(help,input, fixCon){ with(document.cscform){ var filter = fixCon; var param="PRU084.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+filter+"&__checkVerify=off"; win = window.open(param,"Help","left=150,top=150,width=600,height=400,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); if(window.focus){win.focus();} } } 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_CCReturn(help,input){ with( document.cscform ){ var param = "BROWSE_USER.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off&wf_id=2001"; window.open(param,"Help","left=150,top=150,width=530,height=510,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<>'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 openHelp(){ with( document.cscform ){ window.open("","Help","left=150,top=150,width=700,height=570,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function reportList(){ with( document.cscform ){ window.open("CERT_LIST.jsp?","",'left=150,top=150,width=750,height=580,toolbar=no,status=yes,scrollbars=yes,resizable=yes'); } } function printReport(xmlfile){ with( document.cscform ){ window.open("ASR001.jsp?__screen="+xmlfile,"",'left=150,top=150,width=750,height=580,toolbar=no,status=yes,scrollbars=yes,resizable=yes'); } } <!-- *************************** --> function search(id){ //alert(id); SearchDWR.searchDBXMLAll(new Array("PWF012","memployee.employeeid,memployee.fullname,mposition.tdesc,mbu1.tdesc,mbu2.tdesc,mbu3.tdesc,mbu4.tdesc,mbu5.tdesc,memployee.tel_ext", "memployee:employeeid = '"+id+"' and STATUS NOT IN ('U','W','X','Y','Z')","false","langoff"),employee); } var employee = function(data){ var empRec=new Array("__wf__employeeid","__wf__fullname","__wf__position_show","__wf__bu1_show","__wf__bu2_show","__wf__bu3_show","__wf__bu4_show","__wf__bu5_show","__wf__ext"); if(data.length>0){ for(i=0; i<empRec.length; i++){ DWRUtil.setValue(empRec[i],data[0][i]); } }else{ for(i=0; i<empRec.length;i++) { DWRUtil.setValue(empRec[i],""); } } } // สร้าง Input BOX รหัสพนักงาน function createInputEmployeeID(){SearchDWR.getInput(new Array("MEMPLOYEE","employeeid","Name:wf__employeeid","Help:MEMPLOYEEHELP_PWF", "HelpReturn:true","onKeyup:initialization(this.value);"),emp);} // ใช้ในการกรอกข้อมูลแล้วค้นหา ถ้าหาไม่เจอให้ลบข้อมูลที่กรอกไปเลย ---------------------------- function initialization(emp) { empTemp=emp; if (init) clearTimeout(init); init = setTimeout("search(empTemp)", 1500); } //---------------------------------------------------------------------------------------------------------- //ตัวแปร var emp=function(data){DWRUtil.setValue("empID",data[1]);} var init = null; var empTemp=""; function PreGoWF(){ with( document.cscform ){ if(chkResigndate()&&chkRequire()){ GoWF(); } } } function chkResigndate() { with(document.cscform){ var msg = (getLang()=="tha")? "กรุณาระบุวันที่พ้นสภาพให้ถูกต้อง.": "Please input correct resign date." if(__wf__resigndate.value == "" || __wf__resigndate.value == "31-12-2100" ) { alert(msg); __wf__resigndate.focus(); __wf__resigndate.select(); return false; } else if(__wf__endworkdate.value == "" || __wf__endworkdate.value == "31-12-2100") { alert(msg); __wf__endworkdate.focus(); __wf__endworkdate.select(); return false; } } return true; } function chkRequire(){ with( document.cscform ){ var msg = (getLang()=="tha")? "กรุณากรอกเหตุผลการลาออก.": "Please input resign reason." if(__wf__resignreason.value === ""){ alert(msg); __wf__resignreason.focus(); __wf__resignreason.select(); return false; }else{ return true; } } } function searchEmp(){ // condition = " and employeeid in ("+document.cscform.__subordinate.value+")"; var condition =""; searchDescEmp(document.getElementById("__wf__employeeid"), 'memployee.fullname:__wf__MEMPLOYEE@FULLNAME,mposition.tdesc:__wf__position_show,mbu1.tdesc:__wf__bu1_show,mbu2.tdesc:__wf__bu2_show,mbu3.tdesc:__wf__bu3_show,mbu4.tdesc:__wf__bu4_show,mbu5.tdesc:__wf__bu5_show,memployee.tel_ext:__wf__ext', condition); //realShift(); } function searchDescEmp(empid, desc, condition){ // alert(condition); var splitDesc="",getField="",setField=""; splitDesc = desc.split(","); for(var i = 0; i < splitDesc.length; i++){ if(splitDesc[i].indexOf("@") > -1 && splitDesc[i].indexOf(":") == -1){ if(splitDesc[i].indexOf("$") > -1) { var newDesc = splitDesc[i].substring(0,splitDesc[i].indexOf("$")); getField += newDesc.replace(/@/g,"."); }else{ getField += splitDesc[i].replace(/@/g,"."); } setField += splitDesc[i]; }else{ getField += splitDesc[i].substring(0,splitDesc[i].indexOf(":")); setField += splitDesc[i].substring(splitDesc[i].indexOf(":")+1,splitDesc[i].length); } if(i+1 == splitDesc.length){ break; }else{ getField+=","; setField+=","; } } SearchDWR.searchDBXMLAll(new Array("MEMPLOYEEHELP3", getField, "memployee:employeeid = '"+empid.value+"' "+condition, "false", "langOn"), function(data){ setField = setField.split(","); if(data.length > 0){ for(i=0;i<setField.length;i++){ DWRUtil.setValue(setField[i],data[0][i]); } }else{ empid.value =""; for(i=0;i<setField.length;i++){ DWRUtil.setValue(setField[i],""); } //alert(MyCode[6]); //empid.focus(); //empid.select(); } }); } function postReturn(){ // how to use it,, An Override in your Page. with( document.cscform ){ searchEmp(); chkEmployeeStatus(); if(chkChooseEmployeeID.value === "idsearch" ){ chkChooseEmployeeID.value = ""; GoGenerate(); } } } function chkEmployeeStatus(){ with(document.cscform){ if(__wf__tadjposition$status$1.value === ""){ __wf__tadjposition$status$1.value = "Y"; } } } $(function(){ $("td.column-label").css("width","25%"); }); function GoGenerate() { with(document.cscform) { if(__wf__employeeid.value!="") { __wf__generate.value="1"; submit(); } else { alert(MyCode[0]); __wf__employeeid.focus(); __wf__employeeid.select(); } } } $(document).ready(function(){ $('input[name="chkChooseEmployeeID"]').val(""); var empworkages = $('input[name="__wf__empworkages"]').val(); $('.empworkages').html(empworkages); }); </script> <style type="text/css"><!-- .lable-noRequire label span { visibility:hidden; display: none; } .disable-gohelp { display: none; } .fixed_income_deduct { text-align: right; } --> </style> </head> <body> <jsp:include page="../MYNOTE_HEAD.jsp" flush="true"/> <div align="center"> <!--<div align="center" name="wf_detail">--> <!-- ImageReady Slices (02.psd) --> <form name="cscform" method="post" action="PWF016.jsp"> <input type="hidden" name="__screen" value="PWF016"> <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=""> <input type="hidden" name="__dateformat" value="DD-MM-YYYY"> <input type="hidden" name="__wf__reqdate" value="<%=calendar.getDDMMYYYY()%>"> <!-- <script language="JavaScript">getInputFormatDate();</script> --> <input type="hidden" name="wf_id" value="2116"> <input type="hidden" name="__wf_id" value="2116"> <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="INIT"> <input type="hidden" name="__oldDocumentID" value="<%=(!screenSingle.getDataLabel("DOC_NO").equals("0")?screenSingle.getDataLabel("DOC_NO"):chkNull.chkNullString(request.getParameter("__oldDocumentID"),"0"))%>"> <input type="hidden" name="__oldWF" value="<%=(!screenSingle.getDataLabel("DOC_NO").equals("0")?screenSingle.getDataLabel("WF_STATUS"):chkNull.chkNullString(request.getParameter("__oldWF"),"0"))%>"> <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="draft_cmd" VALUE=""> <INPUT TYPE="hidden" NAME="draft_no" VALUE="<%=chkNull.chkNullString(request.getParameter("draft_no"),"0")%>"> <INPUT TYPE="hidden" NAME="admin_cmd" VALUE=""> <INPUT TYPE="hidden" NAME="__checkPage" VALUE="true"> <INPUT TYPE="hidden" NAME="wf_default_actor" VALUE="true"> <INPUT TYPE="hidden" NAME="__wf__generate" VALUE="true"> <INPUT TYPE="hidden" NAME="__wf__tadjposition$doc_no$1" VALUE="0"> <INPUT TYPE="hidden" NAME="__wf__line_no" VALUE="1"> <% System.out.println("******************************* [START] line_no_resign *******************************************"); DbInquiry resign = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mempl_resign"); resign.setColumn("line_no"); resign.setFilter("employeeid = '"+chkNull.chkNullString(request.getParameter("__wf__employeeid"))+"'"); resign.refresh(); int line_no_resign = resign.recCount()+1; DbInquiry empstartdate = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("memployee"); empstartdate.setColumn("startdate"); empstartdate.setFilter("employeeid = '"+chkNull.chkNullString(request.getParameter("__wf__employeeid"))+"'"); empstartdate.refresh(); empstartdate.next(); DbInquiry chkresign = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mempl_resign"); chkresign.setColumn("line_no"); chkresign.setFilter("employeeid = '"+chkNull.chkNullString(request.getParameter("__wf__employeeid"))+"' and endworkdate >= '"+empstartdate.getString("startdate")+"'"); chkresign.refresh(); if(chkresign.recCount()>0){ line_no_resign = line_no_resign-1; } System.out.println("******************************* [END] line_no_resign *******************************************"); %> <INPUT TYPE="hidden" NAME="__wf__line_no_resign" VALUE="<%=line_no_resign%>"> <INPUT TYPE="hidden" NAME="__wf__adj_reason" VALUE="98"> <INPUT TYPE="hidden" NAME="__wf__adj_type" VALUE="30"> <INPUT TYPE="hidden" NAME="chkChooseEmployeeID" 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"))%>"> <%=screenSingle.InitialVariable()%> <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" id="wrapper"> <div align="center"> <%=md.getStepDocument("2116","1")%> <%=md.getHeadDocument()%> <br> <%=md.getHelpDocument2("WF2116")%><!-- Resign Requisition --> <br> <%=md.getSendToDocumentNoSearch("WF2116")%><!-- Resign Requisition --> <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"> <table width="100%" border="0" cellpadding="0" cellspacing="1"> <!-- Begin User Code --> <INPUT TYPE="hidden" NAME="__wf__last_record" ID = "__wf__last_record" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__last_record"),"1")%>"> <INPUT TYPE="hidden" NAME="__wf__list_record" ID = "__wf__list_record" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__list_record"),",1")%>"> <INPUT TYPE="hidden" NAME="__subordinate" VALUE="<%=screenSingle.getUProfile().get("subordinateall")%>"> <TR> <TD COLSPAN="2" CLASS="column-title"><SCRIPT LANGUAGE="javascript">swapLang('Employee Details');</SCRIPT></TD> </TR> <TR> <TD WIDTH="25%" CLASS="column-label"><SCRIPT LANGUAGE="javascript">swapLang('Employee ID')</SCRIPT></TD> <TD WIDTH="75%" CLASS="column-input"> <INPUT NAME="__wf__employeeid" ID="__wf__employeeid" TYPE="text" VALUE="<%= chkNull.chkNullString(request.getParameter("__wf__employeeid"),"")%>" SIZE="15" onBlur="javascript:searchEmp();" class="disabled" readonly> <%if(md.isStep1){%><A HREF="javascript:goHelp('MEMPLOYEEHELPWF015','__wf__employeeid');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('__wf__employeeid_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"> <IMG SRC="../IMAGES/BUTTON/MAIN/SEARCH20.gif" ALT="SEARCH" NAME="__wf__employeeid_image" WIDTH="20" HEIGHT="20" BORDER="0" ALIGN="absmiddle"> </A><%}%> <INPUT NAME="__wf__MEMPLOYEE@FULLNAME" TYPE="text" SIZE="40" VALUE="<%= chkNull.chkNullString(request.getParameter("__wf__MEMPLOYEE@FULLNAME"),"") %>" class="disabled" readonly> </TD> </TR> <TR> <TD CLASS="column-label"><SCRIPT LANGUAGE="javascript">swapLang('Position')</SCRIPT></TD> <TD CLASS="column-input"><INPUT TYPE="text" NAME="__wf__position_show" VALUE="<%= chkNull.chkNullString(request.getParameter("__wf__position_show"),"") %>" size="65" class="disabled" readonly></TD> </TR> <TR> <TD CLASS="column-label"><SCRIPT LANGUAGE="javascript">swapLang('Business Unit 1')</SCRIPT></TD> <TD CLASS="column-input"><INPUT TYPE="text" NAME="__wf__bu1_show" VALUE="<%= chkNull.chkNullString(request.getParameter("__wf__bu1_show"),"") %>" size="65" class="disabled" readonly></TD> </TR> <TR> <TD CLASS="column-label"><SCRIPT LANGUAGE="javascript">swapLang('Business Unit 2')</SCRIPT></TD> <TD CLASS="column-input"><INPUT TYPE="text" NAME="__wf__bu2_show" VALUE="<%= chkNull.chkNullString(request.getParameter("__wf__bu2_show"),"") %>" size="65" class="disabled" readonly></TD> </TR> <TR> <TD CLASS="column-label"><SCRIPT LANGUAGE="javascript">swapLang('Business Unit 3')</SCRIPT></TD> <TD CLASS="column-input"><INPUT TYPE="text" NAME="__wf__bu3_show" VALUE="<%= chkNull.chkNullString(request.getParameter("__wf__bu3_show"),"") %>" size="65" class="disabled" readonly></TD> </TR> <tr> <td class="column-label"><script language="javascript">swapLang('Business Unit 4')</script></td> <td class="column-input"><input type="text" name="__wf__bu4_show" value="<%= chkNull.chkNullString(request.getParameter("__wf__bu4_show"),"") %>" size="65" class="disabled" readonly></td> </tr> <tr> <td class="column-label"><script language="javascript">swapLang('Business Unit 5')</script></td> <td class="column-input"><input type="text" name="__wf__bu5_show" value="<%= chkNull.chkNullString(request.getParameter("__wf__bu5_show"),"") %>" size="65" class="disabled" readonly></td> </tr> <tr> <input type="hidden" name="__startdate" value="<%= chkNull.chkNullString(request.getParameter("__startdate"),"") %>"> <td class="column-label"><script language="javascript">swapLang("Extension");</script></td> <td class="column-input"><input size="10" type="text" name="__wf__ext" value="<%= chkNull.chkNullString(request.getParameter("__wf__ext"),"") %>" class="disabled" readonly></td> </tr> <% //ดึงข้อมูลของพนักงานลงตาราง String inqEmployeeid = chkNull.chkNullString(request.getParameter("__wf__employeeid")); String inqCompanyid = screenSingle.getUProfile().get("companyid"); DbInquiry inqMbranch = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mbranch"); inqMbranch.setColumn("*"); DbInquiry inqMbranch_soc_tax = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mbranch_soc_tax"); inqMbranch_soc_tax.setColumn("*"); DbInquiry inqMjobcode = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mjobcode"); inqMjobcode.setColumn("*"); DbInquiry inqMposition = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mposition"); inqMposition.setColumn("*"); DbInquiry inqMbu1 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mbu1"); inqMbu1.setColumn("*"); DbInquiry inqMbu2 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mbu2"); inqMbu2.setColumn("*"); DbInquiry inqMbu3 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mbu3"); inqMbu3.setColumn("*"); DbInquiry inqMbu4 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mbu4"); inqMbu4.setColumn("*"); DbInquiry inqMbu5 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mbu5"); inqMbu5.setColumn("*"); DbInquiry inqMgroup = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mgroup"); inqMgroup.setColumn("*"); DbInquiry inqMpersonallevel = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mpersonallevel"); inqMpersonallevel.setColumn("*"); DbInquiry inqMcostcenter0 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mcostcenter0"); inqMcostcenter0.setColumn("*"); DbInquiry inqMtime0 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mtime0"); inqMtime0.setColumn("*"); DbInquiry inqMworkarea = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mworkarea"); inqMworkarea.setColumn("*"); DbInquiry inqMsalatype0 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("msalatype0"); inqMsalatype0.setColumn("*"); DbInquiry inqEmpDetail = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("memployee"); inqEmpDetail.setColumn("emp_type,status,branch,branch_no,job,emp_position,bu1,bu2,bu3,bu4,bu5,emp_group,pl,costcenter,time0,workarea,salatype,currency,emp_every,resign,startdate,empworkages"); inqEmpDetail.setFilter("employeeid = '"+inqEmployeeid+"' and companyid = '"+inqCompanyid+"'"); inqEmpDetail.putChild(inqMbranch); inqEmpDetail.putChild(inqMbranch_soc_tax); inqEmpDetail.putChild(inqMjobcode); inqEmpDetail.putChild(inqMposition); inqEmpDetail.putChild(inqMbu1); inqEmpDetail.putChild(inqMbu2); inqEmpDetail.putChild(inqMbu3); inqEmpDetail.putChild(inqMbu4); inqEmpDetail.putChild(inqMbu5); inqEmpDetail.putChild(inqMgroup); inqEmpDetail.putChild(inqMpersonallevel); inqEmpDetail.putChild(inqMcostcenter0); inqEmpDetail.putChild(inqMtime0); inqEmpDetail.putChild(inqMworkarea); inqEmpDetail.putChild(inqMsalatype0); inqEmpDetail.refresh(); inqEmpDetail.next(); inqEmpDetail.referLangOn(); CscCalendar calendar_startdate = new CscCalendar(inqEmpDetail.getString("startdate")); String startdate = calendar_startdate.getDDMMYYYY(); %> <tr> <td class="column-label"><script language="javascript">swapLang('Start Date')</script> *</td> <td class="column-input"><input type="text" name="__wf__startDate" value="<%=startdate%>" size="10" class="disabled" readonly></td> </tr> <tr> <td colspan="2" class="column-title"><script language="javascript">swapLang("Detail of Resign");</script></td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Effective Date");</script> *</td> <td width="75%" class="column-data"> <input name="__wf__resigndate" onkeypress="chkIntegerOfDate(this.value,event);" onkeyup="sysIsEdit();formatDate(this);" onblur="chkInputDate(this);" onfocus="this.select();" type="text" size="10" maxlength="10" value="" <%if(!md.isStep1){%>readonly="true" class="disabled"<%}%>> <%if(md.isStep1){%> <a onmouseover="MM_swapImage('Image12','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:;"> <img name="Image12" width="20" align="absmiddle" id="Image12" onclick="viewCal('__wf__resigndate')" alt="Calendar" src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" border="0"> </a> <%}%> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Last Work Date");</script> *</td> <td width="75%" class="column-data"> <input name="__wf__endworkdate" onkeypress="chkIntegerOfDate(this.value,event);" onkeyup="sysIsEdit();formatDate(this);" onblur="chkInputDate(this);" onfocus="this.select();" type="text" size="10" maxlength="10" value="" <%if(!md.isStep1){%>readonly="true" class="disabled"<%}%>> <%if(md.isStep1){%> <a onmouseover="MM_swapImage('Image12','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:;"> <img name="Image12" width="20" align="absmiddle" id="Image12" onclick="viewCal('__wf__endworkdate')" alt="Calendar" src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" border="0"> </a> <%}%> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Work age");</script></td> <td width="75%" class="column-data"><span class="empworkages"></span> <input type="hidden" name="__wf__empworkages" value="<%=inqEmpDetail.getString("empworkages")%>" size="40" class="disabled" readonly> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Attitude");</script></td> <td width="75%" class="column-data"> <label><input name="__wf__attitude" value="1" checked="checked" type="radio" <%if(!md.isStep1){%>disabled=""<%}%> > <script language="JavaScript">swapLang("Positive");</script></label> <label><input name="__wf__attitude" value="2" type="radio" <%if(!md.isStep1){%>disabled=""<%}%> > <script language="JavaScript">swapLang("Negative");</script></label> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Willingly Resign");</script></td> <td width="75%" class="column-data"> <label><input name="__wf__willingly_resign" value="1" checked="checked" type="radio" <%if(!md.isStep1){%>disabled=""<%}%> > <script language="JavaScript">swapLang("Yes");</script></label> <label><input name="__wf__willingly_resign" value="0" type="radio" <%if(!md.isStep1){%>disabled=""<%}%> > <script language="JavaScript">swapLang("No");</script></label> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Resign Reason");</script> *</td> <td width="75%" class="column-data"> <input name="__wf__resignreason" size="5" maxlength="5" value="" type="text" <%if(!md.isStep1){%>readonly="true" class="disabled"<%}%>> <%if(md.isStep1){%> <a onmouseover="MM_swapImage('__wf__resignreason_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MRESIGNREASONHELP','__wf__resignreason');"> <img name="__wf__resignreason_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"> </a> <%}%> <input name="__wf__resignreason_tdesc" type="text" size="49" value="" class="disabled" readonly> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Resign Reason(Supervisor)");</script></td> <td width="75%" class="column-data"> <input name="__wf__sup_resignreason" type="text" size="5" maxlength="5" value="NONE" <%if(!md.isStep1){%>readonly="true" class="disabled"<%}%>> <%if(md.isStep1){%> <a onmouseover="MM_swapImage('__wf__sup_resignreason_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MRESIGNREASONHELP','__wf__sup_resignreason');"> <img name="__wf__sup_resignreason_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"> </a> <%}%> <input name="__wf__sup_resignreason_tdesc" type="text" size="49" value="" class="disabled" readonly> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Resign Reason(HR)");</script></td> <td width="75%" class="column-data"> <input name="__wf__hr_resignreason" type="text" size="5" maxlength="5" value="NONE" <%if(!md.isStep1){%>readonly="true" class="disabled"<%}%>> <%if(md.isStep1){%> <a onmouseover="MM_swapImage('__wf__hr_resignreason_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MRESIGNREASONHELP','__wf__hr_resignreason');"> <img name="__wf__hr_resignreason_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"> </a> <%}%> <input name="__wf__hr_resignreason_tdesc" type="text" size="49" value="" class="disabled" readonly> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Resign Reason");</script></td> <td width="75%" class="column-data"> <textarea name="__wf__other_resignreason" onkeyup="chkLimitTextArea(this,4000);sysIsEdit();" onkeypress="chkSpecialStr(event);" rows="5" cols="40" <%if(!md.isStep1){%>readonly="true" class="disabled"<%}%>></textarea> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Strong point of company");</script></td> <td width="75%" class="column-data"> <textarea name="__wf__strong_point" onkeyup="chkLimitTextArea(this,4000);sysIsEdit();" onkeypress="chkSpecialStr(event);" rows="5" cols="40" <%if(!md.isStep1){%>readonly="true" class="disabled"<%}%>></textarea> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Weak point of company");</script></td> <td width="75%" class="column-data"> <textarea name="__wf__weak_point" onkeyup="chkLimitTextArea(this,4000);sysIsEdit();" onkeypress="chkSpecialStr(event);" rows="5" cols="40" <%if(!md.isStep1){%>readonly="true" class="disabled"<%}%>></textarea> </td> </tr> <%=md.getWF_Remark("2116",screenSingle.getUProfile().get("companyid"))%> <!-- <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Priority");</script></td> <td width="75%" class="column-data"> <label><input type="radio" name="priority" value="0" checked <%if(!md.isStep1){%>disabled=""<%}%> /> <script language="JavaScript">swapLang("Normal");</script></label> <label><input type="radio" name="priority" value="1" <%if(!md.isStep1){%>disabled=""<%}%> /> <script language="JavaScript">swapLang("High");</script></label> <label><input type="radio" name="priority" value="2" <%if(!md.isStep1){%>disabled=""<%}%> /> <script language="JavaScript">swapLang("Highest");</script></label> </td> </tr> --> <input type="hidden" name="priority" value="0"> <% DbRecord dbsalary = new InitialRecord(screenSingle.getUProfile()).getDbRecord("memployee"); dbsalary.setColumn("*"); dbsalary.set("employeeid", inqEmployeeid); dbsalary.set("companyid", inqCompanyid); dbsalary.search(); CscCalendar calendar_resigndate = new CscCalendar(inqEmpDetail.getString("resigndate")); CscCalendar calendar_today = new CscCalendar(); String resigndate = calendar_resigndate.getDDMMYYYY(); String contract_end_value = resigndate; %> <tr> <td colspan="2"> <input type="hidden" name="__wf__tadjposition$status$1" value="<%=inqEmpDetail.getString("status")%>"/> <input type="hidden" name="__wf__tadjposition$emp_type$1" value="<%=inqEmpDetail.getString("emp_type")%>"/> <input type="hidden" name="__wf__tadjposition$branch$1" value="<%=inqEmpDetail.getString("branch")%>"/> <input type="hidden" name="__wf__tadjposition$branch_no$1" value="<%=inqEmpDetail.getString("branch_no")%>"/> <input type="hidden" name="__wf__tadjposition$job$1" value="<%=inqEmpDetail.getString("job")%>"/> <input type="hidden" name="__wf__tadjposition$emp_position$1" value="<%=inqEmpDetail.getString("emp_position")%>"/> <input type="hidden" name="__wf__tadjposition$bu1$1" value="<%=inqEmpDetail.getString("bu1")%>"/> <input type="hidden" name="__wf__tadjposition$bu2$1" value="<%=inqEmpDetail.getString("bu2")%>"/> <input type="hidden" name="__wf__tadjposition$bu3$1" value="<%=inqEmpDetail.getString("bu3")%>"/> <input type="hidden" name="__wf__tadjposition$bu4$1" value="<%=inqEmpDetail.getString("bu4")%>"/> <input type="hidden" name="__wf__tadjposition$bu5$1" value="<%=inqEmpDetail.getString("bu5")%>"/> <input type="hidden" name="__wf__tadjposition$emp_group$1" value="<%=inqEmpDetail.getString("emp_group")%>"/> <input type="hidden" name="__wf__tadjposition$costcenter$1" value="<%=inqEmpDetail.getString("costcenter")%>"/> <input type="hidden" name="__wf__tadjposition$workarea$1" value="<%=inqEmpDetail.getString("workarea")%>"/> <input type="hidden" name="__wf__tadjposition$time0$1" value="<%=inqEmpDetail.getString("time0")%>"/> <input type="hidden" name="__wf__tadjposition$pl$1" value="<%=inqEmpDetail.getString("pl")%>"/> <input type="hidden" name="__wf__tadjposition$salatype$1" value="<%=inqEmpDetail.getString("salatype")%>"/> <input type="hidden" name="__wf__tadjposition$salary$1" value="<%=dbsalary.getString("salary")%>"/> <input type="hidden" name="__wf__tadjposition$currency$1" value="<%=inqEmpDetail.getString("currency")%>"/> <input type="hidden" name="__wf__tadjposition$emp_every$1" value="<%=inqEmpDetail.getString("emp_every")%>"/> <input type="hidden" name="__wf__tadjposition$contract_end$1" value="<%=calendar.getDDMMYYYY()%>"> <input type="hidden" name="__wf__tadjposition$old_status$1" value="<%=inqEmpDetail.getString("status")%>"/> <input type="hidden" name="__wf__tadjposition$old_emp_type$1" value="<%=inqEmpDetail.getString("emp_type")%>"/> <input type="hidden" name="__wf__tadjposition$old_branch$1" value="<%=inqEmpDetail.getString("branch")%>"/> <input type="hidden" name="__wf__tadjposition$old_branch_no$1" value="<%=inqEmpDetail.getString("branch_no")%>"/> <input type="hidden" name="__wf__tadjposition$old_job$1" value="<%=inqEmpDetail.getString("job")%>"/> <input type="hidden" name="__wf__tadjposition$old_emp_position$1" value="<%=inqEmpDetail.getString("emp_position")%>"/> <input type="hidden" name="__wf__tadjposition$old_bu1$1" value="<%=inqEmpDetail.getString("bu1")%>"/> <input type="hidden" name="__wf__tadjposition$old_bu2$1" value="<%=inqEmpDetail.getString("bu2")%>"/> <input type="hidden" name="__wf__tadjposition$old_bu3$1" value="<%=inqEmpDetail.getString("bu3")%>"/> <input type="hidden" name="__wf__tadjposition$old_bu4$1" value="<%=inqEmpDetail.getString("bu4")%>"/> <input type="hidden" name="__wf__tadjposition$old_bu5$1" value="<%=inqEmpDetail.getString("bu5")%>"/> <input type="hidden" name="__wf__tadjposition$old_emp_group$1" value="<%=inqEmpDetail.getString("emp_group")%>"/> <input type="hidden" name="__wf__tadjposition$old_costcenter$1" value="<%=inqEmpDetail.getString("costcenter")%>"/> <input type="hidden" name="__wf__tadjposition$old_workarea$1" value="<%=inqEmpDetail.getString("workarea")%>"/> <input type="hidden" name="__wf__tadjposition$old_time0$1" value="<%=inqEmpDetail.getString("time0")%>"/> <input type="hidden" name="__wf__tadjposition$old_pl$1" value="<%=inqEmpDetail.getString("pl")%>"/> <input type="hidden" name="__wf__tadjposition$old_salatype$1" value="<%=inqEmpDetail.getString("salatype")%>"/> <input type="hidden" name="__wf__tadjposition$old_salary$1" value="<%=dbsalary.getString("salary")%>"/> <input type="hidden" name="__wf__tadjposition$old_currency$1" value="<%=inqEmpDetail.getString("currency")%>"/> <input type="hidden" name="__wf__tadjposition$old_emp_every$1" value="<%=inqEmpDetail.getString("emp_every")%>"/> <input type="hidden" name="__wf__tadjposition$old_contract_end$1" value="<%=calendar.getDDMMYYYY()%>"> <% inqEmpDetail.closeConnection(); %> </td> </tr> </table> </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> <!-- End Code --> <br> <%=md.getRemarkDocument()%> <br> <%=md.getWorkflowCommandDocument()%> <br> <!--br--> <%=md.getReferenceNoteDocument()%> <br> <%=md.getAttachFileDocument()%> <br> <%//=md.getWorkflowButtonDocument("GoWF")%> <!-- Begin Workflow Button --> <% if( !md.isStep3 ){ %> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <% if( md.isStep1 || md.isDraft ){ %> <TD> <DIV ALIGN="right"> <% if( md.isDraft ){%> <A HREF="JavaScript:DelDraft();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_CANCEL.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A> <% }%> <A HREF="JavaScript:PreGoWF();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_SUBMIT.gif" WIDTH="89" HEIGHT="37" BORDER="0" ID="imgSubmit"></A> </DIV> </TD> <% }else if( md.isStepCancel || md.isAdminCancel){ %> <TD> <DIV ALIGN="right"> <A HREF="JavaScript:takeWorkflowByActor();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_TAKE.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.isStep2 || md.isStepComment ){ %> <TD> <DIV ALIGN="right"> <%if(("2").equalsIgnoreCase(md.getWFDataValue("step_id"))) {%> <%} %><A HREF="JavaScript:GoWF();"><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"> setValue('priority','<%=chkNull.chkNullString(request.getParameter("priority"),"0")%>'); searchEmp(); setValue('__wf__certificate','<%=chkNull.chkNullString(request.getParameter("__wf__certificate"),md.getWFDataValue("__wf__certificate"))%>'); setValue('__wf__chkT','<%=chkNull.chkNullString(request.getParameter("__wf__chkT"),md.getWFDataValue("__wf__chkT"))%>'); setValue('__wf__chkTnum','<%=chkNull.chkNullString(request.getParameter("__wf__chkTnum"),md.getWFDataValue("__wf__chkTnum"))%>'); setValue('__wf__chkE','<%=chkNull.chkNullString(request.getParameter("__wf__chkE"),md.getWFDataValue("__wf__chkE"))%>'); setValue('__wf__chkEnum','<%=chkNull.chkNullString(request.getParameter("__wf__chkEnum"),md.getWFDataValue("__wf__chkEnum"))%>'); //setValue('__wf__doc','<%=chkNull.chkNullString(request.getParameter("__wf__doc"),md.getWFDataValue("__wf__doc"))%>'); //setValue('__wf__description','<%=chkNull.chkNullString(request.getParameter("__wf__description"),md.getWFDataValue("__wf__description")).replace("\r\n","\\x0D")%>'); setValue('__wf__reqdate','<%=chkNull.chkNullString(request.getParameter("__wf__reqdate"),md.getWFDataValue("__wf__reqdate"))%>'); setValue('__wf__country','<%=chkNull.chkNullString(request.getParameter("__wf__country"),md.getWFDataValue("__wf__country"))%>'); <%if(screenSingle.getUProfile().get("lang").equalsIgnoreCase("tha")){%> setValue('__wf__countrydesc_travel','<%=chkNull.chkNullString(request.getParameter("__wf__countrydesc_travel"),"ระบุประเทศ")%>'); setValue('__wf__countrydesc_seminar','<%=chkNull.chkNullString(request.getParameter("__wf__countrydesc_seminar"),"ระบุประเทศ")%>'); <%}else{%> setValue('__wf__countrydesc_travel','<%=chkNull.chkNullString(request.getParameter("__wf__countrydesc_travel"),"Insert Country")%>'); setValue('__wf__countrydesc_seminar','<%=chkNull.chkNullString(request.getParameter("__wf__countrydesc_seminar"),"Insert Country")%>'); <%}%> setValue('__wf__datefrom_travel','<%=chkNull.chkNullString(request.getParameter("__wf__datefrom_travel"),md.getWFDataValue("__wf__datefrom_travel"))%>'); setValue('__wf__dateto_travel','<%=chkNull.chkNullString(request.getParameter("__wf__dateto_travel"),md.getWFDataValue("__wf__dateto_travel"))%>'); setValue('__wf__datefrom_seminar','<%=chkNull.chkNullString(request.getParameter("__wf__datefrom_seminar"),md.getWFDataValue("__wf__datefrom_seminar"))%>'); setValue('__wf__dateto_seminar','<%=chkNull.chkNullString(request.getParameter("__wf__dateto_seminar"),md.getWFDataValue("__wf__dateto_seminar"))%>'); // setValue('__wf__amount','<%=md.getWFDataValue("__wf__amount")%>'); setValue('__wf__title','<%=chkNull.chkNullString(request.getParameter("__wf__title"),md.getWFDataValue("__wf__title"))%>'); setValue('__wf__institute','<%=chkNull.chkNullString(request.getParameter("__wf__institute"),md.getWFDataValue("__wf__institute"))%>'); //setFieldLang(); setDisabledOn('__wf__chkTnum'); //setDisabledOn('__wf__chkEnum'); </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"> setValue('priority','<%=screenSingle.getDataLabel("VW_INCIDENT","PRIORITY")%>'); setValue('__wf__employeeid','<%=md.getWFDataValue("__wf__employeeid")%>'); setValue('__wf__MEMPLOYEE@FULLNAME','<%=md.getWFDataValue("__wf__MEMPLOYEE@FULLNAME")%>'); setValue('__wf__position_show','<%=md.getWFDataValue("__wf__position_show")%>'); setValue('__wf__bu1_show','<%=md.getWFDataValue("__wf__bu1_show")%>'); setValue('__wf__bu2_show','<%=md.getWFDataValue("__wf__bu2_show")%>'); setValue('__wf__bu3_show','<%=md.getWFDataValue("__wf__bu3_show")%>'); setValue('__wf__bu4_show','<%=md.getWFDataValue("__wf__bu4_show")%>'); setValue('__wf__bu5_show','<%=md.getWFDataValue("__wf__bu5_show")%>'); setValue('__wf__ext','<%=md.getWFDataValue("__wf__ext")%>'); setValue('__wf__startDate','<%=md.getWFDataValue("__wf__startDate")%>'); setValue('__wf__endworkdate','<%=md.getWFDataValue("__wf__endworkdate")%>'); setValue('__wf__resigndate','<%=md.getWFDataValue("__wf__resigndate")%>'); setValue('__wf__empworkages','<%=md.getWFDataValue("__wf__empworkages")%>'); setValue('__wf__attitude','<%=md.getWFDataValue("__wf__attitude")%>'); setValue('__wf__willingly_resign','<%=md.getWFDataValue("__wf__willingly_resign")%>'); setValue('__wf__resignreason','<%=md.getWFDataValue("__wf__resignreason")%>'); setValue('__wf__resignreason_tdesc','<%=md.getWFDataValue("__wf__resignreason_tdesc")%>'); setValue('__wf__sup_resignreason','<%=md.getWFDataValue("__wf__sup_resignreason")%>'); setValue('__wf__sup_resignreason_tdesc','<%=md.getWFDataValue("__wf__sup_resignreason_tdesc")%>'); setValue('__wf__hr_resignreason','<%=md.getWFDataValue("__wf__hr_resignreason")%>'); setValue('__wf__hr_resignreason_tdesc','<%=md.getWFDataValue("__wf__hr_resignreason_tdesc")%>'); setValue('__wf__other_resignreason','<%=md.getWFDataValue("__wf__other_resignreason")%>'); setValue('__wf__strong_point','<%=md.getWFDataValue("__wf__strong_point")%>'); setValue('__wf__weak_point','<%=md.getWFDataValue("__wf__weak_point")%>'); setValue('__wf__tadjposition$status$1','<%=md.getWFDataValue("__wf__tadjposition$status$1")%>'); setValue('__wf__tadjposition$emp_type$1','<%=md.getWFDataValue("__wf__tadjposition$emp_type$1")%>'); setValue('__wf__tadjposition$branch$1','<%=md.getWFDataValue("__wf__tadjposition$branch$1")%>'); setValue('__wf__tadjposition$branch_no$1','<%=md.getWFDataValue("__wf__tadjposition$branch_no$1")%>'); setValue('__wf__tadjposition$job$1','<%=md.getWFDataValue("__wf__tadjposition$job$1")%>'); setValue('__wf__tadjposition$emp_position$1','<%=md.getWFDataValue("__wf__tadjposition$emp_position$1")%>'); setValue('__wf__tadjposition$bu1$1','<%=md.getWFDataValue("__wf__tadjposition$bu1$1")%>'); setValue('__wf__tadjposition$bu2$1','<%=md.getWFDataValue("__wf__tadjposition$bu2$1")%>'); setValue('__wf__tadjposition$bu3$1','<%=md.getWFDataValue("__wf__tadjposition$bu3$1")%>'); setValue('__wf__tadjposition$bu4$1','<%=md.getWFDataValue("__wf__tadjposition$bu4$1")%>'); setValue('__wf__tadjposition$bu5$1','<%=md.getWFDataValue("__wf__tadjposition$bu5$1")%>'); setValue('__wf__tadjposition$emp_group$1','<%=md.getWFDataValue("__wf__tadjposition$emp_group$1")%>'); setValue('__wf__tadjposition$costcenter$1','<%=md.getWFDataValue("__wf__tadjposition$costcenter$1")%>'); setValue('__wf__tadjposition$workarea$1','<%=md.getWFDataValue("__wf__tadjposition$workarea$1")%>'); setValue('__wf__tadjposition$time0$1','<%=md.getWFDataValue("__wf__tadjposition$time0$1")%>'); setValue('__wf__tadjposition$pl$1','<%=md.getWFDataValue("__wf__tadjposition$pl$1")%>'); setValue('__wf__tadjposition$salatype$1','<%=md.getWFDataValue("__wf__tadjposition$salatype$1")%>'); setValue('__wf__tadjposition$salary$1','<%=md.getWFDataValue("__wf__tadjposition$salary$1")%>'); setValue('__wf__tadjposition$currency$1','<%=md.getWFDataValue("__wf__tadjposition$currency$1")%>'); setValue('__wf__tadjposition$emp_every$1','<%=md.getWFDataValue("__wf__tadjposition$emp_every$1")%>'); setValue('__wf__tadjposition$old_status$1','<%=md.getWFDataValue("__wf__tadjposition$old_status$1")%>'); setValue('__wf__tadjposition$old_emp_type$1','<%=md.getWFDataValue("__wf__tadjposition$old_emp_type$1")%>'); setValue('__wf__tadjposition$old_branch$1','<%=md.getWFDataValue("__wf__tadjposition$old_branch$1")%>'); setValue('__wf__tadjposition$old_branch_no$1','<%=md.getWFDataValue("__wf__tadjposition$old_branch_no$1")%>'); setValue('__wf__tadjposition$old_job$1','<%=md.getWFDataValue("__wf__tadjposition$old_job$1")%>'); setValue('__wf__tadjposition$old_emp_position$1','<%=md.getWFDataValue("__wf__tadjposition$old_emp_position$1")%>'); setValue('__wf__tadjposition$old_bu1$1','<%=md.getWFDataValue("__wf__tadjposition$old_bu1$1")%>'); setValue('__wf__tadjposition$old_bu2$1','<%=md.getWFDataValue("__wf__tadjposition$old_bu2$1")%>'); setValue('__wf__tadjposition$old_bu3$1','<%=md.getWFDataValue("__wf__tadjposition$old_bu3$1")%>'); setValue('__wf__tadjposition$old_bu4$1','<%=md.getWFDataValue("__wf__tadjposition$old_bu4$1")%>'); setValue('__wf__tadjposition$old_bu5$1','<%=md.getWFDataValue("__wf__tadjposition$old_bu5$1")%>'); setValue('__wf__tadjposition$old_emp_group$1','<%=md.getWFDataValue("__wf__tadjposition$old_emp_group$1")%>'); setValue('__wf__tadjposition$old_costcenter$1','<%=md.getWFDataValue("__wf__tadjposition$old_costcenter$1")%>'); setValue('__wf__tadjposition$old_workarea$1','<%=md.getWFDataValue("__wf__tadjposition$old_workarea$1")%>'); setValue('__wf__tadjposition$old_time0$1','<%=md.getWFDataValue("__wf__tadjposition$old_time0$1")%>'); setValue('__wf__tadjposition$old_pl$1','<%=md.getWFDataValue("__wf__tadjposition$old_pl$1")%>'); setValue('__wf__tadjposition$old_salatype$1','<%=md.getWFDataValue("__wf__tadjposition$old_salatype$1")%>'); setValue('__wf__tadjposition$old_salary$1','<%=md.getWFDataValue("__wf__tadjposition$old_salary$1")%>'); setValue('__wf__tadjposition$old_currency$1','<%=md.getWFDataValue("__wf__tadjposition$old_currency$1")%>'); setValue('__wf__tadjposition$old_emp_every$1','<%=md.getWFDataValue("__wf__tadjposition$old_emp_every$1")%>'); setValue('__wf__line_no_resign','<%=md.getWFDataValue("__wf__line_no_resign")%>'); <% if(!md.isDraft){ %> //setFieldLang(); setTimeout("setReadOnlyOn('__wf__employeeid');",1000); setDisabledOn('__wf__certificate'); setDisabledOn('__wf__chkT'); setDisabledOn('__wf__chkTnum'); setDisabledOn('__wf__chkE'); setDisabledOn('__wf__chkEnum'); setDisabledOn('__wf__doc'); setDisabledOn('__wf__description'); setDisabledOn('__wf__country'); setDisabledOn('__wf__countrydesc_travel'); setDisabledOn('__wf__countrydesc_seminar'); setDisabledOn('__wf__datefrom_travel'); setDisabledOn('__wf__dateto_travel'); setDisabledOn('__wf__datefrom_seminar'); setDisabledOn('__wf__dateto_seminar'); // setDisabledOn('__wf__amount'); setDisabledOn('__wf__title'); setDisabledOn('__wf__institute'); setDisabledOn('__wf__doc'); setDisabledOn('__wf__description'); setDisabledOn('priority'); setReadOnlyOn('__remark'); setDisabledOn('reference_note'); setDisabledOn('attach_file'); <% }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"> setValue('priority','<%=screenSingle.getDataLabel("VW_INCIDENT","PRIORITY")%>'); setValue('__wf__employeeid','<%=md.getWFDataValue("__wf__employeeid")%>'); setValue('__wf__MEMPLOYEE@FULLNAME','<%=md.getWFDataValue("__wf__MEMPLOYEE@FULLNAME")%>'); setValue('__wf__position_show','<%=md.getWFDataValue("__wf__position_show")%>'); setValue('__wf__bu1_show','<%=md.getWFDataValue("__wf__bu1_show")%>'); setValue('__wf__bu2_show','<%=md.getWFDataValue("__wf__bu2_show")%>'); setValue('__wf__bu3_show','<%=md.getWFDataValue("__wf__bu3_show")%>'); setValue('__wf__bu4_show','<%=md.getWFDataValue("__wf__bu4_show")%>'); setValue('__wf__bu5_show','<%=md.getWFDataValue("__wf__bu5_show")%>'); setValue('__wf__ext','<%=md.getWFDataValue("__wf__ext")%>'); setValue('__wf__startDate','<%=md.getWFDataValue("__wf__startDate")%>'); setValue('__wf__endworkdate','<%=md.getWFDataValue("__wf__endworkdate")%>'); setValue('__wf__resigndate','<%=md.getWFDataValue("__wf__resigndate")%>'); setValue('__wf__empworkages','<%=md.getWFDataValue("__wf__empworkages")%>'); setValue('__wf__attitude','<%=md.getWFDataValue("__wf__attitude")%>'); setValue('__wf__willingly_resign','<%=md.getWFDataValue("__wf__willingly_resign")%>'); setValue('__wf__resignreason','<%=md.getWFDataValue("__wf__resignreason")%>'); setValue('__wf__resignreason_tdesc','<%=md.getWFDataValue("__wf__resignreason_tdesc")%>'); setValue('__wf__sup_resignreason','<%=md.getWFDataValue("__wf__sup_resignreason")%>'); setValue('__wf__sup_resignreason_tdesc','<%=md.getWFDataValue("__wf__sup_resignreason_tdesc")%>'); setValue('__wf__hr_resignreason','<%=md.getWFDataValue("__wf__hr_resignreason")%>'); setValue('__wf__hr_resignreason_tdesc','<%=md.getWFDataValue("__wf__hr_resignreason_tdesc")%>'); setValue('__wf__other_resignreason','<%=md.getWFDataValue("__wf__other_resignreason")%>'); setValue('__wf__strong_point','<%=md.getWFDataValue("__wf__strong_point")%>'); setValue('__wf__weak_point','<%=md.getWFDataValue("__wf__weak_point")%>'); setValue('__wf__tadjposition$status$1','<%=md.getWFDataValue("__wf__tadjposition$status$1")%>'); setValue('__wf__tadjposition$emp_type$1','<%=md.getWFDataValue("__wf__tadjposition$emp_type$1")%>'); setValue('__wf__tadjposition$branch$1','<%=md.getWFDataValue("__wf__tadjposition$branch$1")%>'); setValue('__wf__tadjposition$branch_no$1','<%=md.getWFDataValue("__wf__tadjposition$branch_no$1")%>'); setValue('__wf__tadjposition$job$1','<%=md.getWFDataValue("__wf__tadjposition$job$1")%>'); setValue('__wf__tadjposition$emp_position$1','<%=md.getWFDataValue("__wf__tadjposition$emp_position$1")%>'); setValue('__wf__tadjposition$bu1$1','<%=md.getWFDataValue("__wf__tadjposition$bu1$1")%>'); setValue('__wf__tadjposition$bu2$1','<%=md.getWFDataValue("__wf__tadjposition$bu2$1")%>'); setValue('__wf__tadjposition$bu3$1','<%=md.getWFDataValue("__wf__tadjposition$bu3$1")%>'); setValue('__wf__tadjposition$bu4$1','<%=md.getWFDataValue("__wf__tadjposition$bu4$1")%>'); setValue('__wf__tadjposition$bu5$1','<%=md.getWFDataValue("__wf__tadjposition$bu5$1")%>'); setValue('__wf__tadjposition$emp_group$1','<%=md.getWFDataValue("__wf__tadjposition$emp_group$1")%>'); setValue('__wf__tadjposition$costcenter$1','<%=md.getWFDataValue("__wf__tadjposition$costcenter$1")%>'); setValue('__wf__tadjposition$workarea$1','<%=md.getWFDataValue("__wf__tadjposition$workarea$1")%>'); setValue('__wf__tadjposition$time0$1','<%=md.getWFDataValue("__wf__tadjposition$time0$1")%>'); setValue('__wf__tadjposition$pl$1','<%=md.getWFDataValue("__wf__tadjposition$pl$1")%>'); setValue('__wf__tadjposition$salatype$1','<%=md.getWFDataValue("__wf__tadjposition$salatype$1")%>'); setValue('__wf__tadjposition$salary$1','<%=md.getWFDataValue("__wf__tadjposition$salary$1")%>'); setValue('__wf__tadjposition$currency$1','<%=md.getWFDataValue("__wf__tadjposition$currency$1")%>'); setValue('__wf__tadjposition$emp_every$1','<%=md.getWFDataValue("__wf__tadjposition$emp_every$1")%>'); setValue('__wf__tadjposition$old_status$1','<%=md.getWFDataValue("__wf__tadjposition$old_status$1")%>'); setValue('__wf__tadjposition$old_emp_type$1','<%=md.getWFDataValue("__wf__tadjposition$old_emp_type$1")%>'); setValue('__wf__tadjposition$old_branch$1','<%=md.getWFDataValue("__wf__tadjposition$old_branch$1")%>'); setValue('__wf__tadjposition$old_branch_no$1','<%=md.getWFDataValue("__wf__tadjposition$old_branch_no$1")%>'); setValue('__wf__tadjposition$old_job$1','<%=md.getWFDataValue("__wf__tadjposition$old_job$1")%>'); setValue('__wf__tadjposition$old_emp_position$1','<%=md.getWFDataValue("__wf__tadjposition$old_emp_position$1")%>'); setValue('__wf__tadjposition$old_bu1$1','<%=md.getWFDataValue("__wf__tadjposition$old_bu1$1")%>'); setValue('__wf__tadjposition$old_bu2$1','<%=md.getWFDataValue("__wf__tadjposition$old_bu2$1")%>'); setValue('__wf__tadjposition$old_bu3$1','<%=md.getWFDataValue("__wf__tadjposition$old_bu3$1")%>'); setValue('__wf__tadjposition$old_bu4$1','<%=md.getWFDataValue("__wf__tadjposition$old_bu4$1")%>'); setValue('__wf__tadjposition$old_bu5$1','<%=md.getWFDataValue("__wf__tadjposition$old_bu5$1")%>'); setValue('__wf__tadjposition$old_emp_group$1','<%=md.getWFDataValue("__wf__tadjposition$old_emp_group$1")%>'); setValue('__wf__tadjposition$old_costcenter$1','<%=md.getWFDataValue("__wf__tadjposition$old_costcenter$1")%>'); setValue('__wf__tadjposition$old_workarea$1','<%=md.getWFDataValue("__wf__tadjposition$old_workarea$1")%>'); setValue('__wf__tadjposition$old_time0$1','<%=md.getWFDataValue("__wf__tadjposition$old_time0$1")%>'); setValue('__wf__tadjposition$old_pl$1','<%=md.getWFDataValue("__wf__tadjposition$old_pl$1")%>'); setValue('__wf__tadjposition$old_salatype$1','<%=md.getWFDataValue("__wf__tadjposition$old_salatype$1")%>'); setValue('__wf__tadjposition$old_salary$1','<%=md.getWFDataValue("__wf__tadjposition$old_salary$1")%>'); setValue('__wf__tadjposition$old_currency$1','<%=md.getWFDataValue("__wf__tadjposition$old_currency$1")%>'); setValue('__wf__tadjposition$old_emp_every$1','<%=md.getWFDataValue("__wf__tadjposition$old_emp_every$1")%>'); setValue('__wf__line_no_resign','<%=md.getWFDataValue("__wf__line_no_resign")%>'); <% if(!md.isAdminEdit){ %> //setFieldLang(); setTimeout("setReadOnlyOn('__wf__employeeid');",1000); setDisabledOn('__wf__certificate'); setDisabledOn('__wf__chkT'); setDisabledOn('__wf__chkTnum'); setDisabledOn('__wf__chkE'); setDisabledOn('__wf__chkEnum'); setDisabledOn('__wf__doc'); setDisabledOn('__wf__description'); setDisabledOn('priority'); setReadOnlyOn('__remark'); setDisabledOn('reference_note'); setDisabledOn('attach_file'); <%}%> </script> <!-- End Set Value Step3 --> <% } %> <!-- End Set Value --> </div></td> <td valign="top" background="../IMAGES/MYNOTE/BPM_07.jpg"> </td> </tr> <tr> <td colspan="2" height="20" background="../IMAGES/MYNOTE/BPM_09.jpg"> </td> <td valign="top"></td> </tr> </table><%=screenSingle.endJSP()%> <!-- for takeover wf --> <% String docparam = ""; DbInquiry inqTake = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("transfer"); inqTake.setColumn("*"); inqTake.setFilter("status = '0' and wf_seq_no = '" + chkNull.chkNullString(request.getParameter("wf_seq_no"),"0") + "'"); inqTake.refresh(); while(inqTake.next()){ docparam = inqTake.getString("wf_id") + ":" + inqTake.getString("wf_ver") + ":" + inqTake.getString("wf_seq_no") + ":"; docparam += inqTake.getString("step_id") + ":" + inqTake.getString("step_seq_no") + ":" + inqTake.getString("transfer_id") + ":" ; docparam += inqTake.getString("transfer_code") ; } %> <INPUT TYPE="hidden" NAME="param_document" VALUE="<%=docparam%>"> <!-- end for takeover wf --> </form> </body> </div> </html> <% } %>