Example #1
0
        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);
            }
                                        );
        }
Example #2
0
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     model            = new ProductAttachmentQueryVM();
     this.DataContext = model;
 }