Changeset 6245 for branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views
- Timestamp:
- 05/21/11 16:13:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Filter/Filters.ascx
r6191 r6245 20 20 21 21 <%: 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"))%> 23 23 <input type="submit" value="+" /> 24 24 </p> … … 49 49 <% NameStringComparisonFilter filter = ((NameStringComparisonFilter)f); %> 50 50 <%: Html.Label(filter.Label)%> 51 <%: Html. Label("=")%>51 <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.StringComparisons, "Value", "Text",(int)filter.Comparison))%> 52 52 <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%> 53 53 <% } … … 56 56 <% StringComparisonAvailableValuesFilter filter = ((StringComparisonAvailableValuesFilter)f); %> 57 57 <%: Html.Label(filter.Label)%> 58 <%: Html. Label("=")%>58 <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.StringComparisons, "Value", "Text",(int)filter.Comparison))%> 59 59 <%: Html.DropDownList(f.Id + "." + FilterModel.ValueTextbox, new SelectList(filter.AvailableValues, filter.Value))%> 60 60 <% } … … 63 63 <% NameEqualityComparisonByteArrayFilter filter = ((NameEqualityComparisonByteArrayFilter)f); %> 64 64 <%: Html.Label(filter.Label)%> 65 <%: Html.Label("teby")%>65 <%: Html.Label("not supported")%> 66 66 <% } 67 67 else if ("NameEqualityComparisonBoolFilter".Equals(f.GetType().Name)) 68 68 { %> 69 <% NameEqualityComparisonBoolFilter filter = ((NameEqualityComparisonBoolFilter)f); 70 %> 69 <% NameEqualityComparisonBoolFilter filter = ((NameEqualityComparisonBoolFilter)f); %> 71 70 <%: Html.Label(filter.Label)%> 72 <%: Html. Label("is") %>71 <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.BoolComparisons, "Value", "Text",(int)filter.Comparison))%> 73 72 <%: Html.DropDownList(f.Id + "." + FilterModel.ValueDropDownList, new SelectList(((FilterModel)Model).BoolStates, filter.Value))%> 74 73 <% } … … 77 76 <% NameOrdinalComparisonIntFilter filter = ((NameOrdinalComparisonIntFilter)f); %> 78 77 <%: 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))%> 80 79 <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%> 81 80 <% } … … 84 83 <% NameStringComparisonAvailableValuesFilter filter = ((NameStringComparisonAvailableValuesFilter)f); %> 85 84 <%: Html.Label(filter.Label)%> 86 <%: Html. Label("=")%>85 <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.StringComparisons, "Value", "Text",(int)filter.Comparison))%> 87 86 <%: Html.DropDownList(f.Id + "." + FilterModel.ValueDropDownList, new SelectList(filter.AvailableValues, filter.Value))%> 88 87 <% } … … 91 90 <% NameOrdinalComparisonDoubleFilter filter = ((NameOrdinalComparisonDoubleFilter)f); %> 92 91 <%: Html.Label(filter.Label)%> 93 <%: Html. Label("<")%>92 <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.OrdinalComparisons, "Value", "Text", (int)filter.Comparison))%> 94 93 <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%> 95 94 <% } … … 98 97 <% NameOrdinalComparisonFloatFilter filter = ((NameOrdinalComparisonFloatFilter)f); %> 99 98 <%: Html.Label(filter.Label)%> 100 <%: Html. Label("<")%>99 <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.OrdinalComparisons, "Value", "Text", (int)filter.Comparison))%> 101 100 <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%> 102 101 <% } 103 else if ("NameOrdinalComparison FloatFilter".Equals(f.GetType().Name))102 else if ("NameOrdinalComparisonLongFilter".Equals(f.GetType().Name)) 104 103 { %> 105 104 <% NameOrdinalComparisonLongFilter filter = ((NameOrdinalComparisonLongFilter)f); %> 106 105 <%: Html.Label(filter.Label)%> 107 <%: Html. Label("<")%>106 <%: Html.DropDownList(f.Id + "." + FilterModel.ComparisonDropDownList, new SelectList(FilterModel.OrdinalComparisons, "Value", "Text", (int)filter.Comparison))%> 108 107 <%: Html.TextBox(f.Id + "." + FilterModel.ValueTextbox, filter.Value)%> 109 108 <% }
Note: See TracChangeset
for help on using the changeset viewer.