Changeset 6226 for branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Models
- Timestamp:
- 05/17/11 15:54:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Models/QueryModel.cs
r6102 r6226 29 29 } 30 30 31 // //just 4 testing32 //public IList<RunCollectionData> getTestRuns() {31 // just 4 testing 32 public IList<RunCollectionData> getTestRuns() { 33 33 34 //QueryServiceClient client = Query.GetClientFactory();34 QueryServiceClient client = Query.GetClientFactory(); 35 35 36 //if (client != null) {37 //IList<RunCollectionData> runs = new List<RunCollectionData>();36 if (client != null) { 37 IList<RunCollectionData> runs = new List<RunCollectionData>(); 38 38 39 ////long[] runIds = client.GetRunIds(new Filter());40 ////if (runIds.Length < cnt) cnt = runIds.Length;39 //long[] runIds = client.GetRunIds(new Filter()); 40 //if (runIds.Length < cnt) cnt = runIds.Length; 41 41 42 // long[] getRuns = new long[2]{1,2};42 long[] getRuns = new long[2] { 1, 2 }; 43 43 44 //IList<Run> runList = client.GetRuns(getRuns, false).ToList<Run>();44 IList<Run> runList = client.GetRuns(getRuns, false).ToList<Run>(); 45 45 46 // foreach (Run r in runList)47 //runs.Add(new RunCollectionData(r));46 foreach (Run r in runList) 47 runs.Add(new RunCollectionData(r)); 48 48 49 //return runs;50 //}51 //return new List<RunCollectionData>();52 //}49 return runs; 50 } 51 return new List<RunCollectionData>(); 52 } 53 53 } 54 54 }
Note: See TracChangeset
for help on using the changeset viewer.