大佬们,我在单元格的编辑前事件里面写了如下代码:
var lastNo =SQL("kingdee","select top(1) makeCollectionsNo from dbo.self_makeCollectionsBill order by makeCollectionsNo desc,2,1);
我想实现当点击该单元格或在填写前,有个提示:目前最新单号为xxx
xxx是sql查询出来的结果。
var lastNo =SQL("kingdee","select top(1) makeCollectionsNo from dbo.self_makeCollectionsBill order by makeCollectionsNo desc",1,1);
-------------
var lastNo ="select studentno from stscore order by studentno desc limit 1";
var a=FR.remoteEvaluate('SQL("FRDemo", "'+lastNo+'", 1, 1)');
FR.Msg.alert("提示","当前最大学号:"+a);
var lastNo =FR.remoteEvaluate('SQL("kingdee","select top(1) makeCollectionsNo from dbo.self_makeCollectionsBill order by makeCollectionsNo desc,2,1)');
alert(lastNo);