Exemplo n.º 1
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(Maticsoft.Model.sys_Group model)
 {
     return(dal.Add(model));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Maticsoft.Model.sys_Group model)
 {
     return(dal.Update(model));
 }
Exemplo n.º 3
0
 public List<Maticsoft.Model.sys_Group> GetHigherLevel_withSelf(ArrayList lst, Boolean isDriect)
 {
     List<Maticsoft.Model.sys_Group> list_all = new List<Maticsoft.Model.sys_Group>();
     foreach (sys_GroupTable x in lst)
     {
         Maticsoft.Model.sys_Group sys_Group_model = new Maticsoft.Model.sys_Group();
         sys_Group_model.GroupID = x.GroupID;
         sys_Group_model.G_CName = x.G_CName;
         sys_Group_model.G_ParentID = x.G_ParentID;
         sys_Group_model.G_ShowOrder = x.G_ShowOrder;
         sys_Group_model.G_Level = x.G_Level;
         sys_Group_model.G_ChildCount = x.G_ChildCount;
         sys_Group_model.G_Delete = x.G_Delete;
         sys_Group_model.G_Type = x.G_Type;
         sys_Group_model.G_Code = x.G_Code;
         list_all.Add(sys_Group_model);
         List<Maticsoft.Model.sys_Group> list = dal.GetHigherLevel(x.G_ParentID, isDriect);
         for (int i = 0; i < list.Count; i++)
         {
             if (!list_all.Contains(list[i]))
             {
                 list_all.Add(list[i]);
             }
         }
     }
     return list_all;
 }