public void QueryProductAttachmentList(ProductAttachmentQueryVM model, int PageSize, int PageIndex, string SortField, EventHandler <RestClientEventArgs <dynamic> > callback) { ProductAttachmentQueryFilter filter; filter = model.ConvertVM <ProductAttachmentQueryVM, ProductAttachmentQueryFilter>(); filter.PagingInfo = new PagingInfo { PageSize = PageSize, PageIndex = PageIndex, SortBy = SortField }; string relativeUrl = "/IMService/ProductAttachment/QueryProductAttachmentList"; restClient.QueryDynamicData(relativeUrl, filter, (obj, args) => { if (args.FaultsHandle()) { return; } callback(obj, args); } ); }
public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); model = new ProductAttachmentQueryVM(); this.DataContext = model; }