C
cly888
Unregistered / Unconfirmed
GUEST, unregistred user!
谢谢各位。希望以后向各位多多学习。
我的BOM建立如下:
Function TFrmmaincoeerp02.AddTreeRecord(TreeView:TTreeView;RecordNodeRecordNode;appln_id,userid:string):TTreeNode;
var
ParentNode: TTreeNode;
begin
Result := GetRecordNode (TreeView,RecordNode);
if Result = nil then
begin 查找父节点
ParentNode := AddTreeRecord (TreeView,GetRecordParent(RecordNode,appln_id,userid));
Result := TreeView.Items.AddChildObject (
ParentNode,
RecordNode.Caption,
Pointer (RecordNode));
end;
end;
我的BOM建立如下:
Function TFrmmaincoeerp02.AddTreeRecord(TreeView:TTreeView;RecordNodeRecordNode;appln_id,userid:string):TTreeNode;
var
ParentNode: TTreeNode;
begin
Result := GetRecordNode (TreeView,RecordNode);
if Result = nil then
begin 查找父节点
ParentNode := AddTreeRecord (TreeView,GetRecordParent(RecordNode,appln_id,userid));
Result := TreeView.Items.AddChildObject (
ParentNode,
RecordNode.Caption,
Pointer (RecordNode));
end;
end;