Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/12/11 20:08:00 (14 years ago)
Author:
dhohl
Message:

#1499 refactor, first part of the comparison combobox for the different filters, Controls for the Filters

File:
1 edited

Legend:

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

    r6170 r6190  
    4040    <% StringComparisonFilter filter = ((StringComparisonFilter)f); %>
    4141    <%: Html.Label(filter.Label)%>
    42     <%: Html.Label("=")%>
     42    <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.StringComparisons,"Value","Text", filter.Comparison))%>   
    4343    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, (filter.Value))%>
    4444    <% }
     
    4747    <% NameStringComparisonFilter filter = ((NameStringComparisonFilter)f); %>
    4848    <%: Html.Label(filter.Label)%>
    49     <%: Html.Label("=" + f.Id)%>
     49    <%: Html.Label("=")%>
    5050    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%>
    5151    <% }
     
    6161    <% NameEqualityComparisonByteArrayFilter filter = ((NameEqualityComparisonByteArrayFilter)f); %>
    6262    <%: Html.Label(filter.Label)%>
     63      <%: Html.Label("teby")%>
    6364    <% }
    6465else if ("NameEqualityComparisonBoolFilter".Equals(f.GetType().Name))
     
    6768    %>
    6869    <%: Html.Label(filter.Label)%>
    69     <%: Html.Label("is")%>
     70    <%: Html.Label("is") %>
    7071    <%: Html.DropDownList(f.Id + "." + FilterModel.ValueDropDownList, new SelectList(((FilterModel)Model).BoolStates, filter.Value))%>
    7172    <% }
     
    7475    <% NameOrdinalComparisonIntFilter filter = ((NameOrdinalComparisonIntFilter)f);   %>
    7576    <%: Html.Label(filter.Label)%>
    76     <%: Html.Label("is")%>
     77    <%: Html.DropDownList(f.Id + "." + FilterModel.ValueDropDownList, new SelectList(FilterModel.OrdinalComparisons,"Value","Text", filter.Comparison))%>
     78    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%>
    7779    <% }
    7880else if ("NameStringComparisonAvailableValuesFilter".Equals(f.GetType().Name))
     
    8789    <% NameOrdinalComparisonDoubleFilter filter = ((NameOrdinalComparisonDoubleFilter)f);   %>
    8890    <%: Html.Label(filter.Label)%>
    89     <%: Html.Label("=")%>
     91    <%: Html.Label("<")%>
    9092    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%>
    9193    <% }
     
    9496    <% NameOrdinalComparisonFloatFilter filter = ((NameOrdinalComparisonFloatFilter)f);   %>
    9597    <%: Html.Label(filter.Label)%>
    96     <%: Html.Label("=")%>
     98    <%: Html.Label("<")%>
    9799    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%>
    98100    <% }
     
    101103    <% NameOrdinalComparisonLongFilter filter = ((NameOrdinalComparisonLongFilter)f);   %>
    102104    <%: Html.Label(filter.Label)%>
    103     <%: Html.Label("=")%>
     105    <%: Html.Label("<")%>
    104106    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%>
    105107    <% }                 
Note: See TracChangeset for help on using the changeset viewer.