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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL;
using CY.Model;
using CY.Infrastructure.Query;
using CY.Infrastructure.Common;
 
namespace CY.WebForm.Pages.pay
{
    //吴辉
    //银行卡信息管理
    public partial class BankInfoList : BasePage
    {
        Pay_BankInfoBLL bll_Pay_BankInfoBLL = null;
        //初始化
        public BankInfoList()
        {
            bll_Pay_BankInfoBLL = new Pay_BankInfoBLL();
        }
 
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindList();
            }
 
            if (Request["delete"] != null)
            {
                Pay_BankInfo model = bll_Pay_BankInfoBLL.GetModel(Request["delete"].ToInt32());
                if (bll_Pay_BankInfoBLL.DeleteModel(model))
                {
                    JavaScript.MessageBox("删除成功", this, "window.location='/Pages/pay/BankInfoList.aspx'");
                }
                else
                {
                    JavaScript.MessageBox("删除失败", this);
                }
            }
        }
 
        /// <summary>
        /// 绑定数据
        /// </summary>
        private void BindList()
        {
            this.RepClientList.DataSource = bll_Pay_BankInfoBLL.GetModelListByMemberId(CurrentUser.MemberId);
            this.RepClientList.DataBind();
        }
    }
}