Table of Contents

Class ActionsController

Namespace
JJMasterData.Web.Areas.DataDictionary.Controllers
Assembly
JJMasterData.Web.dll
public class ActionsController : DataDictionaryController, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
Inheritance
ActionsController
Implements
Inherited Members

Constructors

ActionsController(ActionsService, IEnumerable<IPluginHandler>)

public ActionsController(ActionsService actionsService, IEnumerable<IPluginHandler> pluginHandlers)

Parameters

actionsService ActionsService
pluginHandlers IEnumerable<IPluginHandler>

Methods

Add(string, string, ActionSource, string?, Guid?)

public Task<IActionResult> Add(string elementName, string actionType, ActionSource context, string? fieldName = null, Guid? pluginId = null)

Parameters

elementName string
actionType string
context ActionSource
fieldName string
pluginId Guid?

Returns

Task<IActionResult>

AddRelation(string, InternalAction, ActionSource, string, string, string?)

[HttpPost]
public Task<IActionResult> AddRelation(string elementName, InternalAction internalAction, ActionSource context, string redirectField, string internalField, string? fieldName)

Parameters

elementName string
internalAction InternalAction
context ActionSource
redirectField string
internalField string
fieldName string

Returns

Task<IActionResult>

AuditLogFormToolbarAction(string, AuditLogFormToolbarAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> AuditLogFormToolbarAction(string elementName, AuditLogFormToolbarAction auditLogAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
auditLogAction AuditLogFormToolbarAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

AuditLogGridToolbarAction(string, AuditLogGridToolbarAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> AuditLogGridToolbarAction(string elementName, AuditLogGridToolbarAction auditLogAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
auditLogAction AuditLogGridToolbarAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

BackAction(string, BackAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> BackAction(string elementName, BackAction cancelAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
cancelAction BackAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

CancelAction(string, CancelAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> CancelAction(string elementName, CancelAction cancelAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
cancelAction CancelAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

ConfigAction(string, ConfigAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> ConfigAction(string elementName, ConfigAction configAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
configAction ConfigAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

DeleteAction(string, DeleteAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> DeleteAction(string elementName, DeleteAction deleteAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
deleteAction DeleteAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

Edit(string, string, ActionSource, string)

public Task<IActionResult> Edit(string elementName, string actionName, ActionSource context, string fieldName)

Parameters

elementName string
actionName string
context ActionSource
fieldName string

Returns

Task<IActionResult>

EditAction(string, EditAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> EditAction(string elementName, EditAction editAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
editAction EditAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

EnableDisable(string, string, ActionSource, bool)

[HttpPost]
public Task<ActionResult> EnableDisable(string elementName, string actionName, ActionSource context, bool visibility)

Parameters

elementName string
actionName string
context ActionSource
visibility bool

Returns

Task<ActionResult>

ExportAction(string, ExportAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> ExportAction(string elementName, ExportAction exportAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
exportAction ExportAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

FilterAction(string, FilterAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> FilterAction(string elementName, FilterAction filterAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
filterAction FilterAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

FormEditAction(string, FormEditAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> FormEditAction(string elementName, FormEditAction cancelAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
cancelAction FormEditAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

HtmlTemplateAction(string, HtmlTemplateAction, ActionSource, string?, bool, string?)

[HttpPost]
public Task<IActionResult> HtmlTemplateAction(string elementName, HtmlTemplateAction htmlTemplateAction, ActionSource context, string? originalName, bool isActionSave, string? fieldName)

Parameters

elementName string
htmlTemplateAction HtmlTemplateAction
context ActionSource
originalName string
isActionSave bool
fieldName string

Returns

Task<IActionResult>

ImportAction(string, ImportAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> ImportAction(string elementName, ImportAction importAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
importAction ImportAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

Index(string)

public Task<ActionResult> Index(string elementName)

Parameters

elementName string

Returns

Task<ActionResult>

InsertAction(string, InsertAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> InsertAction(string elementName, InsertAction insertAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
insertAction InsertAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

InternalAction(string, InternalAction, ActionSource, string?, bool, string?)

[HttpPost]
public Task<IActionResult> InternalAction(string elementName, InternalAction internalAction, ActionSource context, string? originalName, bool isActionSave, string? fieldName)

Parameters

elementName string
internalAction InternalAction
context ActionSource
originalName string
isActionSave bool
fieldName string

Returns

Task<IActionResult>

LegendAction(string, LegendAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> LegendAction(string elementName, LegendAction legendAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
legendAction LegendAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

PluginAction(string, PluginAction, ActionSource, string?, bool, string?)

[HttpPost]
public Task<IActionResult> PluginAction(string elementName, PluginAction pluginAction, ActionSource context, string? originalName, bool isActionSave, string? fieldName)

Parameters

elementName string
pluginAction PluginAction
context ActionSource
originalName string
isActionSave bool
fieldName string

Returns

Task<IActionResult>

PluginFieldAction(string, PluginFieldAction, ActionSource, string?, bool, string?)

[HttpPost]
public Task<IActionResult> PluginFieldAction(string elementName, PluginFieldAction pluginFieldAction, ActionSource context, string? originalName, bool isActionSave, string? fieldName)

Parameters

elementName string
pluginFieldAction PluginFieldAction
context ActionSource
originalName string
isActionSave bool
fieldName string

Returns

Task<IActionResult>

RefreshAction(string, RefreshAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> RefreshAction(string elementName, RefreshAction refreshAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
refreshAction RefreshAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

Remove(string, string, ActionSource, string?)

[HttpPost]
public Task<ActionResult> Remove(string elementName, string actionName, ActionSource context, string? fieldName)

Parameters

elementName string
actionName string
context ActionSource
fieldName string

Returns

Task<ActionResult>

RemoveRelation(string, InternalAction, ActionSource, int, string?)

[HttpPost]
public Task<IActionResult> RemoveRelation(string elementName, InternalAction internalAction, ActionSource context, int relationIndex, string? fieldName)

Parameters

elementName string
internalAction InternalAction
context ActionSource
relationIndex int
fieldName string

Returns

Task<IActionResult>

SaveAction(string, SaveAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> SaveAction(string elementName, SaveAction saveAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
saveAction SaveAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

ScriptAction(string, ScriptAction, ActionSource, string?, bool, string?)

[HttpPost]
public Task<IActionResult> ScriptAction(string elementName, ScriptAction scriptAction, ActionSource context, string? originalName, bool isActionSave, string? fieldName)

Parameters

elementName string
scriptAction ScriptAction
context ActionSource
originalName string
isActionSave bool
fieldName string

Returns

Task<IActionResult>

Sort(string, string, ActionSource, string?)

[HttpPost]
public Task<ActionResult> Sort(string elementName, string fieldsOrder, ActionSource context, string? fieldName)

Parameters

elementName string
fieldsOrder string
context ActionSource
fieldName string

Returns

Task<ActionResult>

SortAction(string, SortAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> SortAction(string elementName, SortAction sortAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
sortAction SortAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>

SqlCommandAction(string, SqlCommandAction, ActionSource, string?, bool, string?)

[HttpPost]
public Task<IActionResult> SqlCommandAction(string elementName, SqlCommandAction sqlAction, ActionSource context, string? originalName, bool isActionSave, string? fieldName)

Parameters

elementName string
sqlAction SqlCommandAction
context ActionSource
originalName string
isActionSave bool
fieldName string

Returns

Task<IActionResult>

UrlRedirectAction(string, UrlRedirectAction, ActionSource, string?, string?, bool)

[HttpPost]
public Task<IActionResult> UrlRedirectAction(string elementName, UrlRedirectAction urlAction, ActionSource context, string? fieldName, string? originalName, bool isActionSave)

Parameters

elementName string
urlAction UrlRedirectAction
context ActionSource
fieldName string
originalName string
isActionSave bool

Returns

Task<IActionResult>

ViewAction(string, ViewAction, ActionSource, string?, bool)

[HttpPost]
public Task<IActionResult> ViewAction(string elementName, ViewAction viewAction, ActionSource context, string? originalName, bool isActionSave)

Parameters

elementName string
viewAction ViewAction
context ActionSource
originalName string
isActionSave bool

Returns

Task<IActionResult>