var sBh = _g().getWidgetByName("sBh").getValue(); var sql = "SELECT COUNT(1) FROM dbo.sdBdcqzs WHERE sBh='" + sBh + "'"; var res = FR.remoteEvaluate('=SQL("HDAM","' + sql + '",1,1)'); FR.Msg.alert("提示","当前归档编号已存在,请检查!",document.onkeydown=function(e){ if(res == 1){ FR.Msg._hide(); } else { return; } }); |