<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@page contentType="text/html; charset=UTF-8" %> <%@page import="com.csc.library.entry.*,com.csc.library.system.*,com.csc.library.utilities.*"%> <% request.setCharacterEncoding("UTF-8"); %> <jsp:useBean id="RCM007" class="com.csc.library.system.Task" scope="page" /> <jsp:useBean id="HELP" class="com.csc.library.system.Task" scope="page" /> <% CheckNull chk=new CheckNull(); RCM007.setChannel(request, response); ProcessEntry screen = (ProcessEntry)RCM007.process("ProcessEntry","Process"); screen.process(); %> <html ng-app="myHR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link type="text/css" rel="stylesheet" href="../CSS/TISCO.css" > <script language="JavaScript" src="../JS/SCREEN.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> <script type="text/javascript" src="../JS/DATEINPUT.js"></script> <script type="text/javascript" src="../JS/VIEWCALENDAR.js"></script> <script language="javascript">setLang("<%=screen.getUProfile().get("lang")%>");</script> <script language="javascript">getTitleName();</script> <script language="javascript"> function GoSave(){} function GoUpdate(){} function GoDelete(){} function GoSearch(){} function checkBlank(){ with(document.cscform){ var startdate = __startdate.value; var enddate = __enddate.value; var plan_startdate = __plan_startdate.value; var plan_enddate = __plan_enddate.value; var oldplanid = __oldplanid.value; var newplanid = __newplanid.value; if(oldplanid==""){ alert("กรุณากรอก รหัสงบประมาณ (เดิม)"); __oldplanid.focus(); return false; }else if(newplanid==""){ alert("กรุณากรอก รหัสงบประมาณ (ใหม่)"); __newplanid.focus(); return false; }else if(startdate==""){ alert("กรุณากรอก ช่วงเวลางบประมาณ เริ่มต้น"); __startdate.focus(); return false; }else if(enddate==""){ alert("กรุณากรอก ช่วงเวลางบประมาณ สิ้นสุด"); __enddate.focus(); return false; }else if(plan_startdate==""){ alert("กรุณากรอก ช่วงเวลาวางแผนอัตรากำลัง เริ่มต้น"); __plan_startdate.focus(); return false; }else if(plan_enddate==""){ alert("กรุณากรอก ช่วงเวลาวางแผนอัตรากำลัง สิ้นสุด"); __plan_enddate.focus(); return false; }else{ return true; } } } function GoProcess() { if(!checkBlank()){ return } with(document.cscform){ msg = (getLang()=="tha") ? "คุณต้องการคัดลอกรายการ ?" :"Do you want to record(s) ?" bCon=confirm( msg ); if (bCon==true) { setCondition(); __cmd.value = "save"; __condition$oldplanid.value = __oldplanid.value; __condition$newplanid.value = __newplanid.value; __condition$jobcodefrm.value = __jobcodefrm.value; __condition$jobcodeto.value = __jobcodeto.value; __condition$startdate.value = __startdate.value; __condition$enddate.value = __enddate.value; __condition$plan_startdate.value = __plan_startdate.value; __condition$plan_enddate.value = __plan_enddate.value; __condition$plan_active.value = getRadioValue(__plan_active); __condition$plan_used.value = getRadioValue(__plan_used); __condition$plan_type.value = __plan_type.value; __condition$plan_reason.value = __plan_reason.value; submit(); } } } function setCondition(){ with(document.cscform){ // setFilter(); __condition$filter.value = __fixCon.value; } } function goHelp(helpName,inputName){ var helpReturn; if(inputName=="__oldplanid" ){ helpReturn="__oldplanid:planid,__plan_type:plan_type,__plan_reason:plan_reason"; } if(inputName=="__jobcodefrm" ){ helpReturn="__jobcodefrm:jobcodeid"; } if(inputName=="__jobcodeto" ){ helpReturn="__jobcodeto:jobcodeid"; } linkHelp_Return(helpName,helpReturn); } </script> <style type="text/css"> <!-- .radio-vertical label{ display: block; } --> </style> </head> <body leftmargin="0" topmargin="0" onLoad="MM_preloadImages('../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif')" > <div align="center"> <div id="toolTipLayer" style="position:absolute; visibility: hidden"></div> <script language="javascript">initToolTips();</script> <form name="cscform" method="post"> <input type="hidden" name="__cmd" value=""> <input type="hidden" name="__screen" value="RCM007"> <input type="hidden" name="__help" value=""> <input type="hidden" name="__companyid" value="<%=screen.getUProfile().get("companyid")%>"> <input type="hidden" name="__notNull" value=""> <input type="hidden"name="__fixCon" value=""> <input type="hidden" name="__referPage" value=""> <input type="hidden" name="__process" value=""> <input type="hidden" name="__tname" value="ประมวลผลอัตากำลังพล"> <input type="hidden" name="__ename" value="Generate Manpower Process"> <input type="hidden" name="__ptype" value=""> <input type="hidden" name="__prclass" value="GenerateManpower"> <input type="hidden" name="__calendar" value=""> <input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>"> <input type="hidden" name="__goPage" value =""> <input type="hidden" name="__condition$filter" value=""> <input type="hidden" name="__condition$oldplanid" value=""> <input type="hidden" name="__condition$newplanid" value=""> <input type="hidden" name="__condition$jobcodefrm" value=""> <input type="hidden" name="__condition$jobcodeto" value=""> <input type="hidden" name="__condition$startdate" value=""> <input type="hidden" name="__condition$enddate" value=""> <input type="hidden" name="__condition$plan_startdate" value=""> <input type="hidden" name="__condition$plan_enddate" value=""> <input type="hidden" name="__condition$plan_active" value=""> <input type="hidden" name="__condition$plan_used" value=""> <input type="hidden" name="__condition$plan_type" value=""> <input type="hidden" name="__condition$plan_reason" value=""> <script language="javascript">getInputFormatDate();</script> <%=screen.getTagConfirm()%> <br> <center> <table width="90%" align="center" cellpadding="0" cellspacing="0"> <tr> <td class="header" colspan="2" >RCM007, <span swlang code="SW012656">Manpower help</span> </td> </tr> <tr > <td colspan="2"> <div align="center"><br> <table border="1" cellpadding="0" cellspacing="0" class="largest" > <tr> <td><table cellspacing="0" cellpadding="0" class="inframe"> <tr> <td colspan="2"> </td> </tr> <tr> <td class="columnlabel" ><span swlang code="SW012670">Manpower plan id (Old)</span> </td> <td class="columnobject1" ><input type="text" name="__oldplanid" size="15" maxlength="15" value="" readonly /> <a href="javascript:goHelp('MMANPOWER0HELP','__oldplanid');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('__oldplanid_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__oldplanid_image" width="20" height="20" border="0" align="absmiddle" ></a> <span swlang code="SW012671">Copy to new manpower plan ID (New)</span> <input type="text" name="__newplanid" size="15" maxlength="15" value="" /></td> </tr> <tr> <td class="columnlabel" ><span swlang code="SW012673">Begin JD</span> </td> <td class="columnobject1" ><input type="text" name="__jobcodefrm" size="15" maxlength="15" value="" readonly/> <a href="javascript:goHelp('MJOBCODEHELP','__jobcodefrm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('__jobcodefrm_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__jobcodefrm_image" width="20" height="20" border="0" align="absmiddle" ></a> <span swlang code="SW012674">To JD</span> <input type="text" name="__jobcodeto" size="15" maxlength="15" value="" readonly /> <a href="javascript:goHelp('MJOBCODEHELP','__jobcodeto');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('__jobcodeto_image','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="SEARCH" name="__jobcodeto_image" width="20" height="20" border="0" align="absmiddle" ></a></td> </tr> <tr> <td class="blankspace" colspan="2"><hr></td> </tr> <tr> <td class="columnlabel" ></td> <td><u><span swlang code="SW012677">Please enter information for a new budget (below)</span></u></td> </tr> <tr> <TD class=columnlabel><LABEL><span swlang code="SW012672">Budget Type</span><SPAN class=require> *</SPAN></LABEL> </TD> <TD><INPUT onblur=trimValue(this); onfocus=this.select(); onkeypress=chkSpecialStr(event); onkeyup=sysIsEdit(); onmouseout=toolTip() name=__plan_type alt=ประเภทงบประมาณ maxLength=200 size=50 onmousemver="toolTip('ประเภทงบประมาณ')"></TD> </tr> <TR> <TD class="columnlabel"><LABEL><span swlang code="SW012678">Reason Budget</span></LABEL> </TD> <TD><INPUT onblur=trimValue(this); onfocus=this.select(); onkeypress=chkSpecialStr(event); onkeyup=sysIsEdit(); onmouseout=toolTip() name=__plan_reason alt=เหตุผลที่ของบประมาณ maxLength=200 size=50 onmousemver="toolTip('เหตุผลที่ของบประมาณ')"></TD> </TR> <tr> <td class="columnlabel" ><span swlang code="SW012664">Budget Period</span> </td> <td><input type="text" name="__startdate" size="10" maxlength="10" value="" onKeyPress="chkInteger(event);" onKeyUp="sysIsEdit();formatDate(this);" onBlur="chkInputDate2(this,__enddate);" /> <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="calendar" name="Image4" border="0" align="absmiddle" id="Image154" onClick="viewCal('__startdate')"></a> <span swlang code="SW012679">To</span> <input type="text" name="__enddate" size="10" maxlength="10" value="" onKeyPress="chkInteger(event);" onKeyUp="sysIsEdit();formatDate(this);" onBlur="chkInputDate2(__startdate,this);" /> <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="calendar" name="Image5" border="0" align="absmiddle" id="Image154" onClick="viewCal('__enddate')"></a></td> </tr> <tr> <td class="columnlabel" ><span swlang code="SW012667">Plan Period</span> </td> <td><input type="text" name="__plan_startdate" size="10" maxlength="10" value="" onKeyPress="chkInteger(event);" onKeyUp="sysIsEdit();formatDate(this);" onBlur="chkInputDate2(this,__plan_enddate);" /> <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="calendar" name="Image4" border="0" align="absmiddle" id="Image154" onClick="viewCal('__plan_startdate')"></a> <span swlang code="SW012679">To</span> <input type="text" name="__plan_enddate" size="10" maxlength="10" value="" onKeyPress="chkInteger(event);" onKeyUp="sysIsEdit();formatDate(this);" onBlur="chkInputDate2(__plan_startdate,this);" /> <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="calendar" name="Image5" border="0" align="absmiddle" id="Image154" onClick="viewCal('__plan_enddate')"></a></td> </tr> <tr> <td class="columnlabel"><span swlang code="SW012668">Plan Active</span> </td> <td><input type="radio" name="__plan_active" value="1" /><span swlang code="SW012666">Open</span> <input type="radio" name="__plan_active" value="0" checked="checked" /><span swlang code="SW012665">Closed</span> </td> </tr> <tr> <td class="columnlabel"><span swlang code="SW012669">Plan Status</span> </td> <td><input type="radio" name="__plan_used" value="1"/><span swlang code="SW012675">Used</span> <input type="radio" name="__plan_used" value="0" checked="checked"/><span swlang code="SW012676">Not Used</span> </td> </tr> <tr> <td colspan="2"> </td> </tr> </table></td> </tr> </table> </div> <tr> <td class="blankspace"> </td> </tr> <tr> <td class="buttonline"><a href="javascript:GoProcess();"><img src="../IMAGES/BUTTON/PROCESS.gif" width="73" height="23" border="0" align="absmiddle" /></a></td> </tr> <tr> <td class="bottom"></td> </tr> </table> </center> </form> </div> </body> </html>