Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/27/14 16:39:43 (11 years ago)
Author:
mroscoe
Message:
 
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  
    6363      <button id="UserApply">Apply</button>
    6464    </fieldset>
    65     <button id="ScrollTop">^</button>
    6665    <section id="TasksContainer" class="tabDataContainer"></section>
    6766  </section>
     
    113112    <section id="SlavesContainer" class="tabDataContainer"></section>
    114113  </section>
    115   //Slave overview
     114  //Exception overview
    116115  <section id="ExceptionOverviewTab" class="tabSection">
    117116    <fieldset class="filterChoices">
     
    119118      <label>Date</label>
    120119      <input type="checkbox" name="filterChoice" value="ExceptionDate" checked="checked">
    121       <label>Users</label>
    122       <input type="checkbox" name="filterChoice" value="ExceptionUser">
     120      <label>Slave</label>
     121      <input type="checkbox" name="filterChoice" value="ExceptionSlave">
    123122      <label>Limit</label>
    124123      <select id="ExceptionLimit">
     
    138137        @Html.TextBox("ExceptionEnd", (DateTime.Now + new TimeSpan(1, 0, 0, 0)).ToString("yyyy-MM-dd"), new { @class = "date" })
    139138      </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>
    146144    </fieldset>
    147145    <section id="ExceptionContainer" class="tabDataContainer"></section>
    148146  </section>
     147  <button id="ScrollTop">^</button>
    149148}
    150149
     
    171170    var endDate;
    172171    var selectedUser;
     172    var selectedSlave;
    173173    var limit;
    174174    var pageNumber;
    175175    var userId;
    176     var numberTasks = 0;
    177176
    178177    $(document).ready(function () {
     
    218217    });
    219218
     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
    220228    function RefreshUser() {
    221229      selectedUser = $("#UserList").val();
     
    235243        taskState = $('#TaskState').val();
    236244      }
    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")
    238246      @ChartHelper.TasksForUser("TasksContainer", "Task", Url.Action("UserTask", "ChartData"), "RefreshUser", "selectedUser", "limit", "startDate", "endDate", "jobId", "taskState", "pageNumber")
    239247      pageNumber = null;
     
    243251    @ExceptionHelper.ScrollToException()
    244252
     253    //Task Overview
    245254    $("#TaskUserList").change(function () {
    246255      RefreshTask();
     
    254263    }
    255264
    256     $("#SlaveList").change(function () {
    257       RefreshSlave();
    258     });
    259 
     265    //Slave Overview
    260266    function RefreshSlave() {
    261267      selectedUser = null;
     
    270276        selectedUser = $('#SlaveUserList').val();
    271277      }
    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")
    273279      pageNumber = null;
    274280    }
    275281
    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")*@
    283306  </script>
    284307}
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/LoginRequired/UserTask.cshtml

    r11036 r11053  
    129129        taskState = $('#TaskState').val();
    130130      }
    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")
    132132      @ChartHelper.TasksForUser("TasksContainer","Task",Url.Action("UserTask", "ChartData"),"TaskInformation","userName","limit","startDate","endDate","jobId","taskState","pageNumber")
    133133      pageNumber = null;
Note: See TracChangeset for help on using the changeset viewer.