ActionLabel/Order.cs
(完整代码) 2KBusing System;
using System.Text;
using System.Data;
using Common;
namespace ActionLabel
{
public class Order
{
/// <summary>
/// 订单产品
/// </summary>
/// <param name="top">显示条数</param>
/// <param name="txtNum">显示字数</param>
/// <param name="where">查询条件</param>
/// <param name="orderby">排序条件</param>
/// <param name="UrlPath">伪静态标示</param>
/// <returns></returns>
public static string ViewTxtList(int txtNum, string strWhere,string UrlPath)
{
BLL.ShoppingCart bll = new BLL.ShoppingCart();
StringBuilder strTxt = new StringBuilder();
DataSet ds = bll.GetList(strWhere);
if (ds.Tables[0].Rows.Count > 0)
{
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
DataRow dr = ds.Tables[0].Rows[i];
//strTxt.Append("<tr>");
strTxt.Append("<td rowspan=\"\"><div class=\"info-pic\"><a href='" + BasePage.URLRewrite(dr["UrlPath"].ToString(), dr["ProductId"]) + "' target='_blank' ><img src='" + dr["ProductImg"] + "' class='imggoods' onerror=\"this.onerror='';this.src='/images/default.jpg'\" alt=\"\" /></a></div>");
strTxt.Append("<div class=\"info-title\" ><a href='" + BasePage.URLRewrite(dr["UrlPath"].ToString(), dr["ProductId"]) + "' class=\"link-bule\" title='" + dr["ProductName"] + "' >" + Utils.CutString(dr["ProductName"].ToString(), txtNum) + "</a></div></td>");
strTxt.Append("<td rowspan=\"\"><p>" + dr["ProductPrice"] + "*"+dr["Number"]+"</p></td>");
//strTxt.Append("<td class=\"dd_cpsb\">" + dr["Number"] + " 个</td>");
//strTxt.Append("<td class=\"dd_cpsp\"> </td>");
//strTxt.Append("</tr>");
}
}
else
{
strTxt.Append("<li>暂无数据显示...</li>");
}
return strTxt.ToString();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。