Changeset 9362 for branches/OaaS/HeuristicLab.Services.Optimization.Web
- Timestamp:
- 04/16/13 08:57:22 (12 years ago)
- Location:
- branches/OaaS/HeuristicLab.Services.Optimization.Web
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS/HeuristicLab.Services.Optimization.Web/Content/job.model.js
r9350 r9362 61 61 id: null, 62 62 name: null, 63 results: null 63 results: null, 64 inputs: null, 65 algorithmName: null 64 66 } 65 67 }); -
branches/OaaS/HeuristicLab.Services.Optimization.Web/Controllers/JobController.cs
r9324 r9362 57 57 return Content(AlgorithmConverter.ConvertRunsToJson(runs).ToString(), "application/json", System.Text.Encoding.UTF8); 58 58 } 59 60 [HttpGet] 61 public ActionResult VisualExtension(string algorithmId) { 62 var script = ControllerService.withControllerService<string>((service) => { 63 User u = new User() { Username = Membership.GetUser().UserName, Password = Session["pw"] as string }; 64 return service.GetVisualExtension(algorithmId); 65 }); 66 return Content(script, "text/javascript", System.Text.Encoding.UTF8); 67 } 59 68 } 60 69 } -
branches/OaaS/HeuristicLab.Services.Optimization.Web/Models/AdminModels.cs
r8958 r9362 23 23 } 24 24 25 private HttpPostedFileBase scenarioJs; 26 27 public HttpPostedFileBase ScenarioJs { 28 get { return scenarioJs; } 29 set { scenarioJs = value; } 30 } 31 25 32 } 26 33 } -
branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Admin/Index.cshtml
r8958 r9362 13 13 <label for="scenarioMapper">Scenario XML</label> 14 14 <input type="file" name="scenarioXml" id="scenarioXml" /> 15 <input type="submit" value="Upload scenario" /> 15 <label for="scenarioMapper">Visual extension (JavaScript) for Scenario</label> 16 <input type="file" name="scenarioJs" id="scenarioJs" /> 17 <input type="submit" value="Upload scenario" /> 16 18 </fieldset> 17 19 }
Note: See TracChangeset
for help on using the changeset viewer.