WEL308E.jsp 8.16 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
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.utilities.*,com.csc.library.entry.HelpEntry,com.csc.library.system.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*"  %>
<%@ page import="com.csc.library.databean.*"  %>
<jsp:useBean id="WEL308E" class="com.csc.library.system.Task" scope="page" />
<%
	WEL308E.setChannel(request,response);
	UIManager screen = (UIManager) WEL308E.process("ChildEntry","TWORKOUTAREA1");
	screen.referLangOn();
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<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('<%=screen.getUProfile().get("lang")%>');</script>
<script language="javascript">getTitleName();</script>
<script language='javascript' src='../JS/HOTKEY.js'></script>
<script language="JavaScript" type="text/JavaScript">

function goHelp(helpName,inputName){
	var helpReturn;
	with (document.cscform) {
		if (__listempid.value != "") {
			listempid = __listempid.value.split(",");
			for (var i=0;i<listempid.length;i++) {
				if (__fixCon.value != "") { 
					__fixCon.value=__fixCon.value+" and EMPLOYEEID <> '"+listempid[i]+"'"; 	
				} else { 
					__fixCon.value="EMPLOYEEID <> '"+listempid[i]+"'"; 
				}	
			}
		}
	
		if(inputName=="__employeeid" ) {
			helpReturn="__employeeid:employeeid,__fullname:memployee.fullname";
		}
	}
	linkHelp_Return(helpName,helpReturn);
}

function saveChild(){
	if(nullCheck()){
		with(document.cscform){
       		if(__employeeid.value == "") {
				alert(MyCode[15]);
			} else {
				bCon=confirm(MyCode[1]);
				if (bCon==true)	{		
					__listempid.value += ","+__employeeid.value;	
					__cmdchild.value="save";
					submit();
				} // end if bCon		
			} 
		}	// end with
	} // end if nullcheck
}

function back(){
	with(window.opener.cscform){
		__cmd.value = 'ack';
    	submit();	    
	}
}

</script>
</head>
<body leftmargin="0" topmargin="0">
<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
<form name="cscform" method="post" action="WEL308E.jsp">

<!----------BEGIN CSC INITIAL ZONE ------------------------>
<%=screen.InitialVariable()%>
<!----------END CSC INITIAL ZONE -------------------------->

<!---------------- HIDDEN FIELD ZONE ---------------------->
	<!-- All Use -->
	<input type="hidden" name="__screen" value="TWORKOUTAREA1">
	<input type="hidden" name="__cmdchild" value="">
	<input type="hidden" name="__help" value="">
	<input type="hidden" name="__goPage" value="">
	<input type="hidden" name="__helpReturn" value="">
	<input type="hidden" name="__helpName" value="">
	<input type="hidden" name="__pageCall" value="">
	<input type="hidden" name="__calendar">
    <input type="hidden" name="__ack" value="<%=request.getParameter("__ack")%>">
    <input type="hidden" name="__gorec" value="<%=request.getParameter("__gorec")%>">  
    <input type="hidden" name="__sysisedit" value="">
	<input type="hidden" name="__referPage" value="">
	<input type="hidden" name="__notNull" value="<%=screen.getRequire()%>">	
	<input type="hidden" name="__screen" value="MEMPL_ASSET">
	<input type="hidden" name="__companyid"  value='<%=screen.getUProfile().get("companyid")%>'>
	<input type="hidden" name="__language" value='<%=screen.getUProfile().get("lang")%>'>
	<input type="hidden" name="__lastrec" value="<%=request.getParameter("__lastrec")%>">
	<input type="hidden" name="__maxrec" value="<%=screen.getTable("MEMPL_ASSET").recCount()%>">
	<input type="hidden" name="__headMulti" value="<%=request.getParameter("__headMulti")%>">
	<input type="hidden" name="__calendar">
	<input type="hidden" name="__Rec_No" value="<%=request.getParameter("__Rec_No")%>">
    
    <input type="hidden" name="__docno" value="<%=request.getParameter("__docno")%>">
	<!-- All Use -->
	<!-- FILTER DATA -->
	<input type="hidden" name="__fixCon" value="">
	<input type="hidden" name="__childFilter" value="">
	<input type="hidden" name="__fixFilter" value="">
	<input type="hidden" name="__orderBy" value="">
    <input type="hidden" name="__listempid" value="<%=request.getParameter("__listempid")%>">
	<!-- FILTER DATA -->
	<!-- THIS PAGE USE ONLY -->
	
	<!-- THIS PAGE USE ONLY -->
<!---------------- HIDDEN FIELD ZONE ---------------------->

<!---------------- SET LINENO ---------------------->
	<%
			int lineno=1;
			if (!request.getParameter("__line_no").trim().equals("")) {
			   	lineno = Integer.parseInt(request.getParameter("__line_no"));
			}
			if (request.getParameter("__ack").trim().equals("edit")) {
			   	lineno = Integer.parseInt(request.getParameter("__gorec"));
			}else
		   	if(request.getParameter("__ack").equals("add")){
				lineno++;
		   }
	%>
	<input type="hidden" name="__line_no" value="<%=lineno%>">
<!---------------- SET LINENO ---------------------->
    
	<script language="javascript">getInputFormatDate();</script>
	<script language="javascript">initToolTips();</script>    
	
	<br>
  	<table height="" align="center" cellpadding="0" cellspacing="0"  border="1" class = "largest">
    
    <tr bgcolor="#3366CC">
      <td  height="20" class="header" colspan="2">WEL308E, <script language="javascript">swapLang("Select employee to work out area");</script>&nbsp;</td>
  	</tr>
	<tr>
      <td class="blankspace" colspan="2"></td>
    </tr>
<!-- ================================================ DATA =======================================================-->
	<tr>
    	<td><table cellspacing="0" cellpadding="0" class = "largest">
          <!--========== BLANK ROW ============-->
          <tr> 
            <td  class="blankspace" colspan="2"></td>
          </tr>
          <!--========== BLANK ROW ============-->
          <tr> 
          	<td width="37%" ><div align="right"><%=screen.getLabel("docno")%>&nbsp;:&nbsp;</div></td>
            <td width="63%" ><input name="__docno" type="text" disabled size="15" maxlength="15" value="<%=request.getParameter("__docno")%>"></td>
          </tr>
			
          <tr> 
          	<td ><div align="right"><script language="javascript">swapLang("Employeeid");</script>&nbsp;:&nbsp;</div></td>
            <td ><%=screen.getInput("employeeid")%>&nbsp;<input name="__fullname" type="text" disabled size="40" maxlength="40" value="<%=screen.getDataLabel("MEMPLOYEE","FULLNAME")%>"></td>
          </tr>
 
          <tr> 
          	<td ><div align="right"><%=screen.getLabel("issmoke")%>&nbsp;:&nbsp;</div></td>
            <td ><%=screen.getInput("issmoke")%></td>
          </tr>
          
          <tr> 
          	<td ><div align="right"><%=screen.getLabel("roomtype")%>&nbsp;:&nbsp;</div></td>
            <td ><%=screen.getInput("roomtype")%></td>
          </tr>
          
          <tr> 
          	<td ><div align="right"><%=screen.getLabel("roomno")%>&nbsp;:&nbsp;</div></td>
            <td ><%=screen.getInput("roomno")%></td>
          </tr>
          
          <tr>
      		<td class="blankspace" colspan="2"></td>
    	  </tr>
          
          <tr>
                <td  colspan="2"><div align="center"><a href="javascript:saveChild();"><img src="../IMAGES/BUTTON/OK.gif" border="0"></a>&nbsp;<a  href="javascript:backhead();"><img src="../IMAGES/BUTTON/BACK.gif" border="0"></a></div></td>
          </tr>
        </table></td>
  	</tr>
<!-- ================================================ DATA =======================================================-->

<!-- =================== BLANK ROW==================-->	
	<tr>
      <td class="blankspace" colspan="2"></td>
    </tr>  	
	<tr>
      <td class="blankspace" colspan="2"></td>
    </tr>  	
<!-- =================== BLANK ROW ==================-->	    
	
<!-- =================== ROW COLOR ==================-->
	<tr bordercolor="0069B3"> 
        <td class="bottom"></td>
    </tr>
<!-- =================== ROW COLOR ==================-->
<% 
	if((request.getParameter("__cmdchild")!=null)&&(!request.getParameter("__cmdchild").equals(""))) {
%>
		<script language="javascript">back();</script>
<%
	}
%>
  </table>
</form>
</body>
</html>