- Timestamp:
- 03/25/16 12:47:31 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager
- Files:
-
- 1 added
- 11 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/JobController.cs
r13733 r13735 258 258 } 259 259 serve.setTasks(); 260 ViewBag.JobsCount = serve.Job.Job.JobCount; 260 261 ViewBag.Title = serve.vm.SelectedTask.ItemTask.Name + " - Open file"; 261 262 -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Hubs/JobUpdaterHub.cs
r13733 r13735 39 39 looperTasks(t);//starts recursive loop 40 40 } 41 Clients. All.requestDone();//Final note from server when all tasks are checked.41 Clients.Caller.requestDone();//Final note from server when all tasks are checked. 42 42 //Client starts countdown and resends the updateAll when done 43 43 GC.Collect(); … … 47 47 public void updateJob() 48 48 { 49 Clients. All.processJobData(Job.Job.CalculatingCount, Job.Job.FinishedCount);49 Clients.Caller.processJobData(Job.Job.CalculatingCount, Job.Job.FinishedCount); 50 50 } 51 51 /// <summary> … … 78 78 //limits loaded data 79 79 var json = JsonConvert.SerializeObject(task.Task, settings); 80 Clients. All.processData(task.Task.Id, json, task.ItemTask.Name.ToString());80 Clients.Caller.processData(task.Task.Id, json, task.ItemTask.Name.ToString()); 81 81 //data sent to user 82 82 } -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Hubs/ProgressHub.cs
r13733 r13735 23 23 { 24 24 25 Clients. All.processMessage("Connection Established");25 Clients.Caller.processMessage("Connection Established"); 26 26 Job = FileOpeningService.Instance.Job; 27 27 Job.Progress.StatusChanged += runHub; … … 31 31 /// </summary> 32 32 /// <param name="name">Job name</param> 33 public void ChangeName (string name)33 public void ChangeNameResource(string name, string resource) 34 34 { 35 35 if (name != null) 36 36 FileOpeningService.Instance.Job.Job.Name = name; 37 if(resource != null && resource != "") 38 { 39 FileOpeningService.Instance.Job.Job.ResourceNames += "/" + resource; 40 } 37 41 } 38 42 /// <summary> … … 153 157 } 154 158 //send info to client 155 Clients. All.processMessage(Job.Progress.Status, value);159 Clients.Caller.processMessage(Job.Progress.Status, value); 156 160 157 161 } -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/Index.cshtml
r13733 r13735 142 142 <script src="~/js/scripts/graphs/graphhubber.js"></script> 143 143 <div class="row" style="text-align:center"> 144 144 @Html.Partial("_Graphlegend") 145 145 <div id="graphMain" style="width:100%;height:0px"> 146 146 -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFile.cshtml
r13733 r13735 2 2 3 3 4 <body class="row" 4 <body id="top" 5 class="row" 5 6 data-spy="scroll" 6 7 data-target="#scrolly" … … 96 97 <input type="text" 97 98 class="form-control" 98 name=" resource"99 id=" resource"100 placeholder="Resource ( default: HEAL)">99 name="jresource" 100 id="jresource" 101 placeholder="Resource (optional)"> 101 102 </div> 102 103 </div> … … 164 165 data-offset-top="0"> 165 166 166 <li><a href="#top"> Top</a></li>167 <li><a href="#top"><i class="fa fa-angle-up"></i> Top</a></li> 167 168 @if (Model.SelectedAlgorithm != null) 168 169 { … … 172 173 else 173 174 { 174 <li><a href="#tasks">Child tasks</a></li> 175 175 <li><a id="ctasks" href="#tasks">Child tasks </a></li> 176 <li><a onclick="shower()"><i class="fa fa-eye"></i> Show all tasks</a></li> 177 <li><a onclick="collapser()"><i class="fa fa-eye-slash"></i> Hide all tasks</a></li> 178 176 179 } 177 <li><a href="#finish"> Job info and upload</a></li>180 <li><a href="#finish"><i class="fa fa-flag-checkered"></i> Job info and upload</a></li> 178 181 </ul> 179 182 </nav> … … 197 200 } 198 201 }); 202 $('body').click(function () { 203 if ($("#ctasks").length > 0) 204 $("#ctasks").html("<i class='fa fa-sitemap'></i> Tasks (" + $('a[href^="#collapseExample"]').length + ")"); 205 }); 206 $('body').click(); 207 199 208 }); 209 collapser = function () { 210 $('.collapse').collapse('hide'); 211 212 } 213 shower = function () { 214 $('.collapse').collapse('show'); 215 216 } 200 217 </script> 201 218 </body> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/_Algorithm.cshtml
r13733 r13735 9 9 </div> 10 10 <div class="row" style="text-align:center"> 11 <h1 id="top"data-toggle="tooltip" title="@Model.SelectedTask.ItemTask.ItemName11 <h1 data-toggle="tooltip" title="@Model.SelectedTask.ItemTask.ItemName 12 12 @Model.SelectedTask.ItemTask.Description"> 13 13 <span class="label label-primary">Algorithm: @Model.SelectedTask.ItemTask.Name</span> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/_BatchRun.cshtml
r13733 r13735 8 8 <div class="row" 9 9 style="text-align:center"> 10 <h1 id="top"10 <h1 11 11 data-toggle="tooltip" 12 12 title="@Model.SelectedTask.ItemTask.ItemName … … 23 23 </h4> 24 24 <p class="text-center"> 25 Distribute child tasks 25 26 <input type="checkbox" 26 27 checked … … 28 29 data-onstyle="warning" 29 30 onchange="toggleChild([], @randy)" /> 30 Distribute child tasks31 31 32 </p> 32 33 <div id="childs@(randy)"> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/_BatchRunSmall.cshtml
r13733 r13735 41 41 <p> 42 42 43 43 Distribute child tasks 44 44 <input type="checkbox" 45 45 checked … … 47 47 data-onstyle="warning" 48 48 onchange="toggleChild(@builder, @randombr)" /> 49 Distribute child tasks49 50 50 51 51 </p> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/_Experiment.cshtml
r13733 r13735 9 9 </div> 10 10 <div class="row" style="text-align:center"> 11 <h1 id="top"11 <h1 12 12 data-toggle="tooltip" 13 13 title=" @Model.SelectedTask.ItemTask.ItemName … … 24 24 </h4> 25 25 <p class="text-center"> 26 Distribute child tasks 26 27 <input type="checkbox" checked data-toggle="toggle" data-onstyle="danger" 27 28 onchange="toggleChild([], @randy)" /> 28 Distribute child tasks29 29 30 </p> 30 31 <div id="childs@(randy)"> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/OpenFilePartials/_ExperimentSmall.cshtml
r13733 r13735 37 37 </p> 38 38 <p> 39 <label> 40 39 Distribute child tasks 41 40 <input type="checkbox" 42 41 checked … … 44 43 data-onstyle="danger" 45 44 onchange="toggleChild(@builder, @randomex)" /> 46 Distribute child tasks47 </label> 45 46 48 47 </p> 49 48 <div class="btn-group" -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/SelectedJobPartials/_AlgTask.cshtml
r13733 r13735 96 96 </h4> 97 97 <div id="graph@(Model.hiveTask.Task.Id)"></div> 98 <div id="legend@(Model.hiveTask.Task.Id)" style="display:none"> 99 @Html.Partial("_Graphlegend") 100 </div> 98 101 </div> 99 102 </div> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/SelectedJobPartials/_BatchTask.cshtml
r13733 r13735 106 106 </h4> 107 107 <div style="text-shadow:none" id="graph@(Model.hiveTask.Task.Id)"></div> 108 <div id="legend@(Model.hiveTask.Task.Id)" style="display:none"> 109 @Html.Partial("_Graphlegend") 110 </div> 108 111 </div> 109 112 </div> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Views/Job/SelectedJobPartials/_ExpTask.cshtml
r13733 r13735 107 107 </h4> 108 108 <div style="text-shadow:none" id="graph@(Model.hiveTask.Task.Id)"></div> 109 <div id="legend@(Model.hiveTask.Task.Id)" style="display:none"> 110 @Html.Partial("_Graphlegend") 111 </div> 109 112 </div> 110 113 </div> -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot/js/Scripts/Graphs/GraphDataCollector.js
r13733 r13735 51 51 } 52 52 function dataConversion(coll, name) { 53 var line = dataConversionLine(coll, name);53 var line = null;//dataConversionLine(coll, name); 54 54 var pie = dataConversionPie(coll); 55 55 var gantt = dataConversionGantt(coll, name); … … 93 93 return [tasks, nam]; 94 94 } 95 /* 95 96 function dataConversionLine(coll, nam) { 96 97 var xarr = []; … … 140 141 141 142 return [data, layout]; 142 } 143 }*/ 143 144 144 145 function dataConversionPie(coll) { … … 163 164 'Minutes transferring', 164 165 'Minutes calculating'], 165 type: 'pie' 166 type: 'pie', 167 marker: { 168 colors: ['#f0a742', '#80d4ff', '#2f6fa6'] 169 } 166 170 }]; 167 171 return datap; … … 178 182 var temp = getDataGantt(val); 179 183 var w = $("#graph" + val).parent().width() - 30; 180 document.getElementById("graph" + val).style.height = " 200px";184 document.getElementById("graph" + val).style.height = "300px"; 181 185 var gantt = d3.gantt().selector('#graph' + val).height('200').width(w).margin({ 182 186 top: 20, … … 185 189 left: 20 186 190 }).drawytitles(false).taskTypes([temp[1]]).taskStatus(taskStatus); 187 // document.getElementById("graph" + val).style.marginLeft = "-40px";188 191 gantt(temp[0]); 192 document.getElementById("legend" + val).style.display = ""; 189 193 }, 100); 190 194 … … 195 199 // console.log("#REDRAWN LINE: " + val); 196 200 } else { 201 document.getElementById("legend" + val).style.display = "none"; 197 202 setTimeout(function () { 198 203 Plotly.newPlot('graph' + val, getDataPie(val)); … … 226 231 document.getElementById("graphMain").style.marginLeft = "20px"; 227 232 gantt(tempdata); 233 234 228 235 /* LINE VERSION 229 236 var temp = []; -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot/js/Scripts/hubber.js
r13733 r13735 23 23 24 24 var jobname = document.getElementById("jname").value; 25 var resource = document.getElementById("jresource").value; 25 26 if (jobname && jobname != "" && jobname != null) { 26 hubber.server.changeName (jobname);27 hubber.server.changeNameResource(jobname, resource); 27 28 document.getElementById("fakehiveadd").style.display = "none"; 28 29 document.getElementById("progdiv").style.display = ""; … … 40 41 else 41 42 $("#childs" + idchilds).css("display", "none"); 43 $('body').click(); 42 44 } 43 45 function changePriority(arr, prior, idprior) {
Note: See TracChangeset
for help on using the changeset viewer.