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

📄 returnlist.asp

📁 财务管理系统 报账等基本功能实现 有完整的实现
💻 ASP
字号:
<!--#include file="../Conndb.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>采购退货管理</title>
<link href="../style.css" rel="stylesheet">
<script language="javascript">
function newView(url) {
  var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
  oth = oth+",width=620,height=500";
  var newView=window.open(url,"newView",oth);
  newView.focus();
  return false;
}
function newView1(url) {
  var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
  oth = oth+",width=260,height=100";
  var newView1=window.open(url,"newView1",oth);
  newView1.focus();
  return false;
}
</script>
</head>
<body link="#000080" vlink="#080080">
<form id="form1" name="form1" method="POST">

<p align="center"><font color="#000080"><b><font style="font-size: 12pt">采 购 退 货 管 理</font></b></font></p> 
<table align=center border="1" cellspacing="0" width="100%" bordercolorlight="#000080" bordercolordark="#FFFFFF">
  <tr>
   <td align="center" bgcolor="#C1E0FF"><strong>订单编号</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>采购编号</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>商品总金额</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>其他费用</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>订单总金额</strong></td>
   <td align="center" bgcolor="#C1E0FF"><strong>操作</strong></td>
  </tr>
<%
  Dim rs,Ssum
  Set rs = Server.CreateObject("ADODB.RecordSet")
  '读取数据到记录集rs中
  sql = "SELECT * FROM SaleReturn Where Flag=1 ORDER BY RntId"
  rs.Open sql,conn,1,1
  '在表格中显示问题记录
  If rs.Eof Then
    Response.Write "<tr><td colspan=7 align=center>目前还没有记录。</td></tr></table>"
  Else
    Do While Not rs.EOF
      Ssum = CDbl(rs("ProSum")) + CDbl(rs("OtherCost"))
 %>
  <tr>
    <td align="center"><a href="ReturnView.asp?rid=<%=rs("RntId")%>" onClick="return newView(this.href)"><%=rs("RntId")%></a></td>
	<td align="center"><%=rs("SaleId")%>&nbsp;</td>
	<td align="right"><%=rs("ProSum")%>&nbsp;</td>
	<td align="right"><%=rs("OtherCost")%>&nbsp;</td>
    <td align="right"><%=Ssum%>&nbsp;</td>
    <td align="center">
<%If rs("Status")="创建" Then%>
  <a href="ReturnEdit.asp?action=edit&rid=<%=rs("RntId")%>" onClick="return newView(this.href)">修改</a>&nbsp;
  <a href="ReturnDelt.asp?rid=<%=rs("RntId")%>" onClick="if(confirm('确定要删除记录吗?')){return newView1(this.href);}return false;">删除</a>&nbsp;
  <a href="ReturnAudit.asp?rid=<%=rs("RntId")%>" onClick="if(confirm('确定要审核记录吗?')){return newView1(this.href);}return false;">审核</a>
<%End If%>&nbsp;
    </td>
  </tr>
  <%
      rs.MoveNext()
    Loop
  %>
</table>
<%End If%>
		<p align="center">
		<input type="button" value="新建采购退货单" onclick="newView('ReturnEdit.asp?action=add')" name=add></p>
</form>
</body>
</html>

⌨️ 快捷键说明

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