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
88
89
90
91
92
93
94
95
96
97
98
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:45
    * 修改时间:2013-4-19 9:45
    * 创建人:吴崎均
    * 修改人:吴崎均
    */
 
    /// <summary>
    /// 特价业务列表(前台展示)
    /// </summary>
    public partial class SeckillBusinessList : FrontBasePage
    {
        private EC_SeckillBusinessBLL _eC_SeckillBusinessBLL = null;//特价秒杀业务逻辑操作对象
        /// <summary>
        /// 初始化
        /// </summary>
        public SeckillBusinessList()
        {
            _eC_SeckillBusinessBLL = new EC_SeckillBusinessBLL();
        }
        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_SeckillBusinessBLL.SelectModelPage(pagination, "", 0, null, null);
            UCPager1.AspNetPager.RecordCount = pagination.RecordCount;
            rptData.DataBind();
        }
 
    }
}