Ejemplo n.º 1
0
        public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int DefinitionID)
        {
            IList    objListInfoCollection = new ListInfoCollection();
            ListInfo objListInfo           = new ListInfo();

            return((ListInfoCollection)CBO.FillCollection(DataProvider.Instance().GetList(ListName, ParentKey, DefinitionID), typeof(ListInfo), ref objListInfoCollection));
        }
Ejemplo n.º 2
0
        public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int PortalID)
        {
            IList lists = new ListInfoCollection();

            foreach (KeyValuePair <string, ListInfo> listPair in GetListInfoDictionary(PortalID))
            {
                ListInfo list = listPair.Value;
                if ((list.Name == ListName || string.IsNullOrEmpty(ListName)) && (list.ParentKey == ParentKey || string.IsNullOrEmpty(ParentKey)) &&
                    (list.PortalID == PortalID || PortalID == Null.NullInteger))
                {
                    lists.Add(list);
                }
            }
            return((ListInfoCollection)lists);
        }
Ejemplo n.º 3
0
        public ListInfoCollection GetListInfoCollection(string listName, string parentKey, int portalId)
        {
            IList lists = new ListInfoCollection();

            foreach (KeyValuePair <string, ListInfo> listPair in GetListInfoDictionary(portalId).OrderBy(l => l.Value.DisplayName))
            {
                ListInfo list = listPair.Value;
                if ((list.Name == listName || string.IsNullOrEmpty(listName)) && (list.ParentKey == parentKey || string.IsNullOrEmpty(parentKey)) &&
                    (list.PortalID == portalId || portalId == Null.NullInteger))
                {
                    lists.Add(list);
                }
            }
            return((ListInfoCollection)lists);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Loads top level entry list into DNNTree
        /// </summary>
        /// <history>
        ///     [tamttt] 20/10/2004	Created
        /// </history>
        private void BindTree()
        {
            ListController     ctlLists    = new ListController();
            ListInfoCollection colLists    = ctlLists.GetListInfoCollection();
            Hashtable          indexLookup = new Hashtable();

            DNNtree.TreeNodes.Clear();

            foreach (ListInfo Lists in colLists)
            {
                TreeNode node = new TreeNode(Lists.DisplayName);
                node.Key        = Lists.Key;
                node.ToolTip    = Lists.EntryCount + " entries";
                node.ImageIndex = (int)eImageType.Folder;
                //.Target = Lists.DefinitionID.ToString & ":" & Lists.EnableSortOrder.ToString ' borrow this property to store this value

                if (Lists.Level == 0)
                {
                    DNNtree.TreeNodes.Add(node);
                }
                else
                {
                    if (indexLookup[Lists.ParentList] != null)
                    {
                        TreeNode parentNode = (TreeNode)(indexLookup[Lists.ParentList]);
                        parentNode.TreeNodes.Add(node);
                    }
                }

                // Add index key here to find it later, should suggest with Joe to add it to DNNTree
                if (indexLookup[Lists.Key] == null)
                {
                    indexLookup.Add(Lists.Key, node);
                }
            }
        }
Ejemplo n.º 5
0
 public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int PortalID)
 {
     IList lists = new ListInfoCollection();
     foreach (KeyValuePair<string, ListInfo> listPair in GetListInfoDictionary(PortalID))
     {
         ListInfo list = listPair.Value;
         if ((list.Name == ListName || string.IsNullOrEmpty(ListName)) && (list.ParentKey == ParentKey || string.IsNullOrEmpty(ParentKey)) &&
             (list.PortalID == PortalID || PortalID == Null.NullInteger))
         {
             lists.Add(list);
         }
     }
     return (ListInfoCollection) lists;
 }
Ejemplo n.º 6
0
        public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int DefinitionID)
        {
            IList objListInfoCollection = new ListInfoCollection();
            ListInfo objListInfo = new ListInfo();

            return ((ListInfoCollection)CBO.FillCollection(DataProvider.Instance().GetList(ListName, ParentKey, DefinitionID), typeof(ListInfo), ref objListInfoCollection));
        }
Ejemplo n.º 7
0
 public ListInfoCollection GetListInfoCollection(string listName, string parentKey, int portalId)
 {
     IList lists = new ListInfoCollection();
     foreach (KeyValuePair<string, ListInfo> listPair in GetListInfoDictionary(portalId).OrderBy(l => l.Value.DisplayName))
     {
         ListInfo list = listPair.Value;
         if ((list.Name == listName || string.IsNullOrEmpty(listName)) && (list.ParentKey == parentKey || string.IsNullOrEmpty(parentKey)) &&
             (list.PortalID == portalId || portalId == Null.NullInteger))
         {
             lists.Add(list);
         }
     }
     return (ListInfoCollection)lists;
 }