C# Class Excavator.F1.F1Component

Partial of F1Component that holds the Financial import methods
Show file Open project: NewSpring/Excavator

Protected Properties

Property Type Description
AuthProviderEntityTypeId int?
CampusList List
Database OrcaMDF.Core.Engine.Database
HouseholdIdAttribute Rock.Web.Cache.AttributeCache
ImportPersonAliasId int?
ImportedBatches int?>.Dictionary
ImportedPeople List
InFellowshipLoginAttribute Rock.Web.Cache.AttributeCache
IndividualIdAttribute Rock.Web.Cache.AttributeCache
IntegerFieldTypeId int
PersonEntityTypeId int
SecondaryEmailAttribute Rock.Web.Cache.AttributeCache
TextFieldTypeId int

Public Methods

Method Description
LoadSchema ( string fileName ) : bool

Loads the database for this instance.

MapNotes ( IQueryable tableData ) : void

Maps the notes.

MapPerson ( IQueryable tableData ) : void

Maps the person.

MapUsers ( IQueryable tableData ) : void

Maps the users.

TransformData ( string>.Dictionary settings ) : int

Transforms the data from the dataset.

Protected Methods

Method Description
AddPersonAttribute ( Rock.Web.Cache.AttributeCache attribute, Person person, string value ) : void

Adds the person attribute.

AddUserLogin ( int authProviderEntityTypeId, Person person, string value ) : void

Adds the user login.

GetFamilyByHouseholdId ( int householdId, bool includeVisitors = true ) : List

Gets the family by household identifier.

GetPersonKeys ( int individualId = null, int householdId = null, bool includeVisitors = true ) : Excavator.F1.PersonKeys

Gets the person keys.

Private Methods

Method Description
AddAccount ( RockContext lookupContext, string fundName, string accountGL, int fundCampusId, int parentAccountId, bool isActive ) : FinancialAccount

Adds the account.

LoadExistingRockData ( ) : void

Loads Rock data that's used globally by the transform

MapBankAccount ( IQueryable tableData ) : void

Maps the account data.

MapBatch ( IQueryable tableData ) : void

Maps the batch data.

MapCommunication ( IQueryable tableData ) : void

Maps the communication data.

MapCompany ( IQueryable tableData ) : void

Maps the company.

MapContribution ( IQueryable tableData, List selectedColumns = null ) : void

Maps the contribution.

MapFamilyAddress ( IQueryable tableData ) : void

Maps the family address.

MapPledge ( IQueryable tableData ) : void

Maps the pledge.

SaveBankAccounts ( List newBankAccounts ) : void

Saves the bank accounts.

SaveCommunication ( List newNumberList, Person>.Dictionary updatedPersonList ) : void

Saves the communication.

SaveCompanies ( List businessList ) : void

Saves the companies.

SaveContributions ( List newTransactions ) : void

Saves the contributions.

SaveFamilyAddress ( List newGroupLocations ) : void

Saves the family address.

SaveFinancialBatches ( List newBatches ) : void

Saves the financial batches.

SaveNotes ( List noteList ) : void

Saves the notes.

SavePeople ( List familyList, List visitorList, string>.Dictionary previousNamesList, GroupTypeRole ownerRole, int childRoleId, int inviteeRoleId, int invitedByRoleId, int canCheckInRoleId, int allowCheckInByRoleId ) : void

Saves the people.

SavePledges ( List newPledges ) : void

Saves the pledges.

SaveUsers ( List newUserLogins, List newStaffMembers ) : void

Saves the new user logins.

Method Details

AddPersonAttribute() protected static method

Adds the person attribute.
protected static AddPersonAttribute ( Rock.Web.Cache.AttributeCache attribute, Person person, string value ) : void
attribute Rock.Web.Cache.AttributeCache The attribute.
person Person The person.
value string The value.
return void

AddUserLogin() protected static method

Adds the user login.
protected static AddUserLogin ( int authProviderEntityTypeId, Person person, string value ) : void
authProviderEntityTypeId int The id of the auth provider entity type.
person Person The person.
value string The value, probably an email.
return void

GetFamilyByHouseholdId() protected static method

Gets the family by household identifier.
protected static GetFamilyByHouseholdId ( int householdId, bool includeVisitors = true ) : List
householdId int The household identifier.
includeVisitors bool if set to true [include visitors].
return List

GetPersonKeys() protected static method

Gets the person keys.
protected static GetPersonKeys ( int individualId = null, int householdId = null, bool includeVisitors = true ) : Excavator.F1.PersonKeys
individualId int The individual identifier.
householdId int The household identifier.
includeVisitors bool if set to true [include visitors].
return Excavator.F1.PersonKeys

LoadSchema() public method

Loads the database for this instance.
public LoadSchema ( string fileName ) : bool
fileName string
return bool

MapNotes() public method

Maps the notes.
public MapNotes ( IQueryable tableData ) : void
tableData IQueryable The table data.
return void

MapPerson() public method

Maps the person.
public MapPerson ( IQueryable tableData ) : void
tableData IQueryable The table data.
return void

MapUsers() public method

Maps the users.
public MapUsers ( IQueryable tableData ) : void
tableData IQueryable The table data.
return void

TransformData() public method

Transforms the data from the dataset.
public TransformData ( string>.Dictionary settings ) : int
settings string>.Dictionary
return int

Property Details

AuthProviderEntityTypeId protected static property

protected static int? AuthProviderEntityTypeId
return int?

CampusList protected static property

All campuses
protected static List CampusList
return List

Database protected property

The local database
protected Database,OrcaMDF.Core.Engine Database
return OrcaMDF.Core.Engine.Database

HouseholdIdAttribute protected static property

protected static AttributeCache,Rock.Web.Cache HouseholdIdAttribute
return Rock.Web.Cache.AttributeCache

ImportPersonAliasId protected static property

The person assigned to do the import
protected static int? ImportPersonAliasId
return int?

ImportedBatches protected static property

All imported batches. Used in Batches & Contributions
protected static Dictionary ImportedBatches
return int?>.Dictionary

ImportedPeople protected static property

All the people who've been imported
protected static List ImportedPeople
return List

InFellowshipLoginAttribute protected static property

protected static AttributeCache,Rock.Web.Cache InFellowshipLoginAttribute
return Rock.Web.Cache.AttributeCache

IndividualIdAttribute protected static property

protected static AttributeCache,Rock.Web.Cache IndividualIdAttribute
return Rock.Web.Cache.AttributeCache

IntegerFieldTypeId protected static property

protected static int IntegerFieldTypeId
return int

PersonEntityTypeId protected static property

protected static int PersonEntityTypeId
return int

SecondaryEmailAttribute protected static property

protected static AttributeCache,Rock.Web.Cache SecondaryEmailAttribute
return Rock.Web.Cache.AttributeCache

TextFieldTypeId protected static property

protected static int TextFieldTypeId
return int