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

📄 ssset1.asp

📁 工资管理系统功能齐全包括工人工资信息查询.
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="CheckLogin.asp"-->
<!--#include file="StudentConn.asp" -->
<%
	Dim msg:msg="请先统计应发总计!"
	Dim mmsg:mmsg="应发总计统计完毕,重新设置上税部分!"
	Dim objConn
	set objConn = Server.CreateObject("ADODB.Connection")
	objConn.ConnectionString = MM_StudentConn_STRING
	objConn.Open
	Set RS1 = Server.CreateObject("ADODB.Recordset")
	RS1.ActiveConnection = MM_StudentConn_STRING
	RS1.Source = "select * from " & Request("SheetName")
	RS1.CursorType = 0
	RS1.CursorLocation = 3
	RS1.LockType = 3
	RS1.Open()
	while not RS1.eof
		if rs1("应发总数")=0 then
			Response.redirect("yftj.asp?SheetName="&Request("SheetName"))
		else
			sId=RS1(0)
			If left(sId,4)="0202" then
			   strFields=" Set 上税部分=(应发总数-基金-公疗扣-托补-独子-房补-其它补-洗理-书报-保险扣)"
			   Response.Write(strFields)
			else
			   strFields=" Set 上税部分=(应发总数-基金-公疗扣-托补-独子-房补-洗理-书报-保险扣)"
'			   Response.Write(strFields)
			end if
			strUpdate="update  " & Request("SheetName") & strFields & " where StudentNum='" & sId & "'"
			objConn.execute(strUpdate)
		end if
		RS1.MoveNext		
	wend
%>
<%
	Dim Recordset2
	Set Recordset2 = Server.CreateObject("ADODB.Recordset")
	Recordset2.ActiveConnection = MM_StudentConn_STRING
	strSQL = "Select " & Request("SheetName") & ".StudentNum, StudentInfo.Name,StudentInfo.ClassName," & Request("SheetName") & ".上税部分," & Request("SheetName") & ".税率 From " & Request("SheetName")
	strSQL = strSQL & " LEFT JOIN StudentInfo ON " & Request("SheetName") & ".StudentNum = StudentInfo.StudentNum order by " & Request("SheetName") & ".StudentNum asc"
	Recordset2.Source = strSQL
	Recordset2.CursorType = 0
	Recordset2.CursorLocation = 3
	Recordset2.LockType = 3
	Recordset2.Open()
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>上税部分管理——第二步</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2600.0" Name=GENERATOR>
<link href="home.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-color: #f7f7ff;
}
.STYLE2 {color: #999900}
-->
</style>
</HEAD>
<BODY text=#000000 leftMargin=0 topMargin=0>
<!--#include file="ScoreManage_top.asp"-->
<p align="center">
<table width="240" border="1" cellpadding="5" cellspacing="1" align="center" bordercolordark="#FFFFFF" bordercolorlight="#000099">
	<tr>
		<td bgcolor="#C8D5F9"><a href="SsSet1.asp?SheetName=<%=Request("SheetName")%>"><font color="#ffff00">上税部分设置</font></a></td>
		<td bgcolor="#C8D5F9"><a href="SsSet2.asp?SheetName=<%=Request("SheetName")%>">税率设置</a></td>
		<td bgcolor="#C8D5F9"><a href="SsSet3.asp?SheetName=<%=Request("SheetName")%>">上交税额设置</a></td>
	</tr>
</table>
</p>
<form Name="form2" action="ChuQinModify.asp" method="post">
<p align="center" class="title"><font color="#FF0000"><%=left(right(Request("SheetName"),6),4)%>年<%=right(Request("SheetName"),2)%>月工资库上税部分设置情况</font></p>
<br>
<TABLE width="300" border=1 align="center" cellPadding=2 cellSpacing=0 bordercolor="#CCCCFF" style="border-collapse:collapse">
  <tr>
	<td align="center"><strong>编号</strong></td>
	<td align="center"><strong>姓名</strong></td>
	<td align="center"><strong>科室</strong></td>
	<td align="center"><strong>上税部分</strong></td>
	<td align="center"><strong>税率</strong></td>
    </tr>
  <%
  	for j=0 to (Recordset2.RecordCount-1)
  %>
  <tr>
	<td align="center"><%=Recordset2("StudentNum")%></td>
	<td align="center"><%=Recordset2("Name")%></td>
	<td align="center"><%=Recordset2("ClassName")%></td>
	<td align="center">
	<%
		If Recordset2("上税部分")<>"" Then
			Response.Write(Round(Recordset2("上税部分"),2))
		end if
	%></td>
	<td align="center"><%=Recordset2("税率")%></td>
    </tr>
  <%
  	Recordset2.MoveNext
	Next
  %>
</table>
</form>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
		<Iframe src="CopyRight.asp" width="760" height="100" marginheight="0" marginwidth="0" scrolling="NO" frameborder="0" name="CopyRight"></iframe>
	</td>
  </tr>
</table>
</BODY>
</HTML>
<%
	RS1.Close()
	Set RS1 = Nothing
%>
<%
	Recordset2.Close()
	Set Recordset2 = Nothing
%>

⌨️ 快捷键说明

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