<%@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; chkChooseEmployeeID.value = "idsearch"; helpReturn="__wf__employeeid:EMPLOYEEID"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if( inputName == "__wf__tadjposition$adj_reason$1" ){ temp = __fixCon.value; helpReturn = "__wf__tadjposition$adj_reason$1:adjreasonid,__wf__tadjposition$status$1:status,__wf__MADJREASON_TDESC:edesc"; var adj_type = document.cscform.__wf__tadjposition$adj_type$1.value; var fixCon = ""; if( adj_type != ""){ fixCon = "adj_type='"+adj_type+"'"; } linkhelp_return_madjreason(helpName,helpReturn,fixCon); __fixCon.value=temp; }else if( inputName == "__wf__tadjposition$job$1" ) { helpReturn="__wf__tadjposition$job$1:jobcodeid,__wf__tadjposition$bu1$1:bu1,__wf__tadjposition$bu2$1:bu2,__wf__tadjposition$bu3$1:bu3,__wf__tadjposition$bu4$1:bu4,__wf__tadjposition$bu5$1:bu5,__wf__tadjposition$emp_position$1:jobcode_position,__wf__MJOBCODE_TDESC:mjobcode.edesc,__wf__MBU1_TDESC:mbu1.edesc,__wf__MBU2_TDESC:mbu2.edesc,__wf__MBU3_TDESC.mbu3.edesc,__wf__MBU4_TDESC.mbu4.edesc,__wf__MBU5_TDESC:mbu5.edesc,__wf__MPOSITION_TDESC:mposition.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$branch$1" ) { helpReturn="__wf__tadjposition$branch$1:branchid,__wf__MBRANCH_TDESC:mbranch.edesc"; linkHelp_Return(helpName,helpReturn); } else if(inputName=="__wf__tadjposition$branch_no$1" ) { helpReturn="__wf__tadjposition$branch_no$1:branch_no,__wf__MBRANCH_SOC_TAX_TDESC:mbranch_soc_tax.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$emp_position$1" ) { helpReturn="__wf__tadjposition$emp_position$1:positionid,__wf__MPOSITION_TDESC:mposition.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$bu1$1" ) { helpReturn="__wf__tadjposition$bu1$1:bu1id,__wf__MBU1_TDESC:mbu1.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$bu2$1" ) { helpReturn="__wf__tadjposition$bu2$1:bu2id,__wf__MBU2_TDESC:mbu2.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$bu3$1" ) { helpReturn="__wf__tadjposition$bu3$1:bu3id,__wf__MBU3_TDESC:mbu3.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$bu4$1" ) { helpReturn="__wf__tadjposition$bu4$1:bu4id,__wf__MBU4_TDESC:mbu4.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$bu5$1" ) { helpReturn="__wf__tadjposition$bu5$1:bu5id,__wf__MBU5_TDESC:mbu5.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$emp_group$1" ) { helpReturn="__wf__tadjposition$emp_group$1:groupid,__wf__MGROUP_TDESC:mgroup.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$costcenter$1" ) { helpReturn="__wf__tadjposition$costcenter$1:costcenterid,__wf__MCOSTCENTER0_TDESC:mcostcenter0.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$workarea$1" ) { helpReturn="__wf__tadjposition$workarea$1:workareaid,__wf__MWORKAREA_TDESC:mworkarea.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$salary$1" ) { helpReturn="__wf__tadjposition$salary$1:codeid,__wf__MSALATYPE0_TDESC:msalatype0.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$time0$1" ) { helpReturn="__wf__tadjposition$time0$1:time0id,__wf__MTIME0_TDESC:mtime0.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$salatype$1" ) { helpReturn="__wf__tadjposition$salatype$1:codeid,__wf__MSALATYPE0_TDESC:msalatype0.edesc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$pl$1" ) { helpReturn="__wf__tadjposition$pl$1:plid,__wf__MPERSONALLEVEL_TDESC:mpersonallevel.edesc,__wf__MPERSONALLEVEL_BAND:mpersonallevel.band,__wf__BANDTDESC:MPERSONALLEVEL.band|desc"; linkHelp_Return(helpName,helpReturn); } else if( inputName == "__wf__tadjposition$signby$1" ) { helpReturn="__wf__tadjposition$signby$1:employeeid,__wf__MEMPLOYEE@FULLNAME$1:memployee.fullname"; 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(chkRequire()&&chkBeforeDate()){ GoWF(); } } } function chkRequire(){ with( document.cscform ){ var msg = (getLang()=="tha")? "กรุณากรอกเหตุผลการเคลื่อนไหว.": "Please input movement reason." if(__wf__tadjposition$adj_reason$1.value === ""){ alert(msg); __wf__tadjposition$adj_reason$1.focus(); __wf__tadjposition$adj_reason$1.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(); if(chkChooseEmployeeID.value === "idsearch" ){ chkChooseEmployeeID.value = ""; GoGenerate(); } } } $(function(){ $("td.column-label").css("width","25%"); }); function chkBeforeDate(){ with(document.cscform){ if(__wf__tadjposition$adj_date$1.value=="50"){ var eff_date = new CscCalendar(__wf__tadjposition$eff_date$1.value); if(eff_date.beforeDate(new CscCalendar())){ alert("ไม่สามารถขอย้อนหลังได้ กรุณาเลือกวันที่เริ่มใช้ใหม่..!!"); __wf__tadjposition$eff_date$1.value = ""; return false; } } return true; } } function GoGenerate() { with(document.cscform) { if(__wf__employeeid.value!="") { __wf__generate.value="1"; submit(); } else { alert(MyCode[0]); __wf__employeeid.focus(); __wf__employeeid.select(); } } } function check_transfer(obj){ with(document.cscform){ var td_v1 = document.getElementById("v1"); var td_v2 = document.getElementById("v2"); var data = obj.value; if( data == 53){ td_v1.style.display = ""; td_v2.style.display = ""; } else{ td_v1.style.display = "none"; td_v2.style.display = "none"; } } if(data.value !== ""){ MovementTypeSetup.seach(obj.value, seachReturn); } refreshData(); } function seachReturn(data){ console.log("data ==> "+data); var dataarray = data.split(","); var mainname = "__wf__tadjposition$field$1"; var mainarray = ["emp_type","branch","branch_no","job", "emp_position","bu1","bu2","bu3","bu4","bu5","emp_group", "pl","costcenter","time0","workarea","salatype","salary", "contract_end","fixed_income_deduct"]; for(var imain=0; imain<mainarray.length ; imain++){ var chk = false; var classname = "."+mainarray[imain]; var attrname = mainname.replace("field", mainarray[imain]); for(var idata=0; idata<dataarray.length ; idata++){ if( mainarray[imain] === dataarray[idata] ){ chk = true; } } if(chk){ $(classname).attr('readonly', false).removeClass("disabled"); $('input[name="'+attrname+'"]').attr('readonly', false).removeClass("disabled"); $('select[name="'+attrname+'"]').attr('disabled', false).removeClass("disabled"); $('input[name="'+attrname+'"]').closest( "td" ).find("a").removeClass("disable-gohelp"); if(mainarray[imain] === "salary"){ $('select[name="__wf__tadjposition$currency$1"]').attr('disabled', false).removeClass("disabled"); $('select[name="__wf__tadjposition$emp_every$1"]').attr('disabled', false).removeClass("disabled"); } } else { $(classname).attr('readonly', true).addClass("disabled"); $('input[name="'+attrname+'"]').attr('readonly', true).addClass("disabled"); $('select[name="'+attrname+'"]').attr('disabled', true).addClass("disabled"); $('input[name="'+attrname+'"]').closest( "td" ).find("a").addClass("disable-gohelp"); if(mainarray[imain] === "salary"){ $('select[name="__wf__tadjposition$currency$1"]').attr('disabled', true).addClass("disabled"); $('select[name="__wf__tadjposition$emp_every$1"]').attr('disabled', true).addClass("disabled"); } } } } function refreshData(){ $('input[name="__wf__tadjposition$adj_reason$1"]').val(""); $('input[name="__wf__MADJREASON_TDESC"]').val(""); $('input[name="__wf__tadjposition$status$1"]').val($('input[name="original$status"]').val()); $('select[name="__wf__tadjposition$emp_type$1"]').val($('input[name="original$emp_type"]').val()).change(); $('input[name="__wf__tadjposition$branch$1"]').val($('input[name="original$branch"]').val()); $('input[name="__wf__MBRANCH_TDESC"]').val($('input[name="original$branch$tdesc"]').val()); $('input[name="__wf__tadjposition$branch_no$1"]').val($('input[name="original$branch_no"]').val()); $('input[name="__wf__MBRANCH_SOC_TAX_TDESC"]').val($('input[name="original$branch_no$tdesc"]').val()); $('input[name="__wf__tadjposition$job$1"]').val($('input[name="original$job"]').val()); $('input[name="__wf__MJOBCODE_TDESC"]').val($('input[name="original$job$tdesc"]').val()); $('input[name="__wf__tadjposition$emp_position$1"]').val($('input[name="original$emp_position"]').val()); $('input[name="__wf__MPOSITION_TDESC"]').val($('input[name="original$emp_position$tdesc"]').val()); $('input[name="__wf__tadjposition$bu1$1"]').val($('input[name="original$bu1"]').val()); $('input[name="__wf__MBU1_TDESC"]').val($('input[name="original$bu1$tdesc"]').val()); $('input[name="__wf__tadjposition$bu2$1"]').val($('input[name="original$bu2"]').val()); $('input[name="__wf__MBU2_TDESC"]').val($('input[name="original$bu2$tdesc"]').val()); $('input[name="__wf__tadjposition$bu3$1"]').val($('input[name="original$bu3"]').val()); $('input[name="__wf__MBU3_TDESC"]').val($('input[name="original$bu3$tdesc"]').val()); $('input[name="__wf__tadjposition$bu4$1"]').val($('input[name="original$bu4"]').val()); $('input[name="__wf__MBU4_TDESC"]').val($('input[name="original$bu4$tdesc"]').val()); $('input[name="__wf__tadjposition$bu5$1"]').val($('input[name="original$bu5"]').val()); $('input[name="__wf__MBU5_TDESC"]').val($('input[name="original$bu5$tdesc"]').val()); $('input[name="__wf__tadjposition$emp_group$1"]').val($('input[name="original$emp_group"]').val()); $('input[name="__wf__MGROUP_TDESC"]').val($('input[name="original$emp_group$tdesc"]').val()); $('input[name="__wf__tadjposition$pl$1"]').val($('input[name="original$pl"]').val()); $('input[name="__wf__MPERSONALLEVEL_TDESC"]').val($('input[name="original$pl$tdesc"]').val()); $('input[name="__wf__MPERSONALLEVEL_BAND"]').val($('input[name="original$band"]').val()); $('input[name="__wf__BANDTDESC"]').val($('input[name="original$band$tdesc"]').val()); $('input[name="__wf__tadjposition$costcenter$1"]').val($('input[name="original$costcenter"]').val()); $('input[name="__wf__MCOSTCENTER0_TDESC"]').val($('input[name="original$costcenter$tdesc"]').val()); $('input[name="__wf__tadjposition$time0$1"]').val($('input[name="original$time0"]').val()); $('input[name="__wf__MTIME0_TDESC"]').val($('input[name="original$time0$tdesc"]').val()); $('input[name="__wf__tadjposition$workarea$1"]').val($('input[name="original$workarea"]').val()); $('input[name="__wf__MWORKAREA_TDESC"]').val($('input[name="original$workarea$tdesc"]').val()); $('input[name="__wf__tadjposition$salatype$1"]').val($('input[name="original$salatype"]').val()); $('input[name="__wf__MSALATYPE0_TDESC"]').val($('input[name="original$salatype$tdesc"]').val()); $('input[name="__wf__tadjposition$salary$1"]').val($('input[name="original$salary"]').val()); $('select[name="__wf__tadjposition$currency$1"]').val($('input[name="original$salary$currency"]').val()).change(); $('select[name="__wf__tadjposition$emp_every$1"]').val($('input[name="original$salary$emp_every"]').val()).change(); $('input[name="__wf__tadjposition$contract_end$1"]').val($('input[name="original$contract_end"]').val()); $('.fixed_income_deduct').each(function() { var thisname = $(this).attr('name'); var mainname = thisname.replace("EMP_DATA_NEW","ORIGINAL"); $(this).val($('input[name="'+mainname+'"]').val()); }); } function setfixincomedeductdate(nameobj,dataobj){ console.log("nameobj ==> "+nameobj+"\ndataobj ==> "+dataobj.value); var classname = '.'+nameobj; $(classname).val(dataobj.value); } $(document).ready(function(){ var value = $('select[name="__wf__tadjposition$adj_type$1"]').val(); seachReturn(""); }); </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="PWF015.jsp"> <input type="hidden" name="__screen" value="PWF015"> <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="2115"> <input type="hidden" name="__wf_id" value="2115"> <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__tadjposition$signby$1" VALUE="NONE"> <INPUT TYPE="hidden" NAME="__wf__tadjposition$line_no$1" VALUE="1"> <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("2115","1")%> <%=md.getHeadDocument()%> <br> <%=md.getHelpDocument2("WF2115")%> <br> <%=md.getSendToDocumentNoSearch("WF2115")%> <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 Code')</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="7" type="text" name="__wf__ext" value="<%= chkNull.chkNullString(request.getParameter("__wf__ext"),"") %>" class="disabled" readonly></td> </tr> <tr> <td class="column-label"><script language="javascript">swapLang("Movement Type");</script> *</td> <td class="column-input"> <% ListBox listboxMovementType = new ListBox(); listboxMovementType.setUProfile(screenSingle.getUProfile()); listboxMovementType.setName("wf__tadjposition$adj_type$1"); //ชื่อ ListBox listboxMovementType.setValidCode("ADJ_TYPE_WF"); //tag Systemcode ที่เรียกใช้ listboxMovementType.setonChange("check_transfer(this);"); if(md.isStep1){ listboxMovementType.setDisable("false"); } else { listboxMovementType.setDisable("true"); listboxMovementType.setCSS("disabled"); } listboxMovementType.setChecked(chkNull.chkNullString(request.getParameter("__wf__tadjposition$adj_type$1"))); out.println(listboxMovementType.process()); %> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Movement reason");</script> *</td> <td width="75%" class="column-data"> <INPUT NAME="__wf__tadjposition$adj_reason$1" TYPE="text" VALUE="" SIZE="15" <%if(!md.isStep1){%>readonly="true" class="disabled"<%}%>> <%if(md.isStep1){%> <A HREF="javascript:goHelp('MADJREASONHELP','__wf__tadjposition$adj_reason$1');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('__wf__tadjposition$adj_reason$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"> <IMG SRC="../IMAGES/BUTTON/MAIN/SEARCH20.gif" ALT="SEARCH" NAME="__wf__tadjposition$adj_reason$1_image" WIDTH="20" HEIGHT="20" BORDER="0" ALIGN="absmiddle"></A> <%}%> <INPUT NAME="__wf__MADJREASON_TDESC" TYPE="text" SIZE="40" VALUE="" class="disabled" readonly> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Issued Date");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$adj_date$1" onkeypress="chkIntegerOfDate(this.value,event);" onkeyup="sysIsEdit();formatDate(this);" onblur="chkInputDate(this);setfixincomedeductdate('adj_date',this);" onfocus="this.select();" type="text" size="10" maxlength="10" value="<%=calendar.getDDMMYYYY()%>" <%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__tadjposition$adj_date$1')" alt="Calendar" src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" border="0"> </a> <%}%> <table cellpadding="0" cellspacing="0"> <tr> <td width ="150"></td> <td width ="100" class="column-label" id="v1" style="display: none;"><script language="javascript">swapLang("Employee Original ID");</script> </td> <td class="column-data" id="v2" style="display: none;"><input name="__wf__tadjposition$employeeoriginalid$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="Text" size="15" maxlength="15" alt="Employee Original ID" value="" onmousemver="toolTip('Employee Original ID')"></td> </tr> </table> </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__tadjposition$eff_date$1" onkeypress="chkIntegerOfDate(this.value,event);" onkeyup="sysIsEdit();formatDate(this);" onblur="chkInputDate(this);setfixincomedeductdate('adj_date',this);" onfocus="this.select();" type="text" size="10" maxlength="10" value="<%=calendar.getDDMMYYYY()%>" <%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__tadjposition$eff_date$1')" alt="Calendar" src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" border="0"> </a> <%}%> </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"); 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(); %> <tr> <td colspan="2" class="column-title"><script language="javascript">swapLang("New job description");</script></td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Employee Type");</script></td> <td width="75%" class="column-data"> <% ListBox listboxEmployeeType = new ListBox(); listboxEmployeeType.setUProfile(screenSingle.getUProfile()); listboxEmployeeType.setName("wf__tadjposition$emp_type$1"); //ชื่อ ListBox listboxEmployeeType.setValidCode("EMPTYPE"); //tag Systemcode ที่เรียกใช้ listboxEmployeeType.setDisable("false"); listboxMovementType.setChecked(chkNull.chkNullString(request.getParameter("__wf__tadjposition$emp_type$1"),inqEmpDetail.getString("emp_type"))); out.println(listboxEmployeeType.process()); %> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Company Branch");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$branch$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="5" readonly="readonly" alt="Company Branch" value="<%=inqEmpDetail.getString("branch")%>" onmousemver="toolTip('Company Branch')"> <a onmouseover="MM_swapImage('__wf__tadjposition$branch$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MBRANCHHELP','__wf__tadjposition$branch$1');"><img name="__wf__tadjposition$branch$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MBRANCH_TDESC" class="disabled" readonly type="text" SIZE="37" VALUE="<%=inqEmpDetail.getString("mbranch","tdesc")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Branch Social Security");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$branch_no$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="5" readonly="readonly" alt="Branch Social Security" value="<%=inqEmpDetail.getString("branch_no")%>" onmousemver="toolTip('Branch Social Security')"> <a onmouseover="MM_swapImage('__wf__tadjposition$branch_no$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MBRANCH_SOC_TAXHELP','__wf__tadjposition$branch_no$1');"><img name="__wf__tadjposition$branch_no$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MBRANCH_SOC_TAX_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MBRANCH_SOC_TAX","tdesc")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Job Title");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$job$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Job Title" value="<%=inqEmpDetail.getString("job")%>" onmousemver="toolTip('Job Title')"> <a onmouseover="MM_swapImage('__wf__tadjposition$job$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MJOBCODEHELP','__wf__tadjposition$job$1');"><img name="__wf__tadjposition$job$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MJOBCODE_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MJOBCODE","tdesc")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Position");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$emp_position$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Position" value="<%=inqEmpDetail.getString("emp_position")%>" onmousemver="toolTip('Position')"> <a onmouseover="MM_swapImage('__wf__tadjposition$emp_position$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MPOSITIONHELP','__wf__tadjposition$emp_position$1');"><img name="__wf__tadjposition$emp_position$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MPOSITION_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MPOSITION","TDESC")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Business Unit 1");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$bu1$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Business Unit 1" value="<%=inqEmpDetail.getString("bu1")%>" onmousemver="toolTip('Business Unit 1')"> <a onmouseover="MM_swapImage('__wf__tadjposition$bu1$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MBU1HELP','__wf__tadjposition$bu1$1');"><img name="__wf__tadjposition$bu1$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MBU1_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("mbu1","tdesc")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Business Unit 2");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$bu2$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Business Unit 2" value="<%=inqEmpDetail.getString("bu2")%>" onmousemver="toolTip('Business Unit 2')"> <a onmouseover="MM_swapImage('__wf__tadjposition$bu2$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MBU2HELP','__wf__tadjposition$bu2$1');"><img name="__wf__tadjposition$bu2$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MBU2_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MBU2","TDESC")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Business Unit 3");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$bu3$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Business Unit 3" value="<%=inqEmpDetail.getString("bu3")%>" onmousemver="toolTip('Business Unit 3')"> <a onmouseover="MM_swapImage('__wf__tadjposition$bu3$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MBU3HELP','__wf__tadjposition$bu3$1');"><img name="__wf__tadjposition$bu3$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MBU3_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MBU3","TDESC")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Business Unit 4");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$bu4$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Business Unit 4" value="<%=inqEmpDetail.getString("bu4")%>" onmousemver="toolTip('Business Unit 4')"> <a onmouseover="MM_swapImage('__wf__tadjposition$bu4$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MBU4HELP','__wf__tadjposition$bu4$1');"><img name="__wf__tadjposition$bu4$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MBU4_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MBU4","TDESC")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Business Unit 5");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$bu5$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Business Unit 5" value="<%=inqEmpDetail.getString("bu5")%>" onmousemver="toolTip('Business Unit 5')"> <a onmouseover="MM_swapImage('__wf__tadjposition$bu5$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MBU5HELP','__wf__tadjposition$bu5$1');"><img name="__wf__tadjposition$bu5$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MBU5_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MBU5","TDESC")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Employee Group");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$emp_group$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Employee Group" value="<%=inqEmpDetail.getString("emp_group")%>" onmousemver="toolTip('Employee Group')"> <a onmouseover="MM_swapImage('__wf__tadjposition$emp_group$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MGROUPHELP','__wf__tadjposition$emp_group$1');"><img name="__wf__tadjposition$emp_group$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MGROUP_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MGROUP","TDESC")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("PL ID");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$pl$1" type="text" size="15" maxlength="10" readonly="readonly" value="<%=inqEmpDetail.getString("pl")%>"> <a onmouseover="MM_swapImage('__wf__tadjposition$pl$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MPERSONALLEVELHELP','__wf__tadjposition$pl$1');"><img name="__wf__tadjposition$pl$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="http://localhost:8082/hr/IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MPERSONALLEVEL_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MPERSONALLEVEL","TDESC")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Band");</script></td> <td width="75%" class="column-data"> <input name="__wf__MPERSONALLEVEL_BAND" type="text" size="15" class="disabled" readonly value="<%=inqEmpDetail.getString("MPERSONALLEVEL","BAND")%>"> <input name="__wf__BANDTDESC" class="disabled" readonly type="text" size="37" value="<%=new ReportUDF().getSystemCode("BAND", inqCompanyid, inqEmpDetail.getString("MPERSONALLEVEL","BAND"))%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Cost Center");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$costcenter$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Cost Center" value="<%=inqEmpDetail.getString("costcenter")%>" onmousemver="toolTip('Cost Center')"> <a onmouseover="MM_swapImage('__wf__tadjposition$costcenter$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MCOSTCENTER0HELP','__wf__tadjposition$costcenter$1');"><img name="__wf__tadjposition$costcenter$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MCOSTCENTER0_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MCOSTCENTER0","TDESC")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Time Work");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$time0$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Time Work" value="<%=inqEmpDetail.getString("time0")%>" onmousemver="toolTip('Time Work')"> <a onmouseover="MM_swapImage('__wf__tadjposition$time0$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MTIME0HELP','__wf__tadjposition$time0$1');"><img name="__wf__tadjposition$time0$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MTIME0_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MTIME0","TDESC")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Working Area");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$workarea$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="text" size="15" maxlength="15" readonly="readonly" alt="Working Area" value="<%=inqEmpDetail.getString("workarea")%>" onmousemver="toolTip('Working Area')"> <a onmouseover="MM_swapImage('__wf__tadjposition$workarea$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MWORKAREAHELP','__wf__tadjposition$workarea$1');"><img name="__wf__tadjposition$workarea$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MWORKAREA_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MWORKAREA","TDESC")%>"> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Salary Type");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$salatype$1" onmouseout="toolTip()" onkeyup="sysIsEdit();" onkeypress="chkSpecialStr(event);" onfocus="this.select();" onblur="trimValue(this);" type="Text" size="15" maxlength="5" readonly="readonly" alt="Salary Type" value="<%=inqEmpDetail.getString("salatype")%>" onmousemver="toolTip('Salary Type')"> <a onmouseover="MM_swapImage('__wf__tadjposition$salatype$1_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)" onmouseout="MM_swapImgRestore()" href="javascript:goHelp('MSALATYPE0HELP','__wf__tadjposition$salatype$1');"><img name="__wf__tadjposition$salatype$1_image" width="20" height="20" align="absmiddle" alt="SEARCH" src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a> <input name="__wf__MSALATYPE0_TDESC" class="disabled" readonly type="text" size="37" value="<%=inqEmpDetail.getString("MSALATYPE0","TDESC")%>"> </td> </tr> <% DbRecord dbsalary = new InitialRecord(screenSingle.getUProfile()).getDbRecord("memployee"); dbsalary.setColumn("*"); dbsalary.set("employeeid", inqEmployeeid); dbsalary.set("companyid", inqCompanyid); dbsalary.search(); %> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Salary");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$salary$1" onmouseout="toolTip()" onkeyup="sysIsEdit();checkComma(this,2);" onkeypress="chkSpecialStr(event);checkWordNumber(this.value,event);" onfocus="callDelComma(this);" onblur="trimValue(this);checkNumFloat(this,0.0,900000000);" type="text" size="15" maxlength="25" readonly="readonly" alt="Salary" value="<%=dbsalary.getString("salary")%>" onmousemver="toolTip('Salary')"> <% ListBox listboxCurrency = new ListBox(); listboxCurrency.setUProfile(screenSingle.getUProfile()); listboxCurrency.setTable("MCURRENCYHELP","CURRENCYID","TDESC","","CURRENCYID",""); listboxCurrency.setSizel("1"); listboxCurrency.setName("wf__tadjposition$currency$1"); //ชื่อ ListBox listboxCurrency.ini(); listboxCurrency.setChecked(inqEmpDetail.getString("currency")); out.println(listboxCurrency.process()); %> <script language="javascript">swapLang("per");</script> <% ListBox listboxEmployeeEvery = new ListBox(); listboxEmployeeEvery.setUProfile(screenSingle.getUProfile()); listboxEmployeeEvery.setName("wf__tadjposition$emp_every$1"); //ชื่อ ListBox listboxEmployeeEvery.setValidCode("HIRE_TYPE"); //tag Systemcode ที่เรียกใช้ listboxEmployeeEvery.setChecked(inqEmpDetail.getString("emp_every")); out.println(listboxEmployeeEvery.process()); %> </td> </tr> <% 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 width="25%" class="column-label"><script language="javascript">swapLang("Contract End");</script></td> <td width="75%" class="column-data"> <input name="__wf__tadjposition$contract_end$1" onkeypress="chkIntegerOfDate(this.value,event);" onkeyup="sysIsEdit();formatDate(this);" onblur="chkInputDate(this);" onfocus="this.select();" type="text" size="10" maxlength="10" readonly="readonly" alt="Contract End" value="<%=contract_end_value%>"> <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__tadjposition$contract_end$1')" alt="Calendar" src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" border="0"> </a> </td> </tr> <tr> <td width="25%" class="column-label"><script language="javascript">swapLang("Remark for Movement Staff");</script></td> <td width="75%" class="column-data"> <textarea name="__wf__tadjposition$remarks$1" onmouseover="toolTip('Remark')" onmouseout="toolTip()" onkeyup="chkLimitTextArea(this,250);sysIsEdit();" onkeypress="chkSpecialStr(event);" onclick="" onfocus="" onblur="trimValue(this);" onchange="" rows="4" cols="50" wrap="" alt="Remark" <%if(!md.isStep1){%>readonly="true" class="disabled"<%}%>></textarea> </td> </tr> <%=md.getWF_Remark("2115",screenSingle.getUProfile().get("companyid"))%> <tr> <td colspan="2"> <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="<%=resigndate%>"> </td> </tr> <tr> <td colspan="2"> <input type="hidden" name="__wf__tadjposition$status$1" value="<%=inqEmpDetail.getString("status")%>"/> <input type="hidden" name="original$status" value="<%=inqEmpDetail.getString("status")%>"/> <input type="hidden" name="original$emp_type" value="<%=inqEmpDetail.getString("emp_type")%>"/> <input type="hidden" name="original$branch" value="<%=inqEmpDetail.getString("branch")%>"/> <input type="hidden" name="original$branch$tdesc" value="<%=inqEmpDetail.getString("mbranch","tdesc")%>"/> <input type="hidden" name="original$branch_no" value="<%=inqEmpDetail.getString("branch_no")%>"/> <input type="hidden" name="original$branch_no$tdesc" value="<%=inqEmpDetail.getString("mbranch_soc_tax","tdesc")%>"/> <input type="hidden" name="original$job" value="<%=inqEmpDetail.getString("job")%>"/> <input type="hidden" name="original$job$tdesc" value="<%=inqEmpDetail.getString("mjobcode","tdesc")%>"/> <input type="hidden" name="original$emp_position" value="<%=inqEmpDetail.getString("emp_position")%>"/> <input type="hidden" name="original$emp_position$tdesc" value="<%=inqEmpDetail.getString("mposition","tdesc")%>"/> <input type="hidden" name="original$bu1" value="<%=inqEmpDetail.getString("bu1")%>"/> <input type="hidden" name="original$bu1$tdesc" value="<%=inqEmpDetail.getString("mbu1","tdesc")%>"/> <input type="hidden" name="original$bu2" value="<%=inqEmpDetail.getString("bu2")%>"/> <input type="hidden" name="original$bu2$tdesc" value="<%=inqEmpDetail.getString("mbu2","tdesc")%>"/> <input type="hidden" name="original$bu3" value="<%=inqEmpDetail.getString("bu3")%>"/> <input type="hidden" name="original$bu3$tdesc" value="<%=inqEmpDetail.getString("mbu3","tdesc")%>"/> <input type="hidden" name="original$bu4" value="<%=inqEmpDetail.getString("bu4")%>"/> <input type="hidden" name="original$bu4$tdesc" value="<%=inqEmpDetail.getString("mbu4","tdesc")%>"/> <input type="hidden" name="original$bu5" value="<%=inqEmpDetail.getString("bu5")%>"/> <input type="hidden" name="original$bu5$tdesc" value="<%=inqEmpDetail.getString("mbu5","tdesc")%>"/> <input type="hidden" name="original$emp_group" value="<%=inqEmpDetail.getString("emp_group")%>"/> <input type="hidden" name="original$emp_group$tdesc" value="<%=inqEmpDetail.getString("mgroup","tdesc")%>"/> <input type="hidden" name="original$pl" value="<%=inqEmpDetail.getString("pl")%>"/> <input type="hidden" name="original$pl$tdesc" value="<%=inqEmpDetail.getString("MPERSONALLEVEL","tdesc")%>"/> <input type="hidden" name="original$band" value="<%=inqEmpDetail.getString("MPERSONALLEVEL","band")%>"/> <input type="hidden" name="original$band$tdesc" value="<%=new ReportUDF().getSystemCode("BAND", inqCompanyid, inqEmpDetail.getString("MPERSONALLEVEL","BAND"))%>"/> <input type="hidden" name="original$costcenter" value="<%=inqEmpDetail.getString("costcenter")%>"/> <input type="hidden" name="original$costcenter$tdesc" value="<%=inqEmpDetail.getString("mcostcenter0","tdesc")%>"/> <input type="hidden" name="original$time0" value="<%=inqEmpDetail.getString("time0")%>"/> <input type="hidden" name="original$time0$tdesc" value="<%=inqEmpDetail.getString("mtime0","tdesc")%>"/> <input type="hidden" name="original$workarea" value="<%=inqEmpDetail.getString("workarea")%>"/> <input type="hidden" name="original$workarea$tdesc" value="<%=inqEmpDetail.getString("mworkarea","tdesc")%>"/> <input type="hidden" name="original$salatype" value="<%=inqEmpDetail.getString("salatype")%>"/> <input type="hidden" name="original$salatype$tdesc" value="<%=inqEmpDetail.getString("msalatype0","tdesc")%>"/> <input type="hidden" name="original$salary" value="<%=dbsalary.getString("salary")%>"/> <input type="hidden" name="original$salary$currency" value="<%=inqEmpDetail.getString("currency")%>"/> <input type="hidden" name="original$salary$emp_every" value="<%=inqEmpDetail.getString("emp_every")%>"/> <input type="hidden" name="original$contract_end" value="<%=resigndate%>"/> <% inqEmpDetail.closeConnection(); %> </td> </tr> <TR> <TD COLSPAN="2" CLASS="column-title"><SCRIPT LANGUAGE="javascript">swapLang('New Fixed Income and Fixed Deduction');</SCRIPT></TD> </TR> <tr> <td COLSPAN="2" width="100%" cellpadding="0" cellspacing="0"> <br><div align="center"><table border="1" cellpadding="2" cellspacing="2" width="90%" bordercolor="#FFFFFF"> <tr> <td width="20%" align="center" CLASS="column-title"><script language="javascript">swapLang('Code');</script></td> <td width="50%" align="center" CLASS="column-title"><script language="javascript">swapLang('Description');</script></td> <td width="30%" align="center" CLASS="column-title"><script language="javascript">swapLang('Amount');</script></td> </tr> <% String employeeid = chkNull.chkNullString(request.getParameter("__wf__employeeid"),""); String linekey = "0"; String value = ""; String typeTab = ""; String minorkey = ""; DbInquiry di = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("Mfixtab"); di.setColumn("fixtabid, edesc, tdesc, fixtab_type, fixtab_index, maxlength, isincome"); di.setOrderBy("isincome,fixtabid ASC"); di.refresh(); while(di.next()){ di.referLangOn(); int run_linekey = 1+Integer.valueOf(linekey); linekey = String.valueOf(run_linekey); minorkey = di.getString("fixtabid"); String emp_data = "0.00"; DbInquiry dbinq = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mempl_fix_temp"); dbinq.setColumn("emp_data_new"); dbinq.setFilter("employeeid = '"+employeeid+"' and fixtabid = '"+minorkey+"' and emp_data_new != ''"); dbinq.refresh(); if(dbinq.recCount() > 0){ dbinq.next(); emp_data = dbinq.getString("emp_data_new"); } else { DbInquiry dbinq2 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("mempl_fix"); dbinq2.setColumn("emp_data"); dbinq2.setFilter("employeeid = '"+employeeid+"' and fixtabid = '"+minorkey+"'"); dbinq2.refresh(); if(dbinq2.recCount() > 0){ dbinq2.next(); emp_data = dbinq2.getString("emp_data"); } dbinq2.closeConnection(); } dbinq.closeConnection(); value = emp_data; value = value.replace(",",""); typeTab = chkNull.chkNullString( di.getString("isincome"),"0"); %> <tr> <%if(typeTab.equals("0")){%> <td class="column-data"><div align="center"><%=di.getString("fixtabid")%></div></td> <td class="column-data"><div align="left"> <%=di.getString("tdesc")%></div></td> <td class="column-data"><div align="center"> <%}else {%> <td class="column-data"><div align="center" style="color:#F00;"><%=di.getString("fixtabid")%></div></td> <td class="column-data"><div align="left" style="color:#F00;"> <%=di.getString("tdesc")%></div></td> <td class="column-data"><div align="center"> <% } if(di.getString("fixtab_type").equals("1")) { %> <INPUT class="fixed_income_deduct" TYPE='text' Name='__wf__mempl_fix_temp$emp_data_new$<%=linekey%>' SIZE='15' MAXLENGTH='<%=di.getString("maxlength")%>' VALUE='<%=value%>' onMouseOver="toolTip('<%=di.getString("tdesc")%>')" onChange="sysIsEdit();" onMouseOut="toolTip()" onKeyPress="checkWordNumber(this.value);" onKeyUp="checkComma(this,2);" dir="" onBlur="checkNumFloat(this,0.00,10000000);" onFocus="callDelComma(this);" class="numeric"> <input type="hidden" name='__wf__mempl_fix_temp$emp_data_current$<%=linekey%>' value="<%=emp_data%>"/> <input type="hidden" name='__wf__mempl_fix_temp$fixtabid$<%=linekey%>' value="<%=minorkey%>"/> <input class="adj_date" type="hidden" name='__wf__mempl_fix_temp$adj_date$<%=linekey%>' value="<%=calendar.getDDMMYYYY()%>"/> <input class="eff_date" type="hidden" name='__wf__mempl_fix_temp$eff_date$<%=linekey%>' value="<%=calendar.getDDMMYYYY()%>"/> <% } else if(di.getString("fixtab_type").equals("2")) { %> <INPUT class="fixed_income_deduct" TYPE='text' Name='__wf__mempl_fix_temp$emp_data_new$<%=linekey%>' SIZE='15' MAXLENGTH='<%=di.getString("maxlength")%>' VALUE='<%=value%>' onMouseOver="toolTip('<%=di.getString("tdesc")%>')" onClick="" onChange="sysIsEdit();" onMouseOut="toolTip()" onKeyPress="chkSpecialStr();" onKeyUp="" dir="" onBlur="trimValue(this);" onFocus="this.select();" class=""> <input type="hidden" name='__wf__mempl_fix_temp$emp_data_current$<%=linekey%>' value="<%=emp_data%>"/> <input type="hidden" name='__wf__mempl_fix_temp$fixtabid$<%=linekey%>' value="<%=minorkey%>"/> <input class="adj_date" type="hidden" name='__wf__mempl_fix_temp$adj_date$<%=linekey%>' value="<%=calendar.getDDMMYYYY()%>"/> <input class="eff_date" type="hidden" name='__wf__mempl_fix_temp$eff_date$<%=linekey%>' value="<%=calendar.getDDMMYYYY()%>"/> <% }else if(di.getString("fixtab_type").equals("3")){ %> <INPUT class="fixed_income_deduct" TYPE='text' Name='__wf__mempl_fix_temp$emp_data_new$<%=linekey%>' SIZE='15' MAXLENGTH='<%=di.getString("maxlength")%>' VALUE='<%=value%>' onMouseOver="toolTip('<%=di.getString("tdesc")%>')" onChange="sysIsEdit();" onMouseOut="toolTip()" onKeyPress="chkInteger();" onKeyUp="" dir="" onBlur="checkNumFloat(this,0.00,10000000);" onFocus="callDelComma(this);" class="numeric"> <input type="hidden" name='__wf__mempl_fix_temp$emp_data_current$<%=linekey%>' value="<%=emp_data%>"/> <input type="hidden" name='__wf__mempl_fix_temp$fixtabid$<%=linekey%>' value="<%=minorkey%>"/> <input class="adj_date" type="hidden" name='__wf__mempl_fix_temp$adj_date$<%=linekey%>' value="<%=calendar.getDDMMYYYY()%>"/> <input class="eff_date" type="hidden" name='__wf__mempl_fix_temp$eff_date$<%=linekey%>' value="<%=calendar.getDDMMYYYY()%>"/> <% }else if(di.getString("fixtab_type").equals("5")){ %> <INPUT class="fixed_income_deduct" TYPE="text" Name="__wf__mempl_fix_temp$emp_data_new$<%=linekey%>" SIZE="10" MAXLENGTH='10' VALUE="<%=value%>" onChange="sysIsEdit();" onMouseOver="toolTip('<%=di.getString("tdesc")%>')" onMouseOut="toolTip()" onKeyPress="chkIntegerOfDate(this.value);" onKeyUp="formatDate(this);" onBlur="chkInputDate(this);" onFocus="this.select();" > <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('effolname','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" onClick="viewCal('__wf__mempl_fix_temp$emp_data_new$<%=linekey%>');"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="__wf__mempl_fix_temp$emp_data_new$<%=linekey%>" width="20" height="20" border="0" align="absmiddle"></a> <input type="hidden" name='__wf__mempl_fix_temp$emp_data_current$<%=linekey%>' value="<%=emp_data%>"/> <input type="hidden" name='__wf__mempl_fix_temp$fixtabid$<%=linekey%>' value="<%=minorkey%>"/> <input class="adj_date" type="hidden" name='__wf__mempl_fix_temp$adj_date$<%=linekey%>' value="<%=calendar.getDDMMYYYY()%>"/> <input class="eff_date" type="hidden" name='__wf__mempl_fix_temp$eff_date$<%=linekey%>' value="<%=calendar.getDDMMYYYY()%>"/> <% } %> </div></td> </tr> <% } di.closeConnection(); %> </table></div><br> </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('__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__tadjposition$adj_type$1','<%=md.getWFDataValue("__wf__tadjposition$adj_type$1")%>'); setValue('__wf__tadjposition$adj_reason$1','<%=md.getWFDataValue("__wf__tadjposition$adj_reason$1")%>'); setValue('__wf__MADJREASON_TDESC','<%=md.getWFDataValue("__wf__MADJREASON_TDESC")%>'); setValue('__wf__tadjposition$adj_date$1','<%=md.getWFDataValue("__wf__tadjposition$adj_date$1")%>'); setValue('__wf__tadjposition$eff_date$1','<%=md.getWFDataValue("__wf__tadjposition$eff_date$1")%>'); 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__MBRANCH_TDESC','<%=md.getWFDataValue("__wf__MBRANCH_TDESC")%>'); setValue('__wf__tadjposition$branch_no$1','<%=md.getWFDataValue("__wf__tadjposition$branch_no$1")%>'); setValue('__wf__MBRANCH_SOC_TAX_TDESC','<%=md.getWFDataValue("__wf__MBRANCH_SOC_TAX_TDESC")%>'); setValue('__wf__tadjposition$job$1','<%=md.getWFDataValue("__wf__tadjposition$job$1")%>'); setValue('__wf__MJOBCODE_TDESC','<%=md.getWFDataValue("__wf__MJOBCODE_TDESC")%>'); setValue('__wf__tadjposition$emp_position$1','<%=md.getWFDataValue("__wf__tadjposition$emp_position$1")%>'); setValue('__wf__MPOSITION_TDESC','<%=md.getWFDataValue("__wf__MPOSITION_TDESC")%>'); setValue('__wf__tadjposition$bu1$1','<%=md.getWFDataValue("__wf__tadjposition$bu1$1")%>'); setValue('__wf__MBU1_TDESC','<%=md.getWFDataValue("__wf__MBU1_TDESC")%>'); setValue('__wf__tadjposition$bu2$1','<%=md.getWFDataValue("__wf__tadjposition$bu2$1")%>'); setValue('__wf__MBU2_TDESC','<%=md.getWFDataValue("__wf__MBU2_TDESC")%>'); setValue('__wf__tadjposition$bu3$1','<%=md.getWFDataValue("__wf__tadjposition$bu3$1")%>'); setValue('__wf__MBU3_TDESC','<%=md.getWFDataValue("__wf__MBU3_TDESC")%>'); setValue('__wf__tadjposition$bu4$1','<%=md.getWFDataValue("__wf__tadjposition$bu4$1")%>'); setValue('__wf__MBU4_TDESC','<%=md.getWFDataValue("__wf__MBU4_TDESC")%>'); setValue('__wf__tadjposition$bu5$1','<%=md.getWFDataValue("__wf__tadjposition$bu5$1")%>'); setValue('__wf__MBU5_TDESC','<%=md.getWFDataValue("__wf__MBU5_TDESC")%>'); setValue('__wf__tadjposition$emp_group$1','<%=md.getWFDataValue("__wf__tadjposition$emp_group$1")%>'); setValue('__wf__MGROUP_TDESC','<%=md.getWFDataValue("__wf__MGROUP_TDESC")%>'); setValue('__wf__tadjposition$pl$1','<%=md.getWFDataValue("__wf__tadjposition$pl$1")%>'); setValue('__wf__MPERSONALLEVEL_TDESC','<%=md.getWFDataValue("__wf__MPERSONALLEVEL_TDESC")%>'); setValue('__wf__MPERSONALLEVEL_BAND','<%=md.getWFDataValue("__wf__MPERSONALLEVEL_BAND")%>'); setValue('__wf__BANDTDESC','<%=md.getWFDataValue("__wf__BANDTDESC")%>'); setValue('__wf__tadjposition$costcenter$1','<%=md.getWFDataValue("__wf__tadjposition$costcenter$1")%>'); setValue('__wf__MCOSTCENTER0_TDESC','<%=md.getWFDataValue("__wf__MCOSTCENTER0_TDESC")%>'); setValue('__wf__tadjposition$time0$1','<%=md.getWFDataValue("__wf__tadjposition$time0$1")%>'); setValue('__wf__MTIME0_TDESC','<%=md.getWFDataValue("__wf__MTIME0_TDESC")%>'); setValue('__wf__tadjposition$workarea$1','<%=md.getWFDataValue("__wf__tadjposition$workarea$1")%>'); setValue('__wf__MWORKAREA_TDESC','<%=md.getWFDataValue("__wf__MWORKAREA_TDESC")%>'); setValue('__wf__tadjposition$salatype$1','<%=md.getWFDataValue("__wf__tadjposition$salatype$1")%>'); setValue('__wf__MSALATYPE0_TDESC','<%=md.getWFDataValue("__wf__MSALATYPE0_TDESC")%>'); 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$contract_end$1','<%=md.getWFDataValue("__wf__tadjposition$contract_end$1")%>'); setValue('__wf__tadjposition$remarks$1','<%=md.getWFDataValue("__wf__tadjposition$remarks$1")%>'); <% int linekey2 = 1; DbInquiry inqfixtab2 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("Mfixtab"); inqfixtab2.setColumn("fixtabid"); inqfixtab2.setOrderBy("isincome,fixtabid ASC"); inqfixtab2.refresh(); while(inqfixtab2.next()){ String inqfixtab2key = String.valueOf(linekey2); %> setValue('__wf__mempl_fix_temp$emp_data_current$<%=inqfixtab2key%>','<%=md.getWFDataValue("__wf__mempl_fix_temp$emp_data_current$"+inqfixtab2key)%>'); setValue('__wf__mempl_fix_temp$emp_data_new$<%=inqfixtab2key%>','<%=md.getWFDataValue("__wf__mempl_fix_temp$emp_data_new$"+inqfixtab2key)%>'); setValue('__wf__mempl_fix_temp$fixtabid$<%=inqfixtab2key%>','<%=md.getWFDataValue("__wf__mempl_fix_temp$fixtabid$"+inqfixtab2key)%>'); setValue('__wf__mempl_fix_temp$adj_date$<%=inqfixtab2key%>','<%=md.getWFDataValue("__wf__mempl_fix_temp$adj_date$"+inqfixtab2key)%>'); setValue('__wf__mempl_fix_temp$eff_date$<%=inqfixtab2key%>','<%=md.getWFDataValue("__wf__mempl_fix_temp$eff_date$"+inqfixtab2key)%>'); <% linekey2++; } inqfixtab2.closeConnection(); %> 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")%>'); <% 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('__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__tadjposition$adj_type$1','<%=md.getWFDataValue("__wf__tadjposition$adj_type$1")%>'); setValue('__wf__tadjposition$adj_reason$1','<%=md.getWFDataValue("__wf__tadjposition$adj_reason$1")%>'); setValue('__wf__MADJREASON_TDESC','<%=md.getWFDataValue("__wf__MADJREASON_TDESC")%>'); setValue('__wf__tadjposition$adj_date$1','<%=md.getWFDataValue("__wf__tadjposition$adj_date$1")%>'); setValue('__wf__tadjposition$eff_date$1','<%=md.getWFDataValue("__wf__tadjposition$eff_date$1")%>'); 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__MBRANCH_TDESC','<%=md.getWFDataValue("__wf__MBRANCH_TDESC")%>'); setValue('__wf__tadjposition$branch_no$1','<%=md.getWFDataValue("__wf__tadjposition$branch_no$1")%>'); setValue('__wf__MBRANCH_SOC_TAX_TDESC','<%=md.getWFDataValue("__wf__MBRANCH_SOC_TAX_TDESC")%>'); setValue('__wf__tadjposition$job$1','<%=md.getWFDataValue("__wf__tadjposition$job$1")%>'); setValue('__wf__MJOBCODE_TDESC','<%=md.getWFDataValue("__wf__MJOBCODE_TDESC")%>'); setValue('__wf__tadjposition$emp_position$1','<%=md.getWFDataValue("__wf__tadjposition$emp_position$1")%>'); setValue('__wf__MPOSITION_TDESC','<%=md.getWFDataValue("__wf__MPOSITION_TDESC")%>'); setValue('__wf__tadjposition$bu1$1','<%=md.getWFDataValue("__wf__tadjposition$bu1$1")%>'); setValue('__wf__MBU1_TDESC','<%=md.getWFDataValue("__wf__MBU1_TDESC")%>'); setValue('__wf__tadjposition$bu2$1','<%=md.getWFDataValue("__wf__tadjposition$bu2$1")%>'); setValue('__wf__MBU2_TDESC','<%=md.getWFDataValue("__wf__MBU2_TDESC")%>'); setValue('__wf__tadjposition$bu3$1','<%=md.getWFDataValue("__wf__tadjposition$bu3$1")%>'); setValue('__wf__MBU3_TDESC','<%=md.getWFDataValue("__wf__MBU3_TDESC")%>'); setValue('__wf__tadjposition$bu4$1','<%=md.getWFDataValue("__wf__tadjposition$bu4$1")%>'); setValue('__wf__MBU4_TDESC','<%=md.getWFDataValue("__wf__MBU4_TDESC")%>'); setValue('__wf__tadjposition$bu5$1','<%=md.getWFDataValue("__wf__tadjposition$bu5$1")%>'); setValue('__wf__MBU5_TDESC','<%=md.getWFDataValue("__wf__MBU5_TDESC")%>'); setValue('__wf__tadjposition$emp_group$1','<%=md.getWFDataValue("__wf__tadjposition$emp_group$1")%>'); setValue('__wf__MGROUP_TDESC','<%=md.getWFDataValue("__wf__MGROUP_TDESC")%>'); setValue('__wf__tadjposition$pl$1','<%=md.getWFDataValue("__wf__tadjposition$pl$1")%>'); setValue('__wf__MPERSONALLEVEL_TDESC','<%=md.getWFDataValue("__wf__MPERSONALLEVEL_TDESC")%>'); setValue('__wf__MPERSONALLEVEL_BAND','<%=md.getWFDataValue("__wf__MPERSONALLEVEL_BAND")%>'); setValue('__wf__BANDTDESC','<%=md.getWFDataValue("__wf__BANDTDESC")%>'); setValue('__wf__tadjposition$costcenter$1','<%=md.getWFDataValue("__wf__tadjposition$costcenter$1")%>'); setValue('__wf__MCOSTCENTER0_TDESC','<%=md.getWFDataValue("__wf__MCOSTCENTER0_TDESC")%>'); setValue('__wf__tadjposition$time0$1','<%=md.getWFDataValue("__wf__tadjposition$time0$1")%>'); setValue('__wf__MTIME0_TDESC','<%=md.getWFDataValue("__wf__MTIME0_TDESC")%>'); setValue('__wf__tadjposition$workarea$1','<%=md.getWFDataValue("__wf__tadjposition$workarea$1")%>'); setValue('__wf__MWORKAREA_TDESC','<%=md.getWFDataValue("__wf__MWORKAREA_TDESC")%>'); setValue('__wf__tadjposition$salatype$1','<%=md.getWFDataValue("__wf__tadjposition$salatype$1")%>'); setValue('__wf__MSALATYPE0_TDESC','<%=md.getWFDataValue("__wf__MSALATYPE0_TDESC")%>'); 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$contract_end$1','<%=md.getWFDataValue("__wf__tadjposition$contract_end$1")%>'); setValue('__wf__tadjposition$remarks$1','<%=md.getWFDataValue("__wf__tadjposition$remarks$1")%>'); <% int linekey3 = 1; DbInquiry inqfixtab3 = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("Mfixtab"); inqfixtab3.setColumn("fixtabid"); inqfixtab3.setOrderBy("isincome,fixtabid ASC"); inqfixtab3.refresh(); while(inqfixtab3.next()){ String inqfixtab3key = String.valueOf(linekey3); %> setValue('__wf__mempl_fix_temp$emp_data_current$<%=inqfixtab3key%>','<%=md.getWFDataValue("__wf__mempl_fix_temp$emp_data_current$"+inqfixtab3key)%>'); setValue('__wf__mempl_fix_temp$emp_data_new$<%=inqfixtab3key%>','<%=md.getWFDataValue("__wf__mempl_fix_temp$emp_data_new$"+inqfixtab3key)%>'); setValue('__wf__mempl_fix_temp$fixtabid$<%=inqfixtab3key%>','<%=md.getWFDataValue("__wf__mempl_fix_temp$fixtabid$"+inqfixtab3key)%>'); setValue('__wf__mempl_fix_temp$adj_date$<%=inqfixtab3key%>','<%=md.getWFDataValue("__wf__mempl_fix_temp$adj_date$"+inqfixtab3key)%>'); setValue('__wf__mempl_fix_temp$eff_date$<%=inqfixtab3key%>','<%=md.getWFDataValue("__wf__mempl_fix_temp$eff_date$"+inqfixtab3key)%>'); <% linekey3++; } inqfixtab3.closeConnection(); %> 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")%>'); <% 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> </div> </body> </html> <% } %>