Beispiel #1
0
        public void Page_Load(object sender, EventArgs e)
        {
            if (IsForbidden)
            {
                return;
            }

            PageUtils.CheckRequestParameter("PublishmentSystemID", "GatherRuleName");

            _gatherRuleName = Body.GetQueryString("GatherRuleName");

            if (!IsPostBack)
            {
                InfoMessage("采集名称:" + _gatherRuleName);

                var gatherRuleInfo = DataProvider.GatherRuleDao.GetGatherRuleInfo(_gatherRuleName, PublishmentSystemId);
                GatherUrlIsCollection.Checked = gatherRuleInfo.GatherUrlIsCollection;
                GatherUrlCollection.Text      = gatherRuleInfo.GatherUrlCollection;
                GatherUrlIsSerialize.Checked  = gatherRuleInfo.GatherUrlIsSerialize;
                GatherUrlSerialize.Text       = gatherRuleInfo.GatherUrlSerialize;
                SerializeFrom.Text            = gatherRuleInfo.SerializeFrom.ToString();
                SerializeTo.Text               = gatherRuleInfo.SerializeTo.ToString();
                SerializeInterval.Text         = gatherRuleInfo.SerializeInterval.ToString();
                SerializeIsOrderByDesc.Checked = gatherRuleInfo.SerializeIsOrderByDesc;
                SerializeIsAddZero.Checked     = gatherRuleInfo.SerializeIsAddZero;
                UrlInclude.Text = gatherRuleInfo.UrlInclude;

                GatherNum.Text = gatherRuleInfo.Additional.GatherNum.ToString();

                NodeManager.AddListItemsForAddContent(NodeIDDropDownList.Items, PublishmentSystemInfo, true, Body.AdministratorName);
                ControlUtils.SelectListItems(NodeIDDropDownList, gatherRuleInfo.NodeId.ToString());

                GatherUrl_CheckedChanged(null, null);
            }
        }
 protected void PublishmentSystemIDCollection_OnSelectedIndexChanged(object sender, EventArgs e)
 {
     NodeIDCollection.Items.Clear();
     if (PlaceHolder_PublishmentSystem.Visible && PublishmentSystemIDCollection.Items.Count > 0)
     {
         NodeManager.AddListItemsForAddContent(NodeIDCollection.Items, PublishmentSystemManager.GetPublishmentSystemInfo(int.Parse(PublishmentSystemIDCollection.SelectedValue)), false, Body.AdministratorName);
     }
 }
Beispiel #3
0
        public void Page_Load(object sender, EventArgs e)
        {
            if (IsForbidden)
            {
                return;
            }

            PageUtils.CheckRequestParameter("PublishmentSystemID", "GatherRuleName");
            _gatherRuleName = Body.GetQueryString("GatherRuleName");

            if (!IsPostBack)
            {
                var gatherDatabaseRuleInfo = DataProvider.GatherDatabaseRuleDao.GetGatherDatabaseRuleInfo(_gatherRuleName, PublishmentSystemId);
                InfoMessage("采集名称:" + _gatherRuleName);

                GatherNum.Text = gatherDatabaseRuleInfo.GatherNum.ToString();

                NodeManager.AddListItemsForAddContent(NodeIDDropDownList.Items, PublishmentSystemInfo, true, Body.AdministratorName);
                ControlUtils.SelectListItems(NodeIDDropDownList, gatherDatabaseRuleInfo.NodeId.ToString());
            }
        }
Beispiel #4
0
        public void Page_Load(object sender, EventArgs e)
        {
            if (IsForbidden)
            {
                return;
            }

            PageUtils.CheckRequestParameter("PublishmentSystemID", "GatherRuleName");

            _gatherRuleName = Body.GetQueryString("GatherRuleName");

            if (!IsPostBack)
            {
                InfoMessage("采集名称:" + _gatherRuleName);

                var gatherFileRuleInfo = DataProvider.GatherFileRuleDao.GetGatherFileRuleInfo(_gatherRuleName, PublishmentSystemId);
                GatherUrl.Text = gatherFileRuleInfo.GatherUrl;
                if (gatherFileRuleInfo.IsToFile)
                {
                    PlaceHolder_File.Visible    = true;
                    PlaceHolder_Content.Visible = false;

                    FilePath.Text = gatherFileRuleInfo.FilePath;
                    ControlUtils.SelectListItems(IsSaveRelatedFiles, gatherFileRuleInfo.IsSaveRelatedFiles.ToString());
                    ControlUtils.SelectListItems(IsRemoveScripts, gatherFileRuleInfo.IsRemoveScripts.ToString());
                    StyleDirectoryPath.Text  = gatherFileRuleInfo.StyleDirectoryPath;
                    ScriptDirectoryPath.Text = gatherFileRuleInfo.ScriptDirectoryPath;
                    ImageDirectoryPath.Text  = gatherFileRuleInfo.ImageDirectoryPath;
                }
                else
                {
                    PlaceHolder_File.Visible    = false;
                    PlaceHolder_Content.Visible = true;

                    NodeManager.AddListItemsForAddContent(NodeIDDropDownList.Items, PublishmentSystemInfo, true, Body.AdministratorName);
                    ControlUtils.SelectListItems(NodeIDDropDownList, gatherFileRuleInfo.NodeId.ToString());
                    ControlUtils.SelectListItems(IsSaveImage, gatherFileRuleInfo.IsSaveImage.ToString());
                }
            }
        }
Beispiel #5
0
        public void Page_Load(object sender, EventArgs e)
        {
            if (IsForbidden)
            {
                return;
            }

            PageUtils.CheckRequestParameter("PublishmentSystemID");

            if (Body.IsQueryExists("GatherRuleName"))
            {
                _isEdit            = true;
                _theGatherRuleName = Body.GetQueryString("GatherRuleName");
            }

            if (!Page.IsPostBack)
            {
                var pageTitle = _isEdit ? "编辑Web页面信息采集规则" : "添加Web页面信息采集规则";
                BreadCrumb(AppManager.Cms.LeftMenu.IdFunction, AppManager.Cms.LeftMenu.Function.IdGather, pageTitle, AppManager.Cms.Permission.WebSite.Gather);

                ltlPageTitle.Text = pageTitle;

                ECharsetUtils.AddListItems(Charset);
                ControlUtils.SelectListItemsIgnoreCase(Charset, ECharsetUtils.GetValue(ECharset.utf_8));
                NodeManager.AddListItemsForAddContent(NodeIDDropDownList.Items, PublishmentSystemInfo, true, Body.AdministratorName);

                SetActivePanel(WizardPanel.GatherRuleBase, GatherRuleBase);

                if (_isEdit)
                {
                    var gatherRuleInfo = DataProvider.GatherRuleDao.GetGatherRuleInfo(_theGatherRuleName, PublishmentSystemId);
                    GatherRuleName.Text = gatherRuleInfo.GatherRuleName;

                    ControlUtils.SelectListItemsIgnoreCase(Charset, ECharsetUtils.GetValue(gatherRuleInfo.Charset));
                    GatherNum.Text = gatherRuleInfo.Additional.GatherNum.ToString();
                    foreach (ListItem item in IsSaveImage.Items)
                    {
                        if (item.Value.Equals(gatherRuleInfo.Additional.IsSaveImage.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }
                    foreach (ListItem item in IsSetFirstImageAsImageUrl.Items)
                    {
                        if (item.Value.Equals(gatherRuleInfo.Additional.IsSetFirstImageAsImageUrl.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }
                    foreach (ListItem item in IsEmptyContentAllowed.Items)
                    {
                        if (item.Value.Equals(gatherRuleInfo.Additional.IsEmptyContentAllowed.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }
                    foreach (ListItem item in IsSameTitleAllowed.Items)
                    {
                        if (item.Value.Equals(gatherRuleInfo.Additional.IsSameTitleAllowed.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }
                    foreach (ListItem item in IsChecked.Items)
                    {
                        if (item.Value.Equals(gatherRuleInfo.Additional.IsChecked.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }
                    foreach (ListItem item in IsAutoCreate.Items)
                    {
                        if (item.Value.Equals(gatherRuleInfo.Additional.IsAutoCreate.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }
                    foreach (ListItem item in IsOrderByDesc.Items)
                    {
                        if (item.Value.Equals(gatherRuleInfo.Additional.IsOrderByDesc.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }

                    GatherUrlIsCollection.Checked = gatherRuleInfo.GatherUrlIsCollection;
                    GatherUrlCollection.Text      = gatherRuleInfo.GatherUrlCollection;
                    GatherUrlIsSerialize.Checked  = gatherRuleInfo.GatherUrlIsSerialize;
                    GatherUrlSerialize.Text       = gatherRuleInfo.GatherUrlSerialize;
                    SerializeFrom.Text            = gatherRuleInfo.SerializeFrom.ToString();
                    SerializeTo.Text               = gatherRuleInfo.SerializeTo.ToString();
                    SerializeInterval.Text         = gatherRuleInfo.SerializeInterval.ToString();
                    SerializeIsOrderByDesc.Checked = gatherRuleInfo.SerializeIsOrderByDesc;
                    SerializeIsAddZero.Checked     = gatherRuleInfo.SerializeIsAddZero;

                    foreach (ListItem item in NodeIDDropDownList.Items)
                    {
                        if (item.Value.Equals(gatherRuleInfo.NodeId.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }
                    UrlInclude.Text     = gatherRuleInfo.UrlInclude;
                    TitleInclude.Text   = gatherRuleInfo.TitleInclude;
                    ContentExclude.Text = gatherRuleInfo.ContentExclude;
                    var htmlClearArrayList = TranslateUtils.StringCollectionToStringList(gatherRuleInfo.ContentHtmlClearCollection);
                    foreach (ListItem item in ContentHtmlClearCollection.Items)
                    {
                        item.Selected = htmlClearArrayList.Contains(item.Value);
                    }
                    var htmlClearTagArrayList = TranslateUtils.StringCollectionToStringList(gatherRuleInfo.ContentHtmlClearTagCollection);
                    foreach (ListItem item in ContentHtmlClearTagCollection.Items)
                    {
                        item.Selected = htmlClearTagArrayList.Contains(item.Value);
                    }
                    ListAreaStart.Text        = gatherRuleInfo.ListAreaStart;
                    ListAreaEnd.Text          = gatherRuleInfo.ListAreaEnd;
                    CookieString.Text         = gatherRuleInfo.CookieString;
                    ContentTitleStart.Text    = gatherRuleInfo.ContentTitleStart;
                    ContentTitleEnd.Text      = gatherRuleInfo.ContentTitleEnd;
                    ContentContentStart.Text  = gatherRuleInfo.ContentContentStart;
                    ContentContentEnd.Text    = gatherRuleInfo.ContentContentEnd;
                    ContentContentStart2.Text = gatherRuleInfo.Additional.ContentContentStart2;
                    ContentContentEnd2.Text   = gatherRuleInfo.Additional.ContentContentEnd2;
                    ContentContentStart3.Text = gatherRuleInfo.Additional.ContentContentStart3;
                    ContentContentEnd3.Text   = gatherRuleInfo.Additional.ContentContentEnd3;
                    ContentReplaceFrom.Text   = gatherRuleInfo.Additional.ContentReplaceFrom;
                    ContentReplaceTo.Text     = gatherRuleInfo.Additional.ContentReplaceTo;
                    ContentChannelStart.Text  = gatherRuleInfo.ContentChannelStart;
                    ContentChannelEnd.Text    = gatherRuleInfo.ContentChannelEnd;
                    ContentNextPageStart.Text = gatherRuleInfo.ContentNextPageStart;
                    ContentNextPageEnd.Text   = gatherRuleInfo.ContentNextPageEnd;

                    var contentAttributeArrayList = TranslateUtils.StringCollectionToStringList(gatherRuleInfo.ContentAttributes);
                    var relatedIdentities         = RelatedIdentities.GetChannelRelatedIdentities(PublishmentSystemId, PublishmentSystemId);
                    var styleInfoList             = TableStyleManager.GetTableStyleInfoList(ETableStyle.BackgroundContent, PublishmentSystemInfo.AuxiliaryTableForContent, relatedIdentities);
                    foreach (var styleInfo in styleInfoList)
                    {
                        if (StringUtils.EqualsIgnoreCase(styleInfo.AttributeName, ContentAttribute.Title) || StringUtils.EqualsIgnoreCase(styleInfo.AttributeName, BackgroundContentAttribute.Content))
                        {
                            continue;
                        }

                        var listitem = new ListItem(styleInfo.DisplayName, styleInfo.AttributeName.ToLower());
                        if (contentAttributeArrayList.Contains(listitem.Value))
                        {
                            listitem.Selected = true;
                        }
                        ContentAttributes.Items.Add(listitem);
                    }

                    var listItem = new ListItem("点击量", ContentAttribute.Hits.ToLower());
                    if (contentAttributeArrayList.Contains(listItem.Value))
                    {
                        listItem.Selected = true;
                    }
                    ContentAttributes.Items.Add(listItem);

                    _contentAttributesXml = TranslateUtils.ToNameValueCollection(gatherRuleInfo.ContentAttributesXml);

                    ContentAttributes_SelectedIndexChanged(null, EventArgs.Empty);
                }
                else
                {
                    var relatedIdentities = RelatedIdentities.GetChannelRelatedIdentities(PublishmentSystemId, PublishmentSystemId);
                    var styleInfoList     = TableStyleManager.GetTableStyleInfoList(ETableStyle.BackgroundContent, PublishmentSystemInfo.AuxiliaryTableForContent, relatedIdentities);
                    foreach (var styleInfo in styleInfoList)
                    {
                        if (StringUtils.EqualsIgnoreCase(styleInfo.AttributeName, ContentAttribute.Title) || StringUtils.EqualsIgnoreCase(styleInfo.AttributeName, BackgroundContentAttribute.Content))
                        {
                            continue;
                        }

                        var listitem = new ListItem(styleInfo.DisplayName, styleInfo.AttributeName.ToLower());
                        ContentAttributes.Items.Add(listitem);
                    }

                    var listItem = new ListItem("点击量", ContentAttribute.Hits.ToLower());
                    ContentAttributes.Items.Add(listItem);
                }

                GatherUrl_CheckedChanged(null, null);
            }

            SuccessMessage(string.Empty);
        }
Beispiel #6
0
        public void Page_Load(object sender, EventArgs e)
        {
            if (IsForbidden)
            {
                return;
            }

            PageUtils.CheckRequestParameter("PublishmentSystemID");

            if (Body.IsQueryExists("GatherRuleName"))
            {
                _isEdit            = true;
                _theGatherRuleName = Body.GetQueryString("GatherRuleName");
            }

            if (!Page.IsPostBack)
            {
                var pageTitle = _isEdit ? "编辑单文件页采集规则" : "添加单文件页采集规则";
                BreadCrumb(AppManager.Cms.LeftMenu.IdFunction, AppManager.Cms.LeftMenu.Function.IdGather, pageTitle, AppManager.Cms.Permission.WebSite.Gather);

                ltlPageTitle.Text = pageTitle;

                ECharsetUtils.AddListItems(Charset);
                ControlUtils.SelectListItemsIgnoreCase(Charset, ECharsetUtils.GetValue(ECharset.utf_8));
                NodeManager.AddListItemsForAddContent(NodeIDDropDownList.Items, PublishmentSystemInfo, true, Body.AdministratorName);

                SetActivePanel(WizardPanel.GatherRuleBase, GatherRuleBase);

                if (_isEdit)
                {
                    var gatherFileRuleInfo = DataProvider.GatherFileRuleDao.GetGatherFileRuleInfo(_theGatherRuleName, PublishmentSystemId);
                    GatherRuleName.Text = gatherFileRuleInfo.GatherRuleName;
                    GatherUrl.Text      = gatherFileRuleInfo.GatherUrl;
                    ControlUtils.SelectListItemsIgnoreCase(Charset, ECharsetUtils.GetValue(gatherFileRuleInfo.Charset));

                    ControlUtils.SelectListItems(IsToFile, gatherFileRuleInfo.IsToFile.ToString());
                    FilePath.Text = gatherFileRuleInfo.FilePath;
                    ControlUtils.SelectListItems(IsSaveRelatedFiles, gatherFileRuleInfo.IsSaveRelatedFiles.ToString());
                    ControlUtils.SelectListItems(IsRemoveScripts, gatherFileRuleInfo.IsRemoveScripts.ToString());
                    StyleDirectoryPath.Text  = gatherFileRuleInfo.StyleDirectoryPath;
                    ScriptDirectoryPath.Text = gatherFileRuleInfo.ScriptDirectoryPath;
                    ImageDirectoryPath.Text  = gatherFileRuleInfo.ImageDirectoryPath;

                    ControlUtils.SelectListItems(NodeIDDropDownList, gatherFileRuleInfo.NodeId.ToString());
                    ControlUtils.SelectListItems(IsSaveImage, gatherFileRuleInfo.IsSaveImage.ToString());
                    ControlUtils.SelectListItems(IsChecked, gatherFileRuleInfo.IsChecked.ToString());
                    ControlUtils.SelectListItems(IsAutoCreate, gatherFileRuleInfo.IsAutoCreate.ToString());

                    ContentExclude.Text = gatherFileRuleInfo.ContentExclude;
                    var htmlClearArrayList = TranslateUtils.StringCollectionToStringList(gatherFileRuleInfo.ContentHtmlClearCollection);
                    foreach (ListItem item in ContentHtmlClearCollection.Items)
                    {
                        if (htmlClearArrayList.Contains(item.Value))
                        {
                            item.Selected = true;
                        }
                    }
                    var htmlClearTagArrayList = TranslateUtils.StringCollectionToStringList(gatherFileRuleInfo.ContentHtmlClearTagCollection);
                    foreach (ListItem item in ContentHtmlClearTagCollection.Items)
                    {
                        if (htmlClearTagArrayList.Contains(item.Value))
                        {
                            item.Selected = true;
                        }
                    }
                    ContentTitleStart.Text   = gatherFileRuleInfo.ContentTitleStart;
                    ContentTitleEnd.Text     = gatherFileRuleInfo.ContentTitleEnd;
                    ContentContentStart.Text = gatherFileRuleInfo.ContentContentStart;
                    ContentContentEnd.Text   = gatherFileRuleInfo.ContentContentEnd;

                    var contentAttributeArrayList = TranslateUtils.StringCollectionToStringList(gatherFileRuleInfo.ContentAttributes);
                    var styleInfoList             = TableStyleManager.GetTableStyleInfoList(ETableStyle.BackgroundContent, PublishmentSystemInfo.AuxiliaryTableForContent, null);
                    foreach (var styleInfo in styleInfoList)
                    {
                        if (StringUtils.EqualsIgnoreCase(styleInfo.AttributeName, ContentAttribute.Title) || StringUtils.EqualsIgnoreCase(styleInfo.AttributeName, BackgroundContentAttribute.Content))
                        {
                            continue;
                        }

                        var listitem = new ListItem(styleInfo.DisplayName, styleInfo.AttributeName.ToLower());
                        if (contentAttributeArrayList.Contains(listitem.Value))
                        {
                            listitem.Selected = true;
                        }
                        ContentAttributes.Items.Add(listitem);
                    }

                    _contentAttributesXml = TranslateUtils.ToNameValueCollection(gatherFileRuleInfo.ContentAttributesXml);

                    ContentAttributes_SelectedIndexChanged(null, EventArgs.Empty);
                }

                DropDownList_SelectedIndexChanged(null, EventArgs.Empty);
            }

            SuccessMessage(string.Empty);
        }
        public void Page_Load(object sender, EventArgs e)
        {
            if (IsForbidden)
            {
                return;
            }

            PageUtils.CheckRequestParameter("PublishmentSystemID");

            if (Body.IsQueryExists("GatherRuleName"))
            {
                _isEdit            = true;
                _theGatherRuleName = Body.GetQueryString("GatherRuleName");
            }

            if (!Page.IsPostBack)
            {
                var pageTitle = _isEdit ? "编辑数据库采集规则" : "添加数据库采集规则";
                BreadCrumb(AppManager.Cms.LeftMenu.IdFunction, AppManager.Cms.LeftMenu.Function.IdGather, pageTitle, AppManager.Cms.Permission.WebSite.Gather);

                ltlPageTitle.Text = pageTitle;

                NodeManager.AddListItemsForAddContent(NodeIDDropDownList.Items, PublishmentSystemInfo, true, Body.AdministratorName);

                SetActivePanel(WizardPanel.GatherRuleBase, GatherRuleBase);

                if (_isEdit)
                {
                    var gatherDatabaseRuleInfo = DataProvider.GatherDatabaseRuleDao.GetGatherDatabaseRuleInfo(_theGatherRuleName, PublishmentSystemId);
                    GatherRuleName.Text = gatherDatabaseRuleInfo.GatherRuleName;
                    WhereString.Text    = gatherDatabaseRuleInfo.WhereString;
                    foreach (ListItem item in NodeIDDropDownList.Items)
                    {
                        if (item.Value.Equals(gatherDatabaseRuleInfo.NodeId.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }
                    GatherNum.Text = gatherDatabaseRuleInfo.GatherNum.ToString();
                    foreach (ListItem item in IsChecked.Items)
                    {
                        if (item.Value.Equals(gatherDatabaseRuleInfo.IsChecked.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }
                    foreach (ListItem item in IsAutoCreate.Items)
                    {
                        if (item.Value.Equals(gatherDatabaseRuleInfo.IsAutoCreate.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }

                    DatabaseServer.Text      = SqlUtils.GetValueFromConnectionString(gatherDatabaseRuleInfo.ConnectionString, "server");
                    UserName.Text            = SqlUtils.GetValueFromConnectionString(gatherDatabaseRuleInfo.ConnectionString, "uid");
                    Password.Text            = SqlUtils.GetValueFromConnectionString(gatherDatabaseRuleInfo.ConnectionString, "pwd");
                    DatabaseNameHidden.Value = SqlUtils.GetValueFromConnectionString(gatherDatabaseRuleInfo.ConnectionString, "database");

                    RelatedTableNameHidden.Value = gatherDatabaseRuleInfo.RelatedTableName;
                    RelatedIdentityHidden.Value  = gatherDatabaseRuleInfo.RelatedIdentity;
                    RelatedOrderByHidden.Value   = gatherDatabaseRuleInfo.RelatedOrderBy;

                    foreach (ListItem item in IsOrderByDesc.Items)
                    {
                        if (item.Value.Equals(gatherDatabaseRuleInfo.IsOrderByDesc.ToString()))
                        {
                            item.Selected = true;
                        }
                        else
                        {
                            item.Selected = false;
                        }
                    }
                }

                DatabaseType_Changed(null, EventArgs.Empty);
            }

            SuccessMessage(string.Empty);
        }
Beispiel #8
0
        public void Page_Load(object sender, EventArgs e)
        {
            if (IsForbidden)
            {
                return;
            }

            PageUtils.CheckRequestParameter("PublishmentSystemID", "ReturnUrl");
            _returnUrl = StringUtils.ValueFromUrl(Body.GetQueryString("ReturnUrl"));

            _idsDictionary = ContentUtility.GetIDsDictionary(Request.QueryString);

            if (!IsPostBack)
            {
                var         checkTaskTotal    = 0;
                var         checkContentTotal = 0;
                var         unCheckTaskTotal  = 0;
                ContentInfo contentInfo;
                var         titles = new StringBuilder();
                foreach (var nodeID in _idsDictionary.Keys)
                {
                    var tableStyle    = NodeManager.GetTableStyle(PublishmentSystemInfo, nodeID);
                    var tableName     = NodeManager.GetTableName(PublishmentSystemInfo, nodeID);
                    var contentIdList = _idsDictionary[nodeID];
                    foreach (var contentId in contentIdList)
                    {
                        checkContentTotal++;
                        contentInfo = DataProvider.ContentDao.GetContentInfo(tableStyle, tableName, contentId);

                        titles.Append(contentInfo.Title + "<br />");
                    }
                }

                if (!string.IsNullOrEmpty(ltlTitles.Text))
                {
                    titles.Length -= 6;
                }
                ltlTitles.Text = titles.ToString();

                var checkedLevel = 5;
                var isChecked    = true;

                foreach (var nodeID in _idsDictionary.Keys)
                {
                    int checkedLevelByNodeID;
                    var isCheckedByNodeID = CheckManager.GetUserCheckLevel(Body.AdministratorName, PublishmentSystemInfo, nodeID, out checkedLevelByNodeID);
                    if (checkedLevel > checkedLevelByNodeID)
                    {
                        checkedLevel = checkedLevelByNodeID;
                    }
                    if (!isCheckedByNodeID)
                    {
                        isChecked = isCheckedByNodeID;
                    }
                }

                LevelManager.LoadContentLevelToCheck(rblCheckType, PublishmentSystemInfo, isChecked, checkedLevel);

                var listItem = new ListItem("<保持原栏目不变>", "0");
                ddlTranslateNodeID.Items.Add(listItem);

                NodeManager.AddListItemsForAddContent(ddlTranslateNodeID.Items, PublishmentSystemInfo, true, Body.AdministratorName);
            }
        }