How to keep on line alway. (AlwayAlive)原创
4人赞赏了该文章
420次浏览
编辑于2021年07月14日 16:21:46
Coding in main console forms by plugins.
please try to following the example.
#py_alway_alive
from Kingdee.BOS.Core import *
from Kingdee.BOS.JSON import *
def AfterBindData(e):
custarg = JSONObject()
ViewUtils.FireClientCustomEvents(this.View, 'FAlwayAlive', 'XXX.XXX.XXX.AlwayAlive', 60000, custarg)
def CustomEvents(e):
if(e.EventName=='XXX.XXX.XXX.AlwayAlive'):
custarg = JSONObject()
ViewUtils.FireClientCustomEvents(this.View, 'FAlwayAlive', 'XXX.XXX.XXX.AlwayAlive', 60000, custarg)
#py_alway_alive from Kingdee.BOS.Core import * from Kingdee.BOS.JSON import * def AfterBindData(e): custarg = JSONObject() ViewUtils.FireClientCustomEvents(this.View, 'FAlwayAlive', 'XXX.XXX.XXX.AlwayAlive', 60000, custarg) def CustomEvents(e): if(e.EventName=='XXX.XXX.XXX.AlwayAlive'): custarg = JSONObject() ViewUtils.FireClientCustomEvents(this.View, 'FAlwayAlive', 'XXX.XXX.XXX.AlwayAlive', 60000, custarg)
* When the code be copied to ide and throw exception, pls to ref. the following article to fixed .
https://vip.kingdee.com/article/158166130920311808
推荐阅读