⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add.jsp

📁 有关医院方向的开发
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.dc.common.*"%>
<%@ page import="java.util.List"%>
<%@ page import="com.woyi.dto.Stuffinfo"%>
<html>
<%
		String RenCode = (String) session.getAttribute(SysConstant.RETCODE);
		List orgList = (List) session.getAttribute("ares_stufflist");
		List wagelist = (List) session.getAttribute("ares_basewagelist");
		String sqlerid = (String) session.getAttribute("sqlertid_tta");
 %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css" type="text/css">
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/check.js"></script>
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/ajax.js"></script>
<script language="javaScript" src="<%=request.getContextPath()%>/scripts/calendar.js"></script>
<title>员工工资添加</title>
</head>
<body class="navtree">
<form name="addRole" method="POST" action="" target="suibian">
<input type="hidden" name="roleflag" value="1"/>
<input type="hidden" name="optmode" value="add"/>
<html:errors /> 
<script>
window.name="suibian";
</script>
<%
if (RenCode !=null){
	if (SysConstant.SUCRETCODE.equals(RenCode)) {
	%>
	<script language="javascript">
		    alert("员工工资信息增加成功!");
	        </script>
	<%
	
	}else{
	%>
	<script language="javascript">
		    alert("员工工资信息增加失败,请联系管理员!");
	        </script>
	 <%
	}
	session.removeAttribute(SysConstant.RETCODE);
}

%>
<table class="content01">
	<tr class="listHead">
		<td align=left colspan=4>
			员工工资信息增加
		</td>
	</tr>
	<tr class="listContent">
		<td align=right>员工名称:</td>
		<td align=left>
      		<select name="sqlerid" style="width:150" onchange="changeInfo()">
              <OPTION value="">---请选择---</OPTION>
               <%if(orgList!=null){
                 for(int i = 0; i < orgList.size(); i++)
                {  
                    Stuffinfo info =(Stuffinfo)orgList.get(i);
               %>
                <OPTION value="<%=info.getSqlertid()%>"><%=info.getStuffname()%></OPTION>
               <% 
               }
               }
               %>
             </select>
		</td>  
		<td align="right">基本工资:</td>
		<td align="left">
			<input type="text" name="basewage" maxlength=255   readOnly="true"/>
		</td>   
	</tr>
	<tr class="listContent">
		<td align=right>绩效工资:</td>
		<td align="left">
			<input type="text" name="jxwage" maxlength=255  />
		</td>   
		<td align="right">扣款:</td>
		<td align="left">
			<input type="text" name="lostwage" maxlength=255  />
		</td>   
	</tr>
	<tr class="listContent">
		<td align=right>其他:</td>
		<td align="left" >
			<input type="text" name="otherwage" maxlength=255  />
		</td>  
		<td align="right">月份:</td>
	    <td width="30%"><INPUT name="optdate" type="text" size="20"  readonly=true  maxlength="8" style="width:100">
	    <IMG align="middle"	src="<%=request.getContextPath()%>/images/calendar.gif"	onclick="calendar(document.all('optdate'))"></td> 
   
	</tr>
	<tr class="listContent">
		<td align=left colspan=4>
			<input type=button class=add onClick="doAdd();" />
			<input type=button class=close onClick="window.close();" />
		</td>
	</tr>
</table>
</form>
</body>
</html>
<script language="javaScript">
function doAdd(){

   if (addRole.sqlerid.value == ""){
   		alert("请选择员工名称,谢谢!");
   		return;
   
   }
    var items = new CheckItem(); 
	items.add("3|1|jxwage|绩效工资|-1");
	items.add("3|1|lostwage|扣款|-1");
    items.add("0|1|optdate|月份|-1");
	if(!checkForm(document.forms[0],items))
		return false;
	document.forms[0].optdate.value = document.forms[0].optdate.value.substring(0,6);
	addRole.action = "financeMgr.do?method=staffWageAdd";
    addRole.submit();
}

function changeInfo(){
	addRole.action = "financeMgr.do?method=queryBaseWage";
    addRole.submit();
}
<%
if (null != wagelist ){
   Stuffinfo info =(Stuffinfo)wagelist.get(0);
   
%>
   addRole.basewage.value =<%=info.getBimchg()%> ;
<%
}
%>

<%
if (null != sqlerid ){
   
%>
   addRole.sqlerid.value =<%=sqlerid%> ;
<%
}
%>
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -