<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="pojo.Salary"%>
<%@ page import="utils.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>人力资源管理系统</title>
<link rel="stylesheet" rev="stylesheet" href="css/style.css " type="text/css" media="all" />
<script type="text/javascript" src="Js/typem.js"></script>
<script type="text/javascript" src="Js/js.js"></script>
<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>
</head>
<body class="ContentBody">
<form name="stipendForm" method="post" action="SalaryServlet?method=salaryUpdate" onsubmit="return salaryValidate();">
<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th class="tablestyle_title" >薪金数据更新</th>
  </tr>
    <%
  Salary e=(Salary)request.getAttribute("salary");
  if(e!=null){
  %>
  <tr>
    <td class="CPanel">
		<table border="0" cellpadding="0" cellspacing="0" style="width:80%" align="center">
		
		<tr>
			<td width="100%">
				<fieldset style="height:100%;">
				<legend>薪金数据</legend>
					  <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					  <input type="hidden" name="id" value="<%=e.getId()%>"/>
					  <tr>
					    <td nowrap align="right" width="9%">员工姓名：</td>
					    <td width="36%"><input name="name" type="text" class="input" value="<%=e.getName()%>"/>
						<span class="red">*</span></td>
					    <td width="12%"><div align="right">基本薪金：</div></td>
					    <td width="43%"><input name="basic" type="text" class="input" id="basic" value="<%=e.getBasic()%>" />
					      <span class="red">*</span></tr>
					  <tr>
					    <td nowrap align="right" width="9%">饭补：</td>
					    <td><input name="eat" type="text" class="input" id="eat" value="<%=e.getEat()%>"/></td>
					    <td><div align="right">房补：</div></td>
					    <td><input name="house" type="text" class="input" id="house"  value="<%=e.getHouse()%>"/></td>
					  </tr>
					  <tr>
					    <td nowrap align="right">全勤奖：</td>
					    <td><input name="duty" type="text" class="input" id="duty" value="<%=e.getDuty()%>"></td>
					    <td><div align="right">扣税：</div></td>
					    <td><input name="scot" type="text" class="input" id="scot"  value="<%=e.getScot()%>"/></td>
					    </tr>
					  <tr>
					    <td nowrap align="right">额外补助：</td>
					    <td><input name="other" type="text" class="input" id="other"  value="<%=e.getOther()%>"/></td>
					    <td><div align="right">罚款：</div></td>
					    <td><input name="punishment" type="text" class="input" id="punishment"  value="<%=e.getPunishment()%>"></td>
					    </tr>
					  <tr>
					    <td nowrap align="right">发放时间：</td>
					    <td><input name="granttime" type="text" class="input" id="granttime" value="<%=StringUtil.notNull(DateUtil.parseToString(e.getGranttime(),DateUtil.yyyyMMdd))%>">
				        <span class="red">*</span></td>
					    <td colspan="2"><div align="left">注：金钱单位（元/RMB）</div></td>
					    </tr>
					  </table>
				</fieldset>		
			</td>
		</tr>
	<tr>
		<td colspan="2" align="center" height="50px">
		<input name="更新" type="submit" class="button" value="更新"/>　
		<input name="重置" type="reset" class="button" value="重置"/>
		</td>
	</tr>
	  <%}else{ %>
	  <tr>
	    <td height="22" colspan="4" align="center" >该信息不存在！！！</td>
	  </tr>
	  <%}%>
	</tabel>
</table>
</body>
</html>

