Web.UI/Channel.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using cosmos.Common;
namespace cosmos.Web.UI
{
public class Channel
{
#region 产品类别
public static string ProTxtList(int pId, int kId)
{
cosmos.BLL.Channel bll = new cosmos.BLL.Channel();
StringBuilder strTxt = new StringBuilder();
DataTable dt = bll.GetList(pId, kId);
if (dt.Rows.Count > 0)
{
strTxt.Append("<dl>\n");
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow dr = dt.Rows[i];
if (Convert.ToInt32(dr["ClassLayer"]) == 1)
{
if (i > 0)
{
strTxt.Append("</dl>\n<dl>\n");
}
strTxt.Append("<dt>" + dr["Title"].ToString() + "</dt>\n");
}
else
{
strTxt.Append("<dd><a href=\"ProductList.aspx?classId=" + dr["Id"].ToString() + "\" title=\"" + dr["Title"].ToString() + "\">" + Utils.CutString(dr["Title"].ToString(), 22) + "</a></dd>\n");
}
}
strTxt.Append("</dl>\n");
}
return strTxt.ToString();
}
#endregion
#region 产品类别
public static string ProTxtList1(int pId, int kId)
{
cosmos.BLL.Channel bll = new cosmos.BLL.Channel();
StringBuilder strTxt = new StringBuilder();
DataTable dt = bll.GetList(pId, kId);
if (dt.Rows.Count > 0)
{
strTxt.Append("<dl>\n");
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow dr = dt.Rows[i];
if (Convert.ToInt32(dr["ClassLayer"]) == 1)
{
if (i > 0)
{
strTxt.Append("</dl>\n<dl>\n");
后面还有 48 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。