示例#1
0
        public void Query(HotSaleCategoryQueryVM vm, PagingInfo pagingInfo, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            var data = vm.ConvertVM <HotSaleCategoryQueryVM, HotSaleCategoryQueryFilter>();

            data.PageInfo    = pagingInfo;
            data.CompanyCode = CPApplication.Current.CompanyCode;
            string relativeUrl = "/MKTService/HotSaleCategory/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>();

            //channelList.Insert(0, new UIWebChannel { ChannelName = ResCommonEnum.Enum_All });
            this.lstChannelList.ItemsSource = channelList;

            _queryVM = new HotSaleCategoryQueryVM();
            this.GridFilter.DataContext       = _queryVM;
            this.lstChannelList.SelectedIndex = 0;

            this.lstStatus.ItemsSource = EnumConverter.GetKeyValuePairs <ADStatus>(EnumConverter.EnumAppendItemType.All);
        }