Exemple #1
0
        private void dgProductChannelQueryResult_LoadingDataSource(object sender, LoadingDataEventArgs e)
        {
            ProductChannelInfoQueryFacade facade = new ProductChannelInfoQueryFacade(this);

            model = (ProductChannelQueryVM)this.DataContext;
            facade.QueryProductChannelInfo(model, e.PageSize, e.PageIndex, e.SortField, (obj, args) =>
            {
                var list = new List <dynamic>();
                foreach (var row in args.Result.Rows)
                {
                    list.Add(row);
                }

                this.dgProductChannelQueryResult.ItemsSource = list;
                this.dgProductChannelQueryResult.TotalCount  = args.Result.TotalCount;
            });
            cbDemo.IsChecked = false;
        }
        private void dgProductChannelPeriodPriceQueryResult_LoadingDataSource(object sender, Newegg.Oversea.Silverlight.Controls.Data.LoadingDataEventArgs e)
        {
            ProductChannelInfoQueryFacade facade = new ProductChannelInfoQueryFacade();

            var model = new ProductChannelPeriodPriceQueryVM {
                ChannelProductSysNo = _sysNo
            };

            facade.QueryProductChannelPeriodPrice(model, e.PageSize, e.PageIndex, e.SortField, (obj, args) =>
            {
                var list = new List <dynamic>();
                foreach (var row in args.Result.Rows)
                {
                    list.Add(row);
                }

                this.dgProductChannelPeriodPriceQueryResult.ItemsSource = list;
                this.dgProductChannelPeriodPriceQueryResult.TotalCount  = args.Result.TotalCount;
            });
        }