C# Класс Engage.Dnn.Publish.ItemRelationship

Наследование: Engage.Dnn.Publish.Portability.TransportableElement
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BuildHierarchy System.Windows.Forms.TreeNode
Create ItemRelationship
FillListControl void

Открытые методы

Метод Описание
AddItemRelationship ( IDbTransaction trans, int childItemId, int childItemVersionId, int parentItemId, int relationshipTypeId, string startDate, string endDate, int sortOrder ) : void
AddItemRelationship ( int childItemId, int childItemVersionId, int parentItemId, int relationshipTypeId, string startDate, string endDate, int sortOrder ) : void
AddItemRelationshipWithOriginalSortOrder ( IDbTransaction trans, int childItemId, int childItemVersionId, int parentItemId, int relationshipTypeId, string startDate, string endDate, int originalItemVersionId ) : void
CorrectDates ( ) : void
DisplayCategoryHierarchy ( ListControl lc, int categoryId, int portalId, bool includeParentCategory ) : void

Inserts a collection of ListItem into a System.Web.UI.WebControls.ListControl. Each item has a value of the name of the category plus ticks to indicate hierarchy between categories. Each item has a value of the category's itemId. If you have problems showing all Categories, you can try using DisplayChildren(ListControl, int, int?) on an instantiated ItemRelationship (see Controls.ItemRelationships.UpdateAvailableItems for an example).

DisplayCategoryHierarchy ( ListControl lc, int categoryId, int portalId, bool includeParentCategory, int itemToExclude ) : void

Inserts a collection of ListItem into a System.Web.UI.WebControls.ListControl. Each item has a value of the name of the category plus ticks to indicate hierarchy between categories. Each item has a value of the category's itemId. If you have problems showing all Categories, you can try using DisplayChildren(ListControl, int, int?) on an instantiated ItemRelationship (see Controls.ItemRelationships.UpdateAvailableItems for an example).

DisplayChildren ( ListControl lc, int portalId ) : void
DisplayChildren ( ListControl lc, int portalId, int itemToExclude ) : void
GetAllChildren ( int parentId, int relationshipTypeId, int portalId ) : DataSet
GetAllChildrenNLevels ( int parentCategoryId, int nLevels, int mItems, int portalId ) : System.Windows.Forms.TreeNode
GetAllChildrenNLevelsInDataTable ( int parentCategoryId, int nLevels, int mItems, int portalId ) : DataTable
GetAllRelationships ( int moduleId ) : List
GetAllRelationshipsByPortalId ( int portalId ) : List
GetItemChildRelationships ( int parentItemId, int relationshipTypeId ) : ArrayList
GetItemChildRelationships ( int parentItemId, int relationshipTypeId, int portalId ) : ArrayList
GetItemRelationshipByItemRelationshipId ( int itemRelationshipId ) : DataSet
GetItemRelationships ( int childItemId, int childItemVersionId, int relationshipTypeId, bool isActive ) : ArrayList
GetItemRelationships ( int childItemId, int childItemVersionId, int relationshipTypeId, bool isActive, int portalId ) : ArrayList
GetItemRelationships ( int childItemId, int childItemVersionId, bool isActive ) : List
Import ( int currentModuleId, int portalId ) : void

This method is invoked by the Import mechanism and has to take this instance of a ItemRelationship and resolve all the id's using the names supplied in the export. hk

ItemRelationship ( ) : System
UpdateItemRelationship ( int itemRelationshipId, int sortOrder ) : void

Приватные методы

Метод Описание
BuildHierarchy ( DataTable dt ) : System.Windows.Forms.TreeNode
Create ( ) : ItemRelationship
FillListControl ( System.Windows.Forms.TreeNode root, ListControl lc, int itemToExclude ) : void

Описание методов

AddItemRelationship() публичный статический Метод

public static AddItemRelationship ( IDbTransaction trans, int childItemId, int childItemVersionId, int parentItemId, int relationshipTypeId, string startDate, string endDate, int sortOrder ) : void
trans IDbTransaction
childItemId int
childItemVersionId int
parentItemId int
relationshipTypeId int
startDate string
endDate string
sortOrder int
Результат void

AddItemRelationship() публичный статический Метод

public static AddItemRelationship ( int childItemId, int childItemVersionId, int parentItemId, int relationshipTypeId, string startDate, string endDate, int sortOrder ) : void
childItemId int
childItemVersionId int
parentItemId int
relationshipTypeId int
startDate string
endDate string
sortOrder int
Результат void

AddItemRelationshipWithOriginalSortOrder() публичный статический Метод

public static AddItemRelationshipWithOriginalSortOrder ( IDbTransaction trans, int childItemId, int childItemVersionId, int parentItemId, int relationshipTypeId, string startDate, string endDate, int originalItemVersionId ) : void
trans IDbTransaction
childItemId int
childItemVersionId int
parentItemId int
relationshipTypeId int
startDate string
endDate string
originalItemVersionId int
Результат void

CorrectDates() публичный Метод

public CorrectDates ( ) : void
Результат void

DisplayCategoryHierarchy() публичный статический Метод

Inserts a collection of ListItem into a System.Web.UI.WebControls.ListControl. Each item has a value of the name of the category plus ticks to indicate hierarchy between categories. Each item has a value of the category's itemId. If you have problems showing all Categories, you can try using DisplayChildren(ListControl, int, int?) on an instantiated ItemRelationship (see Controls.ItemRelationships.UpdateAvailableItems for an example).
public static DisplayCategoryHierarchy ( ListControl lc, int categoryId, int portalId, bool includeParentCategory ) : void
lc ListControl The into which the category options will be added.
categoryId int The id of the parent category from which the hierarchy will start, or -1 if all categories.
portalId int The id of the portal in which these categories reside.
includeParentCategory bool if set to true includes the parent category in the list, otherwise only shows the parent's children. This is ignored if the TopLevelCategory is selected.
Результат void

DisplayCategoryHierarchy() публичный статический Метод

Inserts a collection of ListItem into a System.Web.UI.WebControls.ListControl. Each item has a value of the name of the category plus ticks to indicate hierarchy between categories. Each item has a value of the category's itemId. If you have problems showing all Categories, you can try using DisplayChildren(ListControl, int, int?) on an instantiated ItemRelationship (see Controls.ItemRelationships.UpdateAvailableItems for an example).
public static DisplayCategoryHierarchy ( ListControl lc, int categoryId, int portalId, bool includeParentCategory, int itemToExclude ) : void
lc ListControl The into which the category options will be added.
categoryId int The id of the parent category from which the hierarchy will start, or -1 if all categories.
portalId int The id of the portal in which these categories reside.
includeParentCategory bool if set to true includes the parent category in the list, otherwise only shows the parent's children. This is ignored if the TopLevelCategory is selected.
itemToExclude int An item which you want to exclude from the list (including its children). This is typically used to keep circular relationships from being possibe options.
Результат void

DisplayChildren() публичный Метод

public DisplayChildren ( ListControl lc, int portalId ) : void
lc ListControl
portalId int
Результат void

DisplayChildren() публичный Метод

public DisplayChildren ( ListControl lc, int portalId, int itemToExclude ) : void
lc ListControl
portalId int
itemToExclude int
Результат void

GetAllChildren() публичный статический Метод

public static GetAllChildren ( int parentId, int relationshipTypeId, int portalId ) : DataSet
parentId int
relationshipTypeId int
portalId int
Результат DataSet

GetAllChildrenNLevels() публичный статический Метод

public static GetAllChildrenNLevels ( int parentCategoryId, int nLevels, int mItems, int portalId ) : System.Windows.Forms.TreeNode
parentCategoryId int
nLevels int
mItems int
portalId int
Результат System.Windows.Forms.TreeNode

GetAllChildrenNLevelsInDataTable() публичный статический Метод

public static GetAllChildrenNLevelsInDataTable ( int parentCategoryId, int nLevels, int mItems, int portalId ) : DataTable
parentCategoryId int
nLevels int
mItems int
portalId int
Результат DataTable

GetAllRelationships() публичный статический Метод

public static GetAllRelationships ( int moduleId ) : List
moduleId int
Результат List

GetAllRelationshipsByPortalId() публичный статический Метод

public static GetAllRelationshipsByPortalId ( int portalId ) : List
portalId int
Результат List

GetItemChildRelationships() публичный статический Метод

public static GetItemChildRelationships ( int parentItemId, int relationshipTypeId ) : ArrayList
parentItemId int
relationshipTypeId int
Результат ArrayList

GetItemChildRelationships() публичный статический Метод

public static GetItemChildRelationships ( int parentItemId, int relationshipTypeId, int portalId ) : ArrayList
parentItemId int
relationshipTypeId int
portalId int
Результат ArrayList

GetItemRelationshipByItemRelationshipId() публичный статический Метод

public static GetItemRelationshipByItemRelationshipId ( int itemRelationshipId ) : DataSet
itemRelationshipId int
Результат DataSet

GetItemRelationships() публичный статический Метод

public static GetItemRelationships ( int childItemId, int childItemVersionId, int relationshipTypeId, bool isActive ) : ArrayList
childItemId int
childItemVersionId int
relationshipTypeId int
isActive bool
Результат ArrayList

GetItemRelationships() публичный статический Метод

public static GetItemRelationships ( int childItemId, int childItemVersionId, int relationshipTypeId, bool isActive, int portalId ) : ArrayList
childItemId int
childItemVersionId int
relationshipTypeId int
isActive bool
portalId int
Результат ArrayList

GetItemRelationships() публичный статический Метод

public static GetItemRelationships ( int childItemId, int childItemVersionId, bool isActive ) : List
childItemId int
childItemVersionId int
isActive bool
Результат List

Import() публичный Метод

This method is invoked by the Import mechanism and has to take this instance of a ItemRelationship and resolve all the id's using the names supplied in the export. hk
public Import ( int currentModuleId, int portalId ) : void
currentModuleId int
portalId int
Результат void

ItemRelationship() публичный Метод

public ItemRelationship ( ) : System
Результат System

UpdateItemRelationship() публичный статический Метод

public static UpdateItemRelationship ( int itemRelationshipId, int sortOrder ) : void
itemRelationshipId int
sortOrder int
Результат void