📄 quotedetail.asp
字号:
<!--#include file="../config.ini" -->
<!--#include file="../commfunction.inc" -->
<%Dim objcheck
Set objcheck=Server.CreateObject("SmartSales.CheckFunction")
objcheck.CheckUserFunction "quote","read"
set objcheck=nothing
dim conn
dim rs
set conn=server.CreateObject("adodb.connection")
set rs=server.CreateObject("adodb.recordset")
conn.Open connstring
rs.Open "select * from v_quote where quoteid="&Request.QueryString("quoteid"),conn,1,1
if rs.EOF then
Response.Write "记录不存在"
Response.End
end if
%>
<html>
<head>
<LINK href="../global.css" rel=STYLESHEET type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=rs("quoteno")%></title>
</head>
<script language="JavaScript">
function window_onload()
{
window.moveTo(-2,-2);
window.resizeTo(screen.availWidth, screen.availHeight);
}
</script>
<body bgcolor="#ffffff" onload="window_onload()">
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35%" height="25"><strong><font size="2"><b><font class="title">报价:<%=rs("quoteno")%></font></b></font></strong></td>
<td width="65%">
<%if rs("status")<>"转换" then%>
<a href="javascript:opensubwin('resizable=yes, scrollbars=yes, left= 40, top=40, menubar=no, location=no, toolbar=no ,width=750, height=500','newquote.asp?id=<%=request("quoteid")%>');"><img src="../images/button_edit.gif" border=0></a>
<%end if%>
<%if rs("status")="通过" or rs("status")="同意" then%>
<a href="quoteprint.asp?quoteid=<%=request("quoteid")%>"><img src="../images/button_print.gif" border=0></a>
<a href="quoteprint2.asp?quoteid=<%=request("quoteid")%>"><img src="../images/button_printprice.gif" border=0></a>
<%end if%>
</td>
</tr>
<tr >
<td height="16" colspan="2" background="../images/title.gif"></td>
</tr>
<tr>
<td height=4></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="DECFAD">
<tr>
<td width="10%" height=20 align=center bgcolor="DEDFDE">报价单号</td>
<td width="25%" align=center bgcolor="efefef"><%=rs("quoteno")%></td>
<td width="10%" align=center bgcolor="DEDFDE">状态</td>
<td width="20%" align=center bgcolor="efefef"><%=rs("status")%></td>
<td width="10%" align=center bgcolor="DEDFDE">所有者</td>
<td width="25%" align=center bgcolor="efefef"><%=rs("owner")%></td>
</tr>
<tr>
<td align=center height=18 bgcolor="DEDFDE">客户</td>
<td align=center bgcolor="efefef"><%=rs("account")%></td>
<td align=center bgcolor="DEDFDE">联系人</td>
<td align=center bgcolor="efefef"><%=rs("contact")%></td>
<td align=center bgcolor="DEDFDE">电话</td>
<td align=center bgcolor="efefef"><%=rs("workphone")%></td>
</tr>
<tr>
<td align=center height=18 bgcolor="DEDFDE">付款方式</td>
<td align=center bgcolor="efefef"><%=rs("term")%></td>
<td align=center bgcolor="DEDFDE">运货方式</td>
<td align=center bgcolor="efefef"><%=rs("shipvia")%></td>
<td align=center bgcolor="DEDFDE">发货地址</td>
<td align=center bgcolor="efefef"><%=rs("shipaddress")%></td>
</tr>
<tr>
<td align=center height=18 bgcolor="DEDFDE">报价日期</td>
<td align=center bgcolor="efefef"><%=rs("quotedate")%></td>
<td align=center bgcolor="DEDFDE">有效期至</td>
<td align=center bgcolor="efefef"><%=rs("expiredate")%></td>
<td align=center bgcolor="DEDFDE">销售机会</td>
<td align=center bgcolor="efefef"><%=rs("subject")%></td>
</tr>
<tr>
<td align=center height=18 bgcolor="DEDFDE">货币代码</td>
<td align=center bgcolor="efefef"><%=rs("currencycode")%></td>
<td align=center bgcolor="DEDFDE">总金额</td>
<td align=center bgcolor="efefef"><%=formatnumber(rs("totalamount"),2)%></td>
<td align=center bgcolor="DEDFDE">最后修改者</td>
<td align=center bgcolor="efefef"><%=rs("LastModUserName")%></td>
</tr>
<tr>
<td align=center height=18 bgcolor="DEDFDE">创建者</td>
<td align=center bgcolor="efefef"><%=rs("CreateName")%></td>
<td align=center bgcolor="DEDFDE">创建时间</td>
<td align=center bgcolor="efefef"><%=rs("CreateDate")%></td>
<td align=center bgcolor="DEDFDE">最后修改时间</td>
<td align=center bgcolor="efefef"><%=rs("LastModDate")%></td>
</tr>
<tr>
<td align=center height=18 bgcolor="DEDFDE">描述</td>
<td colspan="5" align=center bgcolor="efefef"> <div align="left"><%=rs("description")%></div></td>
</tr>
</table>
<%
dim connquoteline
dim rsquoteline
set connquoteline=server.CreateObject("adodb.connection")
set rsquoteline=server.CreateObject("adodb.recordset")
connquoteline.Open connstring
rsquoteline.Open "select shipdate,productcode,model,qty,discount,discountprice,amount from v_quoteline where (quoteid='"&request("quoteid")&"') order by lineid",connquoteline,1,1
%>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong><font size="2"><b><font class="title">报价明细</font></b></font></strong></td>
</tr>
<tr>
<td height=3 colspan="2" bgcolor="#4A699C"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="DECFAD">
<tr bgcolor="efefef">
<td width="10%" height="15" align=center>序号</td>
<td width="15%" height=15 align=center>货号</td>
<td height="15" align=center>型号</td>
<td width="10%" height="15" align=center>数量</td>
<td width="10%" height="15" align=center>折扣</td>
<td width="10%" height="15" align=center>折扣价</td>
<td width="10%" align=center>金额</td>
<td width="10%" height="15" align=center>货期</td>
</tr>
<%i=1
do while not rsquoteline.EOF
set productcode=rsquoteline("productcode")
set model=rsquoteline("model")
set qty=rsquoteline("qty")
set discount=rsquoteline("discount")
set discountprice=rsquoteline("discountprice")
set amount=rsquoteline("amount")
set shipdate=rsquoteline("shipdate")
%>
<tr bgcolor="#FFFFFF">
<td align=center><%=i%></td>
<td align=center height=18><%=productcode%></a></td>
<td align=center><%=model%></td>
<td align=center><%=qty%></td>
<td align=center><%=discount%>%</td>
<td align=center><%=formatnumber(discountprice,2)%></td>
<td align=center><%=formatnumber(amount,2)%></td>
<td align=center><%=shipdate%></td>
</tr>
<%
i=i+1
rsquoteline.MoveNext
loop
rsquoteline.Close
set rsquoteline=nothing
connquoteline.Close
set connquoteline=nothing
%>
</table>
<%
rs.Close
set rs=nothing
conn.Close
set conn=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -