<%@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"/> <jsp:setProperty name="TEMPLATE_WORKFLOW" property="classauthen" value="WorkflowUIAuthen" /> <% TEMPLATE_WORKFLOW.setChannel(request,response); TEMPLATE_WORKFLOW.checkProfile(); if( TEMPLATE_WORKFLOW.getUProfile() != null ){ TEMPLATE_WORKFLOW.getUProfile().set("appname","TRAINING"); UIManager screenSingle = (UIManager) TEMPLATE_WORKFLOW.process("SingleEntry","TEMPLATE_WORKFLOW"); /*boolean isStep1 = false; boolean isStep2 = false; boolean isStep3 = false; boolean isStepCancel = false; boolean isStepComment = false;*/ String wf = null; CheckNull chkNull = new CheckNull(); Organization og = new Masfactor(screenSingle.getUProfile()); String subject = null; String remark = null; String 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") ){ /*if( chkNull.chkNullString(request.getParameter("__checkPage")).equals("true") ){ response.sendRedirect("../MYNOTE/SENT_COMPLETE.jsp"); }else{ response.sendRedirect("../MYNOTE/INBOX.jsp"); }*/ if(chkNull.chkNullString(request.getParameter("isAdminEdit")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_EDIT.jsp"); }else if(chkNull.chkNullString(request.getParameter("isAdminCancel")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_CANCEL.jsp"); }else if(chkNull.chkNullString(request.getParameter("isAdminClean")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_CLEAN.jsp"); }else if(chkNull.chkNullString(request.getParameter("isAdminDelete")).equals("true")){ response.sendRedirect("../WORKFLOW_ADMIN/ADMIN_DELETE.jsp"); }else{ response.sendRedirect("../MYNOTE/SENT_COMPLETE.jsp"); } //response.sendRedirect("../MYNOTE/SENT_COMPLETE.jsp"); }else{ subject = ""; remark = ""; emp_fullname = ""; } bossid = bossid.substring(0,bossid.indexOf(":")); DbRecord memployee_dr = new InitialRecord(screenSingle.getUProfile()).getDbRecord("Memployee"); memployee_dr.setColumn("*"); memployee_dr.set("COMPANYID",screenSingle.getUProfile().get("companyid")); memployee_dr.set("EMPLOYEEID",bossid); memployee_dr.search(); //WF_STATUS 1 = รอการอนุมัติ // 3 = ยกเลิกการอนุมัติ // 4 = อนุมัติแล้ว // 5 = ไม่อนุมัติ // 6 = แก้ไขโดย HR // 7 = ส่งกลับ // 8 = ยกเลิกเอกสาร // 9 = ประวัติ if( (request.getParameter("__runno") == null || request.getParameter("__runno").equals("")) && (request.getParameter("__help") == null || request.getParameter("__help").equals("")) ){ screenSingle.clean(); } if( (!screenSingle.getDataLabel("WF_STATUS").equals("1")) && (!screenSingle.getDataLabel("WF_STATUS").equals("4")) && (!screenSingle.getDataLabel("WF_STATUS").equals("7")) ){ wf = "false"; }else{ wf = "true"; } if( request.getParameter("downfile") != null ){ ThaiUtilities tu = new ThaiUtilities(); String filePath = request.getParameter("downfile"); File f = new File(tu.ASCII2Unicode(filePath)); String fileName = f.getName(); String fileType = fileName.substring(fileName.indexOf(".")+1,fileName.length()); if ( f.exists() && f.canRead() ) { response.setContentType("application/octet-stream"); response.setHeader("Content-Disposition", "attachment; filename="+tu.Unicode2ASCII(f.getName())); response.setHeader("cache-control", "no-cache"); response.setContentLength((int) f.length()); BufferedInputStream fileInput = new BufferedInputStream(new FileInputStream(f)); byte buffer[] = new byte[8 * 1024]; out.clearBuffer(); OutputStream out_s = response.getOutputStream(); CopyStreams.copyStreamsWithoutClose(fileInput, out_s, buffer); out_s.flush(); out_s.close(); fileInput.close(); } } %> <!-- End useBean --> <HTML> <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 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 LANGUAGE="JavaScript">setLang('<%=screenSingle.getUProfile().get("lang")%>');</SCRIPT> <!-- End Import Script --> <SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript"> <!-- function setTrdetail(){ var tmp = '<%=chkNull.chkNullString(request.getParameter("__setTrnid"))%>'; if(tmp!="undefined"&&tmp!=null&&tmp=="yes"){ //document.cscform.__wf__trainingid.value=""; //dwr.util.setValue("__wf__trainingid",'<%=chkNull.chkNullString(request.getParameter("__trainingid"))%>'); with( document.cscform){ var ttri = '<%=new ThaiUtilities().ASCII2Unicode(chkNull.chkNullString(request.getParameter("__trtitle")))%>'; ttri = ttri.replace("$"," "); __wf__trtitle.value = ttri; __wf__classdatefrm.value = '<%=chkNull.chkNullString(request.getParameter("__classfrom"))%>'; __wf__classdateto.value = '<%=chkNull.chkNullString(request.getParameter("__classto"))%>'; __wf__timestart.value = '<%=chkNull.chkNullString(request.getParameter("__timestart"))%>'; __wf__timestop.value = '<%=chkNull.chkNullString(request.getParameter("__timestop"))%>'; ttri = '<%=new ThaiUtilities().ASCII2Unicode(chkNull.chkNullString(request.getParameter("__loca")))%>'; ttri = ttri.replace("$"," "); __wf__locdesc.value = ttri; ttri = '<%=new ThaiUtilities().ASCII2Unicode(chkNull.chkNullString(request.getParameter("__crsdesc")))%>'; ttri = ttri.replace("$"," "); __wf__crsdesc.value = ttri; } } } function goHelp(helpName,inputName,condition){ with( document.cscform ){ var helpReturn; var temp; if( inputName == "sendto" ){ temp = __fixCon.value; __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=="__wf__trainingid" && __wf__trainingid.disabled == false){ __fixCon.value="train_type='1'"; helpReturn="__wf__trainingid:trainingid,__wf__trtitle:trtitle,__wf__classdatefrm:classdatefrm,__wf__classdateto:classdateto,__wf__timestart:timestart,__wf__timestop:timestop,__wf__crsdesc:mcourse.crsdesc,__wf__locdesc:mtrlocation.locdesc"; linkHelp_Return(helpName,helpReturn); __fixCon.value=temp; } } } function linkHelp_SendToReturn(help,input){ with( document.cscform ){ var param = "BROWSE_USER.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off"; window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function linkHelp_Return(help,input){ with( document.cscform ){ var param="BROWSE_HELP.jsp?__helpName="+help+"&__helpReturn="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__checkVerify=off&__langOn=off"; window.open(param,"Help","left=150,top=150,width=530,height=370,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } function linkHelpWF(help,input){ with(document.cscform){ var temp = __fixCon.value; var fix = "wf_id='"+wf_id.value+"' and wf_ver='"+wf_ver.value+"' and initiator='<%=screenSingle.getUProfile().get("actor")%>' and (wf_status<>'4' and wf_status<>'6' and wf_status<>'3' and wf_status<>'8' and wf_status<>'A' and wf_status<>'B')"; var param="BROWSE_HELP.jsp?__helpName="+help+"&__fieldSearch="+input+"&__pageCall="+__screen.value+"&__fixCon="+fix; window.open(param,"Help","left=150,top=150,width=530,height=370,resizable=yes,scrollbars=yes,toolbar=no,status=yes"); __fixCon.value = temp; } } function openHelp(){ with( document.cscform ){ window.open("","Help","left=150,top=150,width=700,height=570,toolbar=no,status=yes,scrollbars=yes,resizable=yes"); } } //เมื่อกรอกรหัส Training ให้ทำการค้นหาทันที (หน่วงเวลาไว้ 2 วินาที)\\ function searchTraining(id){ SearchDWR.searchDBXMLAll(new Array("TTRAININGHELP_200","ttraining.trainingid,ttraining.trtitle,mcourse.crsdesc,mtrlocation.locdesc,ttraining.classdatefrm,ttraining.classdateto,ttraining.timestart,ttraining.timestop","ttraining:trainingid = '"+id+"'","false","langoff"),training); } var training = function(data) { var trainingRec=new Array("__wf__trainingid","__wf__trtitle","__wf__crsdesc","__wf__locdesc","__wf__classdatefrm","__wf__classdateto","__wf__timestart","__wf__timestop"); if(data.length>0) { for(i=0;i<trainingRec.length;i++){ dwr.util.setValue(trainingRec[i],data[0][i]); } } else { for(i=0;i<trainingRec.length;i++){ dwr.util.setValue(trainingRec[i],""); } document.cscform.__wf__trainingid.value=""; } } //สร้าง Input BOX รหัสอบรม\\ function createInputTrainingid(){SearchDWR.getInput(new Array("TTRAINING","trainingid","Name:wf__trainingid","Help:TTRAININGHELP_200","HelpReturn:true","onKeyup:initialization(this.value);"),tra);} //ใช้ในการกรอกข้อมูลแล้วค้นหา ถ้าหาไม่เจอให้ลบข้อมูลที่กรอกไปเลย\\ function initialization(tra) { traTemp=tra; if (init) clearTimeout(init); init = setTimeout("searchTraining(traTemp)", 1500); } //ตัวแปร\\ var tra=function(data){dwr.util.setValue("training",data[1]);} var init = null; var traTemp=""; --> </SCRIPT> </HEAD> <BODY BGCOLOR=#FFFFFF> <div align="center"> <!-- ImageReady Slices (02.psd) --> <FORM NAME="cscform" METHOD="post" ACTION="TRA200.jsp"> <INPUT TYPE="hidden" NAME="__screen" VALUE="TRA200"> <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="7001"> <INPUT TYPE="hidden" NAME="__wf_id" VALUE="7001"> <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="<%=screenSingle.getDataLabel("DOC_NO")%>"> <INPUT TYPE="hidden" NAME="__oldWF" VALUE="<%=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__reserverid" VALUE="<%=screenSingle.getUProfile().get("employeeid")%>"> <INPUT TYPE="hidden" NAME="__wf__resdate" VALUE="<%=new CscCalendar().getYYYYMMDD()%>>"> <INPUT TYPE="hidden" NAME="__wf__bu1id" VALUE="<%=screenSingle.getUProfile().get("bu1")%>"> <INPUT TYPE="hidden" NAME="__wf__bu2id" VALUE="<%=screenSingle.getUProfile().get("bu2")%>"> <INPUT TYPE="hidden" NAME="__wf__bu3id" VALUE="<%=screenSingle.getUProfile().get("bu3")%>"> <INPUT TYPE="hidden" NAME="__wf__bu4id" VALUE="<%=screenSingle.getUProfile().get("bu4")%>"> <INPUT TYPE="hidden" NAME="__wf__bu5id" VALUE="<%=screenSingle.getUProfile().get("bu5")%>"> <INPUT TYPE="hidden" NAME="__wf__job" VALUE="<%=screenSingle.getUProfile().get("job")%>"> <INPUT TYPE="hidden" NAME="__wf__emp_position" VALUE="<%=screenSingle.getUProfile().get("emp_position")%>"> <INPUT TYPE="hidden" NAME="__wf__branch" VALUE="<%=screenSingle.getUProfile().get("branch")%>"> <INPUT TYPE="hidden" NAME="__wf__bossid" VALUE="<%=screenSingle.getUProfile().get("bossid")%>"> <INPUT TYPE="hidden" NAME="__wf__salatype" VALUE="<%=screenSingle.getUProfile().get("salatype")%>"> <INPUT TYPE="hidden" NAME="__wf__emp_group" VALUE="NONE"> <INPUT TYPE="hidden" NAME="__wf__emp_level" VALUE="NONE"> <INPUT TYPE="hidden" NAME="__wf__trnee_regist" VALUE="3"> <INPUT TYPE="hidden" NAME="__wf__status" VALUE="1"> <INPUT TYPE="hidden" NAME="__wf__workarea" VALUE="<%=screenSingle.getUProfile().get("workarea")%>"> <INPUT TYPE="hidden" NAME="draft_cmd" VALUE=""> <INPUT TYPE="hidden" NAME="draft_no" VALUE="<%=chkNull.chkNullString(request.getParameter("draft_no"),"0")%>"> <INPUT TYPE="hidden" NAME="admin_cmd" VALUE=""> <INPUT TYPE="hidden" NAME="__checkPage" VALUE="true"> <!-- Redirect Page --> <INPUT TYPE="hidden" NAME="isAdminEdit" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminEdit"))%>"> <INPUT TYPE="hidden" NAME="isAdminCancel" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminCancel"))%>"> <INPUT TYPE="hidden" NAME="isAdminClean" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminClean"))%>"> <INPUT TYPE="hidden" NAME="isAdminDelete" VALUE="<%=chkNull.chkNullString(request.getParameter("isAdminDelete"))%>"> <%=screenSingle.InitialVariable()%> <DIV ID="toolTipLayer" STYLE="position:absolute; visibility: hidden"></DIV> <SCRIPT LANGUAGE="JavaScript">initToolTips();</SCRIPT> <TABLE WIDTH=950 BORDER=0 ALIGN="center" CELLPADDING=0 CELLSPACING=0 id="wrapper"> <jsp:include page="../MYNOTE_HEAD.jsp" flush="true"/> <DIV ALIGN="center"> <%=md.getStepDocument("7001","1")%> <%=md.getHeadDocument()%> <br> <%=md.getHelpDocument("Training Inner Request Form")%> <br> <%=md.getSendToDocument("Training Inner Request 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="100%" colspan="2" class="column-title"><SCRIPT language=JavaScript>swapLang("Detail Employee")</SCRIPT></TD> </TR> <TR bgcolor=#efefef> <TD width="25%" class="column-label"><SCRIPT language=JavaScript>swapLang("Employee")</SCRIPT></TD> <TD class="column-input"><INPUT name="__wf__fullname" type="text" class="disabled" value = "<%=screenSingle.getUProfile().get("employeeid")%> <%=screenSingle.getUProfile().get("fullname")%>" size="52"></TD> </TR> <TR bgcolor=#efefef> <TD class="column-label"><SCRIPT language=JavaScript>swapLang("Position")</SCRIPT></TD> <TD class="column-input"><INPUT name="__wf__position" type="text"class="disabled" value = "<%=screenSingle.getUProfile().get("positionname")%>" size="52"></TD> </TR> <TR bgcolor=#efefef> <TD class="column-label"><SCRIPT language=JavaScript>swapLang("BU1")</SCRIPT></TD> <TD class="column-input"><INPUT name="__wf__bu1" type="text" class="disabled" value = "<%=screenSingle.getUProfile().get("bu1name")%>" size="52"></TD> </TR> <TR bgcolor=#efefef> <TD class="column-label"><SCRIPT language=JavaScript>swapLang("BU2")</SCRIPT></TD> <TD class="column-input"><INPUT name="__wf__bu2" type="text" class="disabled" value = "<%=screenSingle.getUProfile().get("bu2name")%>" size="52"></TD> </TR> <TR bgcolor=#efefef> <TD class="column-label"><SCRIPT language=JavaScript>swapLang("BU3")</SCRIPT></TD> <TD class="column-input"><INPUT name="__wf__bu3" type="text" class="disabled" value = "<%=screenSingle.getUProfile().get("bu3name")%>" size="52"></TD> </TR> <TR bgcolor=#efefef> <TD class="column-label"><SCRIPT language=JavaScript>swapLang("BU4")</SCRIPT></TD> <TD class="column-input"><INPUT name="__wf__bu4" type="text" class="disabled" value = "<%=screenSingle.getUProfile().get("bu4name")%>" size="52"></TD> </TR> <TR bgcolor=#efefef> <TD class="column-label"><SCRIPT language=JavaScript>swapLang("BU5")</SCRIPT></TD> <TD class="column-input"> <INPUT name="__wf__bu5" type="text" class="disabled" value = "<%=screenSingle.getUProfile().get("bu5name")%>" size="52"> </TD> </TR> <TR > <TD class="column-label"><SCRIPT language=JavaScript>swapLang("Internal Phone")</SCRIPT></TD> <TD class="column-input"><INPUT size="7" type="text" name="__wf__tel_ext" value = "<%=screenSingle.getUProfile().get("tel_ext")%>" class="disabled" readonly></TD> </TR> <TR bgColor=#efefef> <TD width="100%" colspan="2" class="column-title"><SCRIPT language=JavaScript>swapLang("Detail_Training")</SCRIPT></TD> </TR> <%if(chkNull.chkNullString(request.getParameter("__setTrnid")).equals("yes")){%> <TR bgColor=#efefef> <TD width="25%" class="column-label"><SCRIPT language=JavaScript>swapLang("Trainingid")</SCRIPT></TD> <TD width="75%" class="column-input"> <INPUT type = "text" name = "__wf__trainingid" size = "15" value = "<%=chkNull.chkNullString(request.getParameter("__trainingid"))%>" readonly> <INPUT TYPE="text" SIZE = "45" NAME="__wf__trtitle" disabled> </TD> </TR> <%}else{%> <TR bgColor=#efefef> <TD width="25%" class="column-label"><SCRIPT language=JavaScript>swapLang("Trainingid")</SCRIPT></TD> <TD width="75%" class="column-input"> <SPAN ID = "training"></SPAN> <INPUT TYPE="text" SIZE = "45" NAME="__wf__trtitle" disabled> </TD> </TR> <SCRIPT language=JavaScript>createInputTrainingid()</SCRIPT> <%}%> <TR bgColor=#efefef> <TD width="25%" class="column-label"><SCRIPT language=JavaScript>swapLang("Course")</SCRIPT></TD> <TD width="75%" class="column-input"> <INPUT TYPE="text" SIZE = "65" NAME="__wf__crsdesc" DISABLED> </TD> </TR> <TR bgColor=#efefef> <TD width="25%" class="column-label"><SCRIPT language=JavaScript>swapLang("Location")</SCRIPT></TD> <TD width="75%" class="column-input"> <INPUT TYPE="text" SIZE = "65" NAME="__wf__locdesc" DISABLED> </TD> </TR> <TR bgColor=#efefef> <TD width="25%" class="column-label"><SCRIPT language=JavaScript>swapLang("Training date")</SCRIPT></TD> <TD width="75%" class="column-input"> <INPUT TYPE="text" SIZE = "10" NAME="__wf__classdatefrm" disabled> - <INPUT TYPE="text" SIZE = "10" NAME="__wf__classdateto" disabled> </TD> </TR> <TR bgColor=#efefef> <TD width="25%" class="column-label"><SCRIPT language=JavaScript>swapLang("Training Time")</SCRIPT></TD> <TD width="75%" class="column-input"> <INPUT TYPE="text" SIZE = "6" NAME="__wf__timestart" disabled> - <INPUT TYPE="text" SIZE = "6" NAME="__wf__timestop" disabled> </TD> </TR> <!-- End User Code --> <TR BGCOLOR=#EFEFEF> <TD WIDTH="25%" class="column-label"><SCRIPT LANGUAGE="JavaScript">swapLang("Priority");</SCRIPT></TD> <TD WIDTH="75%" class="column-input"> <INPUT TYPE="radio" NAME="priority" VALUE="0" CHECKED> <SCRIPT LANGUAGE="JavaScript">swapLang("Normal")</SCRIPT> <INPUT TYPE="radio" NAME="priority" VALUE="1"> <SCRIPT LANGUAGE="JavaScript">swapLang("High")</SCRIPT> <INPUT TYPE="radio" NAME="priority" VALUE="2"> <SCRIPT LANGUAGE="JavaScript">swapLang("Highest")</SCRIPT> </TD> </TR> </TABLE> </FONT></TD> <TD WIDTH="5" BACKGROUND="../IMAGES/MYNOTE/R2.gif"></TD> </TR> <TR> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-L.gif" WIDTH="5" HEIGHT="5"></TD> <TD HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/B.gif" WIDTH="100%" HEIGHT="5"></TD> <TD WIDTH="5" HEIGHT="5"><IMG SRC="../IMAGES/MYNOTE/C-B-R.gif" WIDTH="5" HEIGHT="5"></TD> </TR> </TABLE> <!-- End Code --> <br> <%=md.getRemarkDocument()%> <br> <%=md.getWorkflowCommandDocument()%> <br> <%=md.getReferenceNoteDocument()%> <br> <%=md.getAttachFileDocument()%> <br> <%=md.getWorkflowButtonDocument("GoWF")%> <br> <%=md.getRoutingDocument()%> <br> <%=md.getCommentDocument()%> <!-- Begin Set Value --> <% if( md.isStep1 ){ %> <!-- Begin Set Value Step1 --> <SCRIPT LANGUAGE="JavaScript"> setValue('priority','<%=chkNull.chkNullString(request.getParameter("priority"),"0")%>'); setValue('comments','<%=chkNull.chkNullString(request.getParameter("comments"))%>'); <% if(!chkNull.chkNullString(request.getParameter("__setTrnid")).equals("yes")){ %> setTimeout("initialization('<%=chkNull.chkNullString(request.getParameter("__wf__trainingid"),"")%>')",100); <% } %> </SCRIPT> <SCRIPT LANGUAGE="JavaScript">setTrdetail();</SCRIPT> <!-- End Set Value Step1 --> <% }else if( md.isStep2 || md.isStepCancel || md.isStepComment || md.isStepReturn || md.isStepCopy || md.isDraft ){ %> <!-- Begin Set Value Step2 --> <SCRIPT LANGUAGE="JavaScript"> setValue('__wf__fullname','<%=md.getWFDataValue("__wf__fullname")%>'); setValue('__wf__position','<%=md.getWFDataValue("__wf__position")%>'); setValue('__wf__bu1','<%=md.getWFDataValue("__wf__bu1")%>'); setValue('__wf__bu2','<%=md.getWFDataValue("__wf__bu2")%>'); setValue('__wf__bu3','<%=md.getWFDataValue("__wf__bu3")%>'); setValue('__wf__bu4','<%=md.getWFDataValue("__wf__bu4")%>'); setValue('__wf__bu5','<%=md.getWFDataValue("__wf__bu5")%>'); setValue('__wf__tel_ext','<%=md.getWFDataValue("__wf__tel_ext")%>'); setTimeout("setValue('__wf__trainingid','<%=md.getWFDataValue("__wf__trainingid")%>')",1500); setValue('__wf__trtitle','<%=md.getWFDataValue("__wf__trtitle")%>'); setValue('__wf__crsdesc','<%=md.getWFDataValue("__wf__crsdesc")%>'); setValue('__wf__locdesc','<%=md.getWFDataValue("__wf__locdesc")%>'); setValue('__wf__classdatefrm','<%=md.getWFDataValue("__wf__classdatefrm")%>'); setValue('__wf__classdateto','<%=md.getWFDataValue("__wf__classdateto")%>'); setValue('__wf__timestart','<%=md.getWFDataValue("__wf__timestart")%>'); setValue('__wf__timestop','<%=md.getWFDataValue("__wf__timestop")%>'); setValue('priority',<%=screenSingle.getDataLabel("VW_INCIDENT","PRIORITY")%>); <% if(!md.isDraft){ %> setTimeout("setDisabled()",1600); <% }else{ %> setValue('__checkPage','false'); <% } %> setTimeout("setReadOnlyOn('__remark')",1500); setValue('__wf__reserverid','<%=md.getWFDataValue("__wf__reserverid")%>'); setValue('__wf__resdate','<%=md.getWFDataValue("__wf__resdate")%>'); setValue('__wf__bu1id','<%=md.getWFDataValue("__wf__bu1id")%>'); setValue('__wf__bu2id','<%=md.getWFDataValue("__wf__bu2id")%>'); setValue('__wf__bu3id','<%=md.getWFDataValue("__wf__bu3id")%>'); setValue('__wf__bu4id','<%=md.getWFDataValue("__wf__bu4id")%>'); setValue('__wf__bu5id','<%=md.getWFDataValue("__wf__bu5id")%>'); setValue('__wf__tel_ext','<%=md.getWFDataValue("__wf__tel_ext")%>'); setValue('__wf__job','<%=md.getWFDataValue("__wf__job")%>'); setValue('__wf__emp_position','<%=md.getWFDataValue("__wf__emp_position")%>'); setValue('__wf__branch','<%=md.getWFDataValue("__wf__branch")%>'); setValue('__wf__bossid','<%=md.getWFDataValue("__wf__bossid")%>'); setValue('__wf__salatype','<%=md.getWFDataValue("__wf__salatype")%>'); </SCRIPT> <!-- End Set Value Step2 --> <% }else if( md.isStep3 || md.isAdminEdit || md.isAdminCancel || md.isAdminDelete || md.isAdminClean || md.isArchive ){ %> <!-- Begin Set Value Step3 --> <SCRIPT LANGUAGE="JavaScript"> setValue('__wf__fullname','<%=md.getWFDataValue("__wf__fullname")%>'); setValue('__wf__position','<%=md.getWFDataValue("__wf__position")%>'); setValue('__wf__bu1','<%=md.getWFDataValue("__wf__bu1")%>'); setValue('__wf__bu2','<%=md.getWFDataValue("__wf__bu2")%>'); setValue('__wf__bu3','<%=md.getWFDataValue("__wf__bu3")%>'); setValue('__wf__bu4','<%=md.getWFDataValue("__wf__bu4")%>'); setValue('__wf__bu5','<%=md.getWFDataValue("__wf__bu5")%>'); setValue('__wf__tel_ext','<%=md.getWFDataValue("__wf__tel_ext")%>'); setTimeout("setValue('__wf__trainingid','<%=md.getWFDataValue("__wf__trainingid")%>')",1500); setValue('__wf__trtitle','<%=md.getWFDataValue("__wf__trtitle")%>'); setValue('__wf__crsdesc','<%=md.getWFDataValue("__wf__crsdesc")%>'); setValue('__wf__locdesc','<%=md.getWFDataValue("__wf__locdesc")%>'); setValue('__wf__classdatefrm','<%=md.getWFDataValue("__wf__classdatefrm")%>'); setValue('__wf__classdateto','<%=md.getWFDataValue("__wf__classdateto")%>'); setValue('__wf__timestart','<%=md.getWFDataValue("__wf__timestart")%>'); setValue('__wf__timestop','<%=md.getWFDataValue("__wf__timestop")%>'); setValue('__checkPage','false'); setValue('priority',<%=screenSingle.getDataLabel("VW_INCIDENT","PRIORITY")%>); <% if(!md.isAdminEdit){ %> setTimeout("setDisabled()",1600); <% } %> </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> </div> </BODY> </HTML> <% } %>