起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 142|回复: 5

【结贴】请问怎么获得当前人员的路径**

[复制链接]
发表于 2008-7-9 16:44:36 | 显示全部楼层 |阅读模式
请问怎么获得当前人员的路径,如Org:\ROOT\MGRDZC.OGN\GH.DPT\GHFZX.PTM\0002302.psm

谢谢
回复

使用道具 举报

发表于 2008-7-9 16:47:12 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-9 17:20:03 | 显示全部楼层
楼上的连接这些我知道啊,但是我不想用这个拼出一个路径,难道没有直接取路径的函数?
回复 支持 反对

使用道具 举报

发表于 2008-7-9 17:24:02 | 显示全部楼层
TOperator = class(TBizObject)
protected
  procedure ContextProvideParams(ContextNeed: Boolean; ContextIsolationLevel: string); override;
  function GetDisplayName: string; virtual;
public
  constructor create(AContext: TContext);
  function ChangePassword(NewPassword: string): Boolean; virtual;
  procedure Destroy; override;
  function FindPosition(DeptID: string; PositionID: string; PersonID: string; OperatorPositions: array of TOperatorPosition): Boolean;
  property DefaultPosition: TOperatorPosition; readonly;
  property DisplayName: string; readonly;
  property FuncItems: TOperatorFuncItems; readonly;
  property ID: string; readonly;
  property LoginID: string; readonly;
  property PositionCount: Longint; readonly;
  property Positions[Longint]: TOperatorPosition; readonly;
end;


------------------------

NameSpace: Business.Model
--------------------------------------------------------------------------------
TOperatorPosition = class(TBizObject)
protected
  procedure ContextProvideParams(ContextNeed: Boolean; ContextIsolationLevel: string); override;
public
  constructor create(AContext: TContext);
  procedure Destroy; override;
  function IsThis(DeptID: string; PositionID: string; PersonID: string): Boolean;
  property DeptID: string; readonly;
  property Operator: TOperator; readonly;
  property PersonID: string; readonly;
  property PersonMember: Org.TOrgUnit; readonly;
  property Position: Org.TOrgUnit; readonly;
  property PositionID: string; readonly;
  property PositionMember: Org.TOrgUnit; readonly;
end;




NameSpace: Business.Model.Org
--------------------------------------------------------------------------------
TOrgUnit = class(Business.System.TObject)
protected
  function CreateModule: TOrgModule; virtual;
  function GetDisplayName: string; virtual;
  procedure SetDisplayName(Value: string); virtual;
public
  constructor create; overload;
  constructor create(ABizURL: Business.Model.TBizURL); overload;
  constructor create(URL: string; FileName: string); overload;
  procedure CreateModuleFromStream(Stream: Business.System.TStream);
  procedure CreateNullModule;
  procedure Destroy; override;
  procedure EnsureAttributes;
  procedure SetNoModule;
  property Attribute: TOrgAttribute; readonly;
  property BizURL: Business.Model.TReadOnlyBizURL; readonly;
  property DisplayName: string;
  property ID: string; readonly;
  property Module: TOrgModule; readonly;
  property OrgKind: Business.Model.TBizObjectKind; readonly;
  property Parent: TOrgUnit;
end;

-----------------------一路推导下来,楼主应该可以获得url了
回复 支持 反对

使用道具 举报

发表于 2008-7-9 17:54:59 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-10 16:38:07 | 显示全部楼层
好,谢谢。结了
回复 支持 反对

使用道具 举报

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

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-7-19 02:32 , Processed in 0.038811 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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