Changeset 6303 for branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Models
- Timestamp:
- 05/26/11 23:53:57 (14 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Models
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Models/QueryModel.cs
r6253 r6303 8 8 using HLWebOKBQueryPlugin.Helpers; 9 9 10 namespace HLWebPluginHost.Models { 10 namespace HLWebOKBQueryPlugin.Models 11 { 11 12 public class QueryModel { 12 13 13 14 public String SelectedSubMenu { get; set; } 15 private long[] runs; 16 17 14 18 15 19 public IList<Filter> QueryFilterGetAll() { … … 41 45 } 42 46 47 48 public long[] Runs 49 { 50 get 51 { 52 return this.runs; 53 } 54 set 55 { 56 this.runs = value; 57 } 58 59 } 60 61 62 public IList<RunCollectionData> RunCollection 63 { 64 get 65 { 66 QueryServiceClient client = Query.GetClientFactory(); 67 if (client != null) 68 { 69 IList<RunCollectionData> runCollection = new List<RunCollectionData>(); 70 71 IList<Run> runList = client.GetRuns(runs, false).ToList<Run>(); 72 73 foreach (Run r in runList) 74 runCollection.Add(new RunCollectionData(r)); 75 76 return runCollection; 77 } 78 return new List<RunCollectionData>(); 79 } 80 } 81 43 82 // just 4 testing 44 public IList<RunCollectionData> getTestRuns() {83 //public IList<RunCollectionData> getTestRuns() { 45 84 46 QueryServiceClient client = Query.GetClientFactory();85 // QueryServiceClient client = Query.GetClientFactory(); 47 86 48 if (client != null) {49 IList<RunCollectionData> runs = new List<RunCollectionData>();87 // if (client != null) { 88 // IList<RunCollectionData> runs = new List<RunCollectionData>(); 50 89 51 //long[] runIds = client.GetRunIds(new Filter());52 //if (runIds.Length < cnt) cnt = runIds.Length;90 // //long[] runIds = client.GetRunIds(new Filter()); 91 // //if (runIds.Length < cnt) cnt = runIds.Length; 53 92 54 long[] getRuns = new long[2] { 1, 2 };93 // long[] getRuns = new long[2] { 1, 2 }; 55 94 56 IList<Run> runList = client.GetRuns(getRuns, false).ToList<Run>();95 // IList<Run> runList = client.GetRuns(getRuns, false).ToList<Run>(); 57 96 58 foreach (Run r in runList)59 runs.Add(new RunCollectionData(r));97 // foreach (Run r in runList) 98 // runs.Add(new RunCollectionData(r)); 60 99 61 return runs;62 }63 return new List<RunCollectionData>();64 }100 // return runs; 101 // } 102 // return new List<RunCollectionData>(); 103 //} 65 104 66 105 }
Note: See TracChangeset
for help on using the changeset viewer.