public OnOffFilterConfiguration(FilterItem filterItem) { HasName(filterItem.Name); Layout.HasController <OnOffFilterLayoutController>(); HasConfig(filterItem); HasController <OnOffFilterController>(); Layout.HasConfig(filterItem); DataFlow.AddSource <CubeDataSourceBase>() .WithModule(filterItem.ViewId) .Transform().By <CubeDataToDictionaryTransformer>(); ModifyParameter(filterItem.ModifyParam); if (filterItem.HasParamDependency != null) { foreach (var p in filterItem.HasParamDependency) { HasParameterDependency.On(p); } } }
protected virtual void AddDataFlow(FilterItem filterItem) { DataFlow .AddSource <CubeDataSourceBase>() .WithModule(filterItem.ViewId) .Transform().By <CubeDataToDictionaryTransformer>(); }
public TopCountFilterConfiguration(FilterItem filterItem) { HasName(filterItem.Name); Layout.HasConfig(new FilterItem { Name = filterItem.Name, ControlId = filterItem.ControlId, Label = "", IsVisible = true }) .HasController <DropdownFilterLayoutController>(); DataFlow.AddSource <RecordCountSource>(); ModifyParameter(filterItem.ModifyParam); }
public CommonFilterConfiguration(FilterItem filterItem) { HasName(filterItem.Name); HasLabel(filterItem.Label); Reload.If(true); Layout.HasConfig(p => IsVisible(p, filterItem)) .HasController <DropdownFilterLayoutController>(); DataFlow.AddSource <CubeDataSourceBase>() .WithModule(filterItem.ViewId) .Transform().By <CubeDataToDictionaryTransformer>() .HasProperty(t => t.isReverse).WithValue(p => IsReverse(p, filterItem)); ModifyParameter(filterItem.ModifyParam); if (filterItem.HasParamDependency != null && filterItem.HasParamDependency.Count != 0) { HasParameterDependency.On(filterItem.HasParamDependency); } }
public DatePickerFilterConfiguration(FilterItem filterItem) { HasName(filterItem.Name); HasLabel(filterItem.Label); Layout.HasConfig(filterItem); Layout.HasController <DatePickerFilterLayoutController>(); HasConfig(filterItem); HasController <DatePickerFilterController>(); DataFlow.AddSource <DateFilterDataSource>() .WithModule(filterItem.ViewId); ModifyParameter(filterItem.ModifyParam); if (filterItem.HasParamDependency != null) { foreach (var p in filterItem.HasParamDependency) { HasParameterDependency.On(p); } } }
protected override void AddDataFlow(FilterItem filterItem) { DataFlow .AddSource <MeasureTypeDataLabelSource>(); }