Exemple #1
0
        /// <summary>
        /// 查找在线商品
        /// </summary>
        /// <param name="QueryStr"></param>
        /// <returns></returns>
        private IList <Item> SearchGoodsOnsales(ref int totalNum, MYDZ.Entity.Goods.QueryCriteriaForOnSales QueryStr = null)
        {
            IList <Item> list       = null;
            tbClientUser clientuser = GetUser("UserInfo");
            string       Type       = null;

            list = goodsinfo.ReturnOnsalesByCriteria(clientuser.UserShops[0].SessionKey.ToString(), ref totalNum, QueryStr);
            return(list);
        }
Exemple #2
0
        public ViewResult SHowGoodsOnsales(MYDZ.Entity.Goods.QueryCriteriaForOnSales QueryStr = null)
        {
            if (QueryStr != null)
            {
                string SellerCids = Request.Form["SellerCids"];
                QueryStr.SellerCids = SellerCids;
            }
            IList <Item> result   = null;
            int          totalNum = 0;

            result           = (SearchGoodsOnsales(ref totalNum, QueryStr));
            ViewBag.totalNum = totalNum;
            return(View(result));
        }