Hidistro.UI.SaleSystem.zbCodeBehind/zb/VMyProducts.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace Hidistro.UI.SaleSystem.zbCodeBehind
{
    using Hidistro.Core;
    using Hidistro.SaleSystem.zbVshop;
    using Hidistro.UI.Common.Controls;
    using Newtonsoft.Json;
    using System;
    using System.Data;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    [ParseChildren(true)]
    public class VMyProducts : VMemberTemplatedWebControl
    {
        private int categoryId;
        private string keyWord = string.Empty;
        private Literal litProtuctNoSelNum;
        private Literal litProtuctSelNum;
        private Literal Puserid;
        private VshopTemplatedRepeater rpCategorys;
        private VshopTemplatedRepeater rpChooseProducts;
        private HtmlInputText txtkeywords;

        protected override void AttachChildControls()
        {
            PageTitle.AddSiteNameTitle("已上架商品");
            int.TryParse(this.Page.Request.QueryString["categoryId"], out this.categoryId);
            this.keyWord = this.Page.Request["keyWord"];
            if (!string.IsNullOrWhiteSpace(this.keyWord))
            {
                this.keyWord = this.keyWord.Trim();
            }
            this.txtkeywords = (HtmlInputText) this.FindControl("keywords");
            this.rpChooseProducts = (VshopTemplatedRepeater) this.FindControl("rpChooseProducts");
            this.rpCategorys = (VshopTemplatedRepeater) this.FindControl("rpCategorys");
            this.Puserid = (Literal) this.FindControl("Puserid");
            this.litProtuctSelNum = (Literal) this.FindControl("litProtuctSelNum");
            this.litProtuctNoSelNum = (Literal) this.FindControl("litProtuctNoSelNum");
            this.Puserid.Text = Globals.GetCurrentMemberUserId().ToString();
            this.DataBindSoruce();
        }

        private void DataBindSoruce()
        {
            int num;
            this.txtkeywords.Value = this.keyWord;
            this.rpCategorys.DataSource = CategoryBrowser.GetCategories();
            this.rpCategorys.DataBind();
            this.rpChooseProducts.DataSource = ProductBrowser.GetProducts(Hidistro.SaleSystem.Vshop.MemberProcessor.GetCurrentMember(), null, new int?(this.categoryId), this.keyWord, 1, 20, out num, "DisplaySequence", "desc", true);
            this.rpChooseProducts.DataBind();
            this.litProtuctSelNum.Text = "(" + ProductBrowser.GetProductsNumber(true).ToString() + ")";
            this.litProtuctNoSelNum.Text = "(" + ProductBrowser.GetProductsNumber(false).ToString() + ")";
        }

        protected override void OnInit(EventArgs e)
        {
            string str = HttpContext.Current.Request["task"];
            if (str == "next")
后面还有 27 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。