Ejemplo n.º 1
0
 public static string GetOpenWindowStringToComment(int publishmentSystemId, int nodeId, int contentId)
 {
     return(PageUtils.GetOpenWindowString("导出数据", PageUtils.GetCmsUrl(nameof(ModalExportMessage), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "NodeID", nodeId.ToString() },
         { "ContentID", contentId.ToString() },
         { "ExportType", ExportTypeComment }
     }), Width, Height, true));
 }
Ejemplo n.º 2
0
        public static string GetRedirectClickString(int siteId, int channelId, string returnUrl)
        {
            var redirectUrl = PageUtils.GetCmsUrl(siteId, nameof(PageContentTranslate), new NameValueCollection
            {
                { "channelId", channelId.ToString() },
                { "ReturnUrl", StringUtils.ValueToUrl(returnUrl) }
            });

            return(PageUtils.GetRedirectStringWithCheckBoxValue(redirectUrl, "contentIdCollection", "contentIdCollection", "请选择需要转移的内容!"));
        }
Ejemplo n.º 3
0
 public void NodeIDDropDownList_SelectedIndexChanged(object sender, EventArgs e)
 {
     PageUtils.Redirect(PageUtils.GetCmsUrl(nameof(PageTrackerContentAnalysis), new NameValueCollection
     {
         { "PublishmentSystemID", PublishmentSystemId.ToString() },
         { "NodeID", NodeIDDropDownList.SelectedValue },
         { "StartDateString", startDateString },
         { "EndDateString", endDateString }
     }));
 }
Ejemplo n.º 4
0
 public static string GetOpenWindowStringWithCreateByTemplate(int publishmentSystemId, int templateId)
 {
     return(PageUtils.GetOpenLayerString("生成页面",
                                         PageUtils.GetCmsUrl(nameof(ModalProgressBar), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "templateID", templateId.ToString() },
         { "CreateByTemplate", true.ToString() }
     }), 500, 360));
 }
Ejemplo n.º 5
0
 public static string GetRedirectUrlOfEdit(int publishmentSystemId, int nodeId, int id, string returnUrl)
 {
     return(PageUtils.GetCmsUrl(nameof(PageContentAdd), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "NodeID", nodeId.ToString() },
         { "ID", id.ToString() },
         { "ReturnUrl", StringUtils.ValueToUrl(returnUrl) }
     }));
 }
Ejemplo n.º 6
0
 public static string GetOpenWindowString(int publishmentSystemId, int nodeId, string returnUrl)
 {
     return(PageUtils.GetOpenWindowString("添加栏目",
                                          PageUtils.GetCmsUrl(nameof(ModalChannelAdd), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "NodeID", nodeId.ToString() },
         { "ReturnUrl", StringUtils.ValueToUrl(returnUrl) }
     })));
 }
Ejemplo n.º 7
0
 public static string GetOpenWindowStringWithSiteTemplateDownload(string downloadUrl, string directoryName)
 {
     return(PageUtils.GetOpenLayerString("下载在线模板",
                                         PageUtils.GetCmsUrl(nameof(ModalProgressBar), new NameValueCollection
     {
         { "SiteTemplateDownload", "True" },
         { "DownloadUrl", downloadUrl },
         { "DirectoryName", directoryName }
     }), 460, 360));
 }
Ejemplo n.º 8
0
 public static string GetContentViewUrl(int publishmentSystemId, int nodeId, int contentId, string returnUrl)
 {
     return(PageUtils.GetCmsUrl(nameof(PageContentView), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "NodeID", nodeId.ToString() },
         { "ID", contentId.ToString() },
         { "ReturnUrl", StringUtils.ValueToUrl(returnUrl) }
     }));
 }
Ejemplo n.º 9
0
 public string GetNoAutoCreateClickString()
 {
     return(PageUtils.GetRedirectStringWithCheckBoxValueAndAlert(
                PageUtils.GetCmsUrl(nameof(PageGatherFileRule), new NameValueCollection
     {
         { "PublishmentSystemID", PublishmentSystemId.ToString() },
         { "NoAuto", true.ToString() }
     }), "GatherFileRuleNameCollection", "GatherFileRuleNameCollection", "请选择需要打开自动生成的规则!",
                "确认要设置所选规则为自动生成吗?"));
 }
Ejemplo n.º 10
0
 public static string GetOpenWindowString(PublishmentSystemInfo publishmentSystemInfo, string textBoxClientId)
 {
     return(PageUtils.GetOpenWindowString("选择图片", PageUtils.GetCmsUrl(nameof(ModalSelectImage), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemInfo.PublishmentSystemId.ToString() },
         { "RootPath", "@" },
         { "CurrentRootPath", publishmentSystemInfo.Additional.ImageUploadDirectoryName },
         { "TextBoxClientID", textBoxClientId }
     }), 550, 480, true));
 }
Ejemplo n.º 11
0
 public static string GetOpenWindowString(int publishmentSystemId, string hiddenClientId, string relatedPath, string fileName)
 {
     return(PageUtils.GetOpenLayerString("查看文件属性", PageUtils.GetCmsUrl(nameof(ModalFileView), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "HiddenClientID", hiddenClientId },
         { "RelatedPath", relatedPath },
         { "FileName", fileName }
     }), 680, 660));
 }
Ejemplo n.º 12
0
 private string GetRedirectUrl(string path)
 {
     return(PageUtils.GetCmsUrl(nameof(ModalSelectImage), new NameValueCollection
     {
         { "PublishmentSystemID", PublishmentSystemId.ToString() },
         { "RootPath", _rootPath },
         { "CurrentRootPath", path },
         { "TextBoxClientID", _textBoxClientId }
     }));
 }
Ejemplo n.º 13
0
 public static string GetOpenWindowStringToEdit(int publishmentSystemId, int inputId, int contentId, string returnUrl)
 {
     return(PageUtils.GetOpenWindowString("修改信息", PageUtils.GetCmsUrl(nameof(ModalInputContentAdd), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "InputID", inputId.ToString() },
         { "ContentID", contentId.ToString() },
         { "ReturnUrl", StringUtils.ValueToUrl(returnUrl) }
     })));
 }
Ejemplo n.º 14
0
 public static string GetOpenWindowStringToInputContent(int publishmentSystemId, int relatedIdentity, bool isList)
 {
     return(PageUtils.GetOpenWindowString("选择需要显示的项", PageUtils.GetCmsUrl(nameof(ModalSelectColumns), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "IsList", isList.ToString() },
         { "TableStyle", ETableStyleUtils.GetValue(ETableStyle.InputContent) },
         { "RelatedIdentity", relatedIdentity.ToString() }
     }), 520, 550));
 }
Ejemplo n.º 15
0
 public void DdlLogId_SelectedIndexChanged(object sender, EventArgs e)
 {
     PageUtils.Redirect(PageUtils.GetCmsUrl(nameof(ModalTemplateRestore), new NameValueCollection
     {
         { "PublishmentSystemID", PublishmentSystemId.ToString() },
         { "templateID", _templateId.ToString() },
         { "includeUrl", _includeUrl },
         { "logID", DdlLogId.SelectedValue }
     }));
 }
Ejemplo n.º 16
0
 public static string GetRedirectUrlStringWithCreateContentsOneByOne(int siteId, int channelId,
                                                                     string contentIdCollection)
 {
     return(PageUtils.GetCmsUrl(siteId, nameof(ModalProgressBar), new NameValueCollection
     {
         { "channelId", channelId.ToString() },
         { "CreateContentsOneByOne", true.ToString() },
         { "contentIdCollection", contentIdCollection }
     }));
 }
Ejemplo n.º 17
0
 public static string GetOpenWindowStringToSingleTableStyle(string tableName, int siteId, int relatedIdentity)
 {
     return(LayerUtils.GetOpenScript("导出数据",
                                     PageUtils.GetCmsUrl(siteId, nameof(ModalExportMessage), new NameValueCollection
     {
         { "TableName", tableName },
         { "ExportType", ExportTypeSingleTableStyle },
         { "RelatedIdentity", relatedIdentity.ToString() }
     }), Width, Height));
 }
Ejemplo n.º 18
0
        public static string GetRedirectClickStringForMultiChannels(int publishmentSystemId, string returnUrl)
        {
            var redirectUrl = PageUtils.GetCmsUrl(nameof(PageContentTranslate), new NameValueCollection
            {
                { "PublishmentSystemID", publishmentSystemId.ToString() },
                { "ReturnUrl", StringUtils.ValueToUrl(returnUrl) }
            });

            return(PageUtils.GetRedirectStringWithCheckBoxValue(redirectUrl, "IDsCollection", "IDsCollection", "请选择需要转移的内容!"));
        }
Ejemplo n.º 19
0
 public static string GetRedirectClickStringForMultiChannels(int siteId, bool isDeleteFromTrash,
                                                             string returnUrl)
 {
     return(PageUtils.GetRedirectStringWithCheckBoxValue(PageUtils.GetCmsUrl(siteId, nameof(PageContentDelete),
                                                                             new NameValueCollection
     {
         { "IsDeleteFromTrash", isDeleteFromTrash.ToString() },
         { "ReturnUrl", StringUtils.ValueToUrl(returnUrl) }
     }), "IDsCollection", "IDsCollection", "请选择需要删除的内容!"));
 }
Ejemplo n.º 20
0
 public static string GetOpenWindowString(PublishmentSystemInfo publishmentSystemInfo, string textBoxClientId)
 {
     return(PageUtils.GetOpenWindowString("选择视频", PageUtils.GetCmsUrl(nameof(ModalSelectVideo), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemInfo.PublishmentSystemId.ToString() },
         { "RootPath", "@" },
         { "CurrentRootPath", string.Empty },
         { "TextBoxClientID", textBoxClientId }
     }), 550, 480, true));
 }
Ejemplo n.º 21
0
 public static string GetOpenWindowStringWithCreateContentsOneByOne(int publishmentSystemId, int nodeId)
 {
     return(PageUtils.GetOpenLayerStringWithCheckBoxValue("生成内容页",
                                                          PageUtils.GetCmsUrl(nameof(ModalProgressBar), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "NodeID", nodeId.ToString() },
         { "CreateContentsOneByOne", true.ToString() }
     }), "ContentIDCollection", "请选择需要生成的内容!", 500, 360));
 }
Ejemplo n.º 22
0
 public static string GetOpenWindowStringToContent(int publishmentSystemId, int nodeId)
 {
     return(PageUtils.GetOpenWindowStringWithCheckBoxValue("添加到内容组",
                                                           PageUtils.GetCmsUrl(nameof(ModalAddToGroup), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "NodeID", nodeId.ToString() },
         { "IsContent", "True" }
     }), "ContentIDCollection", "请选择需要设置组别的内容!", 450, 420));
 }
Ejemplo n.º 23
0
 public static string GetRedirectUrlStringWithGatherDatabase(int publishmentSystemId,
                                                             string gatherRuleNameCollection)
 {
     return(PageUtils.GetCmsUrl(nameof(ModalProgressBar), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "GatherDatabase", true.ToString() },
         { "GatherRuleNameCollection", gatherRuleNameCollection }
     }));
 }
Ejemplo n.º 24
0
 public static string GetRedirectUrl(int publishmentSystemId, int nodeId, int contentId, string returnUrl)
 {
     return(PageUtils.GetCmsUrl(nameof(PageContentPhotoUpload), new NameValueCollection
     {
         { "publishmentSystemID", publishmentSystemId.ToString() },
         { "nodeID", nodeId.ToString() },
         { "contentID", contentId.ToString() },
         { "returnUrl", StringUtils.ValueToUrl(returnUrl) }
     }));
 }
Ejemplo n.º 25
0
 public static string GetOpenWindowString(int siteId, ContentInfo contentInfo, string returnUrl)
 {
     return(LayerUtils.GetOpenScript("审核状态",
                                     PageUtils.GetCmsUrl(siteId, nameof(ModalCheckState), new NameValueCollection
     {
         { "channelId", contentInfo.ChannelId.ToString() },
         { "contentID", contentInfo.Id.ToString() },
         { "returnUrl", StringUtils.ValueToUrl(returnUrl) }
     }), 560, 500));
 }
Ejemplo n.º 26
0
 public static string GetRedirectUrl(int publishmentSystemId, int channelId, int contentId)
 {
     return(PageUtils.GetCmsUrl(nameof(PageActions), new NameValueCollection
     {
         { "type", TypeRedirect },
         { "publishmentSystemID", publishmentSystemId.ToString() },
         { "channelID", channelId.ToString() },
         { "contentID", contentId.ToString() }
     }));
 }
Ejemplo n.º 27
0
 public void Analysis_OnClick(object sender, EventArgs e)
 {
     PageUtils.Redirect(PageUtils.GetCmsUrl(nameof(PageTrackerContentAnalysis), new NameValueCollection
     {
         { "PublishmentSystemID", PublishmentSystemId.ToString() },
         { "NodeID", nodeID.ToString() },
         { "StartDateString", StartDate.Text },
         { "EndDateString", EndDate.Text }
     }));
 }
Ejemplo n.º 28
0
 public static string GetOpenWindowString(SiteInfo siteInfo, string textBoxClientId)
 {
     return(LayerUtils.GetOpenScript("选择视频",
                                     PageUtils.GetCmsUrl(siteInfo.Id, nameof(ModalSelectVideo), new NameValueCollection
     {
         { "RootPath", "@" },
         { "CurrentRootPath", string.Empty },
         { "TextBoxClientID", textBoxClientId }
     })));
 }
Ejemplo n.º 29
0
 public static string GetRedirectUrl(int publishmentSystemId, int styleId, ETableStyle tableStyle, int relatedIdentity)
 {
     return(PageUtils.GetCmsUrl(nameof(PageTagStyleMailSMS), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "StyleID", styleId.ToString() },
         { "TableStyle", ETableStyleUtils.GetValue(tableStyle) },
         { "RelatedIdentity", relatedIdentity.ToString() }
     }));
 }
Ejemplo n.º 30
0
 public static string GetBackupUrl(int publishmentSystemId, string backupType, string userKeyPrefix)
 {
     return(PageUtils.GetCmsUrl(nameof(PageProgressBar), new NameValueCollection
     {
         { "PublishmentSystemID", publishmentSystemId.ToString() },
         { "Backup", true.ToString() },
         { "BackupType", backupType },
         { "UserKeyPrefix", userKeyPrefix }
     }));
 }