📄 receivequery.asp
字号:
<td>
<table cellspacing=0 cellpadding=0 width="100%" border=0>
<tr>
<td height="25" width=50% class=title><strong>销售查询 </strong>
<select name=CollectionStat size=1 LANGUAGE=javascript onchange="submit1()">
<option value="" <%if request("CollectionStat")="" then Response.Write " selected"%>>--收款状态--</option>
<option value="Collected" <%if request("CollectionStat")="Collected" then Response.Write " selected"%>>已收款</option>
<option value="Collecting" <%if request("CollectionStat")="Collecting" then Response.Write " selected"%>>未收款</option>
</select>
<select name=InvoiceStat size=1 LANGUAGE=javascript onchange="submit1()">
<option value="" <%if request("InvoiceStat")="" then Response.Write " selected"%>>--开票状态--</option>
<option value="Invoiced" <%if request("InvoiceStat")="Invoiced" then Response.Write " selected"%>>已开票</option>
<option value="Invoicing" <%if request("InvoiceStat")="Invoicing" then Response.Write " selected"%>>未开票</option>
<option value="NoInvoice" <%if request("InvoiceStat")="NoInvoice" then Response.Write " selected"%>>不开票</option>
</select>
<select name=Orderby size=1 LANGUAGE=javascript onchange="submit1()">
<option value="" <%if request("Orderby")="" then Response.Write " selected"%>>--排序方法--</option>
<option value="collectionverifydate" <%if request("Orderby")="collectionverifydate" then Response.Write " selected"%>>收款日期</option>
<option value="Model" <%if request("Orderby")="Model" then Response.Write " selected"%>>型号</option>
<option value="OrderAccount" <%if request("Orderby")="OrderAccount" then Response.Write " selected"%>>客户</option>
<option value="ownername" <%if request("Orderby")="ownername" then Response.Write " selected"%>>销售员</option>
<option value="DeliveryNo" <%if request("Orderby")="DeliveryNo" then Response.Write " selected"%>>发货单号</option>
<option value="OrderNum" <%if request("Orderby")="OrderNum" then Response.Write " selected"%>>合同号</option>
<option value="TransactCode" <%if request("Orderby")="TransactCode" then Response.Write " selected"%>>发货状态</option>
<option value="invoice" <%if request("Orderby")="invoice" then Response.Write " selected"%>>开票状态</option>
<option value="CollectionverifyDate" <%if request("Orderby")="CollectionverifyDate" then Response.Write " selected"%>>收款日期</option>
<option value="InvoiceverifyDate" <%if request("Orderby")="InvoiceverifyDate" then Response.Write " selected"%>>开票日期</option>
</select>
</td>
<td width=50% align="right"><select name=StatMethod size=1 LANGUAGE=javascript onchange="submit3()">
<option value="aboutrecieve" <%if request("StatMethod")="aboutrecieve" then Response.Write " selected"%>>按收款日期统计销售</option>
<option value="aboutinvoice" <%if request("StatMethod")="aboutinvoice" then Response.Write " selected"%>>按开票日期统计销售</option>
<option value="aboutdelivery" <%if request("StatMethod")="aboutdelivery" then Response.Write " selected"%>>按发货日期统计销售</option>
</select>
<!--
<select name=StatMethod size=1 LANGUAGE=javascript onchange="submit3()">
<option value="aboutdelivery" <%if request("StatMethod")="aboutdelivery" then Response.Write " selected"%>>按发货统计销售</option>
<option value="aboutrecieve" <%if request("StatMethod")="aboutrecieve" then Response.Write " selected"%>>按收款统计销售</option>
<option value="aboutinvoice" <%if request("StatMethod")="aboutinvoice" then Response.Write " selected"%>>按开票统计销售</option>
</select>
-->
</td>
</tr>
<tr >
<td height="16" colspan="2" background="../images/title.gif"> </td>
</tr>
</table>
</td>
</tr>
<tr class="linecolor"><td height="2"></td></tr>
<tr height="5px"><td></td></tr>
</tbody>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DECFAD">
<tr bgcolor="#dedfde">
<td width="4%" height=15 align=center>
<table>
<tr id="a" style="display:block">
<td align=center><a href="javascript:showit(<%=alls%>)">展开</a></td></tr>
<tr id="b" style="display:none">
<td align=center><a href="javascript:showit(<%=alls%>)">关闭</a></td></tr>
</table>
</td>
<td width="10%" height=15 align=center><font color="#000000">收款日期</font></td>
<td width="30%" height=15 align=center><font color="#000000">型号</font></td>
<td width="5%" height=15 align=center><font color="#000000">数量</font></td>
<td width="8%" height=15 align=center><font color="#000000">单价</font></td>
<td width="8%" height=15 align=center><font color="#000000">金额</font></td>
<td height="15" align=center><font color="#000000">客户</font></td>
<td width="6%" height="15" align=center><font color="#000000">销售员</font></td>
</tr>
<tr bgcolor="#FFFFFF" border=0 id='c' style=display:none>
<td colspan=8><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="efefef">
<td width="14%" height=15 align=center><font color="#000000">合同号</font></td>
<td width="14%" height=15 align=center><font color="#000000">发货单号</font></td>
<td width="6%" height=15 align=center><font color="#000000">发货状态</font></td>
<td width="6%" height=15 align=center><font color="#000000">开票否</font></td>
<td width="8%" height=15 align=center><font color="#000000">收款金额</font></td>
<td width="10%" height=15 align=center><font color="#000000">收款日期</font></td>
<td width="8%" height=15 align=center><font color="#000000">开票金额</font></td>
<td width="10%" height=15 align=center><font color="#000000">开票日期</font></td>
<td width="8%" height=15 align=center><font color="#000000">平均成本</font></td>
<td width="8%" height=15 align=center><font color="#000000">调整成本</font></td>
<td width="8%" height=15 align=center><font color="#000000">毛利</font></td>
</tr>
</TABLE></TD>
</TR>
<%
dim i
i=1
TotalCost=0
TotalAmount=0
TotalProfit=0
TotalQty=0
do while not rssalequery.EOF
Qty=Cint(rssalequery("Qty"))
Price=Ccur(rssalequery("Price"))
AdjustCost=Ccur(rssalequery("AdjustCost"))
SubAmount=Qty*Price
SubCost=Qty*AdjustCost
SubProfit=SubAmount-SubCost
TotalQty=TotalQty+Qty
if Qty>0 then TotalDeliveryQty=TotalDeliveryQty+Qty
if Qty<0 then TotalNDeliveryQty=TotalNDeliveryQty-Qty
TotalAmount=TotalAmount+SubAmount
TotalCost=TotalCost+SubCost
TotalProfit=TotalProfit+SubProfit
%>
<tr bgcolor="FFFFFF">
<td width="4%" height=15 align=center><div id='tr2<%=i%>' style=display:none><font color="000000">■</font></div></td>
<td width="10%" height=15 align=center bgcolor="FFFFFF"><%=rssalequery("Transactdate")%></td>
<td width="30%" height=15 align=center bgcolor="FFFFFF"><%=rssalequery("Model")%></td>
<td width="5%" height=15 align=center bgcolor="FFFFFF"><%=rssalequery("Qty")%></td>
<td width="8%" height=15 align=center bgcolor="FFFFFF"><%=formatnumber(rssalequery("Price"),2)%></td>
<td width="8%" height=15 align=center bgcolor="FFFFFF"><%=formatnumber(SubAmount,2)%></td>
<td height="20" align=center bgcolor="FFFFFF"><%=rssalequery("orderaccount")%></td>
<td width="6%" height="15" align=center bgcolor="FFFFFF"><%=rssalequery("ownername")%></td>
</tr>
<tr bgcolor="#FFFFFF" border=0 id='tr1<%=i%>' style=display:none>
<td colspan=8><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="EFEFEF">
<td width="14%" height=15 align=center><font color="#000000"><%=rssalequery("OrderNum")%></font></td>
<td width="14%" height=15 align=center><font color="#000000"><%=rssalequery("DeliveryNo")%></font></td>
<td width="6%" height=15 align=center><font color="#000000">
<%if rssalequery("TransactCode")="发货单发货" then response.write "发货" else response.write "退货" end if%>
</font></td>
<td width="6%" height=15 align=center><font color="#000000">
<%if rssalequery("invoice") then response.write "开票" else response.write "不开票" end if%>
</font></td>
<td width="8%" height=15 align=center><font color="#000000"><%=formatnumber(rssalequery("receivedamount"),2)%></font></td>
<td width="10%" height=15 align=center><font color="#000000"><%=rssalequery("CollectionverifyDate")%></font></td>
<td width="8%" height=15 align=center><font color="#000000"><%=formatnumber(rssalequery("invoicedamount"),2)%></font></td>
<td width="10%" height=15 align=center><font color="#000000"><%=rssalequery("InvoiceverifyDate")%></font></td>
<td width="8%" height=15 align=center><font color="#000000"><%=formatnumber(rssalequery("Cost"),2)%></font></td>
<td width="8%" height=15 align=center><font color="#000000"><%=formatnumber(rssalequery("AdjustCost"),2)%></font></td>
<td width="8%" height=15 align=center><font color="#000000"><%=formatnumber(SubProfit,2)%></font></td>
</tr><tr><td height="3" colspan=11></td></tr>
</table></td>
</tr>
<%
rssalequery.MoveNext
i=i+1
loop
%>
</table>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#CCCCCC">
<tr height="30">
<td bgcolor="#FFFFFF"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>发货数量:<%=TotalDeliveryQty%> 金额:<%=formatnumber(totalamount,2)%> 退货数量:<%=TotalNDeliveryQty%> 金额:<%=formatnumber(totalamount,2)%> 成本:<%=formatnumber(TotalCost,2)%> 毛利:<%=formatnumber(TotalProfit,2)%></strong></font></td>
</tr>
</table>
<%
rssalequery.close
connsalequery.close
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -