protected override IEnumerable GetResults()
 {
     AccountService.ServiceQueryOptions options = new AccountService.ServiceQueryOptions();
     options.PageNumber = Grid.CurrentPageIndex;
     options.PageSize = Grid.PageSize;
     return SessionManager.GetCollection<TransitAccountActivity, AccountService.ServiceQueryOptions, string>(
         SearchQuery, options, SessionManager.AccountService.SearchAccounts);
 }
 protected override IEnumerable GetResults()
 {
     AccountService.ServiceQueryOptions options = new AccountService.ServiceQueryOptions();
     options.PageNumber = Grid.CurrentPageIndex;
     options.PageSize   = Grid.PageSize;
     return(SessionManager.GetCollection <TransitAccountActivity, AccountService.ServiceQueryOptions, string>(
                SearchQuery, options, SessionManager.AccountService.SearchAccounts));
 }
示例#3
0
 void gridManage_OnGetDataSource(object sender, EventArgs e)
 {
     AccountPicturesQueryOptions ap = new AccountPicturesQueryOptions();
     ap.Hidden = false;
     AccountService.ServiceQueryOptions options = new AccountService.ServiceQueryOptions();
     options.PageSize = gridManage.PageSize;
     options.PageNumber = gridManage.CurrentPageIndex;
     gridManage.DataSource = SessionManager.GetCollection<TransitAccountPicture, AccountService.ServiceQueryOptions, int, AccountPicturesQueryOptions>(
         RequestId, ap, options, SessionManager.AccountService.GetAccountPictures);
 }
    void gridManage_OnGetDataSource(object sender, EventArgs e)
    {
        AccountPicturesQueryOptions ap = new AccountPicturesQueryOptions();

        ap.Hidden = false;
        AccountService.ServiceQueryOptions options = new AccountService.ServiceQueryOptions();
        options.PageSize      = gridManage.PageSize;
        options.PageNumber    = gridManage.CurrentPageIndex;
        gridManage.DataSource = SessionManager.GetCollection <TransitAccountPicture, AccountService.ServiceQueryOptions, int, AccountPicturesQueryOptions>(
            RequestId, ap, options, SessionManager.AccountService.GetAccountPictures);
    }