Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/21/11 16:13:05 (13 years ago)
Author:
dhohl
Message:

#1499 Filter controls save the correct Comparison. Filter Label is correct.

File:
1 edited

Legend:

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

    r6191 r6245  
    2020 
    2121    <%: Html.Hidden(hiddenName,currentFilter.Id.ToString()) %>
    22     <%: Html.DropDownList(comboboxName, new SelectList(((FilterModel)Model).AvailableFilterForCombobox, "FilterTypeName", "Label"))%>
     22    <%: Html.DropDownList( comboboxName, new SelectList(((FilterModel)Model).AvailableFilterForCombobox, "FilterTypeName", "Label"))%>
    2323    <input type="submit" value="+" />
    2424</p>
     
    4949    <% NameStringComparisonFilter filter = ((NameStringComparisonFilter)f); %>
    5050    <%: Html.Label(filter.Label)%>
    51     <%: Html.Label("=")%>
     51    <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.StringComparisons, "Value", "Text",(int)filter.Comparison))%>   
    5252    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%>
    5353    <% }
     
    5656    <% StringComparisonAvailableValuesFilter filter = ((StringComparisonAvailableValuesFilter)f); %>
    5757    <%: Html.Label(filter.Label)%>
    58     <%: Html.Label("=")%>
     58    <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.StringComparisons, "Value", "Text",(int)filter.Comparison))%>   
    5959    <%: Html.DropDownList(f.Id + "." + FilterModel.ValueTextbox, new SelectList(filter.AvailableValues, filter.Value))%>
    6060    <% }
     
    6363    <% NameEqualityComparisonByteArrayFilter filter = ((NameEqualityComparisonByteArrayFilter)f); %>
    6464    <%: Html.Label(filter.Label)%>
    65       <%: Html.Label("teby")%>
     65    <%: Html.Label("not supported")%>
    6666    <% }
    6767else if ("NameEqualityComparisonBoolFilter".Equals(f.GetType().Name))
    6868{ %>
    69     <% NameEqualityComparisonBoolFilter filter = ((NameEqualityComparisonBoolFilter)f);
    70     %>
     69    <% NameEqualityComparisonBoolFilter filter = ((NameEqualityComparisonBoolFilter)f);   %>
    7170    <%: Html.Label(filter.Label)%>
    72     <%: Html.Label("is") %>
     71    <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.BoolComparisons, "Value", "Text",(int)filter.Comparison))%>     
    7372    <%: Html.DropDownList(f.Id + "." + FilterModel.ValueDropDownList, new SelectList(((FilterModel)Model).BoolStates, filter.Value))%>
    7473    <% }
     
    7776    <% NameOrdinalComparisonIntFilter filter = ((NameOrdinalComparisonIntFilter)f);   %>
    7877    <%: Html.Label(filter.Label)%>
    79     <%: Html.DropDownList(f.Id + "." + FilterModel.ValueDropDownList, new SelectList(FilterModel.OrdinalComparisons,"Value","Text", filter.Comparison))%>
     78    <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.OrdinalComparisons, "Value", "Text", (int)filter.Comparison))%>
    8079    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%>
    8180    <% }
     
    8483    <% NameStringComparisonAvailableValuesFilter filter = ((NameStringComparisonAvailableValuesFilter)f);   %>
    8584    <%: Html.Label(filter.Label)%>
    86     <%: Html.Label("=")%>
     85    <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.StringComparisons, "Value", "Text",(int)filter.Comparison))%>   
    8786    <%: Html.DropDownList(f.Id + "." + FilterModel.ValueDropDownList, new SelectList(filter.AvailableValues, filter.Value))%>
    8887    <% }
     
    9190    <% NameOrdinalComparisonDoubleFilter filter = ((NameOrdinalComparisonDoubleFilter)f);   %>
    9291    <%: Html.Label(filter.Label)%>
    93     <%: Html.Label("<")%>
     92    <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.OrdinalComparisons, "Value", "Text", (int)filter.Comparison))%>
    9493    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%>
    9594    <% }
     
    9897    <% NameOrdinalComparisonFloatFilter filter = ((NameOrdinalComparisonFloatFilter)f);   %>
    9998    <%: Html.Label(filter.Label)%>
    100     <%: Html.Label("<")%>
     99    <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.OrdinalComparisons, "Value", "Text", (int)filter.Comparison))%>
    101100    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%>
    102101    <% }
    103 else if ("NameOrdinalComparisonFloatFilter".Equals(f.GetType().Name))
     102else if ("NameOrdinalComparisonLongFilter".Equals(f.GetType().Name))
    104103{ %>
    105104    <% NameOrdinalComparisonLongFilter filter = ((NameOrdinalComparisonLongFilter)f);   %>
    106105    <%: Html.Label(filter.Label)%>
    107     <%: Html.Label("<")%>
     106    <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.OrdinalComparisons, "Value", "Text", (int)filter.Comparison))%>
    108107    <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%>
    109108    <% }                 
Note: See TracChangeset for help on using the changeset viewer.