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
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.Infrastructure.Cache;
using System.Data;
using CY.BLL.Sys;
using CY.Model;
using CY.Infrastructure.Common;
using CY.Infrastructure.Query;
 
namespace CY.WebForm.Pages.Templet.pingxuan.Shared
{
    public partial class CompanyInfo: System.Web.UI.UserControl
    {
        
        Info_ContentBLL bll_Info_ContentBLL = null;
        Info_SortBLL bll_Info_SortBLL = null;
        Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
        //初始化
        public CompanyInfo()
        {
            bll_Info_ContentBLL = new Info_ContentBLL();
            bll_Info_SortBLL = new Info_SortBLL();
            bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
        }
 
        EC_MemberBasicBLL b_EC_MemberBasicBLL = new EC_MemberBasicBLL();
        /// <summary>
        /// 企业网站所属厂商
        /// </summary>
        public EC_MemberBasic CurrentWeb()
        {
            int? bid = Request["i"].ToInt32();
            EC_MemberBasic m_EC_MemberBasic = b_EC_MemberBasicBLL.GetMemberBybid(bid);
            return m_EC_MemberBasic;
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitialData();
            }
        }
        protected void InitialData()
        {
            this.TemplateList.InnerHtml = InitialSelectNewsData();
        
        }
        protected string InitialSelectNewsData()
        {
            string SortTypeHtml = "<table width=\"170\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >";
            List<Info_Content> m_Info_ContentList = bll_Info_ContentBLL.SelectListBySortId(CurrentWeb().MemberId, 4) as List<Info_Content>;
            foreach (var item in m_Info_ContentList)
            {
 
                SortTypeHtml += "<tr><td width=\"20\" align=\"center\" height=\"50\"><img src=\"images/tt.jpg\"></td><td><a href='/Pages/Templet/pingxuan/CompanyNewsDetail.aspx?i=" + CurrentWeb().bid + "&Keyid=" + item.Keyid + "' class=\"hui\">" + item.Title.ToString2().JSubString(32, "..") + "</a></td></tr>";
            }
            SortTypeHtml += "</table>";
            return SortTypeHtml;
        }
    }
}