本文整理汇总了C#中Voodoo.Basement.DataEntities.AddToSysNavTree方法的典型用法代码示例。如果您正苦于以下问题:C# DataEntities.AddToSysNavTree方法的具体用法?C# DataEntities.AddToSysNavTree怎么用?C# DataEntities.AddToSysNavTree使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Voodoo.Basement.DataEntities
的用法示例。
在下文中一共展示了DataEntities.AddToSysNavTree方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btn_tree_new_Click
protected void btn_tree_new_Click(object sender, EventArgs e)
{
int pnID = PanelTree.SelectedNode.Value.ToInt32(0);
int parentID = 0;
try
{
parentID=SubTree.SelectedNode.Value.ToInt32(0);
}
catch
{
}
SysNavTree tree = new SysNavTree();
tree.Group = cbl_tree_group.GetValues();
tree.Icon = ddl_tree_icon.SelectedValue;
tree.InnerHtml = txt_tree_html.Text;
tree.OrderIndex = txt_tree_orderindex.Text.ToInt32();
tree.PanelID = pnID;
tree.ParentID = parentID;
tree.Title = txt_tree_title.Text;
tree.Url = txt_tree_url.Text;
DataEntities ent = new DataEntities();
ent.AddToSysNavTree(tree);
ent.SaveChanges();
ent.Dispose();
Js.AlertAndChangUrl("新增成功", "SysmenuManagement.aspx");
}