public void Query(ProductPriceCompareQueryVM vm, PagingInfo pagingInfo, EventHandler <RestClientEventArgs <dynamic> > callback) { var data = vm.ConvertVM <ProductPriceCompareQueryVM, ProductPriceCompareQueryFilter>(); data.PageInfo = pagingInfo; data.CompanyCode = CPApplication.Current.CompanyCode; string relativeUrl = "/MKTService/ProductPriceCompare/Query"; restClient.QueryDynamicData(relativeUrl, data, callback); }
public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); //绑定查询区域中的渠道列表 var channelList = CPApplication.Current.CurrentWebChannelList.ToList <UIWebChannel>(); this.lstChannelList.ItemsSource = channelList; _queryVM = new ProductPriceCompareQueryVM(); this.GridFilter.DataContext = _queryVM; this.lstChannelList.SelectedIndex = 0; this.lstStatus.ItemsSource = EnumConverter.GetKeyValuePairs <ProductPriceCompareStatus>(EnumConverter.EnumAppendItemType.All); }