C# 클래스 DotNetNuke.Modules.UserDefinedTable.UserDefinedTableController

The UserDefinedTableController class provides Business Layer methods of UDT for managing, editing and diplaying User Defined Table
상속: DotNetNuke.Modules.UserDefinedTable.Components.BaseController
파일 보기 프로젝트 열기: DNNCommunity/DNN.FormAndList 1 사용 예제들

공개 메소드들

메소드 설명
ColumnNameByDataType ( DataSet ds, string dataType ) : string

Returns the name of the first column with a given column type (valuable for Track Columns)

Context ( ) : DataTable
Context ( DotNetNuke.Entities.Modules.ModuleInfo moduleInfo, DotNetNuke.Entities.Users.UserInfo userInfo, string searchInput, string orderBy, string orderDirection, string paging ) : DataTable

Provides a list of context variables for XML output

Context ( string searchInput, string orderBy, string orderDirection, string paging ) : DataTable
DeleteRow ( int userDefinedRowId ) : void

deletes a data row in the database

DeleteRows ( ) : void

deletes all data rows of a module in the database

FieldHasData ( int fieldId ) : bool
FillDefaultData ( int fieldId, string defaultExpression ) : void

fills all missing values for a field in all rows with default values. If not default is provided or all fields are already initialized, nothing is changed.

GetDataSet ( ) : DataSet

Gets all Data values of an UDT table (module) from the Database as DataSet

GetDataSet ( bool withPreRenderedValues ) : DataSet

Gets all Data values of an UDT table (module) from the Database as DataSet

GetDataSet ( int moduleId ) : DataSet

Gets all Data values of an UDT table (module) from the Database as DataSet

GetRow ( int userDefinedRowId ) : DataSet
GetRow ( int userDefinedRowId, bool withPreRenderedValues, bool filterScript = false ) : DataSet
GetSchemaDataset ( ) : DataSet
RenderValuesToHtmlInsideDataSet ( DataSet ds, bool filterScript = false ) : void
ResetModule ( ) : void

delete a whole table of a module.

SetEditLinksAndVisibilityBasedOnPermissions ( DataSet ds ) : void
UpdateRow ( DataSet ds ) : void
UpdateRow ( DataSet ds, int rowNr, bool isDataToImport ) : void
UserDefinedTableController ( ) : System
UserDefinedTableController ( DotNetNuke.Entities.Modules.ModuleInfo moduleinfo ) : System
UserDefinedTableController ( DotNetNuke.UI.Modules.ModuleInstanceContext moduleContext ) : System
UserDefinedTableController ( int moduleid ) : System
UserDefinedTableController ( int moduleId, int tabId, DotNetNuke.Entities.Users.UserInfo userInfo ) : System

비공개 메소드들

메소드 설명
AddField ( string fieldtitle ) : int
AddField ( string fieldTitle, int before, string helpText, bool required, string fieldType, string Default, bool visible, bool showOnEdit, bool searchable, bool isPrivateColumn, bool multipleValues, string inputSettings, string outputSettings, bool normalizeFlag, string validationRule, string validationMessage, string editStyle ) : int
AddRow ( ) : int

add a new data row in the database

BuildMainDataSet ( DataTable fieldsTable, IDataReader dr, bool rowMode ) : DataSet
DeleteField ( int userDefinedFieldId ) : void
GetFieldsTable ( ) : DataTable
GetFieldsTable ( bool addNewColumn ) : DataTable
GetFieldsTable ( bool addNewColumn, bool addAuditColumns ) : DataTable
GetMaxFieldSize ( ) : int
SwapFieldOrder ( int firstUserDefinedFieldId, int secondUserDefinedFieldId ) : void
UpdateData ( int rowId, string>.IDictionary values ) : void
UpdateField ( int userDefinedFieldId, string fieldTitle, string helpText, bool required, string fieldType, string Default, bool visible, bool showOnEdit, bool searchable, bool isPrivateColumn, bool multipleValues, string inputSettings, string outputSettings, bool normalizeFlag, string validationRule, string validationMessage, string editStyle ) : void

메소드 상세

ColumnNameByDataType() 공개 메소드

Returns the name of the first column with a given column type (valuable for Track Columns)
public ColumnNameByDataType ( DataSet ds, string dataType ) : string
ds System.Data.DataSet DataSet with column definitions
dataType string type to be searched
리턴 string

Context() 공개 메소드

public Context ( ) : DataTable
리턴 System.Data.DataTable

Context() 공개 메소드

Provides a list of context variables for XML output
public Context ( DotNetNuke.Entities.Modules.ModuleInfo moduleInfo, DotNetNuke.Entities.Users.UserInfo userInfo, string searchInput, string orderBy, string orderDirection, string paging ) : DataTable
moduleInfo DotNetNuke.Entities.Modules.ModuleInfo
userInfo DotNetNuke.Entities.Users.UserInfo
searchInput string
orderBy string
orderDirection string
paging string
리턴 System.Data.DataTable

Context() 공개 메소드

public Context ( string searchInput, string orderBy, string orderDirection, string paging ) : DataTable
searchInput string
orderBy string
orderDirection string
paging string
리턴 System.Data.DataTable

DeleteRow() 공개 메소드

deletes a data row in the database
public DeleteRow ( int userDefinedRowId ) : void
userDefinedRowId int ID of the row to be deleted
리턴 void

DeleteRows() 공개 메소드

deletes all data rows of a module in the database
public DeleteRows ( ) : void
리턴 void

FieldHasData() 공개 메소드

public FieldHasData ( int fieldId ) : bool
fieldId int
리턴 bool

FillDefaultData() 공개 메소드

fills all missing values for a field in all rows with default values. If not default is provided or all fields are already initialized, nothing is changed.
public FillDefaultData ( int fieldId, string defaultExpression ) : void
fieldId int ID of the Field. /// If this param is omitted, all fields will be applied.
defaultExpression string Expression to be filled in, either constant or /// containing tokens.
리턴 void

GetDataSet() 공개 메소드

Gets all Data values of an UDT table (module) from the Database as DataSet
public GetDataSet ( ) : DataSet
리턴 System.Data.DataSet

GetDataSet() 공개 메소드

Gets all Data values of an UDT table (module) from the Database as DataSet
public GetDataSet ( bool withPreRenderedValues ) : DataSet
withPreRenderedValues bool specifies, whether links, dates etc. shall be prerendered for XML output
리턴 System.Data.DataSet

GetDataSet() 공개 메소드

Gets all Data values of an UDT table (module) from the Database as DataSet
public GetDataSet ( int moduleId ) : DataSet
moduleId int
리턴 System.Data.DataSet

GetRow() 공개 메소드

public GetRow ( int userDefinedRowId ) : DataSet
userDefinedRowId int
리턴 System.Data.DataSet

GetRow() 공개 메소드

public GetRow ( int userDefinedRowId, bool withPreRenderedValues, bool filterScript = false ) : DataSet
userDefinedRowId int
withPreRenderedValues bool
filterScript bool
리턴 System.Data.DataSet

GetSchemaDataset() 공개 메소드

public GetSchemaDataset ( ) : DataSet
리턴 System.Data.DataSet

RenderValuesToHtmlInsideDataSet() 공개 메소드

public RenderValuesToHtmlInsideDataSet ( DataSet ds, bool filterScript = false ) : void
ds System.Data.DataSet
filterScript bool
리턴 void

ResetModule() 공개 메소드

delete a whole table of a module.
public ResetModule ( ) : void
리턴 void

SetEditLinksAndVisibilityBasedOnPermissions() 공개 메소드

public SetEditLinksAndVisibilityBasedOnPermissions ( DataSet ds ) : void
ds System.Data.DataSet
리턴 void

UpdateRow() 공개 메소드

public UpdateRow ( DataSet ds ) : void
ds System.Data.DataSet
리턴 void

UpdateRow() 공개 메소드

public UpdateRow ( DataSet ds, int rowNr, bool isDataToImport ) : void
ds System.Data.DataSet
rowNr int
isDataToImport bool
리턴 void

UserDefinedTableController() 공개 메소드

public UserDefinedTableController ( ) : System
리턴 System

UserDefinedTableController() 공개 메소드

public UserDefinedTableController ( DotNetNuke.Entities.Modules.ModuleInfo moduleinfo ) : System
moduleinfo DotNetNuke.Entities.Modules.ModuleInfo
리턴 System

UserDefinedTableController() 공개 메소드

public UserDefinedTableController ( DotNetNuke.UI.Modules.ModuleInstanceContext moduleContext ) : System
moduleContext DotNetNuke.UI.Modules.ModuleInstanceContext
리턴 System

UserDefinedTableController() 공개 메소드

public UserDefinedTableController ( int moduleid ) : System
moduleid int
리턴 System

UserDefinedTableController() 공개 메소드

public UserDefinedTableController ( int moduleId, int tabId, DotNetNuke.Entities.Users.UserInfo userInfo ) : System
moduleId int
tabId int
userInfo DotNetNuke.Entities.Users.UserInfo
리턴 System