RCM007.jsp 13.5 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
<!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> &nbsp; </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">&nbsp;</td>
                      </tr>
					  <tr> 
						<td class="columnlabel" ><span swlang code="SW012670">Manpower plan id (Old)</span>&nbsp;</td>
						<td class="columnobject1" ><input type="text" name="__oldplanid" size="15" maxlength="15" value="" readonly />&nbsp;<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>&nbsp;&nbsp;&nbsp;<span swlang code="SW012671">Copy to new manpower plan ID (New)</span>&nbsp;<input type="text" name="__newplanid" size="15" maxlength="15" value="" /></td>
					  </tr>
						<tr> 
							<td class="columnlabel" ><span swlang code="SW012673">Begin JD</span>&nbsp;</td>
							<td class="columnobject1" ><input type="text" name="__jobcodefrm" size="15" maxlength="15" value="" readonly/>&nbsp;<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>&nbsp;&nbsp;&nbsp;<span swlang code="SW012674">To JD</span>&nbsp;<input type="text" name="__jobcodeto" size="15" maxlength="15" value="" readonly />&nbsp;<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>&nbsp;*</SPAN></LABEL>&nbsp;</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>&nbsp;</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>&nbsp;</td>
						<td><input type="text" name="__startdate" size="10" maxlength="10" value="" onKeyPress="chkInteger(event);" onKeyUp="sysIsEdit();formatDate(this);" onBlur="chkInputDate2(this,__enddate);" />&nbsp;<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>&nbsp;<span swlang code="SW012679">To</span>&nbsp;<input type="text" name="__enddate" size="10" maxlength="10" value="" onKeyPress="chkInteger(event);" onKeyUp="sysIsEdit();formatDate(this);" onBlur="chkInputDate2(__startdate,this);" />&nbsp;<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>&nbsp;</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);" />&nbsp;<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>&nbsp;<span swlang code="SW012679">To</span>&nbsp;<input type="text" name="__plan_enddate" size="10" maxlength="10" value="" onKeyPress="chkInteger(event);" onKeyUp="sysIsEdit();formatDate(this);" onBlur="chkInputDate2(__plan_startdate,this);" />&nbsp;<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>&nbsp;</td>
						<td><input type="radio" name="__plan_active" value="1" /><span swlang code="SW012666">Open</span>&nbsp;
						<input type="radio" name="__plan_active" value="0" checked="checked" /><span swlang code="SW012665">Closed</span>&nbsp;
						</td>
					  </tr>
					  <tr> 
						<td class="columnlabel"><span swlang code="SW012669">Plan Status</span>&nbsp;</td>
						<td><input type="radio" name="__plan_used" value="1"/><span swlang code="SW012675">Used</span>&nbsp;
						<input type="radio" name="__plan_used" value="0" checked="checked"/><span swlang code="SW012676">Not Used</span>&nbsp;
						</td>
					  </tr>
                      <tr>
                        <td colspan="2">&nbsp;</td>
                      </tr>
                    </table></td>
				</tr>         
            </table>
      </div>
        <tr>
          <td class="blankspace">&nbsp;</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>