Пример #1
0
        public void GetCategoryRequestApprovalList(CategoryRequestApprovalQueryVM model, int PageSize, int PageIndex, string SortField, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            CategoryRequestApprovalQueryFilter query = new CategoryRequestApprovalQueryFilter();

            query            = model.ConvertVM <CategoryRequestApprovalQueryVM, CategoryRequestApprovalQueryFilter>();
            query.PagingInfo = new PagingInfo
            {
                PageSize  = PageSize,
                PageIndex = PageIndex,
                SortBy    = SortField
            };
            restClient.QueryDynamicData(GetCategoryRequestApprovalListUrl, query, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                callback(obj, args);
            });
        }
 public override void OnPageLoad(object sender, EventArgs e)
 {
     base.OnPageLoad(sender, e);
     model            = new CategoryRequestApprovalQueryVM();
     this.DataContext = model;
 }