// GET: /ProductLabel/ #region 商品标签列表 public ActionResult Index(ProductLabelRefer productLabel) { var result = new ProductLabelRefer(); result = ProductLabelClient.Instance.QueryBasetLabels(productLabel); return(View(result)); }
/// <summary> /// 商品标签列表 /// </summary> /// <param name="productLabel"></param> /// <returns></returns> public ProductLabelRefer QueryBasetLabels(ProductLabelRefer productLabel) { var result = new ProductLabelRefer(); var req = new QueryBasetLabelsRequest(); if (productLabel.SearchDetail != null) { req.LabelName = productLabel.SearchDetail.LabelName; req.LabelcontentValue = productLabel.SearchDetail.LabelcontentValue; } req.PageIndex = productLabel.PageIndex; req.PageSize = productLabel.PageSize; var res = CMSClient.Send <QueryBasetLabelsResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <base_t_LabelsExt, ProductLabelDetail>(res.BaseTLabelsDos); result.Total = res.Total; } result.SearchDetail = productLabel.SearchDetail; result.PageIndex = productLabel.PageIndex; result.PageSize = productLabel.PageSize; return(result); }