Exemple #1
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);

            PageQueryView = new SecondDomainQueryVM();

            vendorFacade = new ECCentral.Portal.UI.PO.Facades.VendorFacade(this);

            this.DataContext = PageQueryView;
        }
Exemple #2
0
        public void QuerySecondDomain(SecondDomainQueryVM model, int pageIndex, int pageSize, string sortField, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            SecondDomainQueryFilter filter = model.ConvertVM <SecondDomainQueryVM, SecondDomainQueryFilter>();

            filter.PageInfo = new QueryFilter.Common.PagingInfo()
            {
                PageIndex = pageIndex,
                PageSize  = pageSize,
                SortBy    = sortField
            };

            string relativeUrl = "/POService/VendorStore/QuerySecondDomain";

            restClient.QueryDynamicData(relativeUrl, filter, callback);
        }