예제 #1
0
 public PartialViewResult FoundFMessagesChangePage(int page)
 {
     if (page < 0)
     { page = 1; }
     FSearch FSearchResult = (FSearch)Session["FSearchResult"];
     FoundFMsgPaging foundFMsgPaging = new FoundFMsgPaging(FSearchResult.FoundFMessages, FSearchResult.FoundFMessages.Count, page);
     ViewData["Role"] = GetCurrentUserRole();
     return PartialView("Partials/FoundFMessagesChangePage",foundFMsgPaging);
 }
예제 #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");
 }
예제 #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;
 }