How to keep on line alway. (AlwayAlive)原创
金蝶云社区-yaojunsong
yaojunsong
4人赞赏了该文章 514次浏览 未经作者许可,禁止转载编辑于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 


图标赞 4
4人点赞
还没有人点赞,快来当第一个点赞的人吧!
图标打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!