您的位置:首页 > 移动开发 > Objective-C

获取项目列表及项目子节点中的Object的相关信息

2010-09-08 15:55 429 查看
类:ProjectNode 可以用这个类获取Project的相关信息,比如创建人,创建时间等等...

表:UtilElements 存放AOT中的表,窗体,类的创建人,创建时间,修改人,修改时间等相关信息...

static void testAOT(Args _args)
{
ProjectNode            node;
TreeNodeIterator        i;
TreeNode            subNode;

void findNode(TreeNode _nodeGroup)
{
TreeNode            subNode2;
TreeNodeIterator    i2;
UtilElements        utilElements;
;

i2 = _nodeGroup.AOTiterator();

subNode2 = i2.next();

while (subNode2)
{
if (SysDictClass::isEqualOrSuperclass(subNode2.handle(),Classnum(ProjectGroupNode)))
{
findNode(subNode2);
}
else
{
print subNode2.AOTname();
print subNode2.AOTtypeStr();
if (subNode2.AOTtypeStr() == 'DBT')
{
select firstonly utilElements
where utilElements.recordType == UtilElementType::Table &&
utilElements.utilLevel  == UtilEntryLevel::var    &&
utilElements.name       == subNode2.AOTname()     ;

print utilElements.createdBy;
print utilElements.createdDate;
}
}
subNode2 = i2.next();
}

}
;

node = InfoLog.projectRootNode().AOTfindChild('Shared').AOTfirstChild();

node = node.loadForInspection();
print node.createdBy();
i = node.AOTiterator();

subNode = i.next();

while (subNode)
{
findNode(subNode);
subNode = i.next();
}
pause;
}
[/code]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐