username@email.com
2025-05-14 99ddfbcecf0fa2881eb3a91028257eef87dab6de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL.EC;
 
namespace CY.WebForm.Pages.front
{
 
    /*
    * 特价信息列表(前台)
    * 
    * 作用:展示特价信息列表(前台)
    * 创建时间:2013-4-19 9:36
    * 修改时间:2013-4-19 9:36
    * 创建人:吴崎均
    * 修改人:吴崎均
    */
 
    /// <summary>
    /// 特价信息列表(前台)
    /// </summary>
    public partial class SeckillInfoList : MainPage
    {
 
 
        private EC_SeckillInfoBLL _eC_SeckillInfoBLL = null;//特价信息业务逻辑操作对象
        /// <summary>
        /// 初始化
        /// </summary>
        public SeckillInfoList()
        {
            _eC_SeckillInfoBLL = new EC_SeckillInfoBLL();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                switch (Request["Target"])
                {
                    case "BatchDelete":
                        break;
                    default:
                        UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged;
                        if (!IsPostBack && !IsCallback)
                        {
                            BingData();
                        }
                        else { }
                        return;
                }
            }
            catch (Exception ex)
            {
                PAGEHandleException(ex);
                Response.Clear();
                Response.Write("-1");
            }
            Response.End();
        }
 
        /// <summary>
        /// 分页事件
        /// </summary>
        /// <param name="src"></param>
        /// <param name="e"></param>
        protected void AspNetPager1_PageChanged(object src, EventArgs e)
        {
            BingData();
        }
 
 
        /// <summary>
        /// 绑定数据
        /// </summary>
        private void BingData()
        {
            Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination() { PageSize = UCPager1.AspNetPager.PageSize, PageIndex = UCPager1.AspNetPager.CurrentPageIndex };
            rptData.DataSource = _eC_SeckillInfoBLL.SelectModelPage(pagination, "", 0);
            UCPager1.AspNetPager.RecordCount = pagination.RecordCount;
            rptData.DataBind();
        }
 
    }
}