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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL.Info;
using CY.Infrastructure.Common;
using CY.Model;
using CY.Infrastructure.Query;
using CY.BLL;
using CY.BLL.Sys;
 
namespace CY.WebForm.Pages.Templet.Default
{
    public partial class CompanySuccessEX : TempletBasePage
    {
        Info_ContentBLL bll_Info_ContentBLL = null;
        Info_SortBLL bll_Info_SortBLL = null;
        Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
 
        public CompanySuccessEX()
        {
            bll_Info_ContentBLL = new Info_ContentBLL();
            bll_Info_SortBLL = new Info_SortBLL();
            bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
            EC_MemberBasicBLL b_EC_MemberBasicBLL = new EC_MemberBasicBLL();
            EC_MemberBasic mx_EC_MemberBasic = b_EC_MemberBasicBLL.GetMemberByMemberId(CurrentWeb().MemberId);
            this.Title += "-" + mx_EC_MemberBasic.Name;
 
            if (!IsPostBack)
            {
                BindList();
            }
        }
 
        private void BindList()
        {
            Pagination pa = new Pagination();
            pa.PageSize = 500;
            pa.PageIndex = 1;
            List<Info_Content> m_Info_ContentList = bll_Info_ContentBLL.SelectModelPage(pa, CurrentWeb().MemberId.ToGuid2(), bll_Sys_DictionaryBLL.GetKeyIdByKeyid(8, "网站资讯类型").ToInt32(), bll_Sys_DictionaryBLL.GetKeyIdByKeyid(8, "网站资讯类型").ToInt32(), null, "OrderNum ASC") as List<Info_Content>;
            this.Repeater2.DataSource = m_Info_ContentList;
            this.Repeater2.DataBind();
 
            if (!string.IsNullOrEmpty(Request["keyid"]))
            {
                Info_Content m_Info_Content = bll_Info_ContentBLL.SelectModelBySortId(Request["keyid"].ToInt32());
                if (m_Info_Content != null)
                {
                    this.smallTitle.InnerText =" - "+ m_Info_Content.Title;
                    this.divContent.InnerHtml = m_Info_Content.InfoContent;
                }
            }
            else
            {
                if (m_Info_ContentList.Count > 0)
                {
                    this.smallTitle.InnerText = " - " + m_Info_ContentList[0].Title;
                    this.divContent.InnerHtml = m_Info_ContentList[0].InfoContent;
                }
            }
        }
 
        protected void AspNetPager1_PageChanged(object src, EventArgs e)
        {
            BindList();
        }
    }
}