App_Code/Article/Article.cs

(开头部分) 5KB

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

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace BLL.Article
{
    /// <summary>
    /// Article 的摘要说明
    /// </summary>
    public class Article
    {
        private static string detailTbl = "Bs_news";
        private static string kindTbl = "Bs_newskind";

        public Article()
        {
            //
            // TODO: 在此处添加构造函数逻辑
            //
        }
        /// <summary>
        /// 获取文章列表
        /// </summary>
        /// <param name="code">文章类别编码,null或者""则返回全部</param>
        /// <param name="pagesize">条数size,0则返回全部</param>      
        /// <returns></returns>
        public static DataTable getList(string code, int size, string where)
        {
            string top = size > 0 ? " top " + size : "";

            if (code != null && code != "")
            {
                where += " and bs_newskindcode='" + CSA.Text.Util.getSqlStr(code) + "'";
            }

            string sql = "select " + top + " * from " + detailTbl + " where status=0 " + where + " order by sortno,id desc";
            return CSA.DAL.DBAccess.getRS(sql);
        }
        /// <summary>
        /// 获取文章列表
        /// </summary>
        /// <param name="code">文章类别编码,null或者""则返回全部</param>
        /// <param name="pagesize">条数size,0则返回全部</param>      
        /// <returns></returns>
        public static DataTable getList(string code, int size)
        {
            return getList(code, size, "");
        }
        /// <summary>
        /// 获取文章内容
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static DataRow getArticleDetail(int id)
后面还有 98 行代码,购买后查看完整代码

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

AI 解读 AI

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

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