Changeset 5005 for branches/WebApplication/MVC2
- Timestamp:
- 12/01/10 01:10:28 (14 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBAdminPlugin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Controllers/AlgorithmClassController.cs
r4985 r5005 35 35 }; 36 36 37 viewModel.AddAlgorithmClass(" aaa", "na");37 viewModel.AddAlgorithmClass("bbb", "na"); 38 38 39 39 return View(viewModel); -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Models/AlgorithmClassModel.cs
r4985 r5005 32 32 //Add AlgorithmClass table entry 33 33 public bool AddAlgorithmClass(string name, string description) { 34 long retValue; 34 35 //get service client 35 36 OKBService.OKBServiceClient sc = new OKBService.OKBServiceClient(); … … 39 40 40 41 OKBService.AlgorithmClass ac = new OKBService.AlgorithmClass(); 41 ac.Id = 8; 42 //test 43 //ac.Id = 8; 42 44 ac.Name = name; 43 45 ac.Description = description; 44 sc.AddAlgorithmClass(ac);46 retValue = sc.AddAlgorithmClass(ac); 45 47 46 48 return true; -
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/AlgorithmClass/Index.aspx
r4985 r5005 1 1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 2 3 3 4 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> … … 16 17 <asp:ImageButton ID="btnAddAlgorithmClass" runat="server" 17 18 ImageUrl="~/Resources/Plus.bmp" ToolTip="Add Class" BorderColor="Black" 18 CommandArgument="Id" />19 CommandArgument="Id" onclick="btnAddAlgorithmClass_Click" /> 19 20 <asp:ImageButton ID="btnDelAlgorithmClass" runat="server" 20 21 ImageUrl="~/Resources/Delete.bmp" ToolTip="Delete Class"
Note: See TracChangeset
for help on using the changeset viewer.