Changeset 11053 for branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/LoginRequired
- Timestamp:
- 06/27/14 16:39:43 (11 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/LoginRequired
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/LoginRequired/Admin.cshtml
r11036 r11053 63 63 <button id="UserApply">Apply</button> 64 64 </fieldset> 65 <button id="ScrollTop">^</button>66 65 <section id="TasksContainer" class="tabDataContainer"></section> 67 66 </section> … … 113 112 <section id="SlavesContainer" class="tabDataContainer"></section> 114 113 </section> 115 // Slaveoverview114 //Exception overview 116 115 <section id="ExceptionOverviewTab" class="tabSection"> 117 116 <fieldset class="filterChoices"> … … 119 118 <label>Date</label> 120 119 <input type="checkbox" name="filterChoice" value="ExceptionDate" checked="checked"> 121 <label> Users</label>122 <input type="checkbox" name="filterChoice" value="Exception User">120 <label>Slave</label> 121 <input type="checkbox" name="filterChoice" value="ExceptionSlave"> 123 122 <label>Limit</label> 124 123 <select id="ExceptionLimit"> … … 138 137 @Html.TextBox("ExceptionEnd", (DateTime.Now + new TimeSpan(1, 0, 0, 0)).ToString("yyyy-MM-dd"), new { @class = "date" }) 139 138 </fieldset> 140 <fieldset id="FilterExceptionUser" class="filterContainer"> 141 <legend>User</legend> 142 <select id="ExceptionUserList"> 143 </select> 144 </fieldset> 145 <button id="ExcpetionApply">Apply</button> 139 <fieldset id="FilterExceptionSlave" class="filterContainer"> 140 <legend>Slave</legend> 141 @Html.DropDownList("Slaves") 142 </fieldset> 143 <button id="ExceptionApply">Apply</button> 146 144 </fieldset> 147 145 <section id="ExceptionContainer" class="tabDataContainer"></section> 148 146 </section> 147 <button id="ScrollTop">^</button> 149 148 } 150 149 … … 171 170 var endDate; 172 171 var selectedUser; 172 var selectedSlave; 173 173 var limit; 174 174 var pageNumber; 175 175 var userId; 176 var numberTasks = 0;177 176 178 177 $(document).ready(function () { … … 218 217 }); 219 218 219 $(".tabButton").click(function () { 220 var sender = $(this).attr('id'); 221 $(".tabButton").css({ 'border-bottom': '1px solid #8297F5', 'background': 'none' }); 222 $(this).css({ 'border-bottom': '1px solid #E0E6FF', 'background-color': '#E0E6FF' }); 223 $(".tabSection").css('display', 'none'); 224 $("#" + sender.slice(0, -6) + "Tab").css('display', 'block'); 225 }) 226 227 //User Overview 220 228 function RefreshUser() { 221 229 selectedUser = $("#UserList").val(); … … 235 243 taskState = $('#TaskState').val(); 236 244 } 237 @ExceptionHelper.UserExceptions("TasksContainer", Url.Action("TaskExceptions", "ExceptionData"), " selectedUser", "limit", "startDate", "endDate", "jobId", "taskState")245 @ExceptionHelper.UserExceptions("TasksContainer", Url.Action("TaskExceptions", "ExceptionData"), "limit", "selectedUser", "startDate", "endDate", "jobId", "taskState") 238 246 @ChartHelper.TasksForUser("TasksContainer", "Task", Url.Action("UserTask", "ChartData"), "RefreshUser", "selectedUser", "limit", "startDate", "endDate", "jobId", "taskState", "pageNumber") 239 247 pageNumber = null; … … 243 251 @ExceptionHelper.ScrollToException() 244 252 253 //Task Overview 245 254 $("#TaskUserList").change(function () { 246 255 RefreshTask(); … … 254 263 } 255 264 256 $("#SlaveList").change(function () { 257 RefreshSlave(); 258 }); 259 265 //Slave Overview 260 266 function RefreshSlave() { 261 267 selectedUser = null; … … 270 276 selectedUser = $('#SlaveUserList').val(); 271 277 } 272 @ChartHelper.SlaveInfoChart("SlavesContainer", Url.Action("SlaveInfo","ChartData"),"limit","startDate","endDate","selectedUser","RefreshSlave","pageNumber")278 @ChartHelper.SlaveInfoChart("SlavesContainer", Url.Action("SlaveInfo", "ChartData"), "limit", "startDate", "endDate", "selectedUser", "RefreshSlave", "pageNumber") 273 279 pageNumber = null; 274 280 } 275 281 276 $(".tabButton").click(function () { 277 var sender = $(this).attr('id'); 278 $(".tabButton").css({'border-bottom' : '1px solid #8297F5', 'background' : 'none' }); 279 $(this).css({ 'border-bottom': '1px solid #E0E6FF', 'background-color': '#E0E6FF' }); 280 $(".tabSection").css('display', 'none'); 281 $("#" + sender.slice(0, -6) + "Tab").css('display', 'block'); 282 }) 282 @ChartHelper.ResizeSlaves() 283 284 //Exceptions Overview 285 $("#ExceptionSlaveList").change(function () { 286 RefreshException(); 287 }); 288 289 function RefreshException() { 290 selectedSlave = null; 291 limit = $("#ExceptionLimit").val(); 292 startDate = null; 293 endDate = null; 294 if ($("[value='ExceptionDate']").is(":checked")) { 295 startDate = $('#ExceptionStart').val(); 296 endDate = $('#ExceptionEnd').val(); 297 } 298 if ($("[value='ExceptionSlave']").is(':checked')) { 299 selectedSlave = $('#Slaves').val(); 300 } 301 @ExceptionHelper.UserExceptions("ExceptionContainer", Url.Action("TaskExceptions", "ExceptionData"), "limit", null, "startDate", "endDate", null, null) 302 @ExceptionHelper.ShowErrors("ExceptionContainer") 303 @ExceptionHelper.ErrorsOnSlaves("ExceptionContainer",Url.Action("SlaveExceptions", "ExceptionData"),"limit","startDate", "endDate","selectedSlave") 304 } 305 @*@ExceptionHelper.ShowSlaveInfo(Url.Action("SlaveInfo", "ChartData"),"limit","startDate","endDate")*@ 283 306 </script> 284 307 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/LoginRequired/UserTask.cshtml
r11036 r11053 129 129 taskState = $('#TaskState').val(); 130 130 } 131 @ExceptionHelper.UserExceptions("TasksContainer",Url.Action("TaskExceptions", "ExceptionData")," userName","limit","startDate","endDate","jobId","taskState")131 @ExceptionHelper.UserExceptions("TasksContainer",Url.Action("TaskExceptions", "ExceptionData"),"limit","userName","startDate","endDate","jobId","taskState") 132 132 @ChartHelper.TasksForUser("TasksContainer","Task",Url.Action("UserTask", "ChartData"),"TaskInformation","userName","limit","startDate","endDate","jobId","taskState","pageNumber") 133 133 pageNumber = null;
Note: See TracChangeset
for help on using the changeset viewer.