起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 168|回复: 2

【结帖】工作台刷新的问题**

[复制链接]
发表于 2008-2-28 16:33:37 | 显示全部楼层 |阅读模式
工作台刷新的问题.
http://bbs.justep.com/forum.php?mod=viewthread&tid=14250
参考以上八楼的帖子,但是在我的编程环境中只能刷新提交任务,不能刷新代办任务.
回复

使用道具 举报

发表于 2008-2-28 17:08:41 | 显示全部楼层
用下面的代码即可
const
  cDesktopURL = 'Biz:\COLLABORATION\DesktopFunc.Func';
  cTaskCenterURL = 'Biz:\COLLABORATION\TASKCENTERINFO.INFO';
var
  lBizObject: TBizObject;
  i: Integer;
  lContext: TContext;
begin
  lContext := Context.FindParentContext(BizSys.IL_PERSON);    //人员环境
  //在人员环境找工作台功能
  for i:=0 to lContext.ChildCount-1 do
  try
    if SysUtils.SameText(cDesktopURL, (lContext.Children.Owner as TFunc).BizClassURL.BizURL.URL) then
      lBizObject := lContext.Children.Owner;
  except
  end;
  if lBizObject=nil then exit;
  //在工作台功能上找任务中心信息
  lContext := lBizObject.Context;
  for i:=0 to lContext.ChildCount-1 do
  try
    if SysUtils.SameText(cTaskCenterURL, (lContext.Children.Owner as TInfo).BizClassURL.BizURL.URL) then
      lBizObject := lContext.Children.Owner;
      (lBizObject as TInfo).DataSetByID('TaskIndex').Refresh; //刷新数据集
  except
  end;
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-29 09:54:13 | 显示全部楼层

好的,结贴吧。谢谢yancm

好的,结贴吧。谢谢yancm
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-7-7 17:35 , Processed in 0.043919 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表