?? ssset1.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 + -