Changeset 5919 for branches/WebApplication/MVC2/HLWebOKBQueryPlugin
- Timestamp:
- 04/01/11 01:47:33 (14 years ago)
- Location:
- branches/WebApplication/MVC2/HLWebOKBQueryPlugin
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Controllers/QueryController.cs
r5910 r5919 11 11 using HLWebPluginHost.Models; 12 12 using HLWebOKBQueryPlugin.OKBQueryService; 13 using HLWebOKBQueryPlugin.Helpers; 13 14 14 15 namespace HLWebOKBQueryPlugin.Controllers … … 28 29 public ActionResult Filter() 29 30 { 31 QueryServiceClient client = Query.GetClientFactory(); 32 33 30 34 QueryModel qm = new QueryModel(); 31 35 Session["SelectedSubMenu"] = "Filter"; -
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/HLWebOKBQueryPlugin.csproj
r5910 r5919 94 94 </Compile> 95 95 <Compile Include="Helpers\HtmlHelpers.cs" /> 96 <Compile Include="Helpers\Query.cs" /> 96 97 <Compile Include="Models\AccountModels.cs" /> 97 98 <Compile Include="Models\QueryModel.cs" /> -
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Models/QueryModel.cs
r5910 r5919 6 6 using System.Web.Security; 7 7 using HLWebOKBQueryPlugin.OKBQueryService; 8 using HLWebOKBQueryPlugin.Helpers; 8 9 9 10 namespace HLWebPluginHost.Models { … … 12 13 public String SelectedSubMenu { get; set; } 13 14 15 public IList<Filter> QueryFilterGetAll() { 16 QueryServiceClient client = Query.GetClientFactory(); 17 18 IList<Filter> filterList = new List<Filter>(); 19 20 if (client != null) { 21 Filter[] filters = client.GetFilters(); 22 foreach (Filter f in filters) { 23 filterList.Add(f); 24 25 } 26 } 27 28 return filterList; 29 } 30 14 31 } 15 32 } -
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/Filter.aspx
r5910 r5919 11 11 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 12 12 13 <form id="form1" runat="server"> 13 14 <h2>Filter</h2> 14 15 16 <p> 17 <asp:ListBox ID="lbxQueryFilters" runat="server" DataSourceID="dsQueryFilters" 18 DataTextField="Label" DataValueField="Label" Height="350px" style="margin-top: 0px" 19 Width="400px"> 20 </asp:ListBox> 21 <asp:ObjectDataSource ID="dsQueryFilters" runat="server" 22 SelectMethod="QueryFilterGetAll" 23 TypeName="HLWebPluginHost.Models.QueryModel"> 24 </asp:ObjectDataSource> 25 26 27 </p> 28 </form> 29 15 30 </asp:Content>
Note: See TracChangeset
for help on using the changeset viewer.