示例#1
0
    public void linkAddToQueue_Click(object sender, EventArgs e)
    {
        if (!SessionManager.IsLoggedIn)
        {
            RedirectToLogin();
        }

        TransitPlaceQueue tpq = SessionManager.PlaceService.GetOrCreatePlaceQueueByName(
            SessionManager.Ticket, SessionManager.AccountId, "My Queue");
        TransitPlaceQueueItem tpqi = new TransitPlaceQueueItem();

        tpqi.PlaceQueueId = tpq.Id;
        tpqi.PlaceId      = RequestId;
        SessionManager.CreateOrUpdate <TransitPlaceQueueItem>(
            tpqi, SessionManager.PlaceService.CreateOrUpdatePlaceQueueItem);
        ReportInfo(string.Format("Added {0} to <a href='AccountPlaceQueueManage.aspx'>your queue</a>.", Renderer.Render(Place.Name)));
    }
示例#2
0
 public int CreateOrUpdatePlaceQueueItem(string ticket, TransitPlaceQueueItem queueitem)
 {
     return WebServiceImpl<TransitPlaceQueueItem, ManagedPlaceQueueItem, PlaceQueueItem>.CreateOrUpdate(
         ticket, queueitem);
 }
示例#3
0
    public void linkAddToQueue_Click(object sender, EventArgs e)
    {
        if (!SessionManager.IsLoggedIn)
        {
            RedirectToLogin();
        }

        TransitPlaceQueue tpq = SessionManager.PlaceService.GetOrCreatePlaceQueueByName(
            SessionManager.Ticket, SessionManager.AccountId, "My Queue");
        TransitPlaceQueueItem tpqi = new TransitPlaceQueueItem();
        tpqi.PlaceQueueId = tpq.Id;
        tpqi.PlaceId = RequestId;
        SessionManager.CreateOrUpdate<TransitPlaceQueueItem>(
            tpqi, SessionManager.PlaceService.CreateOrUpdatePlaceQueueItem);
        ReportInfo(string.Format("Added {0} to <a href='AccountPlaceQueueManage.aspx'>your queue</a>.", Renderer.Render(Place.Name)));

    }