起步软件技术论坛-X3

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

【结贴】做主界面**

[复制链接]
发表于 2008-10-26 18:15:17 | 显示全部楼层 |阅读模式
请问:在http://bbs.justep.com/forum.php? ... tid=24045下的第8)中的,也就是下面这段代码中的TUserBizTreeView是在什么地方定义的啊??


procedure TMyMainForm.ShowFuncTree;
var
  i: Integer;
  lNode: TTreeNode;
  lFuncURLs: TStringList;
  tv: TUserBizTreeView;
begin
  tvFuncTree.Items.Clear;
  for i:=0 to TSystemCore.Operator.PositionCount-1 do
  begin
    lNode := tvFuncTree.Items.AddChildObject(nil, GetPositionStr(TSystemCore.Operator.Positions), TSystemCore.Operator.Positions);
    if TSystemCore.Operator.DefaultPosition=TSystemCore.Operator.Positions then
      lNode.Text := '缺省岗位:'+lNode.Text;
    if TOrgUtils.IsDeputized(TSystemCore.Operator.Positions) then
      lNode.Text := '代理岗位:'+lNode.Text;

    lFuncURLs := TStringList.Create;
    // 得到岗位的功能权限列表
    TContextUtils.GetAllocatedFuncs(TSystemCore.Operator.Positions.Context, lFuncURLs);
    tv := TUserBizTreeView.Create(nil);
    try
      tv.ShowOptions := [TBizObjectKind.boBizServer, TBizObjectKind.boSpace,
        TBizObjectKind.boFolder, TBizObjectKind.boBizFuncSpace, TBizObjectKind.boFunc];
      tv.Parent := Self;
      tv.ReloadTree;
      tv.IncludeFiles.Clear;
      // 把功能权限列表的URL转换成FileName的形式
      TSystemUtils.URLs2Files(lFuncURLs, tv.IncludeFiles);
      tv.UseIncludeFiles := True;
      ExpandBizTree(tv);
      CopyTreeToNode(TTreeView(tv), lNode);
      tvFuncTree.Images := tv.Images;
    finally
      tv.Free;
    end;
    lFuncURLs.Free;
  end;
end;
回复

使用道具 举报

发表于 2008-10-27 08:50:44 | 显示全部楼层
引用 资源集 : ComponentsLib
在业务模型\系统空间\用户界面基础\界面库\组件库
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-28 10:24:08 | 显示全部楼层
OK,结贴
回复 支持 反对

使用道具 举报

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

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-7-24 04:10 , Processed in 0.042807 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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