📄 hsgl1.asp
字号:
<!--#include file="pwd.asp" -->
<!--#include file="tsgl_conn.inc" -->
<%
cxh=request.form("txh")
cbh=request.form("tbh")
tdm=left(cbh,2) '图书所在表名
ccs=request.form("tcs")
crq=request.form("trq")
sql="select * from "&tdm&" where bh='"&cbh&"'"
Set RS = Server.CreateObject("ADODB.RecordSet")
RS.Open sql, tsgl_Conn
tkcs=rs("kcs")
ckcs=cint(tkcs)+cint(ccs)
rs.close
sql="update "&tdm&" set kcs="&ckcs&" where bh='"&cbh&"'"
tsgl_conn.execute(sql) '修改库存数
sql="select * from jsk where xh='"&cxh&"' and bh='"&cbh&"' and cs>0"
RS.Open sql, tsgl_Conn
tccs=rs("cs")
cccs=cint(tccs)-cint(ccs)
rs.close
set rs=nothing
sql="update jsk set cs="&cccs&",hsrq='"&crq&"' where xh='"&cxh&"' and bh='"&cbh&"' and cs>0"
tsgl_conn.execute(sql)
response.redirect "hsgl0.asp"
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -