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

📄 wageinf.asp

📁 一套简单的OA系统
💻 ASP
字号:
<%response.expires=0%>
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/bgsub.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/checked.asp"-->
<!--#include file="asp/keepformat.asp"-->
<%
'-----------------------------------------
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='default.asp';")
	response.write("</script>")
	response.end
end if

'--------------------------------------
'打开数据库读出编辑工资的权限
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select allow_edit_all_wageinf,allow_edit_dept_wageinf from userinf where username=" & sqlstr(oabusyusername)
rs.open sql,conn,1
cook_allow_edit_all_wageinf=rs("allow_edit_all_wageinf")
cook_allow_edit_dept_wageinf=rs("allow_edit_dept_wageinf")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css.css">
<meta http-equiv="expires" content="no-cache">
<title>企业办公自动化IE37-OA系统</title>
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="5">
<% %>
<center>
<table align="center">
<tr>
<td>
<b>员工工资档案</b>&nbsp;&nbsp;
</td>
<%
if cook_allow_edit_all_wageinf="yes" then
%>
<form action="wageinf.asp" method=get name="form1">
<td>
<select name="userdept" size=1 onChange="document.form1.submit();">
<%
'打开数据库读出部门
	set rs=server.createobject("adodb.recordset")
	sql="select DISTINCT userdept from userinf"
	rs.open sql,conn,1
	if not rs.eof and not rs.bof then firstdept=rs("userdept")
	if request("userdept")<>"" then firstdept=request("userdept")
	while not rs.eof and not rs.bof
%>
<option value="<%=rs("userdept")%>"<%=selected(firstdept,rs("userdept"))%>><%=rs("userdept")%></option>
<%
		rs.movenext
	wend
%>
</select>
</td>
</form>
<%
else
	firstdept=oabusyuserdept
end if
if cook_allow_edit_all_wageinf="yes" or cook_allow_edit_dept_wageinf="yes" then
%>
<form action="wageinf.asp" method=get name="form2">
<td>
<input type="hidden" name="userdept" value="<%=firstdept%>">
<select name="username" size=1 onchange="document.addform.username.value=document.form2.username.value;">
<%
	set rs=server.createobject("adodb.recordset")
	sql="select name,username from userinf where userdept=" & sqlstr(firstdept) & " and forbid='no'"
	rs.open sql,conn,1
	if not rs.eof and not rs.bof then username=rs("username")
	if request("username")<>"" then username=request("username")
	while not rs.eof and not rs.bof
%>
<option value="<%=rs("username")%>"<%=selected(username,rs("username"))%>><%=rs("name")%></option>
<%
	rs.movenext
	wend
%>
</select>
<td>
<input type="submit" name="submit" value="查询">
</td>
</form>
<form method="post" action="addwageinf.asp" name="addform">
<td>
<input type="hidden" name="userdept" value="<%=firstdept%>">
<input type="hidden" name="username" value="<%=username%>">
<input type="submit" value="增加档案">
</td>
</form>
<%
else
	username=oabusyusername
end if
%>
</tr>
</table>
</center>
<%
 
'打开数据库读出员工姓名
set rs=server.createobject("adodb.recordset")
sql="select name from userinf where username=" & sqlstr(username)
rs.open sql,conn,1
name=rs("name")
%>
<br>
<center><b><font size="+1" color="#ee0000"><%=name%></font>的工资档案</b></center>
<br>
<%
'打开数据库,读出员工工资数据库
set rs=server.createobject("adodb.recordset")
sql="select * from wageinf where username=" & sqlstr(username)
rs.open sql,conn,1
while not rs.eof and not rs.bof
	wagelevel=rs("wagelevel")
	basewage=rs("basewage")
	stafjob=rs("stafjob")
	jobwage=rs("jobwage")
	workyear=rs("workyear")
	workyearwage=rs("workyearwage")
	rentwage=rs("rentwage")
	carwage=rs("carwage")
	prize=rs("prize")
	insurance=rs("insurance")
	tax=rs("tax")
	affairday=rs("affairday")
	affairfund=rs("affairfund")
	sickday=rs("sickday")
	sickfund=rs("sickfund")
	mustwage=rs("mustwage")
	actwage=rs("actwage")
	changreason=rs("changreason")
	actdate=rs("actdate")
	remark=rs("remark")
	recname=rs("recname")
	recdate=rs("recdate")
	updatename=rs("updatename")
	updatedate=rs("updatedate")
	id=rs("id")
%>
<center>  
  <table border="1" cellpadding="5" cellspacing="0" width="95%" bordercolorlight="#808080" bordercolordark="#d4d0c8">  
    <tr>  
      <td height="25" align="center" width="15%"><b>工资级别</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=keepformat(checked3(wagelevel))%></td>  
      <td height="25" align="center" width="15%"><b>基本工资</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=checked3(basewage)%></td>  
      <td height="25" align="center" width="15%"><b>员工职务</b></td>  
      <td height="25"><%=keepformat(checked3(stafjob))%></td>  
    </tr>  
    <tr>  
      <td height="25" align="center" width="15%"><b>职务工资</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=checked3(jobwage)%></td>  
      <td height="25" align="center" width="15%"><b>员工工龄</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=keepformat(checked3(workyear))%></td>  
      <td height="25" align="center" width="15%"><b>工龄工资</b></td>  
      <td height="25"><%=checked3(workyearwage)%></td>  
    </tr>  
    <tr>  
      <td height="25" align="center" width="15%"><b>奖金金额</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=checked3(prize)%></td>  
      <td height="25" align="center" width="15%"><b>房租补贴</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=checked3(rentwage)%></td>  
      <td height="25" align="center" width="15%"><b>车费补贴</b></td>  
      <td height="25"><%=checked3(carwage)%>  
      </td>  
    </tr>  
    <tr>  
      <td height="25" align="center" width="15%"><b>事假天数</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=keepformat(checked3(affairday))%></td>  
      <td height="25" align="center" width="15%"><b>扣事假款</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=checked3(affairfund)%></td>  
      <td height="25" align="center" width="15%"><b>病假天数</b></td>  
      <td height="25"><%=keepformat(checked3(sickday))%></td>  
    </tr>  
    <tr>  
      <td height="25" align="center" width="15%"><b>扣病假款</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=checked3(sickfund)%></td>  
      <td height="25" align="center" width="15%"><b>交个人税</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=checked3(tax)%></td>  
      <td height="25" align="center" width="15%"><b>交保险费</b></td>  
      <td height="25"><%=checked3(insurance)%></td>  
    </tr>  
    <tr>  
      <td height="25" align="center" width="15%"><b>应发金额</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=checked3(mustwage)%></td>  
      <td height="25" align="center" width="15%"><b>实发金额</b></td>  
      <td height="25" width="18%" bgcolor="#FFFFFF"><%=checked3(actwage)%></td>  
      <td height="25" align="center" width="15%"><b>执行时间</b></td>  
      <td height="25"><%=keepformat(checked3(actdate))%></td>  
    </tr>  
    <tr>  
      <td height="25" align="center" width="15%"><b>变动原因</b></td>  
      <td colspan="5" height="25" width="85%" bgcolor="#FFFFFF"><%=keepformat(checked3(changreason))%></td>  
    </tr>  
    <tr>  
      <td height="25" align="center" width="15%"><b>备注说明</b></td>  
      <td colspan="5" height="25" width="85%" bgcolor="#FFFFFF"><%=keepformat(checked3(remark))%></td>  
    </tr>  
  </table>  
  <table width="95%" cellspacing="0" cellpadding="0" bordercolorlight="#808080" bordercolordark="#D4D0C8" border="1">  
    <tr>  
      <td height="25" width="15%" align="center"><b>记&nbsp;录&nbsp;人</b></td>  
      <td height="25" width="35%" bgcolor="#FFFFFF"><%=checked3(recname)%></td>  
      <td height="25" width="15%" align="center"><b>记录时间</b></td>  
      <td height="25" width="35%" bgcolor="#FFFFFF"><%=checked3(recdate)%></td>  
    </tr>  
    <tr>  
      <td height="25" width="15%" align="center"><b>更&nbsp;改&nbsp;人</b></td>  
      <td height="25" width="35%" bgcolor="#FFFFFF"><%=checked3(updatename)%></td>  
      <td height="25" width="15%" align="center"><b>更改时间</b></td>  
      <td height="25" width="35%" bgcolor="#FFFFFF"><%=checked3(updatedate)%></td>  
    </tr>  
  </table>  
<%  
if cook_allow_edit_all_wageinf="yes" or cook_allow_edit_dept_wageinf="yes" then  
%>  
  <table border="0" cellpadding="0" cellspacing="0" width="95%">  
    <tr><form method="post" action="editwageinf.asp">  
      <td align=right><input type="submit" value="编辑">  
<input type="hidden" name="userdept" value="<%=firstdept%>">  
<input type="hidden" name="username" value="<%=username%>">  
<input type="hidden" name="id" value=<%=id%>>  
</td>  
        </form>  
    </tr>  
  </table>  
<%  
end if  
%>  
  <p>  
<br>  
</center>  
<%  
	rs.movenext  
wend   
%>
<div align="center">
  <center>
  <table>
    <tr>
      <td height=19>
        <table border="0" cellpadding="0" cellspacing="0" width="610" height="19">
		  <tr>
          <td width="100%" height=20><p align="center"><font color="#808080">IE37 &copy; <a href="http://www.ie37.com" target="_blank">IE37.com</a></font></td> 
		  </tr>
        </table>
      </td>
    </tr>
<%  
conn.close  
set conn=nothing  
%>  
  </table>
  </center>
</div>
</body>  

⌨️ 快捷键说明

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