Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/17/11 15:54:20 (14 years ago)
Author:
msammer
Message:

#1446 rebuild the shown table. Now it is possible to make a right 'details'-call via an action within the MVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Models/QueryModel.cs

    r6102 r6226  
    2929        }
    3030
    31         //// just 4 testing
    32         //public IList<RunCollectionData> getTestRuns() {
     31        // just 4 testing
     32        public IList<RunCollectionData> getTestRuns() {
    3333
    34         //    QueryServiceClient client = Query.GetClientFactory();
     34            QueryServiceClient client = Query.GetClientFactory();
    3535
    36         //    if (client != null) {
    37         //        IList<RunCollectionData> runs = new List<RunCollectionData>();
     36            if (client != null) {
     37                IList<RunCollectionData> runs = new List<RunCollectionData>();
    3838
    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;
    4141
    42         //        long[] getRuns = new long[2]{1,2};
     42                long[] getRuns = new long[2] { 1, 2 };
    4343
    44         //        IList<Run> runList = client.GetRuns(getRuns, false).ToList<Run>();
     44                IList<Run> runList = client.GetRuns(getRuns, false).ToList<Run>();
    4545
    46         //        foreach (Run r in runList)
    47         //            runs.Add(new RunCollectionData(r));
     46                foreach (Run r in runList)
     47                    runs.Add(new RunCollectionData(r));
    4848
    49         //        return runs;
    50         //    }
    51         //    return new List<RunCollectionData>();
    52         //}
     49                return runs;
     50            }
     51            return new List<RunCollectionData>();
     52        }
    5353    }
    5454}
Note: See TracChangeset for help on using the changeset viewer.