Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/01/10 01:10:28 (14 years ago)
Author:
wtollsch
Message:

#1198 AddAlgorithmClass: prototype test successful... new AlgorithmClass added from HLWebOKBAdminPlugin

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

Legend:

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

    r4985 r5005  
    3535            };
    3636
    37             viewModel.AddAlgorithmClass("aaa", "na");
     37            viewModel.AddAlgorithmClass("bbb", "na");
    3838
    3939            return View(viewModel);
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Models/AlgorithmClassModel.cs

    r4985 r5005  
    3232        //Add AlgorithmClass table entry
    3333        public bool AddAlgorithmClass(string name, string description) {
     34            long retValue;
    3435            //get service client
    3536            OKBService.OKBServiceClient sc = new OKBService.OKBServiceClient();
     
    3940
    4041            OKBService.AlgorithmClass ac = new OKBService.AlgorithmClass();
    41             ac.Id = 8;
     42            //test
     43            //ac.Id = 8;
    4244            ac.Name = name;
    4345            ac.Description = description;
    44             sc.AddAlgorithmClass(ac);
     46            retValue = sc.AddAlgorithmClass(ac);
    4547           
    4648            return true;
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/AlgorithmClass/Index.aspx

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