Beispiel #1
0
 /// <summary>
 /// 绑定三级权限
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void RepeaterMeau_ItemDataBound(object sender, RepeaterItemEventArgs e)
 {
     if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
     {
         //找到分类Repeater关联的数据项
         Hi.Model.SYS_SysFun rowv = (Hi.Model.SYS_SysFun)e.Item.DataItem;
         //提取分类ID
         string NodeId = rowv.FunCode;
         if (NodeId.ToString() != "")
         {
             //Repeater rp = (Repeater)e.Item.FindControl("RepeaterItem");
             //Hi.BLL.SYS_SysFun SysFunBLL = new Hi.BLL.SYS_SysFun();
             //List<Hi.Model.SYS_SysFun> list = SysFunBLL.GetSysFunByParentNodeId(NodeId) as List<Hi.Model.SYS_SysFun>;
             //if (list.Count > 0)
             //{
             //    rp.DataSource = list;
             //    rp.DataBind();
             //}
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Hi.Model.SYS_SysFun model)
 {
     return(dal.Update(model));
 }
Beispiel #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(Hi.Model.SYS_SysFun model)
 {
     return(dal.Add(model));
 }