Changeset 4952
- Timestamp:
- 11/27/10 08:20:56 (14 years ago)
- Location:
- branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/App_LocalResources/Images.resx
r4939 r4952 125 125 <value>..\Resources\Plus.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> 126 126 </data> 127 <data name="Update" type="System.Resources.ResXFileRef, System.Windows.Forms"> 128 <value>..\Resources\Update.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> 129 </data> 127 130 </root> -
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Content/Site.css
r4604 r4952 206 206 input[type="text"] 207 207 { 208 width: 200px;209 208 border: 1px solid #CCC; 210 209 } -
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Controllers/AlgorithmClassController.cs
r4939 r4952 16 16 public ActionResult Index() { 17 17 //create list of algorithms 18 OKBService.OKBServiceClient sc = new OKBService.OKBServiceClient();19 sc.ClientCredentials.UserName.UserName = "Gerhard";20 sc.ClientCredentials.UserName.Password = "Gerhard";21 sc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None;18 //OKBService.OKBServiceClient sc = new OKBService.OKBServiceClient(); 19 //sc.ClientCredentials.UserName.UserName = "Gerhard"; 20 //sc.ClientCredentials.UserName.Password = "Gerhard"; 21 //sc.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None; 22 22 23 var agcList = new List<OKBService.AlgorithmClass>(); 24 OKBService.AlgorithmClass[] ac = sc.GetAlgorithmClasses(); 25 foreach (OKBService.AlgorithmClass a in ac) { 26 agcList.Add(a); 27 }//foreach 23 //var agcList = new List<OKBService.AlgorithmClass>(); 24 //OKBService.AlgorithmClass[] ac = sc.GetAlgorithmClasses(); 25 //foreach (OKBService.AlgorithmClass a in ac) { 26 // agcList.Add(a); 27 //}//foreach 28 29 //var viewModel = new AlgorithmClassModel { 30 // NumOfClasses = agcList.Count(), 31 // AlgorithmClassList = agcList 32 //}; 28 33 29 34 var viewModel = new AlgorithmClassModel { 30 NumOfClasses = agcList.Count(),31 AlgorithmClassList = agcList35 NumOfClasses = 0, 36 AlgorithmClassList = null 32 37 }; 33 38 … … 51 56 }//index 52 57 58 // 59 // GET: /AlgotithmClass/5 60 public string DelAlgorithmClass(int id){ 61 string message = "DeleteAlgorithmClass, id = " + Server.HtmlEncode(Request.QueryString["id"]); 62 return Server.HtmlEncode(message); 63 } 64 53 65 } 54 66 } -
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/HLWebPluginHost.csproj
r4939 r4952 138 138 <None Include="Resources\Plus.bmp" /> 139 139 <None Include="Resources\Delete.bmp" /> 140 <None Include="Resources\Update.bmp" /> 141 <Content Include="Scripts\lbAlgorithmClassOnClick.js" /> 140 142 <Content Include="Views\AlgorithmClass\Index.aspx" /> 141 143 <Content Include="Views\ServicePrototype\Index.aspx" /> -
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Models/AlgorithmClassModel.cs
r4939 r4952 26 26 27 27 return agcList; 28 } 28 }//AlgorithmClassGetAll 29 30 29 31 } 30 32 } -
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/AlgorithmClass/Index.aspx
r4939 r4952 1 1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %> 2 3 <script runat="server"> 4 5 void lbAlgorithmClassOnClick(object sender, EventArgs e) { 6 txtName.Text = "aaa"; 7 } 8 9 </script> 10 2 11 3 12 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 4 13 Index 5 14 </asp:Content> 15 6 16 7 17 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> … … 9 19 <form id="form1" runat="server"> 10 20 21 11 22 <h2>AlgorithmClasses</h2> 23 24 <%--<ul> 25 <%foreach (HLWebPluginHost.OKBService.AlgorithmClass ac in Model.AlgorithmClassList) { %> 26 <li> 27 <%: ac.Name %> 28 </li> 29 <%} %> 30 </ul>--%> 31 12 32 <asp:Panel ID="Panel1" runat="server"> 13 <asp:ImageButton ID="ImageButton1" runat="server" 14 ImageUrl="~/Resources/Plus.bmp" ToolTip="Add Class" /> 15 <asp:ImageButton ID="ImageButton2" runat="server" 16 ImageUrl="~/Resources/Delete.bmp" ToolTip="Delete Class" /> 33 <asp:ImageButton ID="btnAddAlgorithmClass" runat="server" 34 ImageUrl="~/Resources/Plus.bmp" ToolTip="Add Class" BorderColor="Black" 35 CommandArgument="Id" CommandName="AddAlgorithmClass" /> 36 <asp:ImageButton ID="btnDeleteAlgorithmClass" runat="server" 37 ImageUrl="~/Resources/Delete.bmp" ToolTip="Delete Class" 38 CommandArgument="Id" CommandName="lgorithmClass" /> 39 <asp:ImageButton ID="btnUpdateAlgorithmClass" runat="server" 40 CommandArgument="Id" CommandName="UpdAlgorithmClass" 41 ImageUrl="~/Resources/Update.bmp" /> 17 42 </asp:Panel> 18 43 <p> 19 <asp:ListBox ID=" ListBox1" runat="server" DataSourceID="ODSAlgorithmClasses"44 <asp:ListBox ID="lbAlgorithmClass" runat="server" DataSourceID="ODSAlgorithmClasses" 20 45 DataTextField="Name" DataValueField="Id" Height="350px" style="margin-top: 0px" 21 Width="246px"></asp:ListBox> 46 Width="246px"> 47 </asp:ListBox> 22 48 <asp:ObjectDataSource ID="ODSAlgorithmClasses" runat="server" 23 49 SelectMethod="AlgorithmClassGetAll" 24 50 TypeName="HLWebPluginHost.Models.AlgorithmClassModel"> 25 51 </asp:ObjectDataSource> 52 <asp:Button ID="Button1" Text="Select" OnClick="lbAlgorithmClassOnClick" runat="server"/> 53 26 54 </p> 55 27 56 57 <asp:Panel ID="Panel2" runat="server" Height="139px"> 58 <asp:Label ID="lbName" runat="server" Text="Name:"></asp:Label> 59 60 <asp:TextBox ID="txtName" runat="server" Width="197px"></asp:TextBox> 61 <br /> 62 Description: 63 <asp:TextBox ID="txtDescription" runat="server" Width="197px"></asp:TextBox> 64 </asp:Panel> 28 65 29 66
Note: See TracChangeset
for help on using the changeset viewer.