Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/16/13 08:57:22 (12 years ago)
Author:
fschoepp
Message:

#1888:

  • Added IVisualExtensionDao to the backend representing js extension that create new viewable elements of an algorithm.
  • Started to upgrade the frontend to render those new javascript UI extensions.
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  
    6161            id: null,
    6262            name: null,
    63             results: null
     63            results: null,
     64            inputs: null,
     65            algorithmName: null
    6466        }
    6567    });
  • branches/OaaS/HeuristicLab.Services.Optimization.Web/Controllers/JobController.cs

    r9324 r9362  
    5757        return Content(AlgorithmConverter.ConvertRunsToJson(runs).ToString(), "application/json", System.Text.Encoding.UTF8);
    5858      }
     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      }
    5968    }
    6069}
  • branches/OaaS/HeuristicLab.Services.Optimization.Web/Models/AdminModels.cs

    r8958 r9362  
    2323    }
    2424
     25    private HttpPostedFileBase scenarioJs;
     26
     27    public HttpPostedFileBase ScenarioJs {
     28      get { return scenarioJs; }
     29      set { scenarioJs = value; }
     30    }
     31
    2532  }
    2633}
  • branches/OaaS/HeuristicLab.Services.Optimization.Web/Views/Admin/Index.cshtml

    r8958 r9362  
    1313    <label for="scenarioMapper">Scenario XML</label>
    1414    <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" />   
    1618  </fieldset>
    1719}
Note: See TracChangeset for help on using the changeset viewer.