Hidistro.UI.SaleSystem.CodeBehind/VDefault.cs

(开头部分) 12KB

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

namespace Hidistro.UI.SaleSystem.CodeBehind
{
    using ASPNET.WebControls;
    using Hidistro.Core;
    using Hidistro.Core.Entities;
    using Hidistro.Core.Enums;
    using Hidistro.Entities;
    using Hidistro.Entities.Commodities;
    using Hidistro.Entities.Members;
    using Hidistro.Entities.VShop;
    using Hidistro.SaleSystem.Vshop;
    using Hidistro.UI.Common.Controls;
    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    [ParseChildren(true)]
    public class VDefault : VshopTemplatedWebControl
    {
        private DataTable dtpromotion = null;
        private HtmlImage img;
        private HiImage imglogo;
        protected int itemcount = 0;
        private Literal litattention;
        private Literal litdescription;
        private Literal litImgae;
        private Literal litItemParams;
        private Literal litstorename;
        private Pager pager;
        private VshopTemplatedRepeater rptCategories;
        private VshopTemplatedRepeater rptProducts;

        protected override void AttachChildControls()
        {
            HttpCookie cookie2;
            this.rptCategories = (VshopTemplatedRepeater) this.FindControl("rptCategories");
            this.rptProducts = (VshopTemplatedRepeater) this.FindControl("rptProducts");
            this.rptProducts.ItemDataBound += new RepeaterItemEventHandler(this.rptProducts_ItemDataBound);
            this.rptCategories.ItemDataBound += new RepeaterItemEventHandler(this.rptCategories_ItemDataBound);
            this.img = (HtmlImage) this.FindControl("imgDefaultBg");
            this.pager = (Pager) this.FindControl("pager");
            this.litstorename = (Literal) this.FindControl("litstorename");
            this.litdescription = (Literal) this.FindControl("litdescription");
            this.litattention = (Literal) this.FindControl("litattention");
            this.imglogo = (HiImage) this.FindControl("imglogo");
            this.litImgae = (Literal) this.FindControl("litImgae");
            this.litItemParams = (Literal) this.FindControl("litItemParams");
            if (string.IsNullOrEmpty(this.Page.Request.QueryString["ReferralId"]))
            {
                HttpCookie cookie = HttpContext.Current.Request.Cookies["Vshop-ReferralId"];
                if (!((cookie == null) || string.IsNullOrEmpty(cookie.Value)))
                {
                    this.Page.Response.Redirect("Default.aspx?ReferralId=" + cookie.Value);
                }
            }
            if (this.rptCategories.Visible)
后面还有 190 行代码,购买后查看完整代码

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

AI 解读 AI

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

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