메소드 | 설명 | |
---|---|---|
AddNewFamilyAddress ( Group family, string locationTypeGuid, string street1, string street2, string city, string state, string postalCode, string country, |
Adds the new family address.
|
|
CreateNewFamily ( List |
Creates a new family using the given set of people.
|
메소드 | 설명 | |
---|---|---|
Block_BlockUpdated ( object sender, |
Handles the BlockUpdated event of the SampleData control.
|
|
GetStories ( string saveFile ) : string |
Extract the stories out of the XML comments and put them on the results page.
|
|
OnInit ( |
Raises the E:System.Web.UI.Control.Init event.
|
|
OnLoad ( |
Raises the E:System.Web.UI.Control.Load event.
|
|
bbtnLoadData_Click ( object sender, |
This is the entry point for when the user clicks the "load data" button.
|
메소드 | 설명 | |
---|---|---|
AddConnections ( System.Xml.Linq.XElement elemConnections, |
Adds the connections requests to the system from the given XML element.
|
|
AddDefinedTypeValue ( string stringValue, DefinedType definedType, |
Adds a new defined value to a given DefinedType.
|
|
AddFamilies ( System.Xml.Linq.XElement elemFamilies, |
Handles adding families from the given XML element snippet
|
|
AddFamilyAddresses ( |
Adds the given addresses in the xml snippet to the given family.
|
|
AddFamilyAttendance ( Group family, System.Xml.Linq.XElement elemFamily, |
Grabs the necessary parameters from the XML and then calls the CreateAttendance() method to generate all the attendance data for the family.
|
|
AddFamilyGiving ( System.Xml.Linq.XElement elemGiving, string familyName, |
Adds the family giving records. The giving element.
|
|
AddFollowing ( System.Xml.Linq.XElement elemFollowing, |
Adds the following records from the given XML element.
|
|
AddGroups ( System.Xml.Linq.XElement elemGroups, |
Handles adding groups from the given XML element snippet.
|
|
AddMetaphone ( ) : void |
Adds a transaction to add the metaphone stuff for each person we've added.
|
|
AddNote ( int personId, string noteTypeName, string noteText, string noteDate, string byPersonGuid, string isPrivate, string isAlert, |
Add a note on the given person's record.
|
|
AddPeoplesPreviousNames ( System.Xml.Linq.XElement elemFamilies, |
Adds the peoples previous names.
|
|
AddPersonAttributes ( GroupMember groupMember, IEnumerable |
Adds the person attributes and values found in the XML to the person's attribute-value collection.
|
|
AddPersonLogins ( |
Adds any logins stored in the _peopleLoginsDictionary.
|
|
AddPersonNotes ( System.Xml.Linq.XElement elemFamilies, |
Adds any notes for any people given in the XML file.
|
|
AddPreviousName ( int personAliasId, string previousLastName, |
Adds the name of the previous.
|
|
AddRegistrationInstances ( System.Xml.Linq.XElement elemRegistrationInstances, |
Adds any registration instances given in the XML file.
|
|
AddRegistrationTemplates ( System.Xml.Linq.XElement elemRegistrationTemplates, |
Adds any registration templates given in the XML file.
|
|
AddRelationships ( System.Xml.Linq.XElement elemRelationships, |
Adds a KnownRelationship record between the two supplied Guids with the given 'is' relationship type: Role / inverse Role ================================ step-parent / step-child grandparent / grandchild previous-spouse / previous-spouse can-check-in / allow-check-in-by parent / child sibling / sibling invited / invited-by related / related ...for xml such as:
|
|
AddToSecurityGroups ( System.Xml.Linq.XElement elemSecurityGroups, |
Handles adding people to the security groups from the given XML element snippet.
|
|
AddWeeklySchedule ( Group group, string dayOfWeekName, string time ) : void |
Adds a Weekly schedule to the given group.
|
|
AppendFormat ( string format ) : void |
|
|
BuildFamilyMembersFromXml ( System.Xml.Linq.XElement elemMembers, |
Takes the given XML element and creates a family member collection. If the person already exists, their record will be loaded otherwise a new person will be created using all the attributes for the given 'person' tag.
|
|
CreateAttendance ( ICollection |
Adds attendance data for each child for each weekend since the starting date up to the weekend ending X weeks ago (endingWeeksAgo). It will randomly skip a weekend based on the percentage (pctAttendance) and it will vary which service they attend between the scheduleId and altScheduleId based on the percentage (pctAttendedRegularService) given.
|
|
CreateGiving ( System.Guid personGuid, System.DateTime startingDate, System.DateTime endDate, Frequency frequency, int percentGive, int growRatePercent, int growFrequencyWeeks, int specialGiftPercent, decimal>.Dictionary |
Creates the giving records for the given parameters.
|
|
DeleteExistingFamilyData ( System.Xml.Linq.XElement families, |
Deletes the family's addresses, phone numbers, photos, viewed records, and people. TODO: delete attendance codes for attendance data that's about to be deleted when we delete the person record.
|
|
DeleteExistingGroups ( System.Xml.Linq.XElement elemGroups, |
Delete all groups found in the given XML.
|
|
DeleteGroupAndMemberData ( Group group, |
Generic method to delete the members of a group and then the group.
|
|
DeleteRegistrationTemplates ( System.Xml.Linq.XElement elemRegistrationTemplates, |
Deletes the registration templates.
|
|
DownloadFile ( string fileUrl, string fileOutput ) : bool |
Download the given fileUrl and store it at the fileOutput.
|
|
FlattenInnerExceptions ( |
Flattens exception's innerexceptions and returns an Html formatted string useful for debugging.
|
|
FormatMultipleFeeCosts ( IEnumerable |
Formats the fee cost options for the CostValue field.
|
|
GenerateRandomCode ( int len ) : string |
A little method to generate a random sequence of characters of a certain length.
|
|
GetOrAddDefinedValueId ( string theValue, DefinedType aDefinedType, |
Gets or adds a new DefinedValue to the given DefinedTypeCache and returns the Id of the value.
|
|
ProcessXml ( string sampleXmlFile ) : void |
Process all the data in the XML file; deleting stuff and then adding stuff. as per https://github.com/SparkDevNetwork/Rock/wiki/z.-Rock-Solid-Demo-Church-Specification#wiki-xml-data
|
|
RecordSuccess ( ) : void |
Records the current date into the SampleData system setting so that other blocks (such as the RockUpdate) can know that sample data has been loaded.
|
|
SaveImage ( string imageUrl, BinaryFileType binaryFileType, string binaryFileTypeSettings, |
Fetches the given remote photoUrl and stores it locally in the binary file table then returns Id of the binary file.
|
|
VerifyXMLDocumentExists ( ) : void |
Verify that the configured XML document exists.
|
public AddNewFamilyAddress ( Group family, string locationTypeGuid, string street1, string street2, string city, string state, string postalCode, string country, |
||
family | Group | The family. |
locationTypeGuid | string | The location type unique identifier. |
street1 | string | The street1. |
street2 | string | The street2. |
city | string | The city. |
state | string | The state. |
postalCode | string | The zip. |
country | string | |
rockContext | The rock context. | |
리턴 | void |
protected Block_BlockUpdated ( object sender, |
||
sender | object | The source of the event. |
e | The |
|
리턴 | void |
public CreateNewFamily ( List |
||
familyMembers | List |
The family members. |
campusId | int | The campus identifier. |
리턴 | Group |
protected OnInit ( |
||
e | An |
|
리턴 | void |
protected OnLoad ( |
||
e | The |
|
리턴 | void |
protected bbtnLoadData_Click ( object sender, |
||
sender | object | |
e | ||
리턴 | void |