Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/02/11 21:40:26 (13 years ago)
Author:
dhohl
Message:

#1499 query filter
recursive layout of the filters

Location:
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Filter/Filters.ascx

    r6097 r6102  
    33<%@ Import Namespace="HLWebOKBQueryPlugin.OKBQueryService" %>
    44<!-- Put all into a form that calls the "AddFilter" Action-->
    5 <% using (Html.BeginForm("AddFilter", "Filter")) %>
     5<% using (Html.BeginForm ("AddFilter", "Filter")) %>
    66<% { %>
    77<p>
     
    2121    <li>
    2222        <%
    23 // If type is StringComparisonFilter build thes controls
    24 if ("StringComparisonFilter".Equals(f.GetType().Name))
    25 {  %>
    26         <%: Html.TextBox("valueTextbox." + f.GetType().Name, ((StringComparisonFilter)f).Value)%>
    27         <%: Html.LabelFor(x => f.Label)%>
    28         <% }
     23                // If type is StringComparisonFilter build thes controls
     24                if ("StringComparisonFilter".Equals(f.GetType().Name))
     25                {  %>
     26                    <%: Html.TextBox("valueTextbox." + f.GetType().Name, ((StringComparisonFilter)f).Value)%>
     27                    <%: Html.LabelFor(x => f.Label)%>
     28                   
     29             <% }
    2930               // If type is NameStringComparisonFilter build thes controls
    3031               else if ("NameStringComparisonFilter".Equals(f.GetType().Name))
    3132               { %>
    32         <%: Html.TextBox("valueTextbox." + f.GetType().Name, ((NameStringComparisonFilter)f).Value)%>
    33         <!-- other filter >
    34           <% } // If type is StringComparisonFilter build thes controls
    35        else
    36        { %>
    37        <!-- type not supported ... -->
    38         FilerTypeName =
    39         <%: Html.Label(f.GetType().Name)%>
    40         <% }
    41         %>
     33                    <%: Html.TextBox("valueTextbox." + f.GetType().Name, ((NameStringComparisonFilter)f).Value) %>
     34                   
     35             <% }
     36               else if ("CombinedFilter".Equals(f.GetType().Name))
     37               { %>
     38                <% CombinedFilter combiFilter = ((CombinedFilter)f);  %>
     39                 <% List<Filter> comtbiFtilterLis = combiFilter.Filters.ToList<Filter>();
     40                    FilterModel m = new FilterModel();
     41                    m.Filters = ((FilterModel)Model).Filters;
     42                    m.SelectedFilters = comtbiFtilterLis;
     43                    %>
     44                    <%   Html.RenderPartial("Filters", m); %>
     45                   
     46             <% }
     47
     48
     49              else
     50                { %>
     51                     <!-- type not supported ... -->
     52                     FilerTypeName =
     53                    <%: Html.Label(f.GetType().Name)%>
     54               <% }
     55               %>
    4256    </li>
    4357    <% }
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/Menu.ascx

    r6097 r6102  
    33<ul>
    44<li <% if(Session["SelectedSubMenu"] == "Filter") {%> class="selected" <%}%>>
    5     <%: Html.ActionLink("Filter", "Index", "Filter") %>
     5    <%: Html.ActionLink( "Filter", "Index", "Filter") %>
    66</li>
    77<li <% if(Session["SelectedSubMenu"] == "Results") {%> class="selected" <%}%>>
Note: See TracChangeset for help on using the changeset viewer.