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.Default.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 = "<ul>";
|
List<Info_Content> m_Info_ContentList = bll_Info_ContentBLL.SelectListBySortId(CurrentWeb().MemberId, 7) as List<Info_Content>;
|
if (m_Info_ContentList != null && m_Info_ContentList.Count > 0)
|
{
|
foreach (var item in m_Info_ContentList)
|
{
|
SortTypeHtml += "<li><a href='/Pages/Templet/Default/CompanyNewsDetail.aspx?i=" + CurrentWeb().bid + "&Keyid=" + item.Keyid + "'>" + item.Title.ToString2().JSubString(25, "..") + "</a></li>";
|
}
|
}
|
SortTypeHtml += "</ul>";
|
return SortTypeHtml;
|
}
|
}
|
}
|