App_Code/ReplyClass.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;
using System.Data.SqlClient;

/// <summary>
/// ReplyClass 的摘要说明
/// </summary>
public class ReplyClass
{
    private static string sql = null;
    public  static string tablename = "HuiTieInfo";

	public ReplyClass()
	{
		//
		// TODO: 在此处添加构造函数逻辑
		//
	}

    public static string getReplyContent(string id)
    {
        sql = "select reply_content from " + tablename + " where reply_id=" + id;
        return DataHelpe.ExecuteScalar(sql).ToString();
    }

    public static string getReplyCountBelongFenLei(string FenLeiid)
    {
        sql = "select count(*) from HuiTieInfo where FenLei_id=" + FenLeiid;
        object o = DataHelpe.ExecuteScalar(sql);
        return o.ToString();
    }

    public static string getReplyidByTime(string time)
    {
        sql = "select Reply_id as 编号 from " + tablename + " where reply_time='" + time + "'";
        SqlDataReader read = DataHelpe.ExecuteReader(sql);
        if (read.Read())
        {
            return read["编号"].ToString();
        }
        else
        {
            return "-1";
        }
    
    }

    public static string getAllReplyCount()
    {
        sql = "select count(*) from " + tablename + "";
        object o = DataHelpe.ExecuteScalar(sql);
        return o.ToString();
    }
后面还有 82 行代码,购买后查看完整代码

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

AI 解读 AI

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

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