多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 老系统作废本单 ~~~ if request("cmd")="fei" then set fei=server.CreateObject("adodb.recordset") set fei=conn.execute("update ks_order set status=status + ',4' where orderid='"&request("orderid")&"'") response.Redirect "hzb.asp?khmc="&request("khmc")&"" 'set stat=server.CreateObject("adodb.recordset") 'set stat=conn.execute("update ks_order set status=status + ',3' where orderid='"&request("myorderid")&"' ") end if ~~~ # 老系统订单状态定义 ~~~ if request("status")="0" then st="接件单" if request("status")="1" then st="生产流程单" if request("status")="2" then st="送货签收单" if request("status")="4" then st="作废单" ~~~ # 老系统mystatus定义 ~~~ <%if j("mystatus")=3 or ddjex<=xxje then response.Write("<font color=008800>全单收款</font>") 'response.Write("状态是"&j("mystatus")) 'response.Write("ddjex"&ddjex) 'response.Write("xxje"&xxje) else %> <%if j("mystatus")=0 then response.Write("<font color=0000ff>未走上流程</font>")%> <%if j("mystatus")=1 then response.Write("<font color=CC00CC>正在生产中</font>")%> <%'if j("status")=0 then response.Write("<a href=Print1.asp?orderid="&j("orderid")&" target=_blank><font color=ff0000>重打接件单</font></a>")%> <%if j("mystatus")=2 then response.Write("<font color=ffffff>已送货签单</font>")%> <%end if%> ~~~ # 老系统后台判断作废单依据 ``` <%if instr(rs("status"),"4")=0 then '如果不包含4则说明是正常单' if session("zuofei")=1 then response.Write("<a href=""?cmd=fei&orderid="&rs("orderid")&"&khmc="&request("khmc")&""" onClick=""return window.confirm('您确定要作废本单吗?');"" ><font color=ff0000>作废本单</font></a>") end if else %> <% response.Write("<font color=0000ff>已作废</font>") end if %> </td> <%end if%> ```