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

📄 quotelist.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=550,height=280";
  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=200,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 width="8%" align="center" bgcolor="#C1E0FF"><strong>一级分类</strong></td>
   <td width="16%" align="center" bgcolor="#C1E0FF"><strong>二级分类</strong></td>
   <td width="12%" align="center" bgcolor="#C1E0FF"><strong>商品名称</strong></td>
   <td width="14%" align="center" bgcolor="#C1E0FF"><strong>客户名称</strong></td>
   <td width="10%" align="center" bgcolor="#C1E0FF"><strong>客户报价</strong></td>
   <td width="12%" align="center" bgcolor="#C1E0FF"><strong>报价日期</strong></td>
   <td width="12%" align="center" bgcolor="#C1E0FF"><strong>备注</strong></td>
   <td width="16%" align="center" bgcolor="#C1E0FF"><strong>操作</strong></td>
  </tr>
<%
  Dim rs
  Set rs = Server.CreateObject("ADODB.RecordSet")
  '读取数据到记录集rs中,数据来源:报价表、商品信息表、客户信息表、商品类型表
  sql = "SELECT q.*,t1.TypeName AS tname1,t2.TypeName AS tname2,p.ProName,c.CustName" _
     + " FROM PurchaseQuote q,Product p,Customer c,ProType t1,ProType t2 " _
     + " WHERE q.ProId=p.ProId AND q.CustId=c.CustId AND p.TypeId=t2.TypeId " _
     + " AND t2.UpperId=t1.TypeId ORDER BY q.ProId,q.CustId"
  rs.Open sql,conn,1,1
  '在表格中显示问题记录
  If rs.Eof Then
    Response.Write "<tr><td colspan=8 align=center>目前还没有记录。</td></tr></table>"
  Else
    Do While Not rs.EOF
 %>
  <tr>
    <td align="center"><%=rs("tname1")%></td>
	<td align="center"><%=rs("tname2")%>&nbsp;</td>
	<td align="center"><%=rs("ProName")%>&nbsp;</td>
	<td><%=rs("CustName")%>&nbsp;</td>
	<td align="right"><%=rs("QuotePrice")%>&nbsp;</td>
    <td align="center"><%=rs("CreateDate")%>&nbsp;</td>
    <td align="left"><%=rs("Memo")%>&nbsp;</td>
    <td align="center">
    <a href="QuoteEdit.asp?action=edit&qid=<%=rs("QuoId")%>" onClick="return newView(this.href)">修改</a>&nbsp;
    <a href="QuoteDelt.asp?qid=<%=rs("QuoId")%>" onClick="return newView(this.href)">删除</a>&nbsp;
    </td>
  </tr>
  <%
      rs.MoveNext()
    Loop
  %>
</table>
<%End If%>
		
		<p align="center">
		<input type="button" value="新建商品报价" onclick="newView('QuoteEdit.asp?action=add')" name=add></p>
</form>
</body>
</html>

⌨️ 快捷键说明

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