Свойство | Тип | Описание | |
---|---|---|---|
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 ( |
||
Create ( ) : ItemRelationship | ||
FillListControl ( System.Windows.Forms.TreeNode root, ListControl lc, int itemToExclude ) : void |
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 |
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 |
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 |
public static DisplayCategoryHierarchy ( ListControl lc, int categoryId, int portalId, bool includeParentCategory ) : void | ||
lc | ListControl | The |
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 |
Результат | void |
public static DisplayCategoryHierarchy ( ListControl lc, int categoryId, int portalId, bool includeParentCategory, int itemToExclude ) : void | ||
lc | ListControl | The |
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 |
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 |
public DisplayChildren ( ListControl lc, int portalId ) : void | ||
lc | ListControl | |
portalId | int | |
Результат | void |
public DisplayChildren ( ListControl lc, int portalId, int itemToExclude ) : void | ||
lc | ListControl | |
portalId | int | |
itemToExclude | int | |
Результат | void |
public static GetAllChildren ( int parentId, int relationshipTypeId, int portalId ) : DataSet | ||
parentId | int | |
relationshipTypeId | int | |
portalId | int | |
Результат | DataSet |
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 |
public static GetAllChildrenNLevelsInDataTable ( int parentCategoryId, int nLevels, int mItems, int portalId ) : DataTable | ||
parentCategoryId | int | |
nLevels | int | |
mItems | int | |
portalId | int | |
Результат | DataTable |
public static GetAllRelationships ( int moduleId ) : List |
||
moduleId | int | |
Результат | List |
public static GetAllRelationshipsByPortalId ( int portalId ) : List |
||
portalId | int | |
Результат | List |
public static GetItemChildRelationships ( int parentItemId, int relationshipTypeId ) : ArrayList | ||
parentItemId | int | |
relationshipTypeId | int | |
Результат | ArrayList |
public static GetItemChildRelationships ( int parentItemId, int relationshipTypeId, int portalId ) : ArrayList | ||
parentItemId | int | |
relationshipTypeId | int | |
portalId | int | |
Результат | ArrayList |
public static GetItemRelationshipByItemRelationshipId ( int itemRelationshipId ) : DataSet | ||
itemRelationshipId | int | |
Результат | DataSet |
public static GetItemRelationships ( int childItemId, int childItemVersionId, int relationshipTypeId, bool isActive ) : ArrayList | ||
childItemId | int | |
childItemVersionId | int | |
relationshipTypeId | int | |
isActive | bool | |
Результат | ArrayList |
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 |
public static GetItemRelationships ( int childItemId, int childItemVersionId, bool isActive ) : List |
||
childItemId | int | |
childItemVersionId | int | |
isActive | bool | |
Результат | List |
public Import ( int currentModuleId, int portalId ) : void | ||
currentModuleId | int | |
portalId | int | |
Результат | void |
public static UpdateItemRelationship ( int itemRelationshipId, int sortOrder ) : void | ||
itemRelationshipId | int | |
sortOrder | int | |
Результат | void |