/// <summary> /// 扩展属性列表显示&查找。 /// </summary> /// <param name="so">查询条件</param> /// <returns>查询结果视图</returns> public ActionResult Index(ExtensionPropertySO so) { var rsp = this.ExtensionPropertyService.SearchExtensionProperties(so); this.ViewBag.Categories = this.ExtensionPropertyService.GetCategories(); return View(rsp); }
/// <summary> /// 查询并分页获取扩展属性信息。 /// </summary> /// <param name="so">查询条件</param> /// <returns>返回扩展属性的分页查询结果</returns> public ResponseSet<ExtensionProperty> SearchExtensionProperties(ExtensionPropertySO so) { so = so ?? new ExtensionPropertySO(); return this.InvokePagingService( nameof(SearchExtensionProperties), (out int totalRecords) => this.Persistence.QueryForPaginatedList<ExtensionProperty>(NS, "SearchExtensionProperties", out totalRecords, so), so); }
public ActionResult Search(ExtensionPropertySO so) { var rsp = this.ExtensionPropertyService.SearchExtensionProperties(so); return PartialView("_Properties", rsp); }