Hidistro.UI.SaleSystem.CodeBehind/VProductConsultations.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.SaleSystem.CodeBehind
{
using Hidistro.Core.Entities;
using Hidistro.Core.Enums;
using Hidistro.Entities.Comments;
using Hidistro.Entities.Commodities;
using Hidistro.SaleSystem.Vshop;
using Hidistro.UI.Common.Controls;
using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
[ParseChildren(true)]
public class VProductConsultations : VMemberTemplatedWebControl
{
private HtmlImage imgProductImage;
private Literal litDescription;
private Literal litProductTitle;
private Literal litSalePrice;
private Literal litShortDescription;
private Literal litSoldCount;
private int productId;
private VshopTemplatedRepeater rptProducts;
private HtmlInputHidden txtTotal;
protected override void AttachChildControls()
{
int num;
int num2;
if (!int.TryParse(this.Page.Request.QueryString["productId"], out this.productId))
{
base.GotoResourceNotFound("");
}
ProductConsultationAndReplyQuery consultationQuery = new ProductConsultationAndReplyQuery();
if (!int.TryParse(this.Page.Request.QueryString["page"], out num))
{
num = 1;
}
if (!int.TryParse(this.Page.Request.QueryString["size"], out num2))
{
num2 = 20;
}
consultationQuery.ProductId = this.productId;
consultationQuery.IsCount = true;
consultationQuery.PageIndex = num;
consultationQuery.PageSize = num2;
consultationQuery.SortBy = "ConsultationId";
consultationQuery.SortOrder = SortAction.Desc;
consultationQuery.HasReplied = true;
this.rptProducts = (VshopTemplatedRepeater) this.FindControl("rptProducts");
this.txtTotal = (HtmlInputHidden) this.FindControl("txtTotal");
DbQueryResult productConsultations = ProductBrowser.GetProductConsultations(consultationQuery);
this.rptProducts.DataSource = productConsultations.Data;
this.rptProducts.DataBind();
this.txtTotal.SetWhenIsNotNull(productConsultations.TotalRecords.ToString());
this.litProductTitle = (Literal) this.FindControl("litProductTitle");
this.litShortDescription = (Literal) this.FindControl("litShortDescription");
this.litSoldCount = (Literal) this.FindControl("litSoldCount");
this.litSalePrice = (Literal) this.FindControl("litSalePrice");
后面还有 21 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
