Exemplo n.º 1
0
 public PartialViewResult FoundFTopicsChangePage(int page)
 {
     if (page < 0)
     { page = 1; }
     FSearch FSearchResult = (FSearch)Session["FSearchResult"];
     FoundFTpcPaging foundFTpcPaging = new FoundFTpcPaging(FSearchResult.FoundFTopics, FSearchResult.FoundFTopics.Count, page);
     ViewData["Role"] = GetCurrentUserRole();
     return PartialView("Partials/FoundFTopicsChangePage",foundFTpcPaging);
 }
Exemplo n.º 2
0
 public ActionResult FSearch(int type, int itemId, string ask)
 {
     if (ask.Length < 150)
     {
         FSearch FSearchResult = new FSearch(type, itemId, ask);
         Session["FSearchResult"] = FSearchResult;
         FoundFMsgPaging foundFMsgPaging = new FoundFMsgPaging(FSearchResult.FoundFMessages, FSearchResult.FoundFMessages.Count);
         FoundFTpcPaging foundFTpcPaging = new FoundFTpcPaging(FSearchResult.FoundFTopics, FSearchResult.FoundFTopics.Count);
         SearchView searchView = new SearchView(FSearchResult.PlaceType, FSearchResult.PlaceName, ask, FSearchResult.LinkBackHref,
             FSearchResult.LinkBackText, foundFTpcPaging, foundFMsgPaging);
         ViewData["Role"] = GetCurrentUserRole();
         return View("FSearch", searchView);
     }
     else return RedirectToAction("Index", "Home");
 }
Exemplo n.º 3
0
 public SearchView(string placeType, string placeName, string ask, string linkBackHref, string linkBackText, 
     FoundFTpcPaging foundFTpcPaging, FoundFMsgPaging foundFMsgPaging)
 {
     PlaceType = placeType;
     PlaceName = placeName;
     Ask = ask;
     LinkBackHref = linkBackHref;
     LinkBackText = linkBackText;
     FoundFTpcPaging = foundFTpcPaging;
     FoundFMsgPaging = foundFMsgPaging;
 }