⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 navcontent.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.User.Contents
{
    using PowerEasy.AccessManage;
    using PowerEasy.Common;
    using PowerEasy.CommonModel;
    using PowerEasy.Components;
    using PowerEasy.Controls;
    using PowerEasy.Enumerations;
    using PowerEasy.Model.CommonModel;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class NavContent : DynamicPage
    {
        protected AlternateLiteral AlternateLiteral1;
        protected Button BtnSelectNode;
        protected HtmlForm form1;
        protected HiddenField HdnModelId;
        protected HiddenField HdnNodeId;

        protected void BtnSelectNode_Click(object sender, EventArgs e)
        {
            string str = BasePage.RequestString("Action");
            if (string.IsNullOrEmpty(str))
            {
                str = "add";
            }
            if (string.IsNullOrEmpty(this.HdnNodeId.Value))
            {
                DynamicPage.WriteUserErrMsg("您没有发布信息的权限!", "NavContent.aspx");
            }
            else if (string.IsNullOrEmpty(this.HdnModelId.Value))
            {
                DynamicPage.WriteUserErrMsg("没有选择内容模型!", "NavContent.aspx");
            }
            else
            {
                ModelInfo cacheModelById = ModelManager.GetCacheModelById(DataConverter.CLng(this.HdnModelId.Value));
                if (!UserPermissions.GetRoleNodeId(PEContext.Current.User.RoleId, OperateCode.NodeContentInput, PEContext.Current.User.UserInfo.IsInheritGroupRole ? 1 : 0).Contains(this.HdnNodeId.Value))
                {
                    DynamicPage.WriteUserErrMsg("您没有此节点的添加权限!", "NavContent.aspx");
                }
                if (cacheModelById.IsEshop)
                {
                    BasePage.ResponseRedirect(SiteConfig.SiteInfo.VirtualPath + "User/Shop/Product.aspx?nodeId=" + this.HdnNodeId.Value + "&modelId=" + this.HdnModelId.Value + "&Action=" + str);
                }
                else
                {
                    BasePage.ResponseRedirect("Content.aspx?nodeId=" + this.HdnNodeId.Value + "&modelId=" + this.HdnModelId.Value + "&Action=" + str);
                }
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -