Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/27/10 08:20:56 (14 years ago)
Author:
wtollsch
Message:

#1198 AlgorithmClass/Index.aspx new buttons

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  
    125125    <value>..\Resources\Plus.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
    126126  </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>
    127130</root>
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Content/Site.css

    r4604 r4952  
    206206input[type="text"]
    207207{
    208     width: 200px;
    209208    border: 1px solid #CCC;
    210209}
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Controllers/AlgorithmClassController.cs

    r4939 r4952  
    1616        public ActionResult Index() {
    1717            //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;
    2222
    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            //};
    2833
    2934            var viewModel = new AlgorithmClassModel {
    30                 NumOfClasses = agcList.Count(),
    31                 AlgorithmClassList = agcList
     35                NumOfClasses = 0,
     36                AlgorithmClassList = null
    3237            };
    3338
     
    5156        }//index
    5257
     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
    5365    }
    5466}
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/HLWebPluginHost.csproj

    r4939 r4952  
    138138    <None Include="Resources\Plus.bmp" />
    139139    <None Include="Resources\Delete.bmp" />
     140    <None Include="Resources\Update.bmp" />
     141    <Content Include="Scripts\lbAlgorithmClassOnClick.js" />
    140142    <Content Include="Views\AlgorithmClass\Index.aspx" />
    141143    <Content Include="Views\ServicePrototype\Index.aspx" />
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Models/AlgorithmClassModel.cs

    r4939 r4952  
    2626
    2727            return agcList;
    28         }
     28        }//AlgorithmClassGetAll
     29
     30         
    2931    }
    3032}
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/AlgorithmClass/Index.aspx

    r4939 r4952  
    11<%@ 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
    211
    312<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    413  Index
    514</asp:Content>
     15   
    616
    717<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     
    919    <form id="form1" runat="server">
    1020
     21
    1122    <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   
    1232    <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" />
    1742    </asp:Panel>
    1843    <p>
    19         <asp:ListBox ID="ListBox1" runat="server" DataSourceID="ODSAlgorithmClasses"
     44        <asp:ListBox ID="lbAlgorithmClass" runat="server" DataSourceID="ODSAlgorithmClasses"
    2045            DataTextField="Name" DataValueField="Id" Height="350px" style="margin-top: 0px"
    21             Width="246px"></asp:ListBox>
     46            Width="246px">
     47        </asp:ListBox>
    2248        <asp:ObjectDataSource ID="ODSAlgorithmClasses" runat="server"
    2349            SelectMethod="AlgorithmClassGetAll"
    2450            TypeName="HLWebPluginHost.Models.AlgorithmClassModel">
    2551        </asp:ObjectDataSource>
     52        <asp:Button ID="Button1" Text="Select" OnClick="lbAlgorithmClassOnClick" runat="server"/>
     53
    2654    </p>
     55   
    2756
     57    <asp:Panel ID="Panel2" runat="server" Height="139px">
     58        <asp:Label ID="lbName" runat="server" Text="Name:"></asp:Label>
     59        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     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>
    2865   
    2966
Note: See TracChangeset for help on using the changeset viewer.