ASP.NET鲜花在线销售网站(10)

来源:xiaoniu168.com 作者:本站原创 添加时间:2011-11-19 点击数:34750

计算机毕业设计购物车模块介绍:

(五)购物车
此模块显示已经选择完但未生成订单的鲜花信息列表,显示此次购物的总数量和总金额。可以对其生成定单,删除操作。如图:
计算机毕业论文

以下是引用片段:

相关代码如下:
            this.GridView1.DataSource = DataControl.GetDataTable("select * from GWC,Xhxx,Xhlx where GWC.xhbh=XHXX.xhbh and xhxx.lxbh=xhlx.lxbh and Gwc.Kh='" + Session["User".ToString()] + "'"); ;
            this.GridView1.DataBind();
            //从数据库中计算出购物车中此会员的总数量和总金额
            tmpda = DataControl.GetDataTable("select sum(Sl),sum(Je) from GWC where Gwc.Kh='" + Session["User".ToString()] + "'");
            if (tmpda.Rows.Count > 0)
            {
                this.Label1.Text = tmpda.Rows[0][0].ToString();
                this.Label2.Text = tmpda.Rows[0][1].ToString();
            }

〖资料来源:计算机毕业论文 www.xiaoniu168.com

第11页为计算机毕业论文系统论坛模块介绍......

【联系方式】

【本站信誉】

用心做计算机毕业设计论文网