Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/27/11 19:15:16 (13 years ago)
Author:
cfleisch
Message:

#1499 styling filter and bubblechart, filter bugfixes

Location:
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Controllers/ChartController.cs

    r6303 r6318  
    3737      //  runIds[i] = i;
    3838      //}
    39       long[] runIds = client.GetRunIds((CombinedFilter)Session["Content"]);
    40         Run[] runs = client.GetRuns(runIds,false);
    41       //  Run[] runs = Session[""];
    42       cm.Runs = runs;
    43       cm.UpdateRunCollection(runs);
    44       cm.UpdateBubbleChart(selectedAxisY, selectedAxisX, selectedBubbleSize);
     39        long[] runIds = new long[0];
     40      CombinedFilter cf = (CombinedFilter)Session["Content"];
     41      if (cf != null)
     42          runIds = client.GetRunIds(cf);
     43
     44    Run[] runs = client.GetRuns(runIds, false);
     45    //  Run[] runs = Session[""];
     46    cm.Runs = runs;
     47    cm.UpdateRunCollection(runs);
     48    cm.UpdateBubbleChart(selectedAxisY, selectedAxisX, selectedBubbleSize);
    4549
    4650      return View("Index",cm);
     
    213217
    214218      // Later, we will get the runs from the session ...
    215       QueryServiceClient client = Query.GetClientFactory("okbtester", "okbtester");
    216 
    217       long[] runIds = new long[5];
    218       for (int i = 0; i < 5; i++) {
    219         runIds[i] = i;
    220       }
     219      QueryServiceClient client = Query.GetClientFactory();
     220
     221      long[] runIds = new long[0];
     222      CombinedFilter cf = (CombinedFilter)Session["Content"];
     223      if (cf != null)
     224          runIds = client.GetRunIds(cf);
     225
    221226      Run[] runs = client.GetRuns(runIds, false);
    222 
    223       cm.UpdateRunCollection(runs);
     227      cm.Runs = runs;
    224228
    225229
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Controllers/FilterController.cs

    r6311 r6318  
    3333            {
    3434                ids = client.GetRunIds(fm.Content);
     35
    3536            }
    3637            catch (Exception e)
Note: See TracChangeset for help on using the changeset viewer.