触发: .AddSwitch("是否离轮", "是否离轮").Attribute = "onc lick='submit_sfll()'"
js:
function submit_sfll(){
if(document.getElementById("是否离轮").checked == true){
var result= submitAjaxFileds('"submit.htm?name="+e.getvalues("name")','','是否离轮',false);
if(result=='卫检未审核'){
document.getElementById("是否离轮").value= false
alert("未勾选")
}
}
}
接收判断:
Dim e As RequestEventArgs = args(0)
Dim wb As New weui
MessageBox.Show(e.GetValues("name"))
If e.GetValues.ContainsKey("name") Then
dim dr As DataRow = DataTables("检疫资料").SQLFind("_Identify = '" & e.getvalues("name") & "'")
If dr Is Nothing Then '多用户情况下,必须考虑其他用户删除订单的可能.
If e.postValues.ContainsKey("是否离轮") Then
If dr("卫检审核") = False Then
e.WriteString("卫检未审核")
End If
End If
End If
End If
想实现勾选是否离轮后,通过js判断卫检登轮是否为true,如果不是,则取消勾选。现在问题是勾选后无反应。
[此贴子已经被作者于2022/5/16 13:43:03编辑过]