Пример #1
0
    private void Display_DeleteContentByCategory()
    {
        Ektron.Cms.Common.EkContentCol contentdataAll = new Ektron.Cms.Common.EkContentCol();

            DeleteContentByCategoryToolBar();

            _PageData = new Collection();
            _PageData.Add(_Id, "FolderID", null, null);
            _PageData.Add(_OrderBy, "OrderBy", null, null);
            if (_ShowArchive == false)
            {
                contentdataAll = _EkContent.GetAllViewableChildContentInfoV5_0(_PageData, _CurrentPageId, _ContentApi.RequestInformationRef.PagingSize, ref _TotalPagesNumber);
            }
            else
            {
                contentdataAll = _EkContent.GetAllViewArchiveContentInfov5_0(_PageData, _CurrentPageId, _ContentApi.RequestInformationRef.PagingSize, ref _TotalPagesNumber);
            }

            Ektron.Cms.Common.EkContentCol filteredcontentdata = new Ektron.Cms.Common.EkContentCol();
            foreach (Ektron.Cms.Common.ContentBase item in contentdataAll)
            {
                if (item.ContentSubType != Ektron.Cms.Common.EkEnumeration.CMSContentSubtype.PageBuilderMasterData)
                {
                    filteredcontentdata.Add(item);
                }
            }
            contentdataAll = filteredcontentdata;

            PageSettings();

            Populate_DeleteContentByCategory(contentdataAll);

            folder_id.Value =Convert.ToString(_Id);
    }
Пример #2
0
    private void Display_MoveContentByCategory()
    {
        Ektron.Cms.Common.EkContentCol contentdata = new Ektron.Cms.Common.EkContentCol();

            pagedata = new Microsoft.VisualBasic.Collection();
            pagedata.Add(m_intId, "FolderID", null, null);
            pagedata.Add(m_strOrderBy, "OrderBy", null, null);
            security_data = m_refContentApi.LoadPermissions(m_intId, "folder", 0);
            folder_data = m_refContentApi.GetFolderById(m_intId);

            contentdata = m_refContent.GetAllViewableChildInfov5_0(pagedata, m_intCurrentPage, m_refContentApi.RequestInformationRef.PagingSize, ref m_intTotalPages, Ektron.Cms.Common.EkEnumeration.CMSContentType.AllTypes, Ektron.Cms.Common.EkEnumeration.CMSContentSubtype.AllTypes);

            MoveContentByCategoryToolBar();
            FolderId = folder_data.Id.ToString();

            // javascript needs to know if source folder is using xml:
            source_folder_is_xml.Value = (!(folder_data.XmlConfiguration == null)) ? "1" : "0";

            // Obsolete: The recommended alternative is ClientScript.RegisterHiddenField(string
            // hiddenFieldName, string hiddenFieldInitialValue).
            // http://go.microsoft.com/fwlink/?linkid=14202
            Page.ClientScript.RegisterHiddenField("xmlinherited", "false");

            m_refContent = m_refContentApi.EkContentRef;
            //        cAllFolders = m_refContent.GetFolderTreeForUserIDWithXMLInfo(0)

            string destinationFolder;
            if (folder_data.FolderType == 9)
            {
                destinationFolder = "<span style=\"white-space:nowrap\"><input id=\"move_folder_id\" size=\"50%\" name=\"move_folder_id\" value=\"\\\" readonly=\"true\"/>  <a class=\"button buttonInline greenHover minHeight buttonCheckAll\" style=\"padding-top:.25em; padding-bottom:.25em;\" href=\"#\" onclick=\"LoadSelectCatalogFolderChildPage();return true;\">" + m_refMsg.GetMessage("lbl ecomm coupon select folder") + "</a></span>";
            }
            else
            {
                destinationFolder = "<span style=\"white-space:nowrap\"><input id=\"move_folder_id\" size=\"50%\" name=\"move_folder_id\" value=\"\\\" readonly=\"true\"/>  <a class=\"button buttonInline greenHover minHeight buttonCheckAll\" style=\"padding-top:.25em; padding-bottom:.25em;\" href=\"#\" onclick=\"LoadSelectFolderChildPage();return true;\">" + m_refMsg.GetMessage("lbl select folder") + "</a></span>";
            }

            lblDestinationFolder.Text = destinationFolder.ToString();
            folder_id.Value = m_intId.ToString();
            PageSettings();

            Populate_MoveContentByCategoryGrid(contentdata);
    }