- Timestamp:
- 05/12/11 20:08:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Controllers/FilterController.cs
r6170 r6190 26 26 27 27 QueryServiceClient client = Query.GetClientFactory("okbtester", "okbtester"); 28 29 30 long[] ids =client.GetRunIds(qm.Content);28 29 30 long[] ids = client.GetRunIds(qm.Content); 31 31 32 32 Response.Write("Found <" + ids.Count() + "> Runs."); … … 52 52 /// <returns></returns> 53 53 public ActionResult AddFilterAnd(FormCollection collection) 54 { 54 { 55 55 FilterModel fm = new FilterModel((CombinedFilter)Session["Content"]); 56 56 57 57 58 58 // Add Filter 59 59 60 60 String idKey = null; 61 61 String parentIdKey = null; … … 135 135 { 136 136 // Get Content from Session 137 FilterModel fm = new FilterModel((CombinedFilter)Session["Content"]); 138 137 FilterModel fm = new FilterModel((CombinedFilter)Session["Content"]); 138 139 139 // Remove Filter 140 bool filterRemoved =fm.RemoveFilter(id);141 140 bool filterRemoved = fm.RemoveFilter(id); 141 142 142 // Set Content 143 143 Session["Content"] = fm.Content; 144 144 145 145 return View("Index", fm); 146 146 } … … 181 181 public ActionResult Index() 182 182 { 183 183 184 184 // Set submenu 185 185 Session["SelectedSubMenu"] = "Filter"; … … 201 201 CombinedFilter f = (CombinedFilter)Session["Content"]; 202 202 fm.Content = f; 203 204 203 204 205 205 return View(fm); 206 206 }
Note: See TracChangeset
for help on using the changeset viewer.