Search Results for

    Show / Hide Table of Contents

    Class ReportParamController<T>

    A controller for displaying the ExecuteReportParameter parameters to the user for choosing the data they would like to export

    Inheritance
    System.Object
    PopupWindowController
    PopupWindowController<T>
    ParamViewerController<T>
    ParamSingleViewerController<T>
    ReportParamController<T>
    SSRSReportParamController
    Implements
    IParamViewerController
    IPopupWindowController
    IController
    Inherited Members
    ParamSingleViewerController<T>.Host
    ParamSingleViewerController<T>.SingleWindow
    ParamSingleViewerController<T>.OnItemChanged(Object, PropertyChangedEventArgs)
    ParamSingleViewerController<T>.ControlNames()
    ParamSingleViewerController<T>.AlterControlInfo(ControlDisplayInfo)
    ParamViewerController<T>.OriginalParam
    ParamViewerController<T>.IParamViewerController.OriginalParam
    ParamViewerController<T>.SetParam(T)
    PopupWindowController<T>.InitCommands(IList<ViewCommand>)
    PopupWindowController<T>.OwningWindow
    PopupWindowController<T>.Commands
    PopupWindowController<T>.OnOk(T)
    PopupWindowController<T>.Validate(T)
    PopupWindowController<T>.OnCancel()
    PopupWindowController<T>.GetResult
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.Client.Core.Tasks.Params
    Assembly: ClientCore.dll
    Syntax
    public abstract class ReportParamController<T> : ParamSingleViewerController<T>, IParamViewerController, IPopupWindowController, IController where T : ExecuteReportParameter
    Type Parameters
    Name Description
    T

    Constructors

    ReportParamController(IParamSingleViewer<T>, T)

    Creates a new report data parameter controller

    Declaration
    public ReportParamController(IParamSingleViewer<T> window, T param)
    Parameters
    Type Name Description
    IParamSingleViewer<T> window

    The parameter popup window for displaying these parameters

    T param

    The initial parameters to display

    Methods

    Controls()

    Creates all the controls for the parameters for this report along with any custom parameters from the parameter class itself

    Declaration
    protected override IEnumerable<ControlDisplayInfo> Controls()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ControlDisplayInfo>

    All controls to be displayed

    Overrides
    LemonEdge.Client.Core.Support.ParamSingleViewerController<T>.Controls()

    CreateCustomControls(Dictionary<SQLWrapperInterpretor.ResultType, Int16>, Int16)

    Provides the inheriting controller a chance to create any custom controls to be displayed that are bound to properties against a ISQLWrapperResult and should increment resultTypePropertyIndexes accordingly for each property type

    Declaration
    protected abstract IEnumerable<ControlDisplayInfo> CreateCustomControls(Dictionary<SQLWrapperInterpretor.ResultType, short> resultTypePropertyIndexes, short controlIndex)
    Parameters
    Type Name Description
    System.Collections.Generic.Dictionary<SQLWrapperInterpretor.ResultType, System.Int16> resultTypePropertyIndexes

    The index to be used for the next bound property value. Should be incremented for each control type created

    System.Int16 controlIndex

    The index of the next control to create

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ControlDisplayInfo>

    All custom controls to be displayed

    Display()

    Displays all the parameters defined against the IReport as controls

    Declaration
    public override Task Display()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    Overrides
    LemonEdge.Client.Core.Support.ParamSingleViewerController<T>.Display()

    OnOk(Object)

    Retrieves all values from custom controls and writes them to the parameter values in OriginalParams

    Declaration
    public override void OnOk(object result)
    Parameters
    Type Name Description
    System.Object result

    The current parameter values

    Overrides
    LemonEdge.Client.Core.Support.PopupWindowController<T>.OnOk(System.Object)

    SetCustomPropertiesForDisplay(T, ISQLWrapperResult)

    Provides the implementing parameter controller a chance to set any custom property values against the displayedValues

    Declaration
    protected abstract void SetCustomPropertiesForDisplay(T paramValues, ISQLWrapperResult displayedValues)
    Parameters
    Type Name Description
    T paramValues

    The values to display from this parameter

    ISQLWrapperResult displayedValues

    The class that holds the values being displayed in the viewer

    SetCustomPropertiesFromDisplay(ISQLWrapperResult, T)

    Provides the implementing parameter controller a chance to get any custom property values from the displayedValues and set them back to the parameter

    Declaration
    protected abstract void SetCustomPropertiesFromDisplay(ISQLWrapperResult displayedValues, T paramValues)
    Parameters
    Type Name Description
    ISQLWrapperResult displayedValues

    The class that holds the values being displayed in the viewer, that we should retrieve if any

    T paramValues

    The values from this parameter that should be set with any custom ones from the display

    Implements

    IParamViewerController
    IPopupWindowController
    IController

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.