Namespace: Consultingwerk.SmartFramework.System
Class 
AttachmentDatasetController Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.SmartComponents.Interfaces.IDatasetController

File:AttachmentDatasetController
Author(s):Mike Fechner
Created:13.01.2013 11:21:55
Notes:Conditionally implements the IDatasetController Interface
when the SmartComponentLibrary preprocessor option is set.

Consultingwerk.SmartFramework.System.AttachmentBusinessEntity
Consultingwerk.SmartFramework.System.AttachmentBusinessEntity



Top Method Summary
Options Name Purpose
+ ClearListView () Clears the List View
+ CreateAttachment (character, character) Creates an attachment from the file name
+ CreateAttachments (character[], character) Creates attachments from file names (typically after a drag and drop operation of files)
+ DeregisterConsumer (Object) Invoked by SmartBusinessEntityAdapter and SmartDatasetChildAdapter instances when detaching from the Dataset of the DatasetController. Allows event unsubscription etc.
+ DragAttachment (character, Control) Starts Drag and Drop of the Attachment
+ PopulateListView (character) Populates the ListView with the current attachments
+ RegisterConsumer (Object) Invoked by SmartBusinessEntityAdapter and SmartDatasetChildAdapter instances when attaching to the Dataset of the DatasetController. Allows event subscription etc.
+ SaveAttachment (character, character) Saves an aAttachment to the file

Top Constructor Summary
Options Name Purpose
+ AttachmentDatasetController () Constructor of the AttachmentDatasetController class

Top Property Summary
Options Name Purpose
+ HANDLE DatasetHandle
+ Infragistics.Win.UltraWinListView.UltraListView ListView


Method Detail
Top

PUBLIC ClearListView ()

Purpose: Clears the List View
Notes:

Top

PUBLIC CreateAttachment (character, character)

Purpose: Creates an attachment from the file name
Notes:

Parameters:
pcFileName CHARACTER
The file name to import as Attachmens
pcPath CHARACTER
The pathname to add those files to
Top

PUBLIC CreateAttachments (character[], character)

Purpose: Creates attachments from file names (typically after a drag and
drop operation of files)
Notes:

Parameters:
pcFileNames CHARACTER
And Array of file names to import as Attachmens
pcPath CHARACTER
The pathname to add those files to
Top

PUBLIC DeregisterConsumer (Object)

Purpose: Invoked by SmartBusinessEntityAdapter and SmartDatasetChildAdapter
instances when detaching from the Dataset of the DatasetController.
Allows event unsubscription etc.
Notes: Interface IDatasetController member

Parameters:
poConsumer Progress.Lang.Object
The reference of the Object detaching from the Dataset Controller
Top

PUBLIC DragAttachment (character, Control)

Purpose: Starts Drag and Drop of the Attachment
Notes:

Parameters:
pcAttachmentKey CHARACTER
The key of the Attachment record for the drag and drop operation
poControl System.Windows.Forms.Control
The Control to start the Drag and Drop operation from
Top

PUBLIC PopulateListView (character)

Purpose: Populates the ListView with the current attachments
Notes:

Parameters:
pcFolder CHARACTER
The folder selected in the navigation bar
Top

PUBLIC RegisterConsumer (Object)

Purpose: Invoked by SmartBusinessEntityAdapter and SmartDatasetChildAdapter
instances when attaching to the Dataset of the DatasetController.
Allows event subscription etc.
Notes: Interface IDatasetController member

Parameters:
poConsumer Progress.Lang.Object
The reference of the Object attaching to the Dataset Controller
Top

PUBLIC SaveAttachment (character, character)

Purpose: Saves an aAttachment to the file
Notes:

Parameters:
pcAttachmentKey CHARACTER
The attachment to save
pcFileName CHARACTER
The name of the file to save to


Constructor Detail
Top

PUBLIC AttachmentDatasetController ()

Purpose: Constructor of the AttachmentDatasetController class
Notes: Assigns the DatasetHandle property



Property Detail
Top

PUBLIC HANDLE DatasetHandle


Returns HANDLE
Top

PUBLIC Infragistics.Win.UltraWinListView.UltraListView ListView


Returns Infragistics.Win.UltraWinListView.UltraListView


Temp-Table Detail


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:48:54