Esempio n. 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();
            }
        }
Esempio n. 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();
            }
        }
Esempio n. 3
0
        /// <summary>
        /// 公告 首页
        /// </summary>
        public static StringBuilder listNotice1(DataTable dt, LayoutInfoLink li)
        {
            StringBuilder sb = new StringBuilder();

            foreach (DataRow drw in dt.Rows)
            {
                sb.Append("<li>");
                sb.Append("<a href=\"" + GetURL.News.Info(drw) + "\" " + li.target + " title=\"" + drw["Title"] + "\">" + FnData.GetNewsTitle(drw) + "</a>");
                //sb.Append("<img src=\"/images/index/Notice_0" + FnData.GetNewsImg(drw) + ".gif\" />");
                //sb.Append("<span><a href=\"" + GetURL.News.Info(drw) + "\" " + li.target + " title=\"" + drw["Title"] + "\">" + FnData.GetNewsTitle(drw) + "</a></span>");
                sb.Append("</li>");
            }
            return(sb);
        }
Esempio n. 4
0
        /// <summary>
        /// 新闻列表 需要 UrlType,Url,Title1,Title,NewsSN
        /// </summary>
        /// <param name="dt"></param>
        /// <param name="li"></param>
        /// <returns></returns>
        public static StringBuilder list3(DataTable dt, LayoutInfoLink li)
        {
            StringBuilder sb = new StringBuilder();

            foreach (DataRow drw in dt.Rows)
            {
                sb.Append("<li>");
                sb.Append("<a href=\"" + GetURL.News.Info(drw) + "\" " + li.target + " title=\"" + drw["Title"] + "\">" + FnData.GetNewsTitle(drw) + "</a>");
                sb.Append("</li>");
            }
            return(sb);
        }
Esempio n. 5
0
        /// <summary>
        /// 新闻列表 需要 UrlType,Url,Title1,Title,NewsSN,EditDate
        /// </summary>
        /// <param name="dt"></param>
        /// <param name="li"></param>
        /// <returns></returns>
        public static StringBuilder list2(DataTable dt, LayoutInfoLink li)
        {
            StringBuilder sb = new StringBuilder();

            foreach (DataRow drw in dt.Rows)
            {
                sb.Append("<li>");
                sb.Append("<a href=\"" + GetURL.News.Info(drw) + "\" " + li.target + " title=\"" + drw["Title"] + "\">" + FnData.GetNewsTitle(drw) + "</a> <span class=\"newsdate\">" + Fn.IsDate(drw["EditDate"].ToString(), DateTime.Now).ToString("yyyy-MM-dd") + "</span>");
                sb.Append("</li>");
            }
            return(sb);
        }
Esempio n. 6
0
        //新闻首页图文
        private StringBuilder NewsHomePic(DataTable dt)
        {
            StringBuilder sb = new StringBuilder();

            foreach (DataRow drw in dt.Rows)
            {
                sb.Append("<div class=\"left\">");
                sb.Append("<a href=\"" + GetURL.News.Info(drw) + "\" target=\"_blank\">");
                sb.Append("<img src=\"" + GetURL.News.Pic(drw["PicS"]) + "\" width=\"81\" height=\"79\" alt=\"" + drw["Title"] + "\" /></a>");
                sb.Append("</div>");

                sb.Append("<div class=\"right\">");
                sb.Append("<dl class=\"plate-top\">");

                sb.Append("<dt><a href=\"" + GetURL.News.Info(drw) + "\" target=\"_blank\">" + FnData.GetNewsTitle(drw) + "</a></dt>");
                sb.Append("<dd>" + Fn.Left(Fn.ReplaceHTML(drw["Detail"].ToString()), 20, "...") + "</dd>");

                sb.Append("</dl>");
                sb.Append("</div>");
            }
            return(sb);
        }