예제 #1
0
        /// <summary>
        /// 查询商品指定位置列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public SortProductRefer QuerySortProductPageList(SortProductRefer request)
        {
            var result = new SortProductRefer();
            var req    = new QuerySortProductPageList();

            req.PageIndex    = request.PageIndex;
            req.PageSize     = request.PageSize;
            req.KeyWordType  = request.SortProductDetail.KeyWordType;
            req.KeyWord      = request.SortProductDetail.KeyWord;
            req.ProductId    = request.SortProductDetail.ProductJson;
            req.Enable       = request.SortProductDetail.Enable;
            req.Usablestatus = request.SortProductDetail.Usablestatus;

            var res = MKMSClient.Send <QuerySortProductPageListResponse>(req);

            if (res.DoFlag)
            {
                result.List  = Mapper.MappGereric <SortProductDto, SortProductDetail>(res.SortProductListDto);
                result.Total = res.Total;
            }
            result.SortProductDetail = request.SortProductDetail;
            result.PageIndex         = request.PageIndex;
            result.PageSize          = request.PageSize;
            return(result);
        }
예제 #2
0
        //1展示查询列表
        public ActionResult Index(SortProductRefer search)
        {
            var result = new SortProductRefer();

            if (search.SortProductDetail.KeyWord != null)
            {
                search.SortProductDetail.KeyWord = search.SortProductDetail.KeyWord.Trim();
            }
            if (search.SortProductDetail.ProductJson != null)
            {
                search.SortProductDetail.ProductJson = search.SortProductDetail.ProductJson.Trim();
            }
            result = SortProductConfigClient.Instance.QuerySortProductPageList(search);
            return(View(result));
        }