Backup/Web/Client/GoodsDetails.aspx.cs

(开头部分) 11KB

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

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Text.RegularExpressions;

namespace MrZeng.Web.Client
{
    public partial class GoodsDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["id"] != null)
            {
                int id = Convert.ToInt32(Request.QueryString["id"]);
                GoodsDetailsBind(id);
                CommentGoodsBind();
            }
            else
            {
                Response.Redirect("Default.aspx");
            }
        }

        /// <summary>
        /// 商品详情绑定
        /// </summary>
        /// <param name="id"></param>
        private void GoodsDetailsBind(int id)
        {
            MrZeng.BLL.P_GoodsInfo bll = new MrZeng.BLL.P_GoodsInfo();
            MrZeng.Model.P_GoodsInfo model = bll.GetModel(id);
            this.GoodsID.Text = model.GoodsID;
            this.GoodsName.Text = model.GoodsName;
            this.GoodsType.Text = model.GoodsType;
            this.IsDiscount.Text = GetIsDiscount(model.IsDiscount);
            this.LoadDate.Text = model.LoadDate.ToString();
            this.GoodsUnit.Text = model.GoodsUnit;
            this.GoodsUnit2.Text = model.GoodsUnit;
            this.GoodsUnit3.Text = model.GoodsUnit;
            this.GoodsSum.Text = model.GoodsSum.ToString();
            this.ImageUrl.ImageUrl = "~" + model.ImageUrl;
            this.SellPrice.Text = model.SellPrice.ToString();
            this.SellSum.Text = model.SellSum.ToString();
            this.ClickCount.Text = model.ClickCount.ToString();
            this.CommentCount.Text = model.CommentCount.ToString();
            this.Describe.Text = model.Describe;
            this.RecommendCount.Text = model.RecommendCount.ToString();
            this.UserNum.Text = model.UserNum;
            UpdateClickCount();
        }

        private void UpdateClickCount()
        {
后面还有 237 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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