Main controllers

# Controller Custom routes Comment
1 DynamicDataSourceController DDS/{action}/{metaViewName}.ddsDDS/{metaViewName}.csvDDS/{metaViewName}.xlsDDS/{metaViewName}.xlsx Operations with data and uploading of data in the csv/xls/xlsx formats.
2 FileUploadController FU/{action}/ Loading/uploading of files.
3 ImportExportController Import of data
4 PermissionController Check of user access to operations
5 ScriptGeneratorController SG/Form/{metaViewName}.jsSG/{action}/{metaViewName}.jsSG/{action}/{metaViewName}{renderTo}{version}.jsSG/{action}/{metaViewName}{renderTo}{parentPropertyName}_{version}.js Grid Generator and editing forms.
6 WorkflowController WF/{action}/ Work with a workflow engine.
7 WorkspaceController WS/{form}/{action}/{id} Forms the user forms through OptimaJet.Workspace.

DynamicDataSourceController

Operations with data, receiving history and uploading of data in the csv/xls/xlsx formats.

# Method Parameters Comment
1 Get string metaViewName Operations with linear data. The type of operation is defined by HttpMethod value.
2 GetAJAXTree string metaViewName Operations with hierarchical data. The type of operation is defined by HttpMethod value.
3 Bulk string metaViewName Complex preservation of objects (basic entity and affiliated entity)
4 GetHistory string metaViewNameGuid id Returns history of object change
5 ExportCSV string metaViewName Exporting of data in the csv format
6 ExportXls string metaViewName Exporting of data in the xls format
7 ExportXlsx string metaViewName Exporting of data in the xlsx format

Parameters of filtration, sorting etc. are transferred to Request.QueryString.

Data are transferred in the JSON format.

Allocation of parameters from inquiry is realized in the following methods:

  • DynamicEntityJSONDataSource.GetSort
  • DynamicEntityJSONDataSource.GetFilter
  • DynamicEntityJSONDataSource.GetSearch
  • DynamicEntityJSONDataSource.GetBaseEntityIdName
  • DynamicEntityJSONDataSource.GetBaseEntityIdValue

ImportExportController

Import of data to system

# Method Parameters Comment
1 GetForms Returns the list of forms for data import. The list joins all forms with noted flag "Is available to import/export".
2 GetTemplate string name Returns a template for data import. The format of a template is defined on the basis of a form and the related representations.
3 UploadExcel string name Loads data into system on the specified template.

PermissionController

Check of permissions to executing operation.

Method Parameters Comment
1 FormCan string name, string permission Check a permission for Form
2 ViewCan string name, string permission Check a permission for View
3 Can string group, string permission Check a permission

ScriptGeneratorController

Script generation for difficult elements of the user interface

# Method Parameters Comment
1 Form string metaViewName,string formName,string templateName,string backFormName,string renderTo,string version,string id,bool? iscopy,string beidname,string beidvalue,string windowid,string gridid,string editform,bool? needredirect,int? selectquerytype,bool? customsave,bool? generatebuttons,string visibility Form generation
2 Grid string metaViewName,string renderTo,string version,string onrowdblclick,string customgridid,byte? mode,string beidname,string beidvalue,string editform,string addform,string copyform,bool? iswindow,string windowwidth,string windowheight,bool? customsave,int? parentselectquerytype,byte? selectionmodel,bool? grouping,string visibility,bool? summary,bool? parentContainerIsComonent,bool? isDashBoardGrid,string prefix,string gridname Grid generation
3 AJAXTreeGrid string metaViewName,string renderTo,string parentPropertyName,string version,string onrowdblclick,string customgridid,byte? mode,string beidname,string beidvalue,string editform,string addform,string copyform,bool? iswindow,string windowwidth,string windowheight,bool? customsave,string visibility,bool? parentContainerIsComonent,string gridname Tree generation

WorkflowController

Integration with an engine of workflow

# Method Parameters Comment
1 ExecuteCommand Guid id,string processName,string commandName,string parameters Executes document flow command
2 GetCommands string processName,Guid? id Returns the list of available commands
3 GetStates string processName,Guid? id Returns the list of the workflow statuses
4 GetAvailableStates string processName Returns the list of the available states for scheme of workflow
5 SetState Guid id,string processName,string stateName,string parameters Forcibly establishes the document status