Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5081


Ignore:
Timestamp:
12/10/10 18:16:25 (14 years ago)
Author:
wtollsch
Message:

#1198 prototype call methods from okb service

Location:
branches/WebApplication/MVC2/HLWebOKBAdminPlugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Controllers/AlgorithmClassController.cs

    r5005 r5081  
    99namespace HLWebPluginHost.Controllers {
    1010    public class AlgorithmClassController : Controller {
     11        //container for data
     12        AlgorithmClassModel viewModel;
    1113        //
    1214        // GET: /AlgorithmClass/
     
    3032            //};
    3133
    32             var viewModel = new AlgorithmClassModel {
     34            viewModel = new AlgorithmClassModel {
    3335                NumOfClasses = 0,
    3436                AlgorithmClassList = null
    35             };
    36 
    37             viewModel.AddAlgorithmClass("bbb", "na");
     37            };           
    3838
    3939            return View(viewModel);
     
    6363        }
    6464
    65         public bool AddAlgorithmClass_Click(string name, String description) {
    66             var viewModel = new AlgorithmClassModel {
    67                 NumOfClasses = 0,
    68                 AlgorithmClassList = null
    69             };
     65        public bool AddAlgorithmClass(string name, String description) {
     66            //var viewModel = new AlgorithmClassModel {
     67            //    NumOfClasses = 0,
     68            //    AlgorithmClassList = null
     69            //};
    7070
    71             viewModel.AddAlgorithmClass("aaa", "na");
     71            viewModel.AddAlgorithmClass("ccc", "na");
    7272
    7373            return true;
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/AlgorithmClass/Index.aspx

    r5005 r5081  
    11<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
    2 
    32
    43<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
     
    1716        <asp:ImageButton ID="btnAddAlgorithmClass" runat="server"             
    1817            ImageUrl="~/Resources/Plus.bmp" ToolTip="Add Class" BorderColor="Black"
    19             CommandArgument="Id" onclick="btnAddAlgorithmClass_Click" />
     18            CommandArgument="Id" onclick="~/Controllers/AddAlgorithmClass" />
    2019        <asp:ImageButton ID="btnDelAlgorithmClass" runat="server"
    2120            ImageUrl="~/Resources/Delete.bmp" ToolTip="Delete Class"
Note: See TracChangeset for help on using the changeset viewer.