Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @POST
- @Path("module")
- @Consumes(MediaType.APPLICATION_JSON)
- @Produces(MediaType.APPLICATION_JSON)
- public List<ModuleProcCount> getInput(int jobId) throws IOException{
- try (Dbc dbc = vehmPool.getDbc()){
- List<ModuleProcCount> pusher = statements.inMod(dbc, jobId);
- return pusher;
- }
- }
- $scope.sendJobId = function(cellVal) {
- data.jobId = cellVal;
- $http.post("rest/performance/module", data.jobId).then(function(response){
- $scope.pusher = response.data;
- });
- }
- <table id="Table" class="JobID-table" style="text-align:center" >
- <tr class="table-Header">
- <th>JOB ID</th>
- <th>TIME FOR ALL MODULES(MILLISECONDS)</th>
- </tr>
- <tr class="jobID-Table-tr" ng-repeat="p in puller | orderBy : '-modCount'">
- <td ng-click="sendJobId(p.modName)" class={{p.cellClass}}>
- {{p.modName}}
- </td>
- <td class={{p.cellClass}}>
- {{p.modCount}}
- </td>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement