public override ActionResult Index(RenderModel model) { var customModel = new ChalmersILLOrderListPageModel(); _memberInfoManager.PopulateModelWithMemberData(Request, Response, customModel); if (!String.IsNullOrEmpty(Request.QueryString["query"])) { var queryString = Request.QueryString["query"].Trim(); if (IsOrderId(queryString)) { queryString = "\"" + queryString + "\""; } customModel.PendingOrderItems = _orderItemSearcher.Search(queryString); } else { customModel.PendingOrderItems = _orderItemSearcher.Search(@"status:01\:Ny OR status:02\:Åtgärda OR status:09\:Mottagen OR (status:03\:Beställd AND followUpDate:[1975-01-01T00:00:00.000Z TO " + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.fffZ") + @"]) OR (status:14\:Infodisk AND dueDate:[1975-01-01T00:00:00.000Z TO " + DateTime.Now.AddDays(5).Date.ToString("yyyy-MM-ddT") + @"23:59:59.999Z])"); } return(CurrentTemplate(customModel)); }
public override ActionResult Index(RenderModel model) { var customModel = new ChalmersILLStartPageModel(); _memberInfoManager.PopulateModelWithMemberData(Request, Response, customModel); return(CurrentTemplate(customModel)); }
public override ActionResult Index(RenderModel model) { var customModel = new ChalmersILLDiskPageModel(); _memberInfoManager.PopulateModelWithMemberData(Request, Response, customModel); if (!String.IsNullOrEmpty(Request.QueryString["query"])) { customModel.OrderItems = _searcher.Search("((type:Bok AND status:(Infodisk OR Utlånad OR Transport OR Krävd OR Förlorad OR Förlorad\\?)) OR (type:Artikel AND status:Transport)) AND " + "\"" + Request.Params["query"].Trim() + "\""); } return(CurrentTemplate(customModel)); }
public override ActionResult Index(RenderModel model) { var customModel = new ChalmersILLLogoutPageModel(); _memberInfoManager.PopulateModelWithMemberData(Request, Response, customModel); if (library.IsLoggedOn()) { var memberId = _memberInfoManager.GetCurrentMemberId(Request, Response); FormsAuthentication.SignOut(); _memberInfoManager.ClearMemberCache(Response); } return(CurrentTemplate(customModel)); }