static void CreateInventMenu(AGC_InventParameters _inventParameters)
{
#AOT
TreeNode treeMenuItem;
TreeNode treeDisplayMenu;
TreeNode treeCreatedMenu;
TreeNode treeMenus;
TreeNode treeMenu;
str myMenuItem;
;
// myMenuItem = _inventParameters.Kodu + "Form_Agc";
// treeMenuItem = TreeNode::findNode(#MenuItemsDisplayPath);
//treeNode = TreeNode::findNode('\\Menus\\Invent\\setup');
treeDisplayMenu = TreeNode::findNode(#MenuItemsDisplayPath + "\\" + "InventParameters");
treeCreatedMenu = TreeNode::findNode(#MenuItemsDisplayPath+"\\"+_inventParameters.Kodu + "Form_Agc");
if (treeDisplayMenu)
{
//treeMenuItem.AOTadd(_inventParameters.Kodu+"Form_Agc");
treedisplayMenu.AOTinsert(treeCreatedMenu);
//treeDisplayMenu.AOTaddSubNode(str2int(myMenuItem));
//treeDisplayMenu = treeMenuItem.AOTfindChild(_inventParameters.Kodu+"Form_Agc");
treeDisplayMenu.AOTsave();
info ("Menuitem" + myMenuItem+ "Form_AGC" + "sub menu eklendi");
}
}
Hiç yorum yok:
Yorum Gönder