public static List <ModuleDecoratedPageSettings> GetDecoratedPages(
            ArrayList pageSettingsCol,
            int moduleID)
        {
            List <ModuleDecoratedPageSettings> pageList = new List <ModuleDecoratedPageSettings>();

            if (pageSettingsCol == null)
            {
                return(pageList);
            }

            DataTable dataTable = dbPortal.PageModule_GetByModule(moduleID);

            foreach (PageSettings page in pageSettingsCol)
            {
                ModuleDecoratedPageSettings decoratedPage
                    = new ModuleDecoratedPageSettings(page);

                decoratedPage.ModuleID = moduleID;
                foreach (DataRow row in dataTable.Rows)
                {
                    int pageID = Convert.ToInt32(row["PageID"]);
                    if (pageID == page.PageID)
                    {
                        decoratedPage.IsPublished = true;
                        decoratedPage.PaneName    = row["PaneName"].ToString();

                        if (decoratedPage.PaneName.Length == 0)
                        {
                            decoratedPage.PaneName = "contentpane";
                        }

                        decoratedPage.ModuleOrder      = Convert.ToInt32(row["ModuleOrder"]);
                        decoratedPage.PublishBeginDate = row["PublishBeginDate"].ToString();
                        decoratedPage.PublishEndDate   = row["PublishEndDate"].ToString();
                    }
                }

                pageList.Add(decoratedPage);
            }

            return(pageList);
        }
        public static List<ModuleDecoratedPageSettings> GetDecoratedPages(
            ArrayList pageSettingsCol, 
            int moduleID)
        {
            List<ModuleDecoratedPageSettings> pageList = new List<ModuleDecoratedPageSettings>();

            if (pageSettingsCol == null) return pageList;

            DataTable dataTable = dbPortal.PageModule_GetByModule(moduleID);
            foreach (PageSettings page in pageSettingsCol)
            {
                ModuleDecoratedPageSettings decoratedPage
                    = new ModuleDecoratedPageSettings(page);

                decoratedPage.ModuleID = moduleID;
                foreach (DataRow row in dataTable.Rows)
                {
                    int pageID = Convert.ToInt32(row["PageID"]);
                    if (pageID == page.PageID)
                    {
                        decoratedPage.IsPublished = true;
                        decoratedPage.PaneName = row["PaneName"].ToString();

                        if (decoratedPage.PaneName.Length == 0)
                        {
                            decoratedPage.PaneName = "contentpane";
                        }

                        decoratedPage.ModuleOrder = Convert.ToInt32(row["ModuleOrder"]);
                        decoratedPage.PublishBeginDate = row["PublishBeginDate"].ToString();
                        decoratedPage.PublishEndDate = row["PublishEndDate"].ToString();

                    }

                }

                pageList.Add(decoratedPage);

            }

            return pageList;
        }