python插件,用户超时不退出的调整方案

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

python插件,用户超时不退出的调整方案

在社区看到一个好贴,可以通过python插件来保持用户登陆状态,但是阅读量不大,转载一下。

测试过可以正常使用。

image.webp


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)


原文链接:https://wenku.my7c.com/article/180262470525447936?productLineId=1


python插件,用户超时不退出的调整方案

在社区看到一个好贴,可以通过python插件来保持用户登陆状态,但是阅读量不大,转载一下。测试过可以正常使用。from Kingdee.BOS.Core impo...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息