-- 作者:baiyangfy
-- 发布时间:2022/4/22 16:22:00
--
老师,这几天百度查了下已经搞定了,就是没搞定怎么在确认列点击才会有变化,代码发上来供大家参考
$(document).ready(function(){ $("table tr").click(function(){ var td = $(this).find("td"); if (td[5].innerHTML=="×"){ var result = sendAjaxText($(this).attr("data-key"),"rkok.htm","",false) if (result>0){ td.eq(5).html("√"); } }else{ var result = sendAjaxText($(this).attr("data-key"),"rkok.htm","",false) if (result>0){ td.eq(5).html("×"); } } }); });
rkok页面代码
Dim e As RequestEventArgs = args(0) Dim wb As New WeUI Dim cmd As new SQLCommand cmd.C cmd.CommandText="U1PDATE {入库明细} set 确认=~确认 where _Identify=\'" & e.PlainText & "\'" e.WriteString(cmd.E1xecuteNonQuery)
[此贴子已经被作者于2022/4/22 16:23:44编辑过]
|