Exemple #1
0
 void ARReceiveDetails_Loaded(object sender, RoutedEventArgs e)
 {
     this.dgQueryDetials.Bind();
     m_facade = new ReceivedReportFacade();
     m_facade.ARReceiveDetialsQuery(m_queryRequest, (obj, args) =>
     {
         if (args.FaultsHandle())
         {
             return;
         }
         this.dgQueryDetials.TotalCount  = args.Result.TotalCount;
         this.dgQueryDetials.ItemsSource = args.Result.Rows;
     });
 }
Exemple #2
0
        private void dgQueryDetials_LoadingDataSource(object sender, Newegg.Oversea.Silverlight.Controls.Data.LoadingDataEventArgs e)
        {
            m_queryRequest.PagingInfo = new PagingInfo()
            {
                PageSize  = e.PageSize,
                PageIndex = e.PageIndex,
                SortBy    = e.SortField
            };

            m_facade = new ReceivedReportFacade();
            m_facade.ARReceiveDetialsQuery(m_queryRequest, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                this.dgQueryDetials.TotalCount  = args.Result.TotalCount;
                this.dgQueryDetials.ItemsSource = args.Result.Rows;
            });
        }