Web.UI/Label_Comment.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
namespace Web.UI
{
/// <summary>
/// 评论标签类
/// </summary>
public partial class BasePage
{
/// <summary>
/// 绑定Repeater控件数据
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Comment_List_DataBind(object sender, EventArgs e)
{
Repeater _rpt = sender as Repeater;
if (_rpt == null)
return;
BLL.AllReviews bll = new BLL.AllReviews();
//绑定数据
if (_rpt.PageSize > 0)
{
_rpt.DataSource = bll.GetPageList(_rpt.PageSize, _rpt.PageIndex, " IsLock=0 and ParentId =" + _rpt.Where, "AddTime desc");
}
else
{
_rpt.DataSource = bll.GetList(_rpt.Top, " IsLock=0 and ParentId =" + _rpt.Where, "AddTime desc");
}
_rpt.DataBind();
}
/// <summary>
/// 评论数量
/// </summary>
protected int Comment_Count(int _kindId, int _parentId)
{
BLL.AllReviews bll = new BLL.AllReviews();
int _num = bll.GetCount("KindId=" + _kindId + " and ParentId=" + _parentId);
return _num;
}
/// <summary>
/// 评论数量
/// </summary>
protected int Comment_Count(string Where)
{
BLL.AllReviews bll = new BLL.AllReviews();
int _num = bll.GetCount(Where);
return _num;
}
/// <summary>
/// 咨询数量
/// </summary>
protected int Advisory_Count(int _kindId, int _parentId)
{
BLL.AllAdvisory bll = new BLL.AllAdvisory();
int _num = bll.GetCount("KindId=" + _kindId + " and IsLock=0 and ParentId=" + _parentId);
return _num;
后面还有 10 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。