當前位置: 首頁>>代碼示例>>C#>>正文


C# WebServices.ServiceQueryOptions類代碼示例

本文整理匯總了C#中SnCore.WebServices.ServiceQueryOptions的典型用法代碼示例。如果您正苦於以下問題:C# ServiceQueryOptions類的具體用法?C# ServiceQueryOptions怎麽用?C# ServiceQueryOptions使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ServiceQueryOptions類屬於SnCore.WebServices命名空間,在下文中一共展示了ServiceQueryOptions類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: gridManage_OnGetDataSource

 void gridManage_OnGetDataSource(object sender, EventArgs e)
 {
     ServiceQueryOptions options = new ServiceQueryOptions();
     options.PageSize = gridManage.PageSize;
     options.PageNumber = gridManage.CurrentPageIndex;
     gridManage.DataSource = SessionManager.AccountService.GetAllAccountRedirects(SessionManager.Ticket, options);
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:SystemAccountRedirectsManage.aspx.cs

示例2: GetPublicAccountGroups

 public List<TransitAccountGroup> GetPublicAccountGroups(string ticket, ServiceQueryOptions options)
 {
     ICriterion[] expressions = { Expression.Eq("IsPrivate", false) };
     Order[] orders = { Order.Desc("Created") };
     return WebServiceImpl<TransitAccountGroup, ManagedAccountGroup, AccountGroup>.GetList(
         ticket, options, expressions, orders);
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:WebGroupService.cs

示例3: gridManage_OnGetDataSource

 void gridManage_OnGetDataSource(object sender, EventArgs e)
 {
     ServiceQueryOptions options = new ServiceQueryOptions();
     options.PageNumber = gridManage.CurrentPageIndex;
     options.PageSize = gridManage.PageSize;
     gridManage.DataSource = SessionManager.MarketingService.GetCampaigns(SessionManager.Ticket, options);
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:MarketingCampaignsManage.aspx.cs

示例4: GetServiceQueryOptions

 public ServiceQueryOptions GetServiceQueryOptions()
 {
     ServiceQueryOptions options = new ServiceQueryOptions();
     options.PageNumber = Grid.CurrentPageIndex;
     options.PageSize = Grid.PageSize;
     return options;
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:SearchControl.cs

示例5: gridManage_OnGetDataSource

 void gridManage_OnGetDataSource(object sender, EventArgs e)
 {
     ServiceQueryOptions serviceoptions = new ServiceQueryOptions(gridManage.PageSize, gridManage.CurrentPageIndex);
     gridManage.DataSource = SessionManager.GetCollection<TransitAccountGroup>(
         serviceoptions, SessionManager.GroupService.GetAccountGroups);
     panelLinks.Update();
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:AccountGroupsView.aspx.cs

示例6: PlaceWebsites_OnGetDataSource

 void PlaceWebsites_OnGetDataSource(object sender, EventArgs e)
 {
     ServiceQueryOptions options = new ServiceQueryOptions(PlaceWebsites.PageSize, PlaceWebsites.CurrentPageIndex);
     PlaceWebsites.DataSource = SessionManager.GetCollection<TransitPlaceWebsite, int>(
         PlaceId, options, SessionManager.PlaceService.GetPlaceWebsites);
     panelGrid.Update();
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:PlaceWebsitesViewControl.ascx.cs

示例7: queue_OnGetDataSource

 void queue_OnGetDataSource(object sender, EventArgs e)
 {
     ServiceQueryOptions options = new ServiceQueryOptions();
     options.PageNumber = queue.CurrentPageIndex;
     options.PageSize = queue.PageSize;
     queue.DataSource = SessionManager.PlaceService.GetPlaceQueueItems(SessionManager.Ticket, RequestId, options);
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:AccountPlaceQueueManage.aspx.cs

示例8: gridManageFavorites_OnGetDataSource

 void gridManageFavorites_OnGetDataSource(object sender, EventArgs e)
 {
         ServiceQueryOptions serviceoptions = new ServiceQueryOptions(
             gridManageFavorites.PageSize, gridManageFavorites.CurrentPageIndex);
         gridManageFavorites.DataSource = SessionManager.GetCollection<TransitPlace>(
             serviceoptions, SessionManager.PlaceService.GetFavoritePlaces);
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:PlacesFavoritesView.aspx.cs

示例9: accountWebsites_OnGetDataSource

 void accountWebsites_OnGetDataSource(object sender, EventArgs e)
 {
     ServiceQueryOptions options = new ServiceQueryOptions(accountWebsites.PageSize, accountWebsites.CurrentPageIndex);
     accountWebsites.DataSource = SessionManager.GetCollection<TransitAccountWebsite, int>(
         AccountId, options, SessionManager.AccountService.GetAccountWebsites);
     panelGrid.Update();
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:AccountWebsitesViewControl.ascx.cs

示例10: Page_Load

    public void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int pagenumber = int.Parse(Request["PageNumber"]);
            int pagecount = int.Parse(Request["PageCount"]);
            int pagesize = int.Parse(Request["PageSize"]);

            ServiceQueryOptions serviceoptions = new ServiceQueryOptions();
            serviceoptions.PageSize = pagesize;
            serviceoptions.PageNumber = pagenumber;

            TransitAccountFeedQueryOptions options = new TransitAccountFeedQueryOptions();
            gridManage.DataSource = SessionManager.SyndicationService.GetAccountFeeds(
                SessionManager.Ticket, options, serviceoptions);
            gridManage.DataBind();

            if (pagenumber > 0)
                linkPrev.HRef = string.Format("AccountFeedsViewList.aspx?PageNumber={0}&PageSize={1}&PageCount={2}",
                    pagenumber - 1, pagesize, pagecount);

            if (pagenumber < pagecount - 1)
                linkNext.HRef = string.Format("AccountFeedsViewList.aspx?PageNumber={0}&PageSize={1}&PageCount={2}",
                    pagenumber + 1, pagesize, pagecount);
        }
    }
開發者ID:dblock,項目名稱:sncore,代碼行數:26,代碼來源:AccountFeedsViewList.aspx.cs

示例11: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ServiceQueryOptions options = new ServiceQueryOptions();
         options.PageNumber = 0;
         options.PageSize = 10;
         // get new members
         rssRepeaterMembers.DataSource = SessionManager.GetCollection<TransitAccountGroupAccount, int>(
             AccountGroupId, options, SessionManager.GroupService.GetAccountGroupAccounts);
         rssRepeaterMembers.DataBind();
         // get new places
         rssRepeaterPlaces.DataSource = SessionManager.GetCollection<TransitAccountGroupPlace, int>(
             AccountGroupId, options, SessionManager.GroupService.GetAccountGroupPlaces);
         rssRepeaterPlaces.DataBind();
         // get new discussion posts
         discussionsRss.ObjectId = RequestId;
         discussionsRss.Type = "AccountGroup";
         // get new blog posts
         if (AccountGroup.AccountBlogId > 0)
         {
             rssRepeaterBlogItems.DataSource = SessionManager.GetCollection<TransitAccountBlogPost, TransitAccountBlogPostQueryOptions>(
                 GetBlogPostsOptions(), options, SessionManager.BlogService.GetAccountBlogPosts);
             rssRepeaterBlogItems.DataBind();
         }
     }
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:27,代碼來源:AccountGroupRss.aspx.cs

示例12: GetAccountBlogs

 public List<TransitAccountBlog> GetAccountBlogs(string ticket, int id, ServiceQueryOptions options)
 {
     ICriterion[] expression = { Expression.Eq("Account.Id", id) };
     Order[] orders = { Order.Desc("Created") };
     return WebServiceImpl<TransitAccountBlog, ManagedAccountBlog, AccountBlog>.GetList(
         ticket, options, expression, orders);
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:WebBlogService.cs

示例13: GetData

    private void GetData()
    {
        ServiceQueryOptions serviceoptions = new ServiceQueryOptions();
        serviceoptions.PageSize = accounts.RepeatColumns;

        // accounts
        accounts.DataSource = SessionManager.GetCollection<TransitFeature, string>(
            "Account", serviceoptions, SessionManager.ObjectService.GetFeatures);
        accounts.DataBind();

        // places
        places.DataSource = SessionManager.GetCollection<TransitFeature, string>(
            "Place", serviceoptions, SessionManager.ObjectService.GetFeatures);
        places.DataBind();

        // feeds
        accountfeeds.DataSource = SessionManager.GetCollection<TransitFeature, string>(
            "AccountFeed", serviceoptions, SessionManager.ObjectService.GetFeatures);
        accountfeeds.DataBind();

        // events
        TransitAccountEventInstanceQueryOptions eventoptions = new TransitAccountEventInstanceQueryOptions();
        eventoptions.StartDateTime = DateTime.UtcNow;
        eventoptions.EndDateTime = DateTime.MaxValue;
        accountevents.DataSource = SessionManager.GetCollection<TransitAccountEventInstance, TransitAccountEventInstanceQueryOptions>(
            eventoptions, serviceoptions, SessionManager.EventService.GetAccountEventInstances);
        accountevents.DataBind();
    }
開發者ID:dblock,項目名稱:sncore,代碼行數:28,代碼來源:NewContent.aspx.cs

示例14: placesList_OnGetDataSource

 void placesList_OnGetDataSource(object sender, EventArgs e)
 {
     ServiceQueryOptions options = new ServiceQueryOptions(placesList.PageSize, placesList.CurrentPageIndex);
     placesList.DataSource = SessionManager.GetCollection<TransitAccountPlace, int>(
         AccountId, options, SessionManager.PlaceService.GetAccountPlaces);
     panelGrid.Update();
 }
開發者ID:dblock,項目名稱:sncore,代碼行數:7,代碼來源:AccountPlacesViewControl.ascx.cs

示例15: GetReplies

    public string GetReplies(int post_id, int thread_id)
    {
        StringBuilder result = new StringBuilder();
        
        ServiceQueryOptions options = new ServiceQueryOptions();
        options.PageNumber = 0;
        options.PageSize = 3;
        IList<TransitDiscussionPost> items = SessionManager.GetCollection<TransitDiscussionPost, int>(
            thread_id, options, SessionManager.DiscussionService.GetDiscussionThreadPostsByOrder);
        
        foreach (TransitDiscussionPost t_instance in items)
        {
            if (t_instance.Id == post_id)
                continue;

            result.Append(string.Format("<div>&#187; <b>{0}</b> replied {1}</a></div>",
                Renderer.Render(t_instance.AccountName), 
                SessionManager.ToAdjustedString(t_instance.Created)));
        }
        
        if (result.Length > 0)
        {
            result.Insert(0, "<div class=\"sncore_message_reply\">");
            result.Append("</div>");
        }

        return result.ToString();
    }
開發者ID:dblock,項目名稱:sncore,代碼行數:28,代碼來源:DiscussionPostsNewViewControl.ascx.cs


注:本文中的SnCore.WebServices.ServiceQueryOptions類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。