<%@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.ManageDocumentService"%> <%@page import="com.csc.library.approve.*,com.csc.library.databean.*"%> <%@page import="com.csc.library.entry.*,com.csc.library.utilities.*"%> <%@page import="com.csc.library.session.*"%> <%request.setCharacterEncoding("UTF-8");%> <!-- Begin useBean --> <jsp:useBean id="TEMPLATE_WORKFLOW" class="com.csc.library.system.Task" scope="page"/> <% TEMPLATE_WORKFLOW.setChannel(request,response); TEMPLATE_WORKFLOW.checkProfile(); if( TEMPLATE_WORKFLOW.getUProfile() != null ){ TEMPLATE_WORKFLOW.getUProfile().set("appname","APPRAISAL"); UIManager screenSingle = (UIManager) TEMPLATE_WORKFLOW.process("SingleEntry","TEMPLATE_WORKFLOW"); /*boolean isStep1 = false; boolean isStep2 = false; boolean isStep3 = false; boolean isStepCancel = false; boolean isStepComment = false; boolean isStepReturn = false; boolean isStepCopy = false;*/ 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()))); ManageDocumentService md = new ManageDocumentService(); 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") ){ // response.sendRedirect("../MYNOTE/SENT_COMPLETE.jsp"); if(chkNull.chkNullString(request.getParameter("isAdminEdit")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_EDIT.jsp"); }else if(chkNull.chkNullString(request.getParameter("isAdminCancel")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_CANCEL.jsp"); }else if(chkNull.chkNullString(request.getParameter("isAdminClean")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_CLEAN.jsp"); }else if(chkNull.chkNullString(request.getParameter("isAdminDelete")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_DELETE.jsp"); }else if(chkNull.chkNullString(request.getParameter("draft_cmd")).equals("save") || chkNull.chkNullString(request.getParameter("draft_cmd")).equals("delete")){ response.sendRedirect("../MYNOTE/INBOX.jsp"); }else{ response.sendRedirect("../MYNOTE/SENT_COMPLETE.jsp"); } }else{ subject = ""; remark = ""; emp_fullname = ""; } bossid = bossid.substring(0,bossid.indexOf(":")); DbRecord memployee_dr = new InitialRecord(screenSingle.getUProfile()).getDbRecord("Memployee"); memployee_dr.setColumn("*"); memployee_dr.set("COMPANYID",screenSingle.getUProfile().get("companyid")); memployee_dr.set("EMPLOYEEID",bossid); memployee_dr.search(); //WF_STATUS 1 = รอการอนุมัติ // 3 = ยกเลิกการอนุมัติ // 4 = อนุมัติแล้ว // 5 = ไม่อนุมัติ // 6 = แก้ไขโดย HR // 7 = ส่งกลับ // 8 = ยกเลิกเอกสาร // 9 = ประวัติ if( (request.getParameter("__runno") == null || request.getParameter("__runno").equals("")) && (request.getParameter("__help") == null || request.getParameter("__help").equals("")) ){ screenSingle.clean(); } if( (!screenSingle.getDataLabel("WF_STATUS").equals("1")) && (!screenSingle.getDataLabel("WF_STATUS").equals("4")) && (!screenSingle.getDataLabel("WF_STATUS").equals("7")) ){ wf = "false"; }else{ wf = "true"; } if( request.getParameter("downfile") != null ){ ThaiUtilities tu = new ThaiUtilities(); String filePath = request.getParameter("downfile"); File f = new File(tu.ASCII2Unicode(filePath)); String fileName = f.getName(); String fileType = fileName.substring(fileName.indexOf(".")+1,fileName.length()); if ( f.exists() && f.canRead() ) { response.setContentType("application/octet-stream"); response.setHeader("Content-Disposition", "attachment; filename="+tu.Unicode2ASCII(f.getName())); //response.setHeader("cache-control", "no-cache"); response.setContentLength((int) f.length()); BufferedInputStream fileInput = new BufferedInputStream(new FileInputStream(f)); byte buffer[] = new byte[8 * 1024]; out.clearBuffer(); OutputStream out_s = response.getOutputStream(); CopyStreams.copyStreamsWithoutClose(fileInput, out_s, buffer); out_s.flush(); out_s.close(); fileInput.close(); } } %> <!-- End useBean --> <HTML> <HEAD> <TITLE>myNOTE : Business Process Management Service</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> <!-- Begin Link --> <LINK HREF="../CSS/MYNOTE.css" REL="stylesheet" TYPE="text/css"> <LINK HREF="../CSS/MYNOTE_MENU.css" REL="stylesheet" TYPE="text/css"> <!-- End Link --> <!-- Begin Import Script --> <SCRIPT TYPE='text/JavaScript' SRC='../JS/MYNOTE_SCREEN.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../JS/MYNOTE_MENU.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../JS/SCREEN.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../JS/DATEINPUT.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../JS/VIEWCALENDAR.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../JS/ICONSMENU.js'></SCRIPT> <SCRIPT LANGUAGE="JavaScript">setLang('<%=screenSingle.getUProfile().get("lang")%>');</SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='../TA/JS/TA_SCREEN.js'></SCRIPT> <SCRIPT TYPE='text/JavaScript' SRC='JS/lightbox.js'></SCRIPT> <!-- End Import Script --> <!--DWR INCLUDE--> <script type='text/javascript' src='/hr/dwr/interface/SearchDWR.js'></script> <script type='text/javascript' src='/hr/dwr/engine.js'></script> <script type='text/javascript' src='/hr/dwr/util.js'></script> <script type="text/javascript" src="/hr/dwr/interface/SystemCode.js"></script> <script type="text/javascript" src="/hr/dwr/interface/CscCalendar.js"></script> <script type="text/javascript" src="/hr/dwr/interface/Tabsent_nstda_dwr.js"></script> <script type="text/javascript" src="/hr/dwr/interface/AuditWorkflowData.js"></script> <!--DWR INCLUDE--> <SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript"> <!-- function preGoWF(){ GoWF(); } 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:MEMPLOYEE@FULLNAME"; linkHelp_SendToReturn(helpName,helpReturn); __fixCon.value=temp; }else if( inputName == "cc" ){ temp = __fixCon.value; helpReturn="wf_cc_actor:EMPLOYEEID,cc:MEMPLOYEE@FULLNAME"; linkHelp_SendToReturn(helpName,helpReturn); __fixCon.value=temp; }else if( inputName=="__employeeid" ){ temp = __fixCon.value; __fixCon.value = ""; helpReturn="__employeeid:EMPLOYEEID,MEMPLOYEE@FULLNAME,emp_fullname:MEMPLOYEE.FULLNAME"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; }else if(inputName=="__wf__employeeid"){ temp = __fixCon.value; helpReturn=inputName+":employeeid,MEMPLOYEE@FULLNAME"; linkHelp_Return_CallFunction(helpName,helpReturn,"searchEmp"); __fixCon.value=temp; } } } function linkHelp_SendToReturn(help,input){ with( document.cscform ){ var param = "BROWSE_USER.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off"; window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function linkHelp_Return(help,input){ with( document.cscform ){ var param="BROWSE_HELP.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off"; window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function linkHelpWF(help,input){ with(document.cscform){ var temp = __fixCon.value; var fix = "wf_id='"+wf_id.value+"' and wf_ver='"+wf_ver.value+"' and initiator='<%=screenSingle.getUProfile().get("actor")%>' and (wf_status<>'6' and wf_status<>'3' and wf_status<>'8' and wf_status<>'A' and wf_status<>'B' and wf_status<>'')"; var param="BROWSE_HELP.jsp?__helpName="+help+"&__fieldSearch="+input+"&__pageCall="+__screen.value+"&__fixCon="+fix; window.open(param,"Help","left=150,top=150,width=530,height=370,resizable=yes,scrollbars=yes,toolbar=no,status=yes"); __fixCon.value = temp; } } function searchEmp(){ var condition = ""; searchDescEmp(document.cscform.__wf__employeeid, 'memployee.fullname:MEMPLOYEE@FULLNAME,mposition.tdesc:__position,mbu1.tdesc:__bu1,mbu2.tdesc:__bu2,mbu3.tdesc:__bu3,memployee.startdate:__startdate,memployee.fullname:__wf__emp_fullname,memployee.approve_date:__end_train_work,memployee.empworkages:__num_workage', condition); } function searchDescEmp(empid, desc, condition){ var splitDesc="",getField="",setField=""; splitDesc = desc.split(","); for(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++){ dwr.util.setValue(setField[i],data[0][i]); } }else{ empid.value =""; for(i=0;i<setField.length;i++){ dwr.util.setValue(setField[i],""); } } //alert(data[0][8]); // dwr.engine.setAsync(false);+ /* if(dwr.util.getValue("__wf__chkprodate")==180){ prodate120_01.style.display = 'none'; prodate180_01.style.display = ''; prodate120_02.style.display = 'none'; prodate180_02.style.display = ''; prodate120_03.style.display = 'none'; prodate180_03.style.display = ''; }else{ prodate120_01.style.display = ''; prodate180_01.style.display = 'none'; prodate120_02.style.display = ''; prodate180_02.style.display = 'none'; prodate120_03.style.display = ''; prodate180_03.style.display = 'none'; }*/ // alert(prodate120.style.display); // alert(prodate180.style.display); }); } //--> </SCRIPT> <style type="text/css"> <!-- .myrow label { display: block; } --> </style> </HEAD> <BODY onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif');"> <!-- ImageReady Slices (02.psd) --> <FORM NAME="cscform" METHOD="post" ACTION="APPWF_RG_001.jsp"> <INPUT TYPE="hidden" NAME="__screen" VALUE="APPWF_RG_001"> <INPUT TYPE="hidden" NAME="__cmd" VALUE=""> <INPUT TYPE="hidden" NAME="__help" VALUE=""> <INPUT TYPE="hidden" NAME="__fixCon" VALUE=""> <INPUT TYPE="hidden" NAME="__notNull" VALUE="<%=screenSingle.getRequire()%>"> <INPUT TYPE="hidden" NAME="__language" VALUE="<%=screenSingle.getUProfile().get("lang")%>"> <INPUT TYPE="hidden" NAME="__companyid" VALUE="<%=screenSingle.getUProfile().get("companyid")%>"> <INPUT TYPE="hidden" NAME="__calendar" VALUE=""> <SCRIPT LANGUAGE="JavaScript">getInputFormatDate();</SCRIPT> <INPUT TYPE="hidden" NAME="wf_id" VALUE="6002"> <INPUT TYPE="hidden" NAME="__wf_id" VALUE="6002"> <INPUT TYPE="hidden" NAME="wf_ver" VALUE="<%=chkNull.chkNullString(request.getParameter("wf_ver"),"1")%>"> <INPUT TYPE="hidden" NAME="__wf_ver" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf_ver"),"1")%>"> <INPUT TYPE="hidden" NAME="wf_seq_no" VALUE="<%=chkNull.chkNullString(request.getParameter("wf_seq_no"),"0")%>"> <INPUT TYPE="hidden" NAME="step_id" VALUE="<%=chkNull.chkNullString(request.getParameter("step_id"),"0")%>"> <INPUT TYPE="hidden" NAME="step_seq_no" VALUE="<%=chkNull.chkNullString(request.getParameter("step_seq_no"),"0")%>"> <INPUT TYPE="hidden" NAME="wf_return_actor" VALUE="IINIT"> <INPUT TYPE="hidden" NAME="__oldDocumentID" VALUE="<%=chkNull.chkNullString(request.getParameter("__oldDocumentID"),screenSingle.getDataLabel("DOC_NO"))%>"> <INPUT TYPE="hidden" NAME="__oldWF" VALUE="<%=chkNull.chkNullString(request.getParameter("__oldWF"),screenSingle.getDataLabel("WF_STATUS"))%>"> <INPUT TYPE="hidden" NAME="__wf" VALUE="<%=wf%>"> <INPUT TYPE="hidden" NAME="__wfcmd" VALUE="false"> <INPUT TYPE="hidden" NAME="used" VALUE=""> <INPUT TYPE="hidden" NAME="remark" VALUE="<%=remark%>"> <INPUT TYPE="hidden" NAME="type_absent" VALUE=""> <INPUT TYPE="hidden" NAME="__employeeid" VALUE="<%=TEMPLATE_WORKFLOW.getUProfile().get("employeeid") %>"> <INPUT TYPE="hidden" NAME="__attach_value" VALUE="0"> <INPUT TYPE="hidden" NAME="__guarantee_date" VALUE="0"> <INPUT TYPE="hidden" NAME="__chkdaterequest" VALUE=""> <input type="hidden" name="__type_holiday" value=""> <INPUT TYPE="hidden" NAME="__wf__emp_fullname" VALUE=""> <INPUT TYPE="hidden" NAME="__wf__startworkflow" VALUE="<%=calendar.getDDThaiYYYY()%>"> <INPUT TYPE="hidden" NAME="__flag" VALUE="<%=chkNull.chkNullString(request.getParameter("__flag"), "0")%>"> <INPUT TYPE="hidden" NAME="__field_list" VALUE=""> <INPUT TYPE="hidden" NAME="__temp_value" VALUE="<%=chkNull.chkNullString(request.getParameter("__temp_value"))%>"> <INPUT TYPE="hidden" NAME="draft_cmd" VALUE=""> <INPUT TYPE="hidden" NAME="draft_no" VALUE="<%=chkNull.chkNullString(request.getParameter("draft_no"),"0")%>"> <INPUT TYPE="hidden" NAME="admin_cmd" VALUE=""> <!-- Redirect Page --> <INPUT TYPE="hidden" NAME="isAdminEdit" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminEdit"))%>"> <INPUT TYPE="hidden" NAME="isAdminCancel" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminCancel"))%>"> <INPUT TYPE="hidden" NAME="isAdminClean" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminClean"))%>"> <INPUT TYPE="hidden" NAME="isAdminDelete" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminDelete"))%>"> <%=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> <jsp:include page="MYNOTE_HEAD.jsp" flush="true"/> <DIV ALIGN="right"> <!-- Begin Step1 --> <%=md.getStepDocument("6002","1")%> <%=md.getHeadDocument()%> <br> <%=md.getHelpDocument("Probation Form")%> <br> <%=md.getSendToDocument("Probation Form")%> <br> <!-- Begin Code --> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/T.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-T-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> <TR> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/L2.gif"></TD> <TD VALIGN="middle"><FONT FACE="MS Sans Serif" SIZE="1" COLOR="#FFFFFF"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1" CLASS="txt01"> <!-- Begin User Code --> <TR BGCOLOR="#EFEFEF"> <TD WIDTH="25%" BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center" COLSPAN="2"><span class="style1"><SCRIPT LANGUAGE="JavaScript">swapLang("Employee Details")</SCRIPT></span></TD> </TR> <tr><td colspan="2"> <table width="100%" border="0" cellspacing="1" > <TR> <TD WIDTH="25%" CLASS="columnlabel"><SCRIPT LANGUAGE="javascript">swapLang('Employee Code')</SCRIPT> :</TD> <TD WIDTH="75%" CLASS="columnobject1"> <INPUT NAME="__wf__employeeid" TYPE="text" VALUE="<%= chkNull.chkNullString(request.getParameter("__wf__employeeid"),screenSingle.getUProfile().get("employeeid"))%>" CLASS="txt01" SIZE="13" onBlur="javascript:searchEmp()"> <%if(md.isStep1 || md.isAdminEdit){%> <A HREF="javascript:goHelp('MEMPLOYEEHELP2','__wf__employeeid');"><IMG HEIGHT=20 SRC="../IMAGES/MYNOTE/SEARCH.gif" WIDTH=20 ALIGN=absMiddle BORDER=0></A> <%}%> <INPUT NAME="MEMPLOYEE@FULLNAME" TYPE="text" SIZE="60" VALUE="<%= chkNull.chkNullString(request.getParameter("MEMPLOYEE@FULLNAME"),"") %>" CLASS="txt01" DISABLED></TD> </TR> <TR> <TD CLASS="columnlabel"><SCRIPT LANGUAGE="javascript">swapLang('Position')</SCRIPT> : </TD> <TD CLASS="columnobject1"><INPUT TYPE="text" NAME="__position" VALUE="<%= chkNull.chkNullString(request.getParameter("__position"),"") %>" SIZE="50" CLASS="txt01" DISABLED></TD> </TR> <TR> <TD CLASS="columnlabel"><SCRIPT LANGUAGE="javascript">swapLang('BU3')</SCRIPT> : </TD> <TD CLASS="columnobject1"><INPUT TYPE="text" NAME="__bu3" VALUE="<%= chkNull.chkNullString(request.getParameter("__bu3"),"") %>" SIZE="50" CLASS="txt01" DISABLED></TD> </TR> <TR> <TD CLASS="columnlabel"><script LANGUAGE="javascript">swapLang('BU2')</SCRIPT> : </TD> <TD CLASS="columnobject1"><INPUT TYPE="text" NAME="__bu2" VALUE="<%= chkNull.chkNullString(request.getParameter("__bu2"),"") %>" SIZE="50" CLASS="txt01" DISABLED></TD> </TR> <TR> <TD CLASS="columnlabel"><SCRIPT LANGUAGE="javascript">swapLang('BU1')</SCRIPT> : </TD> <TD CLASS="columnobject1"><INPUT TYPE="text" NAME="__bu1" VALUE="<%= chkNull.chkNullString(request.getParameter("__bu1"),"") %>" SIZE="50" class="txt01" DISABLED></TD> </TR> <TR> <TD CLASS="columnlabel"><SCRIPT LANGUAGE="javascript">swapLang('Begin work date')</SCRIPT> : </TD> <TD CLASS="columnobject1"><INPUT TYPE="text" NAME="__startdate" VALUE="<%= chkNull.chkNullString(request.getParameter("__startdate"),"") %>" SIZE="50" CLASS="txt01" DISABLED></TD> </TR> <TR> <TD CLASS="columnlabel"><SCRIPT LANGUAGE="javascript">swapLang('End Train Work')</SCRIPT> : </TD> <TD CLASS="columnobject1"><INPUT TYPE="text" NAME="__end_train_work" VALUE="<%= chkNull.chkNullString(request.getParameter("__end_train_work"),"") %>" SIZE="15" CLASS="txt01" DISABLED></TD> </TR> <TR> <TD CLASS="columnlabel"><SCRIPT LANGUAGE="javascript">swapLang('Num Workage')</SCRIPT> : </TD> <TD CLASS="columnobject1"><INPUT TYPE="text" NAME="__num_workage" VALUE="<%= chkNull.chkNullString(request.getParameter("__num_workage"),"") %>" SIZE="15" CLASS="txt01" DISABLED></TD> </TR> <TR BGCOLOR=#EFEFEF> <TD BGCOLOR="#0099CC" CLASS="txt01" WIDTH="15%" align="right"><SCRIPT LANGUAGE="javascript">swapLang("Priority");</SCRIPT> :</TD> <TD BGCOLOR="#EFEFEF" CLASS="txt01"> <INPUT TYPE="radio" NAME="priority" VALUE="0" ID="normal"> <LABEL FOR="normal"><SCRIPT LANGUAGE="JavaScript">swapLang("Normal")</SCRIPT></LABEL> <INPUT TYPE="radio" NAME="priority" VALUE="1" ID="high"> <LABEL FOR="high"><SCRIPT LANGUAGE="JavaScript">swapLang("High")</SCRIPT></LABEL> <INPUT TYPE="radio" NAME="priority" VALUE="2" ID="highest"> <LABEL FOR="highest"><SCRIPT LANGUAGE="JavaScript">swapLang("Highest")</SCRIPT></LABEL> </TD> </TR> </table></td> </tr> <TR BGCOLOR="#EFEFEF"> <TD WIDTH="25%" BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center" COLSPAN="2"><span class="style1"><SCRIPT LANGUAGE="JavaScript">swapLang("Probation form for manager")</SCRIPT></span> </TD> </TR> <TR BGCOLOR="#EFEFEF"> <TD WIDTH="25%" BGCOLOR="#0099CC" CLASS="txt01"ALIGN="center" COLSPAN="2" ><table width="100%" border="0" cellspacing="0" > <tr bgcolor="#EFEFEF" bordercolor="#FFFFFF"> <td BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center" width="60%"> </td> <td BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center">น้อยที่สุด</td> <td BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center">น้อย</td> <td BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center">กลาง</td> <td BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center">ดี</td> <td BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center">ดีมาก</td> </tr> <tr bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left"><INPUT TYPE="text" NAME="__wf__topic1" SIZE="60" CLASS="txt01" VALUE=""></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point1" type="radio" value="1" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point1" type="radio" value="2" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point1" type="radio" value="3" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point1" type="radio" value="4" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point1" type="radio" value="5" ></td> </tr> <tr bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left"><INPUT TYPE="text" NAME="__wf__topic2" SIZE="60" CLASS="txt01" VALUE=""></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point2" type="radio" value="1" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point2" type="radio" value="2" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point2" type="radio" value="3" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point2" type="radio" value="4" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point2" type="radio" value="5" ></td> </tr> <tr bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left"><INPUT TYPE="text" NAME="__wf__topic3" SIZE="60" CLASS="txt01" VALUE=""></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point3" type="radio" value="1" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point3" type="radio" value="2" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point3" type="radio" value="3" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point3" type="radio" value="4" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point3" type="radio" value="5" ></td> </tr> <tr bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left"><INPUT TYPE="text" NAME="__wf__topic4" SIZE="60" CLASS="txt01" VALUE=""></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point4" type="radio" value="1" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point4" type="radio" value="2" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point4" type="radio" value="3" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point4" type="radio" value="4" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point4" type="radio" value="5" ></td> </tr> <tr bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left"><INPUT TYPE="text" NAME="__wf__topic5" SIZE="60" CLASS="txt01" VALUE=""></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point5" type="radio" value="1" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point5" type="radio" value="2" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point5" type="radio" value="3" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point5" type="radio" value="4" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point5" type="radio" value="5" ></td> </tr> <tr bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left"><INPUT TYPE="text" NAME="__wf__topic6" SIZE="60" CLASS="txt01" VALUE=""></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point6" type="radio" value="1" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point6" type="radio" value="2" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point6" type="radio" value="3" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point6" type="radio" value="4" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point6" type="radio" value="5" ></td> </tr> <tr bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left"><input name="__wf__topic7" type="text" class="txtInbox" size="60"></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point7" type="radio" value="1" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point7" type="radio" value="2" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point7" type="radio" value="3" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point7" type="radio" value="4" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point7" type="radio" value="5" ></td> </tr> <tr bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left"><input name="__wf__topic8" type="text" class="txtInbox" size="60"></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point8" type="radio" value="1" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point8" type="radio" value="2" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point8" type="radio" value="3" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point8" type="radio" value="4" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point8" type="radio" value="5" ></td> </tr> <tr bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left"><input name="__wf__topic9" type="text" class="txtInbox" size="60"></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point9" type="radio" value="1" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point9" type="radio" value="2" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point9" type="radio" value="3" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point9" type="radio" value="4" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point9" type="radio" value="5" ></td> </tr> <tr bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left"><input name="__wf__topic10" type="text" class="txtInbox" size="60" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point10" type="radio" value="1" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point10" type="radio" value="2" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point10" type="radio" value="3" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point10" type="radio" value="4" ></td> <td BGCOLOR="#EFEFEF" CLASS="txt01" ALIGN="center"><input name="__wf__point10" type="radio" value="5" ></td> </tr> <TR> <TD colspan="6" bgcolor="#EFEFEF"> </TD> </TR> </table></TD> </TR> <TR> <TD colspan="2"><table width="100%" border="0" cellspacing="1" > <TR BGCOLOR="#EFEFEF"> <TD BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center"><span class="style1"><SCRIPT LANGUAGE="JavaScript">swapLang("Employee's Strong point")</SCRIPT></span></TD> <TD BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center"><span class="style1"><SCRIPT LANGUAGE="JavaScript">swapLang("Employee's Weak point")</SCRIPT></span></TD> </TR> <TR bgcolor="#EFEFEF" bordercolor="#CCCCCC"> <TD BGCOLOR="#EFEFEF" CLASS="txt01" align="left" ><TEXTAREA NAME='__wf__strongpoint' COLS='66' ROWS='4' WRAP=''></TEXTAREA></TD> <TD BGCOLOR="#EFEFEF" CLASS="txt01" align="left" ><TEXTAREA NAME='__wf__weakpoint' COLS='66' ROWS='4' WRAP=''></TEXTAREA></TD> </TR> </TABLE> </TD> </TR> <TR BGCOLOR="#EFEFEF"> <TD WIDTH="25%" BGCOLOR="#0099CC" CLASS="txt01" ALIGN="center" COLSPAN="2"><span class="style1"><SCRIPT LANGUAGE="JavaScript">swapLang("Conclusion")</SCRIPT></span></TD> </TR> <TR><TD WIDTH="25%" BGCOLOR="#EFEFEF" CLASS="txt01" align="left" colspan="2"> <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="1"> <tr bgcolor="#EFEFEF"> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left" colspan="2"> ความคิดเห็นของผู้จัดการส่วน</td> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left" colspan="2"> ความคิดเห็นของผู้อำนวยการฝ่าย</td> </tr> <tr bgcolor="#EFEFEF"> <td width="40%" BGCOLOR="#EFEFEF" CLASS="txt01"><TEXTAREA NAME='__wf__commment1' COLS='50' ROWS='4' WRAP='' <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("2"))?"":"disabled"%>></TEXTAREA></td> <td width="10%" CLASS="txt01"> <input type="radio" name="__wf__result01" value="0" <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("2"))?"":"disabled"%>> บรรจุ<br> <input type="radio" name="__wf__result01" value="1" <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("2"))?"":"disabled"%>> เลิกจ้าง</td> <td BGCOLOR="#EFEFEF" CLASS="txt01"><div align="left"><TEXTAREA NAME='__wf__commment2' COLS='50' ROWS='4' WRAP='' <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("3"))?"":"disabled"%>></TEXTAREA></div></td> <td CLASS="txt01"> <input type="radio" name="__wf__result02" value="0" <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("3"))?"":"disabled"%>> บรรจุ<br> <input type="radio" name="__wf__result02" value="1" <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("3"))?"":"disabled"%>> เลิกจ้าง</td> </tr> <tr bgcolor="#EFEFEF"> <td BGCOLOR="#EFEFEF" CLASS="txt01" colspan="2"> ความคิดเห็นของรองกรรมการผู้จัดการ</td> <td BGCOLOR="#EFEFEF" CLASS="txt01" align="left" colspan="2"> ความคิดเห็นของกรรมการผู้จัดการ</td> </tr> <tr bgcolor="#EFEFEF"> <td BGCOLOR="#EFEFEF" CLASS="txt01"><div align="left"><TEXTAREA NAME='__wf__commment3' COLS='50' ROWS='4' WRAP='' <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("4"))?"":"disabled"%>></TEXTAREA></div></td> <td CLASS="txt01"> <input type="radio" name="__wf__result03" value="0" <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("4"))?"":"disabled"%>> บรรจุ<br> <input type="radio" name="__wf__result03" value="1" <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("4"))?"":"disabled"%>> เลิกจ้าง </td> <td BGCOLOR="#EFEFEF" CLASS="txt01"><div align="left"><TEXTAREA NAME='__wf__commment4' COLS='50' ROWS='4' WRAP='' <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("5"))?"":"disabled"%>></TEXTAREA></div></td> <td CLASS="txt01"> <input type="radio" name="__wf__result04" value="0" <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("5"))?"":"disabled"%>> บรรจุ<br> <input type="radio" name="__wf__result04" value="1" <%=(chkNull.chkNullString(request.getParameter("step_id")).equals("5"))?"":"disabled"%>> เลิกจ้าง</td> </tr> </table></TD> </TR> <!-- End User Code --> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Code --> <br> <%=md.getRemarkDocument()%> <br> <%=md.getWorkflowCommandDocument()%> <br> <!--br--> <%=md.getReferenceNoteDocument()%> <!--br--> <br> <%=md.getAttachFileDocument()%> <br> <% if( !md.isStep3 ){ %> <TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0"> <TR> <% if( md.isStep1 || md.isDraft ){ %> <TD> <DIV ALIGN="right"> <!-- <A HREF="JavaScript:SaveDraft();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_SAVE.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A> --> <% // 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:DelWF();"><IMG SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_CANCEL.gif" WIDTH="89" HEIGHT="37" BORDER="0"></A></DIV></TD> <% }else if( md.isStep2 || md.isStepComment ){ %> <TD><DIV ALIGN="right"><A HREF="JavaScript: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 --> <INPUT TYPE="hidden" NAME="strongpoint" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__strongpoint"))%>"> <INPUT TYPE="hidden" NAME="weakpoint" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__weakpoint"))%>"> <INPUT TYPE="hidden" NAME="commment1" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__commment1"))%>"> <INPUT TYPE="hidden" NAME="commment2" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__commment2"))%>"> <INPUT TYPE="hidden" NAME="commment3" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__commment3"))%>"> <INPUT TYPE="hidden" NAME="commment4" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__commment4"))%>"> <INPUT TYPE="hidden" NAME="wf_default_actor" VALUE="true"> <SCRIPT LANGUAGE="JavaScript"> setValue('__wf__point1','<%=chkNull.chkNullString(request.getParameter("__wf__point1"),"0")%>'); setValue('__wf__point2','<%=chkNull.chkNullString(request.getParameter("__wf__point2"),"0")%>'); setValue('__wf__point3','<%=chkNull.chkNullString(request.getParameter("__wf__point3"),"0")%>'); setValue('__wf__point4','<%=chkNull.chkNullString(request.getParameter("__wf__point4"),"0")%>'); setValue('__wf__point5','<%=chkNull.chkNullString(request.getParameter("__wf__point5"),"0")%>'); setValue('__wf__point6','<%=chkNull.chkNullString(request.getParameter("__wf__point6"),"0")%>'); setValue('__wf__point7','<%=chkNull.chkNullString(request.getParameter("__wf__point7"),"0")%>'); setValue('__wf__point7','<%=chkNull.chkNullString(request.getParameter("__wf__point8"),"0")%>'); setValue('__wf__point7','<%=chkNull.chkNullString(request.getParameter("__wf__point9"),"0")%>'); setValue('__wf__point7','<%=chkNull.chkNullString(request.getParameter("__wf__point10"),"0")%>'); setValue('__wf__topic1','<%=chkNull.chkNullString(request.getParameter("__wf__topic1"),"ความขยัน ความตั้งใจ และความทุ่มเท")%>'); setValue('__wf__topic2','<%=chkNull.chkNullString(request.getParameter("__wf__topic2"),"ทัศนคติ")%>'); setValue('__wf__topic3','<%=chkNull.chkNullString(request.getParameter("__wf__topic3"),"การปรับตัว")%>'); setValue('__wf__topic4','<%=chkNull.chkNullString(request.getParameter("__wf__topic4"),"การปฏิบัติตามระเบียบบริษัท")%>'); setValue('__wf__topic5','<%=chkNull.chkNullString(request.getParameter("__wf__topic5"),"การสื่อข้อความ")%>'); setValue('__wf__topic6','<%=chkNull.chkNullString(request.getParameter("__wf__topic6"),"การปฏิบัติตามกฎความปลอดภัย")%>'); setValue('__wf__topic7','<%=chkNull.chkNullString(request.getParameter("__wf__topic7"),"")%>'); setValue('__wf__topic8','<%=chkNull.chkNullString(request.getParameter("__wf__topic8"),"")%>'); setValue('__wf__topic9','<%=chkNull.chkNullString(request.getParameter("__wf__topic9"),"")%>'); setValue('__wf__topic10','<%=chkNull.chkNullString(request.getParameter("__wf__topic10"),"")%>'); setValue('__wf__result01','<%=chkNull.chkNullString(request.getParameter("__wf__result01"))%>'); setValue('__wf__result02','<%=chkNull.chkNullString(request.getParameter("__wf__result02"))%>'); setValue('__wf__result03','<%=chkNull.chkNullString(request.getParameter("__wf__result03"))%>'); setValue('__wf__result04','<%=chkNull.chkNullString(request.getParameter("__wf__result04"))%>'); //setValue('strongpoint','<%//=chkNull.chkNullString(request.getParameter("__wf__strongpoint"),"")%>'); //setValue('__wf__strongpoint',document.cscform.strongpoint.value); setValue('__wf__strongpoint',document.cscform.strongpoint.value); setValue('__wf__weakpoint',document.cscform.weakpoint.value); setValue('__wf__commment1',document.cscform.commment1.value); setValue('__wf__commment2',document.cscform.commment2.value); setValue('__wf__commment3',document.cscform.commment3.value); setValue('__wf__commment4',document.cscform.commment4.value); searchEmp(); setValue('priority','<%=chkNull.chkNullString(request.getParameter("priority"),"0")%>'); // setDisabled(true); setDisabledOff('__wf__employeeid'); setDisabledOff('priority'); setDisabledOn('__wf__point1'); setDisabledOn('__wf__point2'); setDisabledOn('__wf__point3'); setDisabledOn('__wf__point4'); setDisabledOn('__wf__point5'); setDisabledOn('__wf__point6'); setDisabledOn('__wf__point7'); setDisabledOn('__wf__point8'); setDisabledOn('__wf__point9'); setDisabledOn('__wf__point10'); setDisabledOn('__wf__strongpoint'); setDisabledOn('__wf__weakpoint'); </SCRIPT> <!-- End Set Value Step1 --> <% }else if(md.isStep2 || md.isStepCancel || md.isStepComment || md.isStepReturn || md.isStepCopy || md.isDraft ){ String step_id = chkNull.chkNullString(request.getParameter("step_id"),""); %> <INPUT TYPE="hidden" NAME="strongpoint" VALUE="<%=md.getWFDataValue("__wf__strongpoint")%>"> <INPUT TYPE="hidden" NAME="weakpoint" VALUE="<%=md.getWFDataValue("__wf__weakpoint")%>"> <INPUT TYPE="hidden" NAME="commment1" VALUE="<%=md.getWFDataValue("__wf__commment1")%>"> <INPUT TYPE="hidden" NAME="commment2" VALUE="<%=md.getWFDataValue("__wf__commment2")%>"> <INPUT TYPE="hidden" NAME="commment3" VALUE="<%=md.getWFDataValue("__wf__commment3")%>"> <INPUT TYPE="hidden" NAME="commment4" VALUE="<%=md.getWFDataValue("__wf__commment4")%>"> <!-- Begin Set Value Step2 --> <SCRIPT LANGUAGE="JavaScript"> setValue('__wf__employeeid','<%=md.getWFDataValue("__wf__employeeid")%>'); setValue('__wf__point1','<%=md.getWFDataValue("__wf__point1")%>'); setValue('__wf__point2','<%=md.getWFDataValue("__wf__point2")%>'); setValue('__wf__point3','<%=md.getWFDataValue("__wf__point3")%>'); setValue('__wf__point4','<%=md.getWFDataValue("__wf__point4")%>'); setValue('__wf__point5','<%=md.getWFDataValue("__wf__point5")%>'); setValue('__wf__point6','<%=md.getWFDataValue("__wf__point6")%>'); setValue('__wf__point7','<%=md.getWFDataValue("__wf__point7")%>'); setValue('__wf__point8','<%=md.getWFDataValue("__wf__point8")%>'); setValue('__wf__point9','<%=md.getWFDataValue("__wf__point9")%>'); setValue('__wf__point10','<%=md.getWFDataValue("__wf__point10")%>'); setValue('__wf__topic1','<%=md.getWFDataValue("__wf__topic1")%>'); setValue('__wf__topic2','<%=md.getWFDataValue("__wf__topic2")%>'); setValue('__wf__topic3','<%=md.getWFDataValue("__wf__topic3")%>'); setValue('__wf__topic4','<%=md.getWFDataValue("__wf__topic4")%>'); setValue('__wf__topic5','<%=md.getWFDataValue("__wf__topic5")%>'); setValue('__wf__topic6','<%=md.getWFDataValue("__wf__topic6")%>'); setValue('__wf__topic7','<%=md.getWFDataValue("__wf__topic7")%>'); setValue('__wf__topic8','<%=md.getWFDataValue("__wf__topic8")%>'); setValue('__wf__topic9','<%=md.getWFDataValue("__wf__topic9")%>'); setValue('__wf__topic10','<%=md.getWFDataValue("__wf__topic10")%>'); setValue('__wf__result01','<%=md.getWFDataValue("__wf__result01")%>'); setValue('__wf__result02','<%=md.getWFDataValue("__wf__result02")%>'); setValue('__wf__result03','<%=md.getWFDataValue("__wf__result03")%>'); setValue('__wf__result04','<%=md.getWFDataValue("__wf__result04")%>'); //setValue('__wf__strongpoint','<%//=md.getWFDataValue("__wf__strongpoint")%>'); //setValue('__wf__weakpoint','<%//=md.getWFDataValue("__wf__weakpoint")%>'); //setValue('__wf__commment1','<%//=md.getWFDataValue("__wf__commment1")%>'); //setValue('__wf__commment2','<%//=md.getWFDataValue("__wf__commment2")%>'); //setValue('__wf__commment3','<%//=md.getWFDataValue("__wf__commment3")%>'); setValue('__wf__topic7','<%=md.getWFDataValue("__wf__topic7")%>'); setValue('__wf__strongpoint',document.cscform.strongpoint.value); setValue('__wf__weakpoint',document.cscform.weakpoint.value); setValue('__wf__commment1',document.cscform.commment1.value); setValue('__wf__commment2',document.cscform.commment2.value); setValue('__wf__commment3',document.cscform.commment3.value); setValue('__wf__commment4',document.cscform.commment4.value); searchEmp(); hideSendTo('<%=step_type%>'); setValue('priority','<%=screenSingle.getDataLabel("VW_INCIDENT","PRIORITY")%>'); //setDisabled(false); setDisabledOn('__wf__employeeid'); setDisabledOn('priority'); <% if(!chkNull.chkNullString(request.getParameter("step_id")).equals("2")){ %> setDisabledOn('__wf__topic1'); setDisabledOn('__wf__topic2'); setDisabledOn('__wf__topic3'); setDisabledOn('__wf__topic4'); setDisabledOn('__wf__topic5'); setDisabledOn('__wf__topic6'); setDisabledOn('__wf__topic7'); setDisabledOn('__wf__topic8'); setDisabledOn('__wf__topic9'); setDisabledOn('__wf__topic10'); setDisabledOn('__wf__point1'); setDisabledOn('__wf__point2'); setDisabledOn('__wf__point3'); setDisabledOn('__wf__point4'); setDisabledOn('__wf__point5'); setDisabledOn('__wf__point6'); setDisabledOn('__wf__point7'); setDisabledOn('__wf__point8'); setDisabledOn('__wf__point9'); setDisabledOn('__wf__point10'); setDisabledOn('__wf__strongpoint'); setDisabledOn('__wf__weakpoint'); <% } %> </SCRIPT> <!-- End Set Value Step2 --> <% }else if(md.isStep3 || md.isAdminEdit || md.isAdminCancel || md.isAdminDelete || md.isAdminClean || md.isArchive){ %> <!-- Begin Set Value Step3 --> <INPUT TYPE="hidden" NAME="strongpoint" VALUE="<%=md.getWFDataValue("__wf__strongpoint")%>"> <INPUT TYPE="hidden" NAME="weakpoint" VALUE="<%=md.getWFDataValue("__wf__weakpoint")%>"> <INPUT TYPE="hidden" NAME="commment1" VALUE="<%=md.getWFDataValue("__wf__commment1")%>"> <INPUT TYPE="hidden" NAME="commment2" VALUE="<%=md.getWFDataValue("__wf__commment2")%>"> <INPUT TYPE="hidden" NAME="commment3" VALUE="<%=md.getWFDataValue("__wf__commment3")%>"> <INPUT TYPE="hidden" NAME="commment4" VALUE="<%=md.getWFDataValue("__wf__commment4")%>"> <SCRIPT LANGUAGE="JavaScript"> setValue('__wf__employeeid','<%=md.getWFDataValue("__wf__employeeid")%>'); setValue('__wf__point1','<%=md.getWFDataValue("__wf__point1")%>'); setValue('__wf__point2','<%=md.getWFDataValue("__wf__point2")%>'); setValue('__wf__point3','<%=md.getWFDataValue("__wf__point3")%>'); setValue('__wf__point4','<%=md.getWFDataValue("__wf__point4")%>'); setValue('__wf__point5','<%=md.getWFDataValue("__wf__point5")%>'); setValue('__wf__point6','<%=md.getWFDataValue("__wf__point6")%>'); setValue('__wf__point7','<%=md.getWFDataValue("__wf__point7")%>'); setValue('__wf__point8','<%=md.getWFDataValue("__wf__point8")%>'); setValue('__wf__point9','<%=md.getWFDataValue("__wf__point9")%>'); setValue('__wf__point10','<%=md.getWFDataValue("__wf__point10")%>'); setValue('__wf__topic1','<%=md.getWFDataValue("__wf__topic1")%>'); setValue('__wf__topic2','<%=md.getWFDataValue("__wf__topic2")%>'); setValue('__wf__topic3','<%=md.getWFDataValue("__wf__topic3")%>'); setValue('__wf__topic4','<%=md.getWFDataValue("__wf__topic4")%>'); setValue('__wf__topic5','<%=md.getWFDataValue("__wf__topic5")%>'); setValue('__wf__topic6','<%=md.getWFDataValue("__wf__topic6")%>'); setValue('__wf__topic7','<%=md.getWFDataValue("__wf__topic7")%>'); setValue('__wf__topic8','<%=md.getWFDataValue("__wf__topic8")%>'); setValue('__wf__topic9','<%=md.getWFDataValue("__wf__topic9")%>'); setValue('__wf__topic10','<%=md.getWFDataValue("__wf__topic10")%>'); setValue('__wf__result01','<%=md.getWFDataValue("__wf__result01")%>'); setValue('__wf__result02','<%=md.getWFDataValue("__wf__result02")%>'); setValue('__wf__result03','<%=md.getWFDataValue("__wf__result03")%>'); setValue('__wf__result04','<%=md.getWFDataValue("__wf__result04")%>'); //setValue('__wf__strongpoint','<%//=md.getWFDataValue("__wf__strongpoint")%>'); //setValue('__wf__weakpoint','<%//=md.getWFDataValue("__wf__weakpoint")%>'); //setValue('__wf__commment1','<%//=md.getWFDataValue("__wf__commment1")%>'); //setValue('__wf__commment2','<%//=md.getWFDataValue("__wf__commment2")%>'); //setValue('__wf__commment3','<%//=md.getWFDataValue("__wf__commment3")%>'); setValue('__wf__topic7','<%=md.getWFDataValue("__wf__topic7")%>'); setValue('__wf__strongpoint',document.cscform.strongpoint.value); setValue('__wf__weakpoint',document.cscform.weakpoint.value); setValue('__wf__commment1',document.cscform.commment1.value); setValue('__wf__commment2',document.cscform.commment2.value); setValue('__wf__commment3',document.cscform.commment3.value); setValue('__wf__commment4',document.cscform.commment4.value); searchEmp(); setValue('priority','<%=screenSingle.getDataLabel("VW_INCIDENT","PRIORITY")%>'); <%if(!md.isAdminEdit){%> setDisabled(true); <%}%> </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"><DIV ALIGN="center"><SPAN CLASS="txt02"> </SPAN></DIV></TD> </TR> </TABLE> <%=screenSingle.endJSP()%> </FORM> <script language="javascript"> </script> </BODY> </HTML> <% } %>