Commit c73f32a8 by Ratchanok

Routing - ใบอัตรากำลัง, ใบอัตรากำลัง (กรณีพิเศษ)

parent f1a7db4e
......@@ -18,7 +18,7 @@
<FIELD name="REQUEST_BY" setcolumn="1" fix_value="" not_null="0">REQUEST_BY</FIELD>
<FIELD name="WF_SEQ_NO" setcolumn="1" fix_value="0" not_null="0">WF_SEQ_NO</FIELD>
<FIELD name="DOC_DATE" setcolumn="1" fix_value="" not_null="0">DOC_DATE</FIELD>
<FIELD name="REQ_STATUS" setcolumn="1" fix_value="" not_null="0">REQ_STATUS</FIELD>
<FIELD name="REQ_STATUS" setcolumn="1" fix_value="1" not_null="0">REQ_STATUS</FIELD>
<FIELD name="JOBID" setcolumn="1" fix_value="" not_null="0">JOBID</FIELD>
<FIELD name="POSITIONID" setcolumn="1" fix_value="" not_null="0">POSITIONID</FIELD>
<FIELD name="RESPONSIBILITY" setcolumn="1" fix_value="" not_null="0">RESPONSIBILITY</FIELD>
......@@ -54,6 +54,9 @@
<FIELD name="CONTACT_DURATION_ENDDATE" setcolumn="1" fix_value="" not_null="0">CONTACT_DURATION_ENDDATE</FIELD>
<FIELD name="REASON_DESC" setcolumn="1" fix_value="" not_null="0">ADD_REASON</FIELD>
<FIELD name="EMP_REASON" setcolumn="1" fix_value="" not_null="0">EMP_REASON</FIELD>
<FIELD name="ROUTER" setcolumn="1" fix_value="[]" not_null="0">ROUTER</FIELD>
<FIELD name="RESPONSIBLEOBJ" setcolumn="1" fix_value="[]" not_null="0">RESPONSIBLEOBJ</FIELD>
<FIELD name="MAJORS" setcolumn="1" fix_value="[]" not_null="0">MAJORS</FIELD>
</TABLE>
</DESTINATION_TABLE>
</WORKFLOW>
everyone MAIN,CHECKMODULE,PRU084,PRU084NEW,PRR084,ASR001,ASR001TABLE,ASR002,ASR003,CSCQUQUE04,CSCQUQUE_PAYROLL,CSCQUQUE03,CSCQUQUE01,CSCQUQUE02,EMPVIEW/INDEX,CSCLOG001,LOGIN,LOGOUT,AUTHORIZEERROR,BROWSE_USER,BROWSE_HELP,BROWSE_HELP2,REFERENCE_NOTE,FORM_LIST,COM_INDEX,CI_HEADER,COM_MENU,PSN_INDEX,PSN_HEADER,PSN_MENU,SET_INDEX,SET_HEADER,SET_MENU,TA_INDEX,TA_HEADER,TA_MENU,PR_INDEX,PR_HEADER,PR_MENU,SENT_COMPLETE,UPLOAD_ATTACHFILE,DELETEFILE,TAU_NSTDA_002,WEL_INDEX,WEL_MENU,WEL_HEADER,PM/INBOX,PM/OUTBOX,PM/COMPOSE,PM/REPLY,PM/RESEND,PM/TOOLBAR,PM/USERLISTHELP,MWELFAREHELP,ER_HEADER,ER_MENU,ER_INDEX,UNTITLEDFRAME-1,ER1306_NOW,RD002,RD001,RD003,PRR001TABLE,PRT003,PWF001,PWF002,PWF003,PWF008,PWF005,PWF201,TAU_NSTDA_001,TAU_NSTDA_002,TAU_NSTDA_003,TAU_NSTDA_004,TAU_NSTDA_005,TAU_NSTDA_006,TAU_NSTDA_007,TAU_NSTDA_008,TAU_NSTDA_009,RD000,RD001,RD002,RD003,RD004,WEL212_NSTDA,USERONLINE,COM_HEADER,PM_INBOX,PM_OUTBOX,PM_COMPOSE,PRU085,RECRUIT/REC_HEADER,RECRUIT/REC_MENU,RECRUIT/REC_INDEX,APPRAISAL/AS_INDEX,APPRAISAL/AS_MENU,APPRAISAL/AS_HEADER,TRAINING/TRN_HEADER,TRAINING/TRN_INDEX,TRAINING/TRN_MENU,UPLOADFILE,EMPVIEW/TREMP013_1,EMPVIEW/EMP_NEWEMPALL,BROWSE_USER_CC,TA/TAU_CSCWF_001,USERLISTHELP,PM_REPLY,PM_RESEND,MYNOTE/INBOX,CODIM001,CODIM002,CODIM003,CODIM004,CODIM005,TRR001TABLE,MDOCGHELP2,MDOCHELP1,,EMPVIEW/EMP_NEWEMPALL,BROWSE_USER_CC,EMPVIEW/REC001,BROWSE_HELP2,BROWSE_WELFAREHELP,BROWSE_TIMEHELP,TRR001TABLE,MDOCGHELP2,MDOCHELP1,PRU087,SHOWNLEAVE_DETAIL,EMPVIEW/EMV024,XLSOPTION,EMPVIEW/REV002,EMPVIEW/REV001,TRAINING/TRAWF_004_GPF,EXPEXCEL,EMPVIEW/TREMP010,EMPVIEW/TREMP011,PAYROLL/SYSHELP,RECRUIT/REC201,PRU087_WF,WORKFLOW/USER_PROFILE_WORKFLOW_MENU,RD006,PI_PASSWORD,EMPVIEW/EMV_NEWEMP,EMPVIEW/EMV_BIRTHDAY,EMPVIEW/EMV_PROMOTION,EMPVIEW/EMV_ANNIVERSARY,EMPVIEW/EMV_AWARDING,EMPVIEW/EMV_ANNOUNCEMENT_ALL,EMPVIEW/EMV_ANNOUNCEMENT_DETAIL,EMPVIEW/EMV_EVENT_ALL,EMPVIEW/EMV_SETLANG,EMPVIEW/REC610HELP,EMPVIEW/OI_JOBDESC,EMPVIEW/REC201,EMPVIEW/CONTROLERR,EMPVIEW/PM_MESSAGE,EMPVIEW/PM_LISTPM,EMPVIEW/SHOWSHIFTLIST_ADMIN,EMPVIEW/REC201_PHATRA,EMPVIEW/EMV_USERSETTING,EMPVIEW/HANDBOOK,EMPVIEW/EMV_EXPERIENCEHELP,ASR001_STD,ASR003_STD,HELPPAGE,EMPVIEW/EMP_VIDEO,EXAM/PRU084_NEW_APS,EXAM/PRU084_DECORATE,EXAM/EXAM_INDEX,MODULE_SELECT,PWDEXPIRE,MYMODULE,PERSONAL/PRU084_NEWHIRE,WF0000,PAYROLL/PRT010,PAYROLL/PRR322_DHASOPTION,PAYROLL/PRT003-BANK,PAYROLL/PRT003-TAX,PAYROLL/PRT003-SOC,PAYROLL/PRT003-EASYBUY,PAYROLL/EXPORTTAX,EXPORTTAX_1KOR,PAYROLL/EXPORTSOC,PAYROLL/PRR002,ASR002_STD,PRU_FORMULAHELP,TA/TAR017,BRAINSTROM/BRAINSTROM_INDEX,TA/TAU_CSCWF_004_CENTER,XLSDASHBOARD,XLSDASHBOARDCOLUMN,XLSDASHBOARDFILTER,XLSPIVOT,XLSPIVOTCHART,EMPVIEW/EMP_EXLINK,TRAINING/BROWSE_HELP_MULTI,XLSOPTION_WITH_SECURITY,RECRUIT/RWF001,RECRUIT/RWF001_DHAS,PERSONAL/MAILMERGE_DHAS_001
everyone MAIN,CHECKMODULE,PRU084,PRU084NEW,PRR084,ASR001,ASR001TABLE,ASR002,ASR003,CSCQUQUE04,CSCQUQUE_PAYROLL,CSCQUQUE03,CSCQUQUE01,CSCQUQUE02,EMPVIEW/INDEX,CSCLOG001,LOGIN,LOGOUT,AUTHORIZEERROR,BROWSE_USER,BROWSE_HELP,BROWSE_HELP2,REFERENCE_NOTE,FORM_LIST,COM_INDEX,CI_HEADER,COM_MENU,PSN_INDEX,PSN_HEADER,PSN_MENU,SET_INDEX,SET_HEADER,SET_MENU,TA_INDEX,TA_HEADER,TA_MENU,PR_INDEX,PR_HEADER,PR_MENU,SENT_COMPLETE,UPLOAD_ATTACHFILE,DELETEFILE,TAU_NSTDA_002,WEL_INDEX,WEL_MENU,WEL_HEADER,PM/INBOX,PM/OUTBOX,PM/COMPOSE,PM/REPLY,PM/RESEND,PM/TOOLBAR,PM/USERLISTHELP,MWELFAREHELP,ER_HEADER,ER_MENU,ER_INDEX,UNTITLEDFRAME-1,ER1306_NOW,RD002,RD001,RD003,PRR001TABLE,PRT003,PWF001,PWF002,PWF003,PWF008,PWF005,PWF201,TAU_NSTDA_001,TAU_NSTDA_002,TAU_NSTDA_003,TAU_NSTDA_004,TAU_NSTDA_005,TAU_NSTDA_006,TAU_NSTDA_007,TAU_NSTDA_008,TAU_NSTDA_009,RD000,RD001,RD002,RD003,RD004,WEL212_NSTDA,USERONLINE,COM_HEADER,PM_INBOX,PM_OUTBOX,PM_COMPOSE,PRU085,RECRUIT/REC_HEADER,RECRUIT/REC_MENU,RECRUIT/REC_INDEX,APPRAISAL/AS_INDEX,APPRAISAL/AS_MENU,APPRAISAL/AS_HEADER,TRAINING/TRN_HEADER,TRAINING/TRN_INDEX,TRAINING/TRN_MENU,UPLOADFILE,EMPVIEW/TREMP013_1,EMPVIEW/EMP_NEWEMPALL,BROWSE_USER_CC,TA/TAU_CSCWF_001,USERLISTHELP,PM_REPLY,PM_RESEND,MYNOTE/INBOX,CODIM001,CODIM002,CODIM003,CODIM004,CODIM005,TRR001TABLE,MDOCGHELP2,MDOCHELP1,,EMPVIEW/EMP_NEWEMPALL,BROWSE_USER_CC,EMPVIEW/REC001,BROWSE_HELP2,BROWSE_WELFAREHELP,BROWSE_TIMEHELP,TRR001TABLE,MDOCGHELP2,MDOCHELP1,PRU087,SHOWNLEAVE_DETAIL,EMPVIEW/EMV024,XLSOPTION,EMPVIEW/REV002,EMPVIEW/REV001,TRAINING/TRAWF_004_GPF,EXPEXCEL,EMPVIEW/TREMP010,EMPVIEW/TREMP011,PAYROLL/SYSHELP,RECRUIT/REC201,PRU087_WF,WORKFLOW/USER_PROFILE_WORKFLOW_MENU,RD006,PI_PASSWORD,EMPVIEW/EMV_NEWEMP,EMPVIEW/EMV_BIRTHDAY,EMPVIEW/EMV_PROMOTION,EMPVIEW/EMV_ANNIVERSARY,EMPVIEW/EMV_AWARDING,EMPVIEW/EMV_ANNOUNCEMENT_ALL,EMPVIEW/EMV_ANNOUNCEMENT_DETAIL,EMPVIEW/EMV_EVENT_ALL,EMPVIEW/EMV_SETLANG,EMPVIEW/REC610HELP,EMPVIEW/OI_JOBDESC,EMPVIEW/REC201,EMPVIEW/CONTROLERR,EMPVIEW/PM_MESSAGE,EMPVIEW/PM_LISTPM,EMPVIEW/SHOWSHIFTLIST_ADMIN,EMPVIEW/REC201_PHATRA,EMPVIEW/EMV_USERSETTING,EMPVIEW/HANDBOOK,EMPVIEW/EMV_EXPERIENCEHELP,ASR001_STD,ASR003_STD,HELPPAGE,EMPVIEW/EMP_VIDEO,EXAM/PRU084_NEW_APS,EXAM/PRU084_DECORATE,EXAM/EXAM_INDEX,MODULE_SELECT,PWDEXPIRE,MYMODULE,PERSONAL/PRU084_NEWHIRE,WF0000,PAYROLL/PRT010,PAYROLL/PRR322_DHASOPTION,PAYROLL/PRT003-BANK,PAYROLL/PRT003-TAX,PAYROLL/PRT003-SOC,PAYROLL/PRT003-EASYBUY,PAYROLL/EXPORTTAX,EXPORTTAX_1KOR,PAYROLL/EXPORTSOC,PAYROLL/PRR002,ASR002_STD,PRU_FORMULAHELP,TA/TAR017,BRAINSTROM/BRAINSTROM_INDEX,TA/TAU_CSCWF_004_CENTER,XLSDASHBOARD,XLSDASHBOARDCOLUMN,XLSDASHBOARDFILTER,XLSPIVOT,XLSPIVOTCHART,EMPVIEW/EMP_EXLINK,TRAINING/BROWSE_HELP_MULTI,XLSOPTION_WITH_SECURITY,RECRUIT/RWF001,RECRUIT/RWF001_DHAS,PERSONAL/MAILMERGE_DHAS_001,RECRUIT/RWF001_DHAS_SP
......@@ -101,6 +101,7 @@
<MENU ename="Recruitment Workflow Requisition Form" tname="แบบฟอร์ม Recuitment" swlang="" link="javascript:;" code="WFFORM05" target="" group="WFFORM05">
<MENU ename="Manpower Requisition" tname="ใบขออัตรากำลัง" swlang="WF5001" link="../RECRUIT/RWF001.jsp" code="WFFORM0501" target="" group="WFFORM0501" page="RECRUIT/RWF001,RECRUIT/SearchEmp"/>
<MENU ename="Manpower Requisition (DHAS)" tname="ใบขออัตรากำลัง (DHAS)" swlang="SW013282" link="../RECRUIT/RWF001_DHAS.jsp" code="WFFORM0501" target="" group="WFFORM0501" page="RECRUIT/RWF001_DHAS,RECRUIT/SearchEmp"/>
<MENU ename="Manpower Requisition (Special)" tname="ใบขออัตรากำลัง (กรณีพิเศษ)" swlang="" link="../RECRUIT/RWF001_DHAS_SP.jsp" code="WFFORM0503" target="" group="WFFORM0503" page="RECRUIT/RWF001_DHAS_SP,RECRUIT/SearchEmp"/>
</MENU>
<MENU ename="Welfare Workflow Requisition Form" tname="แบบฟอร์ม Welfare" swlang="" link="" code="WFFORM07" target="" group="WFFORM07">
<MENU ename="Request form for changing rate of subsidy and proportion of saving money" tname="ใบขอเปลี่ยนแปลงอัตราเงินสะสม" swlang="WF3210" link="../WELFARE/WEL210_NSTDA_NEW.jsp" code="WFFORM0311" target="" group="WFFORM0710" page="WELFARE/WEL210_NSTDA_NEW"/>
......
......@@ -943,7 +943,7 @@ $(function(){
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="txt01"></td>
<td class="txt01" bgcolor="#EFEFEF"></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="checkbox" class="css_data_item" name="__wf__subrequest" value="1"><span swlang code='SW006984'>Substitution Request</span></td>
</tr>
......
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="java.util.*,java.io.*"%>
<%@page import="com.csc.library.util.download.*"%>
<%@page import="com.csc.library.util.ManageDocument"%>
<%@page import="com.csc.library.approve.*,com.csc.library.databean.*"%>
<%@page import="com.csc.library.entry.*,com.csc.library.utilities.*"%>
<%@page import="com.csc.library.session.*"%>
<%@page import="com.csc.library.components.*"%>
<%request.setCharacterEncoding("UTF-8");%>
<!-- Begin useBean -->
<jsp:useBean id="TEMPLATE_WORKFLOW" class="com.csc.library.system.Task" scope="page"/>
<%
TEMPLATE_WORKFLOW.setChannel(request,response);
TEMPLATE_WORKFLOW.checkProfile();
if( TEMPLATE_WORKFLOW.getUProfile() != null ){
TEMPLATE_WORKFLOW.getUProfile().set("appname","RECRUIT");
UIManager screenSingle = (UIManager) TEMPLATE_WORKFLOW.process("SingleEntry","TEMPLATE_WORKFLOW");
/*boolean isStep1 = false;
boolean isStep2 = false;
boolean isStep3 = false;
boolean isStepCancel = false;
boolean isStepComment = false;
boolean isStepReturn = false;
boolean isStepCopy = false;
boolean isDraft = false;
boolean isAdminEdit = false;
boolean isAdminCancel = false;
boolean isAdminDelete = false;
boolean isAdminClean = false;
boolean isArchive = false;*/
String wf = null;
CheckNull chkNull = new CheckNull();
Organization og = new Masfactor(screenSingle.getUProfile());
String subject = null;
String remark = null;
String step_type = null;
String emp_fullname = null;
String bossid = og.getBoss(screenSingle.getUProfile().get("employeeid"),screenSingle.getUProfile().get("job")).get(0).toString();
String bossjob = bossid.substring(bossid.indexOf(":")+1);
CscCalendar calendar = new CscCalendar();
long attach_time = Long.parseLong(chkNull.chkNullString(request.getParameter("attach_time"),String.valueOf(calendar.getTimeInMillis())));
ManageDocument md = new ManageDocument();
md.setUProfile(screenSingle.getUProfile());
md.setRequest(request);
md.setScreen(screenSingle);
if( !chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){
subject = chkNull.chkNullString(request.getParameter("subject"));
remark = chkNull.chkNullString(request.getParameter("__remark"));
emp_fullname = chkNull.chkNullString(request.getParameter("emp_fullname"));
}else if( chkNull.chkNullString(request.getParameter("__cmd")).equals("save") ){
//response.sendRedirect("../MYNOTE/SENT_COMPLETE.jsp");
if(chkNull.chkNullString(request.getParameter("isAdminEdit")).equals("true")){
response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_EDIT.jsp");
}else if(chkNull.chkNullString(request.getParameter("isAdminCancel")).equals("true")){
response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_CANCEL.jsp");
}else if(chkNull.chkNullString(request.getParameter("isAdminClean")).equals("true")){
response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_CLEAN.jsp");
}else if(chkNull.chkNullString(request.getParameter("isAdminDelete")).equals("true")){
response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_DELETE.jsp");
}else{
response.sendRedirect("../MYNOTE/SENT_COMPLETE.jsp");
}
}else{
subject = "";
remark = "";
emp_fullname = "";
}
bossid = bossid.substring(0,bossid.indexOf(":"));
DbRecord memployee_dr = new InitialRecord(screenSingle.getUProfile()).getDbRecord("Memployee");
memployee_dr.setColumn("*");
memployee_dr.set("COMPANYID",screenSingle.getUProfile().get("companyid"));
memployee_dr.set("EMPLOYEEID",bossid);
memployee_dr.search();
//WF_STATUS 1 = รอการอนุมัติ
// 3 = ยกเลิกการอนุมัติ
// 4 = อนุมัติแล้ว
// 5 = ไม่อนุมัติ
// 6 = แก้ไขโดย HR
// 7 = ส่งกลับ
// 8 = ยกเลิกเอกสาร
// 9 = ประวัติ
if( (request.getParameter("__runno") == null || request.getParameter("__runno").equals("")) &&
(request.getParameter("__help") == null || request.getParameter("__help").equals("")) ){
screenSingle.clean();
}
if( (!screenSingle.getDataLabel("WF_STATUS").equals("1")) && (!screenSingle.getDataLabel("WF_STATUS").equals("4")) &&
(!screenSingle.getDataLabel("WF_STATUS").equals("7")) ){
wf = "false";
}else{
wf = "true";
}
if( request.getParameter("downfile") != null ){
ThaiUtilities tu = new ThaiUtilities();
String filePath = request.getParameter("downfile");
File f = new File(tu.ASCII2Unicode(filePath));
String fileName = f.getName();
String fileType = fileName.substring(fileName.indexOf(".")+1,fileName.length());
if ( f.exists() && f.canRead() ) {
response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition", "attachment; filename="+tu.Unicode2ASCII(f.getName()));
//response.setHeader("cache-control", "no-cache");
response.setContentLength((int) f.length());
BufferedInputStream fileInput = new BufferedInputStream(new FileInputStream(f));
byte buffer[] = new byte[8 * 1024];
out.clearBuffer();
OutputStream out_s = response.getOutputStream();
CopyStreams.copyStreamsWithoutClose(fileInput, out_s, buffer);
out_s.flush();
out_s.close();
fileInput.close();
}
}
%>
<!-- 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='../TA/JS/TA_SCREEN.js'></SCRIPT>
<link href="../CSS/bootstrap_csc_backend.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script type='text/javascript' src="../JS/bootstrap.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 -->
<!--DWR INCLUDE-->
<script type='text/javascript' src='/hr/dwr/interface/SearchDWR.js'></script>
<script type='text/javascript' src='/hr/dwr/engine.js'></script>
<script type='text/javascript' src='/hr/dwr/util.js'></script>
<script type="text/javascript" src="/hr/dwr/interface/SystemCode.js"></script>
<script type="text/javascript" src="/hr/dwr/interface/CscCalendar.js"></script>
<script type="text/javascript" src="/hr/dwr/interface/Tot_m_date0_dwr.js"></script>
<script type="text/javascript" src="/hr/dwr/interface/Tchangeshift_nstda_dwr.js"></script>
<script src="../JS/VIEWCALENDAR.js"></script>
<!--DWR INCLUDE-->
<style type=text/css>
TABLE.toolTip{
border:0;
width:0px;
background:#6699FF;
font-family: "Microsoft Sans Serif", "MS Sans Serif", sans-serif;
//color: #00000;
font-size: 12px;
}
.hide{
display : none;
}
input[type="checkbox"]{
margin: 0px 0 0;
vertical-align:middle;
}
</style>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript">
<!--
function goHelp(helpName,inputName,condition){
with( document.cscform ){
var helpReturn;
var temp;
selectjob.value = "";
if( inputName == "sendto" ){
temp = __fixCon.value;
//__fixCon.value="job='"+condition+"'";
if( condition.indexOf(",") > -1 ){
condition = condition.replace(/,/g,"','");
}
//__fixCon.value="EMPLOYEEID IN ("+condition+")";
__fixCon.value="EMPLOYEEID IN ("+condition+") AND STATUS IN ('A','S','T','V')";
helpReturn="wf_next_actor:EMPLOYEEID,sendto:MEMPLOYEE@FULLNAME";
linkHelp_SendToReturn(helpName,helpReturn);
__fixCon.value=temp;
}else if( inputName == "cc" ){
temp = __fixCon.value;
//__fixCon.value="STATUS IN ('A','S','T','V')";
helpReturn="wf_cc_actor:EMPLOYEEID,cc:MEMPLOYEE@FULLNAME";
//linkHelp_SendToReturn(helpName,helpReturn);
linkHelp_CCReturn(helpName,helpReturn);
__fixCon.value=temp;
}else if( inputName=="__wf__jobid" ){
var fixcon="";
if(__wf__bu1.value!="")
fixcon+=" and bu1='"+__wf__bu1.value+"'";
if(__wf__bu2.value!="")
fixcon+=" and bu2='"+__wf__bu2.value+"'";
if(__wf__bu3.value!="")
fixcon+=" and bu3='"+__wf__bu3.value+"'";
if(__wf__positionid.value!="")
fixcon+=" and jobcode_position='"+__wf__positionid.value+"'";
if(__wf__branch.value!="")
fixcon+=" and branchid='"+__wf__branch.value+"'";
if(fixcon.length>0)
fixcon=fixcon.substring(4,fixcon .length);
selectjob.value = "1";
temp = __fixCon.value;
__fixCon.value=fixcon;
helpReturn="__wf__jobid:jobcodeid,__wf__jobDesc:tdesc,__wf__fromage:age0,__wf__toage:age1,__wf__positionid:mposition.positionid,__wf__positionDesc:mposition.tdesc,__wf__bu1:mbu1.bu1id,__wf__bu1Desc:mbu1.tdesc,__wf__bu2:mbu2.bu2id,__wf__bu2Desc:mbu2.tdesc,__wf__bu3:mbu3.bu3id,__wf__bu3Desc:mbu3.tdesc,__wf__branch:mbranch.branchid,__wf__branchDesc:mbranch.tdesc";
linkHelp_Return(helpName,helpReturn);
__fixCon.value=temp;
}else if( inputName=="__wf__positionid" ){
// temp = __fixCon.value;
// helpReturn="__wf__positionid:positionid,__wf__positionDesc:tdesc";
// linkHelp_Return(helpName,helpReturn);
// __fixCon.value=temp;
}else if( inputName=="__wf__branch" ){
// temp = __fixCon.value;
// helpReturn="__wf__branch:branchid,__wf__branchDesc:tdesc";
// linkHelp_Return(helpName,helpReturn);
// __fixCon.value=temp;
}else if( inputName=="__wf__bu1" ){
// temp = __fixCon.value;
// helpReturn="__wf__bu1:bu1id,__wf__bu1Desc:tdesc";
// linkHelp_Return(helpName,helpReturn);
// __fixCon.value=temp;
}else if( inputName=="__wf__bu2" ){
// var fixcon="";
// if(__wf__bu1.value!="")
// fixcon+=" and parent='"+__wf__bu1.value+"'";
// if(fixcon.length>0)
// fixcon=fixcon.substring(4,fixcon .length);
// temp = __fixCon.value;
// __fixCon.value=fixcon;
// helpReturn="__wf__bu2:bu2id,__wf__bu2Desc:tdesc";
// linkHelp_Return(helpName,helpReturn);
// __fixCon.value=temp;
}else if( inputName=="__wf__bu3" ){
// var fixcon="";
// if(__wf__bu2.value!="")
// fixcon+=" and parent='"+__wf__bu2.value+"'";
// if(fixcon.length>0)
// fixcon=fixcon.substring(4,fixcon .length);
// temp = __fixCon.value;
// __fixCon.value=fixcon;
// helpReturn="__wf__bu3:bu3id,__wf__bu3Desc:tdesc";
// linkHelp_Return(helpName,helpReturn);
// __fixCon.value=temp;
}
}
}
function goHelp2(helpName,inputName,condition){
with( document.cscform ){
var helpReturn;
var temp;
if( inputName == "sendto" ){
temp = __fixCon.value;
//__fixCon.value="job='"+condition+"'";
if( condition.indexOf(",") > -1 ){
condition = condition.replace(/,/g,"','");
}
//__fixCon.value="EMPLOYEEID IN ("+condition+")";
__fixCon.value=condition + " AND STATUS IN ('A','S','T','V')";
helpReturn="wf_next_actor:EMPLOYEEID,sendto:__wf__fullname";
linkHelp_SendToReturn(helpName,helpReturn);
__fixCon.value=temp;
}
}
}
function postReturn(){
with(document.cscform){
if(selectjob.value === "1"){
searchJobcode(__wf__jobid.value);
}
}
}
function searchJobcode(id){
SearchDWR.searchDBXMLAll(new Array("MJOBCODEHELP","mjobcode.responsibility,mjobcode.experience","mjobcode:jobcodeid = '"+id+"'","false","langoff"),jobcode);
}
var jobcode = function(data) {
var jobcodeRec=new Array("__wf__responsibility","__wf__experience");
if(data.length>0) {
for(i=0;i<jobcodeRec.length;i++){
dwr.util.setValue(jobcodeRec[i],data[0][i]);
}
} else {
for(i=0;i<trainingRec.length;i++){
dwr.util.setValue(jobcodeRec[i],"");
}
document.cscform.__wf__jobid.value="";
}
}
function linkHelp_SendToReturn(help,input){
with( document.cscform ){
var param = "BROWSE_USER.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off";
window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
}
}
function linkHelp_Return(help,input){
with( document.cscform ){
var param="BROWSE_HELP.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off";
window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
}
}
function linkHelpWF(help,input){
with(document.cscform){
var temp = __fixCon.value;
var fix = "wf_id='"+wf_id.value+"' and wf_ver='"+wf_ver.value+"' and initiator='<%=screenSingle.getUProfile().get("actor")%>' and (wf_status<>'6' and wf_status<>'3' and wf_status<>'8' and wf_status<>'A' and wf_status<>'B' and wf_status<>'')";
var param="BROWSE_HELP.jsp?__helpName="+help+"&__fieldSearch="+input+"&__pageCall="+__screen.value+"&__fixCon="+fix;
window.open(param,"Help","left=150,top=150,width=530,height=370,resizable=yes,scrollbars=yes,toolbar=no,status=yes");
__fixCon.value = temp;
}
}
function linkHelp_CCReturn(help,input){
with( document.cscform ){
var param = "BROWSE_USER_CC.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off";
window.open(param,"Help","left=450,top=30,width=550,height=600,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
}
}
function openHelp(){
with( document.cscform ){
window.open("","Help","left=150,top=150,width=700,height=570,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
}
}
function GetXmlHttpObject(){
var xmlHttp=null;
try{
xmlHttp=new XMLHttpRequest();
if (xmlHttp.overrideMimeType) {
xmlHttp.overrideMimeType('text/xml');
}
}
catch (e){
// alert(" Internet Explorer");
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e){
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
function getList(scode,name,span,onchange){
var xmlHttp;
if (scode.length==0){
document.getElementById(span).innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null){
alert ("Your browser does not support AJAX!");
return;
}
var url="getSystemCode.jsp";
url=url+"?scode="+scode;
url=url+"&name="+name;
url=url+"&onchange="+onchange;
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange=function(){stateChanged(xmlHttp,span,name,onchange);};
xmlHttp.send(null);
}
function stateChanged(xmlHttp,span,name,onchange){
if (xmlHttp.readyState==4&& xmlHttp.status == 200){
document.getElementById(span).innerHTML=xmlHttp.responseText;
var shortname = name.substring(6,name.length);
var v = document.getElementsByName(shortname);
if(v&&v.length>0){
dwr.util.setValue(name,v[0].value);
eval(onchange);
}
/*if(onchange!=""){
//alert(onchange);
eval(onchange);
}*/
}
}
function chkInteger(){
if ((window.event.keyCode < 49) || (window.event.keyCode > 53))
window.event.returnValue = false;
}
function chkChange(){
with(document.cscform){
if(__wf__emp_type.options[__wf__emp_type.selectedIndex].value=="2"){
document.getElementById("duration").style.display = "";
__wf__contact_duration.disabled=false;
//__wf__contact_duration.focus();
}
else{
document.getElementById("duration").style.display = "none";
__wf__contact_duration.disabled=true;
}
}
}
function goSearch(tbody){
var oldList ="";
with(document.cscform){
if(tbody=="comList"){
for(var i=0;i<elements.length;i++){
if ((elements[i].type=="checkbox")&&elements[i].name.indexOf("cb_com")!=-1){
if(elements[i].value!=""){
oldList+="'"+elements[i].value+"',";
}
}
}
}
else if(tbody=="subList"){
for(var i=0;i<elements.length;i++){
if ((elements[i].type=="checkbox")&&elements[i].name.indexOf("cb_sub")!=-1){
if(elements[i].value!=""){
oldList+="'"+elements[i].value+"',";
}
}
}
}
}
var page = "SearchEmp.jsp?tbody="+tbody+"&old="+oldList;
var win = window.open( page,"Search","left=150,top=150,width=680,height=450,toolbar=no,status=yes,scrollbars=yes,resizable=yes");
}
function setBranch(empid){
SearchDWR.searchAll(new Array("Memployee","branch","employeeid='"+empid+"'",""),function(data){
dwr.util.setValue("__wf__branchid",data[0][0]);
});
}
function searchEmp(list,tbody){
SearchDWR.searchDBXMLAll(new Array("MEMPLOYEEHELP","memployee.employeeid,memployee.fullname,mposition.tdesc,mbu1.tdesc,mbu2.tdesc,mbu3.tdesc,memployee.email",
"MEMPLOYEE:employeeid in ("+string2Sql(list)+")",
"false","langon"), {
callback:function(data) {
dwr.util.removeAllRows(tbody);
if(data.length>0) {
sendBack(data,tbody);
}
else{
dwr.util.removeAllRows(tbody);
}
}
});
}
function string2Sql(list){
var temp= list.split(",");
var sql="";
for(i=0;i<temp.length;i++){
sql+="'"+temp[i]+"',";
}
sql = sql.substring(0,sql.length-1);
return sql;
}
function deleteSList(){
with(document.cscform){
for(var i=0;i<elements.length;i++){
if((elements[i].type=="checkbox")&&(elements[i].name.indexOf("cb_sub")!=-1)){
if(elements[i].checked){
//var z = "(?<=,|^)";
var x = "(^"+elements[i].value+",)|(,"+elements[i].value+"$)|(^"+elements[i].value+"$)";
var y = "(,"+elements[i].value+",)";
var regEx= new RegExp(x,"gi");
var regEx2= new RegExp(y,"gi");
//var regEx3= new RegExp(z,"gi");
__wf__slist.value=__wf__slist.value.replace(regEx2,",").replace(regEx,"").replace(elements[i].value,"");
//__wf__slist.value=__wf__slist.value.replace(regEx3,"");
}
}
}
searchEmp(__wf__slist.value,"subList");
}
}
function sendBack(result,tbody){
with(document.cscform){
if(tbody=="comList"){
var cellFuncs = [
function(data1) { return "<input type='checkbox' name='cb_com' value='"+data1[0]+"'>"},
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[0]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[1]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[2]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[3]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[4]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[5]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[6]+"</span>"; }
];
}
else if(tbody=="subList"){
var i =1;
var cellFuncs = [
function(data1) { return "<input type='checkbox' name='cb_sub' value='"+data1[0]+"'>"},
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[0]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[1]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[2]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[3]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[4]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\">"+data1[5]+"</span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\"><select name=\"__wf__reason"+i+"\"><option value=\"0\">ลาออก</option><option value=\"1\">โอนย้าย</option></select></span>"; },
function(data1) { return "<span class='txt01' style=\"white-space:nowrap\"><input size=\"10\" type=\"text\" name=\"__wf__adjdate"+i+"\" onkeypress = \"chkIntegerOfDate(this.value)\" onblur = \"chkInputDate(this)\" onkeyup = \"formatDate(this)\" >&nbsp;<a href=\"javascript:viewCal('__wf__adjdate"+(i++)+"')\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('999','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)\" ><img src=\"../IMAGES/BUTTON/MAIN/CALENDAR20.gif\" alt=\"Calendar\" name=\"Image19\" width=\"20\" height=\"20\" border=\"0\" align=\"absmiddle\"></a></span>"; }
];
}
dwr.util.addRows(tbody,result, cellFuncs, {
rowCreator: function(options) {
var row = document.createElement('tr');
row.style.backgroundColor = '#FFFFFF';
return row;
},
cellCreator:function(options) {
var td = document.createElement("td");
td.style.backgroundColor = '#EFEFEF';
td.align="center";
return td;
}
});
}
}
function delSub(table){
with(document.cscform){
if(table=="comTable"){
for(var i=0;i<elements.length;i++){
if ((elements[i].type=="checkbox")&&(elements[i].checked==true)&&elements[i].name.indexOf("cb_com")!=-1){
if(elements[i].value!=""){
deleteRow(elements[i],table);
}
}
}
}
else if(table=="subTable"){
for(var i=0;i<elements.length;i++){
if ((elements[i].type=="checkbox")&&(elements[i].checked==true)&&elements[i].name.indexOf("cb_sub")!=-1){
if(elements[i].value!=""){
deleteRow(elements[i],table);
}
}
}
}
}
}
function delSub(table){
with(document.cscform){
if(table=="comTable"){
for(var i=0;i<elements.length;i++){
if ((elements[i].type=="checkbox")&&(elements[i].checked==true)&&elements[i].name.indexOf("cb_com")!=-1){
if(elements[i].value!=""){
deleteRow(elements[i],table);
}
}
}
}
else if(table=="subTable"){
for(var i=0;i<elements.length;i++){
if ((elements[i].type=="checkbox")&&(elements[i].checked==true)&&elements[i].name.indexOf("cb_sub")!=-1){
if(elements[i].value!=""){
deleteRow(elements[i],table);
}
}
}
}
}
}
function deleteRow(r,table){
var i=r.parentNode.parentNode.rowIndex;
document.getElementById(table).deleteRow(i);
delSub(table);
}
function preGoWF(){
if(Trim(document.cscform.__wf__responsibility.value)==""){
alert("กรุณากรอกหน้าที่และความรับผิดชอบด้วย");
}
else if(Trim(document.cscform.__wf__jobid.value)==""){
alert("กรุณาเลือกตำแหน่งงานตามหน้าที่ด้วย");
}
else if(($('input[name="__wf__addrequest"]').prop("checked")==false) && ($('input[name="__wf__subrequest"]').prop("checked")==false)){
alert("กรุณา เหตุผลที่ขอ");
}
else GoWF();
}
function setDisabled(con){
with( document.cscform ){
for( i = 0 ; i < elements.length ; i++ ){
if( elements[i].type == 'text' || elements[i].type == 'textarea' ||
elements[i].type == 'checkbox' || elements[i].type == 'radio' ||
elements[i].type == 'select-one'
){
if( elements[i].name != 'sendto' && elements[i].name != 'cc' && elements[i].name != 'subject' && elements[i].name != 'wf_command' && elements[i].name != 'comments' && elements[i].name != '__remark' ){
if(elements[i].type != 'textarea')
elements[i].disabled = con;
else
elements[i].readOnly = con;
}
}
}
}
}
function chkCal(obj){
if(document.cscform.isEditableStep.value=="true")
viewCal(obj);
}
$(function(){
$(".css_data_item").click(function(){
if($(this).prop("checked")==true){
var indexObj=$(this).index(".css_data_item");
$(".css_data_item").not(":eq("+indexObj+")").prop( "checked", false );
}
});
});
//-->
</SCRIPT>
<script type="text/javascript" src="../JS/jquery-1.3.2.min.js" ></script>
<script type="text/javascript">
$(function(){
$("td.column-label").css("width","25%");
});
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF>
<jsp:include page="../MYNOTE_HEAD.jsp" flush="true"/>
<div align="center">
<!-- ImageReady Slices (02.psd) -->
<div align="center">
<FORM NAME="cscform" METHOD="post" ACTION="RWF001_DHAS_SP.jsp">
<INPUT TYPE="hidden" NAME="__screen" VALUE="RWF001_DHAS_SP">
<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="5004">
<INPUT TYPE="hidden" NAME="__wf_id" VALUE="5004">
<INPUT TYPE="hidden" NAME="wf_ver" VALUE="<%=chkNull.chkNullString(request.getParameter("wf_ver"),"1")%>">
<INPUT TYPE="hidden" NAME="__wf_ver" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf_ver"),"1")%>">
<INPUT TYPE="hidden" NAME="wf_seq_no" VALUE="<%=chkNull.chkNullString(request.getParameter("wf_seq_no"),"0")%>">
<INPUT TYPE="hidden" NAME="step_id" VALUE="<%=chkNull.chkNullString(request.getParameter("step_id"),"0")%>">
<INPUT TYPE="hidden" NAME="step_seq_no" VALUE="<%=chkNull.chkNullString(request.getParameter("step_seq_no"),"0")%>">
<INPUT TYPE="hidden" NAME="wf_return_actor" VALUE="IINIT">
<INPUT TYPE="hidden" NAME="__oldDocumentID" VALUE="<%=chkNull.chkNullString(request.getParameter("__oldDocumentID"),screenSingle.getDataLabel("DOC_NO"))%>">
<INPUT TYPE="hidden" NAME="__oldWF" VALUE="<%=chkNull.chkNullString(request.getParameter("__oldWF"),screenSingle.getDataLabel("WF_STATUS"))%>">
<INPUT TYPE="hidden" NAME="__wf" VALUE="<%=wf%>">
<INPUT TYPE="hidden" NAME="__wfcmd" VALUE="false">
<INPUT TYPE="hidden" NAME="remark" VALUE="<%=remark%>">
<INPUT TYPE="hidden" NAME="__wf__limitot" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__limitot"), "false")%>">
<INPUT TYPE="hidden" NAME="draft_cmd" VALUE="">
<INPUT TYPE="hidden" NAME="draft_no" VALUE="<%=chkNull.chkNullString(request.getParameter("draft_no"),"0")%>">
<INPUT TYPE="hidden" NAME="admin_cmd" VALUE="">
<INPUT TYPE="hidden" NAME="selectjob" 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"))%>">
<INPUT TYPE="hidden" NAME="__wf__doc_date" VALUE="<%=new CscCalendar().getDDMMYYYY()%>">
<INPUT TYPE="hidden" NAME="__wf__lastdate" VALUE="<%=new CscCalendar().getDDMMYYYY()%>">
<%=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">
<DIV ALIGN="center">
<!-- Begin Step1 -->
<%=md.getStepDocument("5004","1")%>
<%=md.getHeadDocument()%>
<br>
<%=md.getHelpDocument2("WF5004")%>
<br>
<%=md.getSendToDocumentNoSearch("WF5004")%>
<br>
<!-- Begin Code -->
<%
DbInquiry memployee = new InitialInquiry(screenSingle.getUProfile()).getDbInquiry("memployee");
memployee.setColumn("employeeid,companyid,bu1,bu2,bu3,bu4,bu5");
memployee.refresh();
DbRecord mbu = memployee.getCurrentDbRecord();
%>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="5" height="5"><img src="../IMAGES/MYNOTE/C-T-L.gif" width="5" height="5"></td>
<td height="5"><img src="../IMAGES/MYNOTE/T.gif" width="100%" height="5"></td>
<td width="5" height="5"><img src="../IMAGES/MYNOTE/C-T-R.gif" width="5" height="5"></td>
</tr>
<tr>
<td width="5" background="../IMAGES/MYNOTE/L2.gif"></td>
<td valign="middle"><font face="MS Sans Serif" size="1" color="#FFFFFF">
<%//if(chkNull.chkNullString(request.getParameter("step_id")).equals("8")){%>
<!--div align="right"><a href="javascript:printPage();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image43','','../IMAGES/MYNOTE/BUTTON/BUTTON_PRINT.gif',1)"><img SRC="../IMAGES/MYNOTE/BUTTON/BUTTON_PRINT.gif" alt="พิมพ์ใบขออัตรากำลัง" name="Image43" border="0" align="absmiddle" id="Image43"></a></div-->
<%//}%>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="txt01">
<!-- Begin User Code -->
<%
if( md.isStep1||md.isAdminEdit||md.isDraft ){
%>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW000314'>Branch</span></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__branch" value="<%=chkNull.chkNullString(request.getParameter("__wf__branch"),md.getWFDataValue("__wf__branch")) %>" readonly ><a class='hide' href="javascript:goHelp('MBRANCHHELP','__wf__branch');"><img src="../IMAGES/MYNOTE/SEARCH.gif" border=0 width="20" height="20" /></a><input size="50" type="text" name="__wf__branchDesc" value="<%=chkNull.chkNullString(request.getParameter("__wf__branchDesc"),md.getWFDataValue("__wf__branchDesc")) %>" disabled></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<%=mbu.getField("bu3").getDescription()%></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__bu3" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu3"),md.getWFDataValue("__wf__bu3")) %>" readonly><a class='hide' href="javascript:goHelp('MBU3HELP','__wf__bu3');"><img src="../IMAGES/MYNOTE/SEARCH.gif" border=0 width="20" height="20" /></a><input size="50" type="text" name="__wf__bu3Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu3Desc"),md.getWFDataValue("__wf__bu3Desc")) %>" disabled></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<%=mbu.getField("bu2").getDescription()%></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__bu2" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu2"),md.getWFDataValue("__wf__bu2")) %>" readonly><a class='hide' href="javascript:goHelp('MBU2HELP','__wf__bu2');"><img src="../IMAGES/MYNOTE/SEARCH.gif" border=0 width="20" height="20" /></a><input size="50" type="text" name="__wf__bu2Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu2Desc"),md.getWFDataValue("__wf__bu2Desc")) %>" disabled></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<%=mbu.getField("bu1").getDescription()%></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__bu1" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu1"),md.getWFDataValue("__wf__bu1")) %>" readonly ><a class='hide' href="javascript:goHelp('MBU1HELP','__wf__bu1');"><img src="../IMAGES/MYNOTE/SEARCH.gif" border=0 width="20" height="20" /></a><input size="50" type="text" name="__wf__bu1Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu1Desc"),md.getWFDataValue("__wf__bu1Desc")) %>" disabled></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW000057'>Position</span></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__positionid" value="<%=chkNull.chkNullString(request.getParameter("__wf__positionid"),md.getWFDataValue("__wf__positionid")) %>" readonly><a class='hide' href="javascript:goHelp('MPOSITIONHELP','__wf__positionid');"><img src="../IMAGES/MYNOTE/SEARCH.gif" border=0 width="20" height="20" /></a><input size="50" type="text" name="__wf__positionDesc" value="<%=chkNull.chkNullString(request.getParameter("__wf__positionDesc"),md.getWFDataValue("__wf__positionDesc")) %>" disabled></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW003545'>Job</span></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__jobid" value="<%=chkNull.chkNullString(request.getParameter("__wf__jobid"),md.getWFDataValue("__wf__jobid")) %>" readonly ><a href="javascript:goHelp('MJOBCODEHELP','__wf__jobid');"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border=0 width="20" height="20" /></a><input size="50" type="text" name="__wf__jobDesc" value="<%=chkNull.chkNullString(request.getParameter("__wf__jobDesc"),md.getWFDataValue("__wf__jobDesc")) %>" disabled></td>
</tr>
<%}
else {
%>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW000314'>Branch</span></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__branch" value="<%=chkNull.chkNullString(request.getParameter("__wf__branch"),md.getWFDataValue("__wf__branch")) %>" readonly>&nbsp;<input size="50" type="text" name="__wf__branchDesc" value="<%=chkNull.chkNullString(request.getParameter("__wf__branchDesc"),md.getWFDataValue("__wf__branchDesc")) %>" readonly></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<%=mbu.getField("bu1").getDescription()%></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__bu1" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu1"),md.getWFDataValue("__wf__bu1")) %>" readonly>&nbsp;<input size="50" type="text" name="__wf__bu1Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu1Desc"),md.getWFDataValue("__wf__bu1Desc")) %>" readonly></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<%=mbu.getField("bu2").getDescription()%></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__bu2" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu2"),md.getWFDataValue("__wf__bu2")) %>" readonly>&nbsp;<input size="50" type="text" name="__wf__bu2Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu2Desc"),md.getWFDataValue("__wf__bu2Desc")) %>" readonly></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<%=mbu.getField("bu3").getDescription()%></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__bu3" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu3"),md.getWFDataValue("__wf__bu3")) %>" readonly>&nbsp;<input size="50" type="text" name="__wf__bu3Desc" value="<%=chkNull.chkNullString(request.getParameter("__wf__bu3Desc"),md.getWFDataValue("__wf__bu3Desc")) %>" readonly></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="240" class="column-label"><div align="right">
<span swlang code='SW000057'>Position</span></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__positionid" value="<%=chkNull.chkNullString(request.getParameter("__wf__positionid"),md.getWFDataValue("__wf__positionid")) %>" readonly>&nbsp;<input size="50" type="text" name="__wf__positionDesc" value="<%=chkNull.chkNullString(request.getParameter("__wf__positionDesc"),md.getWFDataValue("__wf__positionDesc")) %>" readonly></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW003545'>Job</span></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="text" size="10" name="__wf__jobid" value="<%=chkNull.chkNullString(request.getParameter("__wf__jobid"),md.getWFDataValue("__wf__jobid")) %>" readonly>&nbsp;<input size="50" type="text" name="__wf__jobDesc" value="<%=chkNull.chkNullString(request.getParameter("__wf__jobDesc"),md.getWFDataValue("__wf__jobDesc")) %>" readonly></td>
</tr>
<%
}
if( md.isStep3 || md.isAdminEdit || md.isAdminCancel || md.isAdminDelete || md.isAdminClean || md.isArchive || md.isStep2 || md.isStepCancel || md.isStepComment || md.isStepReturn || md.isStepCopy || md.isDraft){
%>
<input type="hidden" name="sex" VALUE="<%=md.getWFDataValue("__wf__sex")%>">
<input type="hidden" name="emp_type" VALUE="<%=md.getWFDataValue("__wf__emp_type")%>">
<input type="hidden" name="req_type" VALUE="<%=md.getWFDataValue("__wf__req_type")%>">
<%
}
%>
<TR BGCOLOR="#FFFFFF">
<TD CLASS="column-label"><DIV ALIGN="right"><span swlang code='SW002052'>Responsibility</span></DIV></TD>
<TD WIDTH="982" BGCOLOR="#EFEFEF" CLASS="txt01"><TEXTAREA name="__wf__responsibility" cols="50" rows="4"><%=chkNull.chkNullString(request.getParameter("__wf__responsibility"),md.getWFDataValue("__wf__responsibility")) %></TEXTAREA></TD>
</TR>
<TR BGCOLOR="#FFFFFF">
<TD CLASS="column-label"><span swlang code='SW013285'>Reason of Need</span></DIV></TD>
<TD WIDTH="982" BGCOLOR="#EFEFEF" CLASS="txt01"><TEXTAREA name="__wf__needreason" cols="50" rows="4"><%=chkNull.chkNullString(request.getParameter("__wf__needreason"),md.getWFDataValue("__wf__needreason")) %></TEXTAREA></TD>
</TR>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW002408'>Employment Type</span></div></td>
<%
ListBox emptype = new ListBox();
emptype.setUProfile(screenSingle.getUProfile());
emptype.setTable("MEMPLOYMENT_TYPEHELP","codeid","EDESC","","codeid","");
emptype.setName("wf__emp_type");
emptype.setSizel("1");
emptype.setonChange("chkChange();");
emptype.ini();
%>
<td width="982" bgcolor="#EFEFEF" class="txt01">
<span id="empType"><%=emptype.getInput()%></span>
<script language=JavaScript>//getList("EMPTYPEKKB","__wf__emp_type","empType","chkChange()");</script>
&nbsp;
<div id="duration" style="display:none">
&nbsp;
<span swlang code='SW013325'>Period Contract</span>
<select name="__wf__contact_duration" size="1" disabled >
<option value="3" swlang code='SW007011'>3 Months</option>
<option value="6" swlang code='SW007012'>6 Months</option>
<option value="12" swlang code='SW013327'>1 Year</option>
<option value="3e" swlang code='SW013328'>2 Years</option>
</select>
&nbsp;</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW000017'>Amount</span></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><!-- <select name="__wf__emp_num" size="1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select> -->
<input size="3" type="text" name="__wf__emp_num" value="<%=chkNull.chkNullString(request.getParameter("__wf__emp_num"),md.getWFDataValue("__wf__emp_num")) %>" >
&nbsp;
<span swlang code='SW000057'>Position</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW000172'>Age</span></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input size="3" type="text" name="__wf__fromage" value="<%=chkNull.chkNullString(request.getParameter("__wf__fromage"),md.getWFDataValue("__wf__fromage")) %>" > - <input size="3" type="text" name="__wf__toage" value="<%=chkNull.chkNullString(request.getParameter("__wf__toage"),md.getWFDataValue("__wf__toage")) %>" >&nbsp;<span swlang code='SW000717'>Year</span>
<span swlang code='SW003417'>Gender</span>
<%
ListBox sex = new ListBox();
sex.setUProfile(screenSingle.getUProfile());
sex.setValidCode("sex_prefix");
sex.setName("wf__sex");
sex.setSizel("1");
sex.setonChange("chkChange();");
sex.ini();
%>
&nbsp;<span id="sexspan"><%=sex.getInput()%></span> <script language=JavaScript>//getList("sex_prefix","__wf__sex","sexspan","");</script> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW005741'>Degree</span></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input size="30" type="text" name="__wf__degree" value="<%=chkNull.chkNullString(request.getParameter("__wf__degree"),md.getWFDataValue("__wf__degree")) %>" ></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW007041'>Required Major</span></div></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input size="30" type="text" name="__wf__major" value="<%=chkNull.chkNullString(request.getParameter("__wf__major"),md.getWFDataValue("__wf__major")) %>" > </td>
</tr>
<TR BGCOLOR="#FFFFFF">
<TD CLASS="column-label"><DIV ALIGN="right" swlang code='SW005450'>Work experience</TD>
<TD WIDTH="982" BGCOLOR="#EFEFEF" CLASS="txt01"><input type="radio" name="__wf__expneed" checked>
<span swlang code='SW013286'>Not Need</span>
<input type="radio" name="__wf__expneed">
<span swlang code='SW013287'>Need</span>
<span swlang code='SW013288'>Experience Need Approx.</span>
<input type="text" name="__wf__expduration" size="3">&nbsp;<span swlang code='SW000717'>Year</span></TD>
</TR>
<TR BGCOLOR="#FFFFFF">
<TD CLASS="column-label"><DIV ALIGN="right"><span swlang code='SW002112'>Experience</span></DIV></TD>
<TD WIDTH="982" BGCOLOR="#EFEFEF" CLASS="txt01"><TEXTAREA name="__wf__experience" cols="50" rows="4"><%=chkNull.chkNullString(request.getParameter("__wf__experience"),md.getWFDataValue("__wf__experience")) %></TEXTAREA></TD>
</TR>
<TR BGCOLOR="#FFFFFF">
<TD CLASS="column-label"><DIV ALIGN="right"><span swlang code='SW002113'>Others</span></DIV></TD>
<TD WIDTH="982" BGCOLOR="#EFEFEF" CLASS="txt01"><TEXTAREA name="__wf__other" cols="50" rows="4"><%=chkNull.chkNullString(request.getParameter("__wf__other"),md.getWFDataValue("__wf__other")) %></TEXTAREA></TD>
</TR>
<tr bgcolor="#FFFFFF">
<td class="column-label"><div align="right">
<span swlang code='SW013236'>Recruite Type</span></div></td>
<%
ListBox reqtype = new ListBox();
reqtype.setUProfile(screenSingle.getUProfile());
reqtype.setValidCode("REQ_TYPE");
reqtype.setName("wf__req_type");
reqtype.setSizel("1");
reqtype.setonChange("chkChange();");
reqtype.ini();
%>
<td width="982" bgcolor="#EFEFEF" class="txt01"><span id="reqType"><%=reqtype.getInput()%></span>
<script language=JavaScript>//getList("REQ_TYPE","__wf__req_type","reqType","");</script> </td>
</tr>
<%=md.getWF_Remark("5004",screenSingle.getUProfile().get("companyid"))%>
<tr bgcolor="#FFFFFF">
<td colspan="2" bgcolor="#0099cc" class="column-label"><div align="center">
<span swlang code='SW005494'> Request Reason</span> </div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="txt01" bgcolor="#EFEFEF"></td>
<td width="982" bgcolor="#EFEFEF" class="txt01">
<input type="checkbox" name="__wf__addrequest" class="css_data_item" value="1"><span swlang code='SW006983'>Add Request</span>
<select name="__wf__addrequest_type" size="0" onchange="">
<option value="1">ขอเพิ่มพนักงานตามโครงสร้างอัตรากำลัง</option>
<option value="2">ขอเพิ่มพนักงานนอกโครงสร้างอัตรากำลัง</option>
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="txt01" bgcolor="#EFEFEF"></td>
<td width="982" bgcolor="#EFEFEF" class="txt01"><input type="checkbox" class="css_data_item" name="__wf__subrequest" value="1"><span swlang code='SW006984'>Substitution Request</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" bgcolor="#EFEFEF" class="txt01">
<table width="100%" border="1" cellpadding="0" cellspacing='1' id="subTable">
<tbody id="head">
<tr>
<td bgcolor="#0099CC" class="column-title"><div align="center">
<span swlang code='SW000015'>Select</span>
</div></td>
<td bgcolor="#0099CC" class="column-title" nowrap><div align="center">
<span swlang code='SW000274'>Employee ID</span>
</div></td>
<td bgcolor="#0099CC" class="column-title" nowrap><div align="center">
<span swlang code='SW010885'>Name-Surname</span>
</div></td>
<td bgcolor="#0099CC" class="column-title" nowrap><div align="center">
<span swlang code='SW000057'>Position</span>
</div></td>
<td bgcolor="#0099CC" class="column-title" nowrap><div align="center">
<span swlang code='SW000471'>Group</span>
</div></td>
<td bgcolor="#0099CC" class="column-title" nowrap><div align="center">
<span swlang code='SW002031'>Department</span>
</div></td>
<td bgcolor="#0099CC" class="column-title" nowrap><div align="center">
<span swlang code='SW001695'>Team</span>
</div></td>
<td bgcolor="#0099CC" class="column-title" nowrap><div align="center">
<span swlang code='SW000049'>Reason</span>
</div></td>
<td bgcolor="#0099CC" class="column-title" nowrap><div align="center">
<span swlang code='SW005038'>Effective Date</span>
</div></td>
</tr>
</tbody>
<tbody id="subList" >
</tbody>
<%if(md.isStep1){%>
<tr>
<td colspan="9" class="noborder">
<div align='center' >
<button type="button" class="btn btn-primary width100" swlang code="SW013165" onClick='goSearch("subList");'>Add</button>&nbsp;&nbsp;
<button type="button" class="btn btn-primary width100" swlang code="SW013166" onClick='deleteSList();delSub("subTable");'>Delete</button>
</div>
</td>
</tr>
<%}%>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"></td>
<td width="982" bgcolor="#EFEFEF" class="txt01">
<input type="checkbox" name="__wf__annualrequest" value="1"><span swlang code='SW006985'>Annual Request</span>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="column-label"></td>
<td width="982" bgcolor="#EFEFEF" class="txt01">
<input type="checkbox" name="__wf__approverequest" value="1"><span swlang code='SW006986'>Approved Request Date</span>&nbsp;
<input size="10" type="text" name="__wf__approvedate" onKeyPress = "chkIntegerOfDate(this.value)" onBlur = "chkInputDate(this)" onKeyUp = "formatDate(this)" value="<%=chkNull.chkNullString(request.getParameter("__wf__approvedate"),chkNull.chkNullString(md.getWFDataValue("__wf__approvedate"),new CscCalendar().getDDMMYYYY()))%>">
&nbsp;<%if(md.isStep1){%><a href="javascript:viewCal('__wf__approvedate')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('999','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" ><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image19" width="20" height="20m" border="0" align="absmiddle"></a><%}%>&nbsp;
<span swlang code='SW002163'>Expected Start Date</span> &nbsp;<input size="10" type="text" name="__wf__effectdate" onkeypress = "chkIntegerOfDate(this.value)" onblur = "chkInputDate(this)" onkeyup = "formatDate(this)" value="<%=chkNull.chkNullString(request.getParameter("__wf__effectdate"),chkNull.chkNullString(md.getWFDataValue("__wf__effectdate"),new CscCalendar().getDDMMYYYY()))%>">
&nbsp;<%if(md.isStep1){%><a href="javascript:viewCal('__wf__effectdate')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('999','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" ><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image19" width="20" height="20m" border="0" align="absmiddle"></a> <%}%>
</td>
</tr>
<!-- <tr bgcolor="#FFFFFF">
<td width="30%" bgcolor="#0099cc" class="txt01"><div align="right">
<script language=JavaScript>swapLang("Request Date")</script>
: </div></td>
<td width="70%" bgcolor="#EFEFEF" class="txt01"><input size="10" type="text" name="__wf__request_date" onkeypress = "chkIntegerOfDate(this.value)" onblur = "chkInputDate(this)" onkeyup = "formatDate(this)" value="<%//=chkNull.chkNullString(request.getParameter("__wf__request_date"),md.getWFDataValue("__wf__request_date"))%>">
&nbsp;<%//if(isStep1){%><a href="javascript:viewCal('__wf__request_date')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('999','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" ><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image19" width="20" height="20" border="0" align="absmiddle"></a><%//}%></td>
</tr> -->
<input type="hidden" name="__wf__list" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__list"),md.getWFDataValue("__wf__list"))%>">
<input type="hidden" name="__wf__slist" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__slist"),md.getWFDataValue("__wf__slist"))%>">
<input type="hidden" name="__wf__branchid" VALUE="<%=chkNull.chkNullString(request.getParameter("__wf__branchid"),md.getWFDataValue("__wf__branchid"))%>">
<input type="hidden" name="__wf__docno" VALUE="<%=screenSingle.getDataLabel("DOC_NO")%>">
<!-- End User Code -->
<!--
<tr bgcolor=#EFEFEF>
<td width="240" class="column-label" align="right"><script language="JavaScript">swapLang("Priority");</script></td>
<td width="982" bgcolor="#EFEFEF"><input type="radio" name="priority" value="0" checked>
<script language="JavaScript">swapLang("Normal")</script>
<input type="radio" name="priority" value="1">
<script language="JavaScript">swapLang("High")</script>
<input type="radio" name="priority" value="2">
<script language="JavaScript">swapLang("Highest")</script> </td>
</tr>-->
<input type="hidden" name="priority" value="0">
</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>
<%//=md.getWorkflowButtonDocument("GoWF")%>
<!-- Begin Workflow Button -->
<%
if( !md.isStep3 ){
%>
<TABLE WIDTH="95%" BORDER="0" ALIGN="center" CELLPADDING="0" CELLSPACING="0">
<TR>
<%
if( md.isStep1 ){
%>
<TD><DIV ALIGN="right">
<button type="button" class="btn btn-primary width100" swlang code="SW013171" onClick="preGoWF();">SUBMIT</button>&nbsp;
</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">
<button type="button" class="btn btn-primary width100" swlang code="SW013171" onClick="GoWF();">SUBMIT</button>&nbsp;
</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">
setBranch('<%=screenSingle.getUProfile().get("employeeid")%>');
setValue('priority','<%=chkNull.chkNullString(request.getParameter("priority"),"0")%>');
setValue('__remark',document.cscform.remark.value);
setValue('__wf__addrequest','<%=chkNull.chkNullString(request.getParameter("__wf__addrequest"),"") %>');
setValue('__wf__subrequest','<%=chkNull.chkNullString(request.getParameter("__wf__subrequest"),"") %>');
setValue('__wf__annualrequest','<%=chkNull.chkNullString(request.getParameter("__wf__annualrequest"),"") %>');
setValue('__wf__approverequest','<%=chkNull.chkNullString(request.getParameter("__wf__approverequest"),"") %>');
setValue('__wf__sex','<%=chkNull.chkNullString(request.getParameter("__wf__sex"),"3") %>');
setValue('__wf__emp_type','<%=chkNull.chkNullString(request.getParameter("__wf__emp_type"),"") %>');
setValue('__wf__req_type','<%=chkNull.chkNullString(request.getParameter("__wf__req_type"),"") %>');
setValue('__wf__contact_duration','<%=chkNull.chkNullString(request.getParameter("__wf__contact_duration"),"") %>');
chkChange();
//alert("xx");
if(document.cscform.__wf__slist.value!="")
searchEmp(document.cscform.__wf__slist.value,"subList");
//if(document.cscform.__wf__list.value!="")
//searchEmp(document.cscform.__wf__list.value,"comList");
<%
for(int i = 0;i<10;i++){
/*if(request.getParameter("__wf__reason"+i)==null)
break;*/
out.print("setTimeout(\"setValue('__wf__reason"+i+"','"+chkNull.chkNullString(request.getParameter("__wf__reason"+i),"") +"')\",3000);");
out.print("setTimeout(\"setValue('__wf__adjdate"+i+"','"+chkNull.chkNullString(request.getParameter("__wf__adjdate"+i),"") +"')\",3000);");
} %>
</SCRIPT>
<!-- End Set Value Step1 -->
<%
}else if(md.isStep2 || md.isStepCancel || md.isStepComment || md.isStepReturn || md.isStepCopy || md.isDraft ){
%>
<!-- Begin Set Value Step2 -->
<SCRIPT LANGUAGE="JavaScript">
setValue('priority','<%=screenSingle.getDataLabel("VW_INCIDENT","PRIORITY")%>');
//setValue('__remark',document.cscform.remark.value);
setValue('__wf__addrequest','<%=md.getWFDataValue("__wf__addrequest")%>');
setValue('__wf__subrequest','<%=md.getWFDataValue("__wf__subrequest")%>');
setValue('__wf__annualrequest','<%=md.getWFDataValue("__wf__annualrequest")%>');
setValue('__wf__approverequest','<%=md.getWFDataValue("__wf__approverequest")%>');
setValue('__wf__sex','<%=md.getWFDataValue("__wf__sex")%>');
setValue('__wf__emp_type','<%=md.getWFDataValue("__wf__emp_type")%>');
setValue('__wf__req_type','<%=md.getWFDataValue("__wf__req_type")%>');
chkChange();
setValue('__wf__contact_duration','<%=md.getWFDataValue("__wf__contact_duration")%>');
if('<%=md.getWFDataValue("__wf__slist")%>'!="")
searchEmp('<%=md.getWFDataValue("__wf__slist")%>',"subList");
<%
for(int i = 0;i<10;i++){
out.print("setTimeout(\"setValue('__wf__reason"+i+"','"+chkNull.chkNullString(md.getWFDataValue("__wf__reason"+i),"") +"')"+(md.isDraft?"":";setDisabled(true)")+"\",3000);");
out.print("setTimeout(\"setValue('__wf__adjdate"+i+"','"+chkNull.chkNullString(md.getWFDataValue("__wf__adjdate"+i),"") +"')"+(md.isDraft?"":";setDisabled(true)")+"\",3000);");
} %>
<%
if( !md.isDraft ){
%>
setDisabled(true);
<%
}else{
%>
setValue('__checkPage','false');
<%}%>
</SCRIPT>
<!-- End Set Value Step2 -->
<%
}else if( md.isStep3 || md.isAdminEdit || md.isAdminCancel || md.isAdminDelete || md.isAdminClean || md.isArchive){
%>
<!-- Begin Set Value Step3 -->
<SCRIPT LANGUAGE="JavaScript">
setValue('priority','<%=screenSingle.getDataLabel("VW_INCIDENT","PRIORITY")%>');
setValue('__wf__addrequest','<%=md.getWFDataValue("__wf__addrequest")%>');
setValue('__wf__subrequest','<%=md.getWFDataValue("__wf__subrequest")%>');
setValue('__wf__annualrequest','<%=md.getWFDataValue("__wf__annualrequest")%>');
setValue('__wf__approverequest','<%=md.getWFDataValue("__wf__approverequest")%>');
setValue('__wf__sex','<%=md.getWFDataValue("__wf__sex")%>');
setValue('__wf__emp_type','<%=md.getWFDataValue("__wf__emp_type")%>');
setValue('__wf__req_type','<%=md.getWFDataValue("__wf__req_type")%>');
chkChange();
setValue('__wf__contact_duration','<%=md.getWFDataValue("__wf__contact_duration")%>');
setValue('__wf__addrequest_type','<%=md.getWFDataValue("__wf__addrequest_type")%>');
setValue('__checkPage','false');
if('<%=md.getWFDataValue("__wf__slist")%>'!="")
searchEmp('<%=md.getWFDataValue("__wf__slist")%>',"subList");
<%
for(int i = 0;i<10;i++){
out.print("setTimeout(\"setValue('__wf__reason"+i+"','"+chkNull.chkNullString(md.getWFDataValue("__wf__reason"+i),"") +"')"+(md.isAdminEdit?"":";setDisabled(true)")+"\",3000);");
out.print("setTimeout(\"setValue('__wf__adjdate"+i+"','"+chkNull.chkNullString(md.getWFDataValue("__wf__adjdate"+i),"") +"')"+(md.isAdminEdit?"":";setDisabled(true)")+"\",3000);");
} %>
<%if(!md.isAdminEdit){%>
setDisabled(true);
<%}%>
</SCRIPT>
<!-- End Set Value Step3 -->
<%
}
%>
<!-- End Set Value -->
</DIV>
</TD>
<TD VALIGN="top" BACKGROUND="../IMAGES/MYNOTE/BPM_07.jpg">&nbsp;</TD>
</TR>
<TR>
<TD COLSPAN="2" HEIGHT="20" BACKGROUND="../IMAGES/MYNOTE/BPM_09.jpg"><DIV ALIGN="center"><SPAN CLASS="txt02">&nbsp;</SPAN></DIV></TD>
</TR>
</TABLE>
<%=screenSingle.endJSP()%>
</FORM>
</div>
</BODY>
</HTML>
<%
}
%>
......@@ -6219,6 +6219,7 @@
<WF5001><![CDATA[Employment Requisition]]></WF5001>
<WF5002><![CDATA[Manpower Requisition (Add)]]></WF5002>
<WF5003><![CDATA[Manpower Requisition (Replace)]]></WF5003>
<WF5004><![CDATA[Manpower Requisition (Special)]]></WF5004>
<WF7001><![CDATA[In-house Training Requisition Form]]></WF7001>
<WF7002><![CDATA[Training Cancellation Form]]></WF7002>
<WF7004><![CDATA[Outside Training Requisition Form]]></WF7004>
......
......@@ -6219,6 +6219,7 @@
<WF5001><![CDATA[ใบขออัตรากำลัง]]></WF5001>
<WF5002><![CDATA[ใบขออัตรากำลัง (ขอเพิ่ม)]]></WF5002>
<WF5003><![CDATA[ใบขออัตรากำลัง (ทดแทน)]]></WF5003>
<WF5004><![CDATA[ใบขออัตรากำลัง (กรณีพิเศษ)]]></WF5004>
<WF7001><![CDATA[ใบขออนุมัติฝึกอบรมและสัมมนาภายใน]]></WF7001>
<WF7002><![CDATA[แบบคำขอเปลี่ยนรุ่น]]></WF7002>
<WF7004><![CDATA[ใบขออนุมัติฝึกอบรมและสัมมนาภายนอก]]></WF7004>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment