C# Class RockWeb.Blocks.Crm.MergeData

Exibir arquivo Open project: CentralAZ/Rockit-CentralAZ Class Usage Examples

Public Methods

Method Description
GetDataTable ( List headingKeys ) : DataTable

Gets the data table.

GetProperty ( string key, bool createIfNotFound = false, string label = "" ) : PersonProperty
GetSelectedValue ( PersonProperty personProperty ) : PersonPropertyValue

Gets the selected value.

MergeData ( ) : System

Initializes a new instance of the MergeData class.

MergeData ( List people, List headingKeys ) : System

Initializes a new instance of the MergeData class.

SetPrimary ( int primaryPersonId ) : void

Sets the primary.

Private Methods

Method Description
AddPerson ( Person person ) : void
AddProperty ( string key, int personId, System.DateTime value, bool selected = false ) : void
AddProperty ( string key, int personId, DefinedValue value, bool selected = false ) : void
AddProperty ( string key, int personId, Enum value, bool selected = false ) : void
AddProperty ( string key, int personId, bool value, bool selected = false ) : void
AddProperty ( string key, int personId, string value, bool selected = false ) : void
AddProperty ( string key, string label, int personId, DefinedValue value, bool selected = false ) : void
AddProperty ( string key, string label, int personId, string value, bool selected = false ) : void
AddProperty ( string key, string label, int personId, string value, string formattedValue, bool selected = false ) : void

Method Details

GetDataTable() public method

Gets the data table.
public GetDataTable ( List headingKeys ) : DataTable
headingKeys List The heading keys.
return System.Data.DataTable

GetProperty() public method

public GetProperty ( string key, bool createIfNotFound = false, string label = "" ) : PersonProperty
key string
createIfNotFound bool
label string
return PersonProperty

GetSelectedValue() public method

Gets the selected value.
public GetSelectedValue ( PersonProperty personProperty ) : PersonPropertyValue
personProperty PersonProperty The person property.
return PersonPropertyValue

MergeData() public method

Initializes a new instance of the MergeData class.
public MergeData ( ) : System
return System

MergeData() public method

Initializes a new instance of the MergeData class.
public MergeData ( List people, List headingKeys ) : System
people List The people.
headingKeys List
return System

SetPrimary() public method

Sets the primary.
public SetPrimary ( int primaryPersonId ) : void
primaryPersonId int The primary person identifier.
return void