Click or drag to resize

ExportItem Class

This represents an item that corresponds to one or more ExportDataRows and ListViewExRows in Export. This class handles the fact that the same Item might be present in Export structure in multiple parent contexts and thus changing an item field should reflect to all rows. While DataRows are always discarded and recreated between various states of the export, this object remains and get re-attached to new instances of ExportDataRows. This allows inheritant of this item object to retain values and state. If there are no DataRows attached at any given state, that means user has removed the row from Export and this object has become dangling, and thus should be ignored.
Inheritance Hierarchy
SystemObject
  CTExtensions.ExportCore.ExportHandlerExportItem

Namespace:  CTExtensions.ExportCore.ExportHandler
Assembly:  CTInterface (in CTInterface.dll)
Syntax
public class ExportItem

The ExportItem type exposes the following members.

Constructors
  NameDescription
Public methodExportItem
Constructor. Init(IGenericExportHandler, String) is called after.
Top
Properties
  NameDescription
Public propertyAttachments
Attachment rows of this item. The Item2 of the Tuple is top assembly configuration.
Public propertyCancelConversions
Set this flag to true to cancel all conversions related to this item.
Public propertyChildren
Child items for this item.
Public propertyCollectedConversions
Document Conversion collected during export procedure for this item.
Public propertyDataRows
Datarows of this item. The Item2 of the Tuple is top assembly configuration.
Protected propertyExportHandler
Protected propertyExportProfile
Currently Active Export Profile
Public propertyFields
Export Profile Fields.
Public propertyID
Unique identifier for this Item. This object is considered identical to another object of the same type, if IDs are equal.
Public propertyItemError
Protected propertyParentExtension
Parent Extension
Public propertyParents
Parent items for this item. Empty for root item.
Public propertyPreview
Public propertyRowColorController
Color Controller for row/cell colors.
Public propertyUIRows
UI Rows mapped to this item. Not available after deserialization.
Top
Methods
  NameDescription
Public methodAddGhostItemT
Public methodBOMFieldChanged
Has the BOM field value changed from original. Null and empty are considered the same.
Public methodCacheWriteBack
Cache writeback value for given field.
Public methodCacheWriteBacks
Adds given writebacks. Overwrites existing if same target already cached.
Public methodCollectDocumentConversion
Add Collected conversion.
Public methodCreateWriteBacks
Resolves writeback targets for given field. Value can be given optionally.
Public methodDeserialize
Deserialize this item. All items are pre-initialized with their IDs and can be found from the collection given as an argument; i.e. those can be used to create the child/parent relation structure.
Public methodDissolve
THIS IS NOT TESTED WELL
Public methodEquals
Public methodExcludedFromAllParents
Returns true if this item has zero quantity in all of its parents; or if is root item with zero quantity. Or if all grandparents are ExcludedFromAllParents -recursively.
Public methodFieldChanged
Has the field value changed from original. Null and empty are considered the same.
Public methodGeneratePreview
Generate preview if it doesn't exist yet. Returns existing preview unless forced.
Public methodGetBOMValue
Public methodGetCachedWriteBacks
Public methodGetHashCode
Public methodGetMaterialQuantityIn
Public methodGetQuantityIn
Public methodGetRightClickMenu
Public methodGetValue
Protected methodLog
Do the Logging
Public methodPromote
THIS IS NOT TESTED WELL
Public methodRemove
Remove this item and this items children from the export.
Public methodRequiresWriteBack
Return true if this item has cached writebacks
Public methodSerialize
Serialize this item.
Public methodSetBOMValue
Public methodSetQuantityIn
Public methodSetValue
Public methodToString
Public methodValidateFieldConsistency
Public methodValidateFieldConsistencyInParents
Top
See Also