Class RunReport
A command used to execute and run a provided IReport using the UNIQUE_TASK_ID server task
Inheritance
System.Object
RunReport
Implements
System.IDisposable
System.Windows.Input.ICommand
Inherited Members
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.Commands.ViewCommands
Assembly: ClientCore.dll
Syntax
public class RunReport : TaskBase, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
RunReport(IModelLayoutCommon, Func<IReportBase>)
Createsa new instance of the run report command
Declaration
public RunReport(IModelLayoutCommon host, Func<IReportBase> getReport)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | host | The host this command operates within |
System.Func<IReportBase> | getReport | A function that returns the report to execute as a UNIQUE_TASK_ID server task |
Methods
GetParameters()
Retrieves the parameters to display to the user for this report.
Requires the report to have a parameter type that inherits ExecuteReportParameter and is marked with the ReportParameterAttribute and has its own view controller inheriting ReportParamController<T>
Declaration
protected override Task<ServerTaskParameter> GetParameters()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServerTaskParameter> | The parameters to display to the user for this report |
Overrides
InternalCanExecute(Object)
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
System.IDisposable
System.Windows.Input.ICommand