📄 historycal.asp
字号:
<!--#include file="../config.ini" -->
<%
response.cachecontrol="no-cache"
productid=request("productid")
enddate=request("enddate")
qty=request("qty")
model=request("model")
set conn=server.createobject("adodb.connection")
conn.open connstring
set rs1=conn.execute("select sum(qty) as qty from MaterialTransaction where productid="&productid&" and (transactcode='发货单发货' or transactcode='非正常发货' or transactcode='收货单退货' or transactcode='其他发货') and transactdate>'"&enddate&"'")
if not rs1.eof then
if rs1("qty")<>"" then qty=qty+csng(rs1("qty"))
end if
set rs1=conn.execute("select sum(qty) as qty from MaterialTransaction where productid="&productid&" and (transactcode='收货单收货' or transactcode='正常采购收货' or transactcode='非正常收货' or transactcode='发货单退货' or transactcode='其它收货') and transactdate>'"&enddate&"'")
if not rs1.eof then
if rs1("qty")<>"" then qty=qty-csng(rs1("qty"))
end if
if qty<>0 then
%>
sTxt=sTxt+"<tr><td width=300><%=model%></td><td width=50><%=qty%></td></tr>";
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -