selectcontentmodel.aspx.cs

来自「动易SiteFactory&#8482 网上商店系统1.0源代码」· CS 代码 · 共 42 行

CS
42
字号
namespace PowerEasy.WebSite.Admin.Contents
{
    using PowerEasy.CommonModel;
    using PowerEasy.Controls;
    using PowerEasy.Enumerations;
    using PowerEasy.Web.UI;
    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.Web.UI.WebControls;

    public class SelectContentModel : AdminPage
    {
        protected Repeater RptModelList;
        protected ExtendedSiteMapPath SmpNavigator;

        protected void Page_Load(object sender, EventArgs e)
        {
            int nodeId = BasePage.RequestInt32("NodeID");
            if (BasePage.RequestString("isEshop") == "yes")
            {
                IList<ModelInfo> shopModelList = ModelManager.GetShopModelList(ModelShowType.Enable);
                this.RptModelList.DataSource = shopModelList;
                this.RptModelList.DataBind();
            }
            else if (nodeId > 0)
            {
                DataTable modelListByNodeId = ModelManager.GetModelListByNodeId(nodeId, true);
                this.RptModelList.DataSource = modelListByNodeId;
                this.RptModelList.DataBind();
            }
            else
            {
                IList<ModelInfo> modelList = ModelManager.GetModelList(ModelType.None, ModelShowType.Enable);
                this.RptModelList.DataSource = modelList;
                this.RptModelList.DataBind();
            }
        }
    }
}

⌨️ 快捷键说明

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