private void BindData() { Tz888.BLL.Info.MatchInfoBLL bll = new Tz888.BLL.Info.MatchInfoBLL(); long intCurrentPage = 1; long intCurrentPageSize = 5; long intTotalCount = 5; this.RfInfo.DataSource = bll.GetMatchList(this._matchType, this._infoID, "*", "", "PublishT Desc,InfoID DESC", ref intCurrentPage, intCurrentPageSize, ref intTotalCount); this.RfInfo.DataBind(); DataView dv = new DataView(); dv = bll.GetMatchList(this._matchType, this._infoID, "*", "", "PublishT Desc,InfoID DESC", ref intCurrentPage, intCurrentPageSize, ref intTotalCount); }
private void LoadMatch() { Tz888.BLL.Info.MatchInfoBLL bll = new Tz888.BLL.Info.MatchInfoBLL(); long intCurrentPage = 1; long intCurrentPageSize = 30; long intTotalCount = 30; this.RfMatch.DataSource = bll.GetMatchList(this._matchType, this._infoID, "*", "", "PublishT Desc,InfoID DESC", ref intCurrentPage, intCurrentPageSize, ref intTotalCount); this.RfMatch.DataBind(); }
public string GetOtherResource(string InfoID) { StringBuilder sOut = new StringBuilder(); string doMainUrl = Tz888.Common.Common.GetWWWDomain(); Tz888.BLL.Info.MatchInfoBLL miBll = new Tz888.BLL.Info.MatchInfoBLL(); long CurrentPage = 1; long TotalCount = 10; DataView dv = miBll.GetMatchList("CC", Convert.ToInt64(InfoID), "InfoID", "", "degree asc", ref CurrentPage, 10, ref TotalCount); int IsVip = this.GetUserGrad(InfoID); if (IsVip == 0) { if (dv != null && dv.Table.Rows.Count > 0) { sOut.Append("<table width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">" + "<tr>" + "<td width=\"52%\" align=\"left\">" + "<font color=\"#888888\"><b>项目名称</b></font></td>" + "<td width=\"16%\" align=\"left\">" + "<font color=\"#888888\"><b>融资金额</b></font></td>" + "<td width=\"32%\" align=\"left\">" + "<font color=\"#888888\"><b>所属行业</b></font></td>" + "</tr>"); Tz888.BLL.Info.V124.CapitalInfoBLL bll = new Tz888.BLL.Info.V124.CapitalInfoBLL(); for (int i = 0; i < dv.Table.Rows.Count; i++) { long tmpId = Convert.ToInt64(dv.Table.Rows[i]["InfoID"]); Tz888.Model.Info.V124.CapitalSetModel model = bll.GetIntegrityModel(tmpId); string industryname = ""; for (int j = 0; j < model.CapitalInfoModel.IndustryBName.Count; j++) { string temp = model.CapitalInfoModel.IndustryBName[j]; if (!string.IsNullOrEmpty(temp)) { if (j != (model.CapitalInfoModel.IndustryBName.Count - 1)) { industryname += temp + " "; } else { industryname += temp; } } } sOut.Append("<tr>" + "<td align=\"left\" bgcolor=\"#f6f6f6\">" + "·<a href=\"" + doMainUrl + "/" + model.MainInfoModel.HtmlFile + "\">" + model.MainInfoModel.Title + "</a> " + model.MainInfoModel.publishT.ToString("yyyy-MM-dd") + "</td>" + "<td align=\"left\" bgcolor=\"#f6f6f6\">" + model.CapitalInfoModel.CapitalName + "</td>" + "<td align=\"left\" bgcolor=\"#f6f6f6\">" + industryname + "</td>" + "</tr>"); } sOut.Append("</table>"); } else { sOut.Append("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"listtab\"><tr><td align=\"center\" class=\"title\">没有相关资源</td></tr></table>"); } } else if (IsVip == 1) { if (dv != null && dv.Table.Rows.Count > 0) { sOut.Append("<div class=\"leftbox\"><ul>"); Tz888.BLL.Info.V124.CapitalInfoBLL bll = new Tz888.BLL.Info.V124.CapitalInfoBLL(); string RowModel = "<li>·<a href=\"{0}\">{1} </a>{2} <span>{3}</span></li>"; for (int i = 0; i < dv.Table.Rows.Count; i++) { long tmpId = Convert.ToInt64(dv.Table.Rows[i]["InfoID"]); Tz888.Model.Info.V124.CapitalSetModel model = bll.GetIntegrityModel(tmpId); string HtmlFile = doMainUrl + "/" + model.MainInfoModel.HtmlFile; string Title = model.MainInfoModel.Title; string PublishTime = model.MainInfoModel.publishT.ToString("yyyy-MM-dd"); string CapitalName = model.CapitalInfoModel.CapitalName; if (i == 5) { sOut.Append("</ul></div><div class=\"leftbox\"><ul>"); } sOut.Append(string.Format(RowModel, HtmlFile, Title, PublishTime, CapitalName)); } sOut.Append("</ul></div>"); } else { sOut.Append(""); } } if (string.IsNullOrEmpty(sOut.ToString())) { sOut.Append("没有相关的资源"); } return(sOut.ToString().Trim()); }