Class ExportTemplate
This command executes the ExportTemplate system command
Exports a file with all the correct headers and formatting for the specified entity type. Includes two rows of dummy data.
Inherited Members
Namespace: LemonEdge.Client.Core.Commands
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.ExportTemplate, null)]
public class ExportTemplate : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
ExportTemplate(IRootController, IModelLayoutCommon, IExcelWriter)
Creates a new ExportTemplate command
Declaration
public ExportTemplate(IRootController root, IModelLayoutCommon owner, IExcelWriter excelWriter)
Parameters
Type | Name | Description |
---|---|---|
IRootController | root | The root controller, for service access. |
IModelLayoutCommon | owner | The owning context for this command |
IExcelWriter | excelWriter |
Methods
InternalCanExecute(object)
True - Can always be executed
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameters |
Returns
Type | Description |
---|---|
bool | True |
Overrides
InternalExecuteAsync(object)
Uses the EntityTypeSerializedParam to prompt the user with a window popup for the type of entity to export the import template for, and then exports the template as a file
Declaration
public override Task InternalExecuteAsync(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
Task | A task indicating the complation of the operation |