Web.UI/Label_Customer.cs

(开头部分) 1KB

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

using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Common;

namespace Web.UI
{
    /// <summary>
    /// 售后标签类
    /// </summary>
    public partial class BasePage
    {
        /// <summary>
        /// 绑定Repeater控件数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Customer_List_DataBind(object sender, EventArgs e)
        {
            Repeater _rpt = sender as Repeater;
            if (_rpt == null)
                return;
            BLL.Customer bll = new BLL.Customer();
            //绑定数据
            if (_rpt.PageSize > 0)
            {
                _rpt.DataSource = bll.GetPageList(_rpt.PageSize, _rpt.PageIndex, _rpt.Where, "AddTime desc");
            }
            else
            {
                _rpt.DataSource = bll.GetList(_rpt.Top, _rpt.Where, "AddTime desc");
            }
            _rpt.DataBind();
        }

        /// <summary>
        /// 返回资讯的ID,用于上一条或下一条链接
        /// </summary>
        protected int GetCustomerId(string _where)
        {
            BLL.Customer bll = new BLL.Customer();
            DataSet ds = bll.GetList(1, _where, "AddTime desc");
            if (ds.Tables[0].Rows.Count > 0)
            {
                return Convert.ToInt32(ds.Tables[0].Rows[0]["Id"]);
            }
            return 0;
        }
        /// <summary>
        /// 返回资讯的ID,用于上一条或下一条链接
        /// </summary>
        protected int GetCustomerDownId(string _where)
        {
            BLL.Customer bll = new BLL.Customer();
            DataSet ds = bll.GetList(1, _where, "id asc");
            if (ds.Tables[0].Rows.Count > 0)
            {
                return Convert.ToInt32(ds.Tables[0].Rows[0]["Id"]);
            }
后面还有 4 行代码,购买后查看完整代码

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

AI 解读 AI

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

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