TRP002.jsp 10.1 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.csc.library.entry.*" %>
<%@ page import="com.csc.library.utilities.*,com.csc.library.session.*,com.csc.library.database.SystemCode" %>
<jsp:useBean id="TRP002" scope="page" class="com.csc.library.system.Task" />
<html>
<% 
   	TRP002.setChannel(request ,response);
   	ProcessEntry screen=(ProcessEntry)TRP002.process("ProcessEntry","Pgentempplan");
   	screen.process();
   
%>
<html>
<head>
<title>Process gen employee Plan</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<script src="JS/VIEWCALENDAR.js"></script>
<script type='text/javascript' src='../JS/SCREEN.js'></script>
<script language='javascript'>setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script type='text/javascript' src='../JS/ICONSMENU.js'></script>
<script language="JavaScript" type="text/JavaScript">
	function process(){
		with(document.cscform){
			if(__condition$planid.value==""){
				alert(MyCode[0]);
				__condition$planid.select();
			}else if(__condition$datestart.value==""||__condition$datestop.value==""){
				alert(MyCode[0]);
				__condition$datestart.select();
			}else{
				confirmProcess();
			}
		}
	}
	function confirmProcess(){
		with(document.cscform){
				aCon=confirm(MyCode[168]);
				if (aCon==true)	{
					__cmd .value = "save";
					submit();
				}
		}
	}
	function goHelp(helpName,inputName){
		var helpReturn;
		var fcon="";
			if(inputName=="__condition$empstart" ){
				helpReturn="__condition$empstart:employeeid,__condition$empstop:employeeid";
			}
			if(inputName=="__condition$empstop" ){
				helpReturn="__condition$empstop:employeeid";
			}
			if(inputName=="__condition$jobstart" ){
				helpReturn="__condition$jobstart:jobcodeid,__condition$jobstop:jobcodeid";
			}
			if(inputName=="__condition$jobstop" ){
				helpReturn="__condition$jobstop:jobcodeid";
			}
		linkHelp_Return(helpName,helpReturn);
	}
	function setGenType(data){
		var tmp = data;
		with(document.cscform){
			__condition$gentype.value = data;
			writetype[0].disabled = (data=='1')?true:false;
			writetype[1].disabled = (data=='1')?true:false;
		}
	}
	function setWriteType(data){
		var tmp = data;
		with(document.cscform){
			__condition$writetype.value = data;
		}
	}
</script>

</head>
<body leftmargin="0" topmargin="0" onLoad="MM_preloadImages('images/button/swap/search_swap20.gif')">
<div class="centered">


    <form name="cscform" method="post" action="#">

<!----------BEGIN CSC INITIAL ZONE ------------------------>

<%=screen.InitialVariable()%>

<!----------END CSC INITIAL ZONE -------------------------->

   <script language="javascript">getInputFormatDate();</script>
  <input type="hidden" name="__screen" value="TRP002">
  <input type="hidden" name="__fixCon" value="">
  <input type="hidden" name="__cmd"  value="">
  <input type="hidden" name="__help"  value="">
  <input type="hidden" name="__user" value="<%=screen.getUProfile().getUserId()%>">
  <input type="hidden" name="__companyid"value='<%=screen.getUProfile().get("companyid")%>'>
  <input type="hidden" name="__name" value="Process gen employee plan">
  <input type="hidden" name="__ptype" value="">
  <input type="hidden" name="__prclass" value="Pgentempplan">
  <input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>">
  <input type="hidden" name="__calendar">
  <input type="hidden" name="__condition$gentype" value='1'>
  <input type="hidden" name="__condition$writetype" value='0'>
  <div align="center">
    <table border="0" cellpadding="0" cellspacing="0">
		<tr > 
				<td  class="header">TRP002,&nbsp;<script language="javascript">swapLang('Create work training plan');</script>&nbsp;</td>
		</tr>
		<tr>
				<td align="center">
						<table cellpadding="0" cellspacing="0" cols="2" border="1">
									 <tr>
											<td  class="blankspace" colspan="2"></td>
									</tr>
									<tr>
											<td width="30%" align="right"><script language="javascript">swapLang('Plan ID');</script>&nbsp;</td>
											<td width="70%" align="left"><input type="text" name="__condition$planid" size="10"></td>
									</tr>
									<tr>
											<td width="30%" align="right"><script language="javascript">swapLang('Gen Type');</script>&nbsp;</td>
											<td width="70%" align="left"><input type="radio" name="gentype" value="1" checked onclick="setGenType(this.value);">&nbsp;<script language="javascript">swapLang('Create New');</script></td>
									</tr>
									<tr>
											<td  class="blankspace" ></td>
											<td width="70%" align="left" ><input type="radio" name="gentype" value="0" onclick="setGenType(this.value);"><script language="javascript">swapLang('Edit');</script>&nbsp;<input type="radio" name="writetype" value="0" checked disabled onclick="setWriteType(this.value);">&nbsp;<script language="javascript">swapLang('Basic & Function');</script>&nbsp;&nbsp;<input type="radio" name="writetype" value="1" disabled onclick="setWriteType(this.value);">&nbsp;<script language="javascript">swapLang('All');</script></td>
									</tr>
									<tr>
											<td width="30%" align="right"><script language="javascript">swapLang('Description');</script>&nbsp;(<script language="javascript">swapLang('Thai');</script>)&nbsp;</td>
											<td width="70%" align="left"><input type="text" name="__condition$tdesc" size="60"></td>
									</tr>
										<tr>
											<td width="30%" align="right"><script language="javascript">swapLang('Description');</script>&nbsp;(<script language="javascript">swapLang('Eng');</script>)&nbsp;</td>
											<td width="70%" align="left"><input type="text" name="__condition$edesc" size="60"></td>
									</tr>
									 <tr>
											<td  class="blankspace" colspan="2"></td>
									</tr>
									<tr>
											<td align="right" nowrap width="30%"><script language="javascript">swapLang('Date Between');</script>&nbsp;</td>
											<td align="left" width="70%">
												<input type="text" name="__condition$datestart" size="10" value="" onfocus="this.select();" onkeyup="formatDate(this);" onblur="chkInputDate2(this,__condition$datestop);" onkeypress="chkIntegerOfDate(this.value);">
												<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('01','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="calendar" name="01" border="0" align="absmiddle" id="im01" onClick="viewCal('__condition$datestart')"></a> 
												&nbsp;&nbsp;-&nbsp;&nbsp;
												<input type="text" name="__condition$datestop" size="10" value="" onfocus="this.select();" onkeyup="formatDate(this);" onblur="chkInputDate2(__condition$datestart,this);" onkeypress="chkIntegerOfDate(this.value);">
												<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('02','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="calendar" name="02" border="0" align="absmiddle" id="im02" onClick="viewCal('__condition$datestop')"></a> 
											</td>
									</tr>
						</table>
				</td>
		</tr>
		<tr>
				<td align="center">
						<table cellpadding="0" cellspacing="0" cols="2" border="1" >
									 <tr>
											<td  class="blankspace" colspan="2"></td>
									</tr>
									<tr>
											<td align="right" nowrap width="30%"><script language="javascript">swapLang('Employee ID');</script>&nbsp;</td>
											<td align="left" width="70%">
												<input type="text" name="__condition$empstart" readonly size="10" value="">
												<a href="javascript: goHelp('MEMPLOYEEHELP','__condition$empstart');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('03','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Search" name="03" width="20" height="20" border="0" align="absmiddle" id="im03"></a>
												&nbsp;&nbsp;-&nbsp;&nbsp;
												<input type="text" name="__condition$empstop" readonly size="10" value="">
												<a href="javascript: goHelp('MEMPLOYEEHELP','__condition$empstop');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('04','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Search" name="04" width="20" height="20" border="0" align="absmiddle" id="im04"></a>
											</td>
									</tr>
									<tr>
											<td align="right" nowrap ><script language="javascript">swapLang('Job ID');</script>&nbsp;</td>
											<td align="left">
												<input type="text" name="__condition$jobstart" readonly size="10">
												<a href="javascript: goHelp('MJOBCODEHELP','__condition$jobstart');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('05','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Search" name="05" width="20" height="20" border="0" align="absmiddle" id="im05"></a>
												&nbsp;&nbsp;-&nbsp;&nbsp;
												<input type="text" name="__condition$jobstop" readonly size="10">
												<a href="javascript: goHelp('MJOBCODEHELP','__condition$jobstop');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('06','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Search" name="06" width="20" height="20" border="0" align="absmiddle" id="im06"></a>
											</td>
									 </tr>
									 <tr>
											<td  class="blankspace" colspan="2"></td>
									</tr>
						</table>
				</td>
		</tr>
		<tr>
                <td class="blankspace"></td>
		</tr>
		<tr>
                <td align="center"><a href="javascript:process();"><img src="../IMAGES/BUTTON/PROCESS.gif" border="0"></a></td>
		</tr>
		<tr>
                <td class="blankspace"></td>
		</tr>
		<tr> 
				<td class="bottom"></td>
		</tr>
		<script language="javascript">chkInputDate2(document.cscform.__condition$datestart,document.cscform.__condition$datestop);</script>
    </table>
    </div>


<!----------BEGIN CSC ENDING ZONE ------------------------>

<%=screen.endJSP()%>

<!----------END CSC ENDING ZONE -------------------------->

</form>
</body>
</html>