コード例 #1
0
        private void LL()
        {
            string sSQL = "select FK_Pro_Class,FK_Join,ProName,Number,PicS,PicB,UnitNum,Unit,StockN,SellN,SellN1,hit,Detail1,Detail2,AddDate,EditDate,ProIsHas,Item from vgCaiPu_Info where ProSN=" + id;

            d = new SqlDataSelect(sSQL);

            if (d.Count > 0)
            {
                int FK_Pro_Class = Convert.ToInt32(d.Eval("FK_Pro_Class"));
                CurPath(FK_Pro_Class); //位置

                ShowAttr();            //显示属性
                GetClassAttr();        //分类属性
                Relate();              //相关食谱
                GetGZ();               //关注

                PicList();             //商品多张图片
                MsgList();
                SameClass(FK_Pro_Class);
                //this.ucHistory.ProID = id;
                FnData.SetHistory("caiPuHistory", id, 5);
                GetFraction();
                HitAdd();
                GetChild();
            }
        }
コード例 #2
0
        private void LL()
        {
            string sSQL = "select FK_Pro_Class,JoinType,ProName,Number,PicS,PicB,Price,Price1,PriceMarket,PriceCost,UnitNum,Unit,SellN,SellN1,hit,Detail1,Detail2,AddDate,ProIsHas,Item,MS_StartTime,MS_EndTime from vgPro_Info where ProSN=" + id;

            d = new SqlDataSelect(sSQL);

            if (d.Count > 0)
            {
                item = int.Parse(d.Eval("Item").ToString());
                int FK_Pro_Class = Convert.ToInt32(d.Eval("FK_Pro_Class"));
                CurPath(FK_Pro_Class);//位置

                //ShowAttr();//菜篮子 无公害
                GetItemValue(); //显示属性

                GetMS();        //秒杀
                Relate();       //相关食谱,套餐
                GetGZ();        //关注

                PicList();      //商品多张图片
                EvaluateList(); //评价列表
                ProSameClass(FK_Pro_Class);
                //this.ucHistory.ProID = id;

                FnData.SetHistory("proHistory", id, 5);

                GetFraction();
                HitAdd();
            }
        }