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;
|
}
|
}
|
}
|