Esempio n. 1
0
        public void QueryProductDomain(ProductDomainQueryVM model, int PageSize, int PageIndex, string SortField, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            ProductDomainFilter filter;

            filter             = model.ConvertVM <ProductDomainQueryVM, ProductDomainFilter>();
            filter.CompanyCode = CPApplication.Current.CompanyCode;
            filter.PagingInfo  = new PagingInfo
            {
                PageSize  = PageSize,
                PageIndex = PageIndex,
                SortBy    = SortField
            };

            string relativeUrl = "/IMService/ProductDomain/QueryProductDomain";

            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);

            this.ListControl = this.ucProductDomainList;

            this.Filter = new ProductDomainQueryVM();
        }