Changeset 6102 for branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views
- Timestamp:
- 05/02/11 21:40:26 (14 years ago)
- 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 3 3 <%@ Import Namespace="HLWebOKBQueryPlugin.OKBQueryService" %> 4 4 <!-- Put all into a form that calls the "AddFilter" Action--> 5 <% using (Html.BeginForm ("AddFilter", "Filter")) %>5 <% using (Html.BeginForm ("AddFilter", "Filter")) %> 6 6 <% { %> 7 7 <p> … … 21 21 <li> 22 22 <% 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 <% } 29 30 // If type is NameStringComparisonFilter build thes controls 30 31 else if ("NameStringComparisonFilter".Equals(f.GetType().Name)) 31 32 { %> 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 %> 42 56 </li> 43 57 <% } -
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/Menu.ascx
r6097 r6102 3 3 <ul> 4 4 <li <% if(Session["SelectedSubMenu"] == "Filter") {%> class="selected" <%}%>> 5 <%: Html.ActionLink( "Filter", "Index", "Filter") %>5 <%: Html.ActionLink( "Filter", "Index", "Filter") %> 6 6 </li> 7 7 <li <% if(Session["SelectedSubMenu"] == "Results") {%> class="selected" <%}%>>
Note: See TracChangeset
for help on using the changeset viewer.