/// <summary>
        /// 出售中的商品
        /// </summary>
        /// <returns></returns>
        public ActionResult Index(string[] itemCatsId,string[] PropValue, string propValues, string title, string itemCode, string catid, int type = 0, int p = 1, int shopId = 0, int companyId = 0)
        {
            ViewBag.propValues = propValues;
            if (itemCatsId != null) ViewBag.ItemCatsId = string.Join(",", itemCatsId.Where(e=>!string.IsNullOrWhiteSpace(e)).ToList());

            if (PropValue != null) ViewBag.PropValue = string.Join(",", PropValue.Where(e=>e!="0"));
            var page = new PageModel<GoodsDetail>();
            var req =
                YunClient.Instance.Execute(
                    new GetItemsRequest
                    {
                        PropIds = propValues,
                        Operation = "PropIds:and",
                        ItemTitle = title,
                        ItemState = 1,
                        ShopCatIds = catid,
                        PageNum = p,
                        PageSize = 20,
                        Sorts = "IdDesc",
                        SaleType = type,
                        IsDelete = 0,
                        ItemCode=itemCode,
                        ShopId=shopId,
                        CompanyId = companyId,
                        ItemCatIds = itemCatsId != null ? itemCatsId.Where(e => !string.IsNullOrWhiteSpace(e)).ToList().LastOrDefault() : "",
                    });

            page.CurrentPage = p;
            page.Items = req.Items;
            page.TotalItems = req.TotalItem;

            return View(page);
        }
Ejemplo n.º 2
0
        //
        // GET: /Admin/Member/

        public ActionResult Index(string email, string mobile, string nick, DateTime? minregtime, DateTime? maxregtime,
            double? minmoney,
            double? maxmoney, long? minscore, long? maxscore, double minprepaid = 0, double maxprepaid = 0, int p = 1)
        {
            var page = new PageModel<UserDetail>();
            var req = YunClient.Instance.Execute(new FindUsersRequest
            {
                Email = email,
                Mobile = mobile,
                Nick = nick,
                MinMoney = minmoney,
                MaxMoney = maxmoney,
                MinScore = minscore,
                MaxScore = maxscore,
                MinRegTime = minregtime,
                MaxRegTime = maxregtime,
                PageNum = p,
                
                PageSize = 20,
                MinPrepaidCard = minprepaid,
                MaxPrepaidCard = maxprepaid
            }, Member.Token);
            page.Items = req.Users;
            page.CurrentPage = p;
            page.TotalItems = req.TotalItem;
            return View(page);
        }
        //
        // GET: /Admin/CashCoupon/

        public ActionResult Index(int p = 1)
        {

            var page = new PageModel<Yun.Marketing.CashCouponDomain>();

            var req = YunClient.Instance.Execute(new FindCashCouponRequest { PageSize = 20, PageNum = p });

            page.Items = req.CashCoupons;
            page.CurrentPage = p;
            page.TotalItems = req.TotalItem;

            return View(page);
        }