-
Notifications
You must be signed in to change notification settings - Fork 1
/
WispTreeListNode.pas
54 lines (46 loc) · 1.46 KB
/
WispTreeListNode.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
unit WispTreeListNode;
interface
uses
cxTL;
type
TWispTreeListNodeType = Char;
type
TWispTreeListNode = Class(TcxTreeListNode)
private
FLevel: Integer;
FTypeCode: TWispTreeListNodeType;
FParentCode: Char;
FChildCode: Char;
FEntityId: Integer;
FExtraCode: Integer;
public
Property Level: Integer Read FLevel;
Property TypeCode: TWispTreeListNodeType Read FTypeCode;
Property ParentCode: Char Read FParentCode;
Property ChildCode: Char Read FChildCode;
Property EntityId: Integer Read FEntityId;
Property ExtraCode: Integer Read FExtraCode;
// Level: Integer;
// TypeCode: AnsiString;
// ParentCode: AnsiString;
// ChildCode: AnsiString;
Procedure SetInfo(ParamLevel: Integer; ParamType: TWispTreeListNodeType;
ParamParentCode: Char; ParamChildCode: Char = #0;
ParamEntityId: Integer = 0; ParamExtraCode: Integer = 0);
End;
Const
wntGlobalPrivilege: TWispTreeListNodeType = 'G';
wntEntityPrivilege: TWispTreeListNodeType = 'E';
implementation
Procedure TWispTreeListNode.SetInfo(ParamLevel: Integer; ParamType: TWispTreeListNodeType;
ParamParentCode: Char; ParamChildCode: Char = #0; ParamEntityId: Integer = 0;
ParamExtraCode: Integer = 0);
begin
FLevel := ParamLevel;
FTypeCode := ParamType;
FParentCode := ParamParentCode;
FChildCode := ParamChildCode;
FEntityId := ParamEntityId;
FExtraCode := ParamExtraCode;
end;
end.