AllPower.BLL/SysManage/CreateSpecialList.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

#region 程序集引用
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Data;
using System.Configuration;
using System.Reflection;
using System.Web.UI.WebControls;
using AllPower.IDAL.SysManage;

using AllPower.Common;
#endregion

#region 版权注释
/*===========================================================================
// Copyright (C) 2010 华强北在线 
// 作者:吴岸标
// 创建日期:2010-10-20
// 功能描述:生成专题列表
===========================================================================*/
#endregion

namespace AllPower.BLL.SysManage
{
    public class CreateSpecialList
    {
        #region 变量成员
        private static string path = ConfigurationManager.AppSettings["WebDAL"];
        private IDAL.SysManage.ICreateSpecialList dal = (IDAL.SysManage.ICreateSpecialList)Assembly.Load(path).CreateInstance(path + ".SysManage.CreateSpecialList");
        #endregion

        #region 绑定要发布的专题栏目
        /// <summary>
        /// 绑定要发布的专题栏目
        /// </summary>
        /// <param name="ddlSpecialMenuList"></param>
        public void BindSpecialMenu(ListBox  ddlSpecialMenuList,int siteID)
        {
            DataSet ds;
            ListItem ddlItem;
            DataRow[] menuDR;
 
            ds = dal.GetSpecialMenu(siteID);

            if (ds != null)
            {
                if (ds.Tables[0] != null)
                {
                    foreach (DataRow specialDR in ds.Tables[0].Rows)
                    {
                        ddlItem = new ListItem(specialDR["Name"].ToString(), specialDR["ID"].ToString());
                        ddlSpecialMenuList.Items.Add(ddlItem);
                        menuDR = ds.Tables[1].Select("SpecialID='"+ specialDR["ID"].ToString() +"'");

                        if (menuDR != null)
                        {
                            foreach (DataRow specialMenuDR in menuDR)
后面还有 12 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。