📄 base_rec.asp
字号:
<!--#include file="../config.asp"-->
<!--#include file="../inc/check_login.asp"-->
<!--#include file="../inc/functions.asp"-->
<%
Application_ID = 3000100 '本功能编号,含义请查看编码表
if not CheckAuth(Session("Employee_ID"),Application_ID) then '验证权限
Server.Transfer "../err/un_authorized.htm"
response.end
end if
%>
<!--**************身份验证部分****************-->
<%
Contract_ID = request("Contract_ID")
if not IsNot(Contract_ID,"n") then
response.write "合同编号丢失或不正确"
response.end
end if
Set conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
conn.open connstr
sql = "sp_Contract_Get_Contract_No_Customer_Name " & Contract_ID
'response.write sql
set rs = conn.execute(sql)
if not rs.eof then
Contract_No = rs("Contract_No")
Customer_Name = rs("Customer_Name")
else
response.write "没有该合同"
response.end
end if
rs.close
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK rel="stylesheet" type="text/css" href="../style.css">
<script language="JavaScript" type="text/javascript" src="../js/functions.js"></script>
</head>
<body>
<table border=0 cellpadding=1 cellspacing=1 width="100%">
<tr>
<td>合同编号:<font color="#FF0000"><%= Contract_No %></font> 客户名称:<%= Customer_Name %> → <a href="base_rec_new.asp?Contract_ID=<%= Contract_ID %>" target="foot">添加基础业务记录</a></td>
<td align="right">◆ <a href="list.asp?UseResult=yes">返回上次合同查询结果</a></td>
</tr>
</table>
<hr size=1>
<table border="0" cellpadding=0 cellspacing=0 bgcolor="#EEEEEE">
<tr>
<td><a href="detail.asp?Contract_ID=<%=Contract_ID%>">合同内容</a> </td>
<td width="1" bgcolor="#FFFFFF"></td>
<td> <a href="pay_rec.asp?Contract_ID=<%=Contract_ID%>">收款记录</a> </td>
<td width="1" bgcolor="#FFFFFF"></td>
<td> <a href="other_rec.asp?Contract_ID=<%=Contract_ID%>">外包费记录</a> </td>
<td width="1" bgcolor="#FFFFFF"></td>
<td bgcolor="#000000"> <font color="#FFFFFF">基础业务记录</font> </td>
<td width="1" bgcolor="#FFFFFF"></td>
<td> <a href="chg_rec.asp?Contract_ID=<%=Contract_ID%>">合同变更记录</a> </td>
<td width="50" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td colspan="10" bgcolor="#999999" height="1"></td>
</tr>
</table>
<table bgcolor="#ffffff" border=0 cellpadding=1 cellspacing=1 width="100%">
<tr bgcolor="#EFEFEF">
<td>添加日期</td>
<td>项目名称</td>
<td>金额</td>
<td>经手人</td>
<td>操作</td>
</tr>
<%
sql = "select Contracts_Base_Rec.*,Employee.Employee_Name from Contracts_Base_Rec,Employee "
sql = sql & " where Contracts_Base_Rec.Employee_ID = Employee.Employee_ID "
sql = sql & " and Contracts_Base_Rec.Contract_ID = " & Contract_ID & " order by Contracts_Base_Rec.Rec_ID DESC"
'response.write sql
rs.open sql,conn,1
if rs.eof then
response.write "<tr><td colspan=18>暂时没有记录</td></tr></table>"
response.end
end if
PageSize = request.Cookies("PageSize")
if not IsNot(PageSize,"n") then PageSize = DefaultPageSize
rs.pagesize = PageSize
PageCount = rs.PageCount
PageNo = request("PageNo")
if PageNo = "" or CInt(PageNo) < 1 then PageNo = 1
if CInt(PageNo) > PageCount then PageNo = PageCount
rs.absolutepage = PageNo
i = 0
while not rs.eof and i < rs.pagesize
Rec_ID = rs("Rec_ID")
Rec_Date = rs("Rec_Date")
Account = rs("Account")
Rec_Content = rs("Rec_Content")
Employee_ID = rs("Employee_ID")
Employee_Name = rs("Employee_Name")
if i mod 2 = 0 then
response.write "<tr>"
else
response.write "<tr bgcolor=#EFEFEF>"
end if
%>
<td><%= Rec_Date %></td>
<td><%= Rec_Content %></td>
<td>¥<%= Account %></td>
<td><a href="../employee/detail.asp?Employee_ID=<%=Employee_ID%>" target="foot"><%= Employee_Name %></a></td>
<td>
<a href="base_rec_del.asp?Rec_ID=<%= Rec_ID %>" target="foot" onClick="return ConfirmOption('删除基础业务记录');">删除</a>
</td>
</tr>
<%
i = i + 1
rs.movenext
wend
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
<tr bgcolor="#EFEFEF">
<td colspan="9">
<a href="base_rec.asp?PageNo=1&Contract_ID=<%= Contract_ID %>"><font face="Webdings">5</font>第一页</a>
<a href="base_rec.asp?PageNo=<%= PageNo - 1 %>&Contract_ID=<%= Contract_ID %>"><font face="Webdings">3</font>上一页</a>
<a href="base_rec.asp?PageNo=<%= PageNo + 1 %>&Contract_ID=<%= Contract_ID %>"><font face="Webdings">4</font>下一页</a>
<a href="base_rec.asp?PageNo=<%= PageCount %>&Contract_ID=<%= Contract_ID %>"><font face="Webdings">6</font>最后一页</a>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -