App_Code/Product/Product.cs

(开头部分) 4KB

这里只显示每个文件的开头 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.Product
{
    /// <summary>
    /// Product 的摘要说明
    /// </summary>
    public class Product
    {
        private static string detailTbl = "bs_products";
        public Product()
        {
            //
            // 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 top = size > 0 ? " top " + size : "";

            string where = "";
            if (code != null && code != "")
            {
                where = " and bs_prokindcode like '" + 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="id">产品id</param>
        /// <returns></returns>
        public static DataRow getDetail(int id)
        {
            string sql = "select * from " + detailTbl + " where id=" + id.ToString();
            DataTable dt = CSA.DAL.DBAccess.getRS(sql);
            if (dt.Rows.Count > 0)
            {
                return dt.Rows[0];
            }
            return null;
        }
        public static DataTable getSearchResult(string word, string code)
        {
后面还有 83 行代码,购买后查看完整代码

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

AI 解读 AI

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

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