protected void lbRegisterNext_Click( object sender, EventArgs e ) { _dvcConnectionStatus = DefinedValueCache.Read( GetAttributeValue( "ConnectionStatus" ).AsGuid() ); _dvcRecordStatus = DefinedValueCache.Read( GetAttributeValue( "RecordStatus" ).AsGuid() ); // create new person / family Person person = new Person(); person.FirstName = tbFirstName.Text.Trim(); person.LastName = tbLastName.Text.Trim(); person.Email = tbEmail.Text.Trim(); person.ConnectionStatusValueId = _dvcConnectionStatus.Id; person.RecordStatusValueId = _dvcRecordStatus.Id; person.Gender = Gender.Unknown; PersonService.SaveNewPerson( person, new RockContext(), this.CampusId, false ); // set as selected giving unit this.SelectedGivingUnit = new GivingUnit( person.PrimaryAliasId.Value, person.LastName, person.FirstName ); ShowAccountPanel(); }
// // Giving Unit Select Panel Events // // called when a giving unit is selected void unitName_Click( object sender, EventArgs e ) { LinkButton lb = (LinkButton)sender; this.SelectedGivingUnit = new GivingUnit( lb.CommandArgument ); lbAccountEntryBack.Attributes.Add( "back-to", "giving-unit-select" ); ShowAccountPanel(); }
protected void lbGiveAnonymously_Click( object sender, EventArgs e ) { this.SelectedGivingUnit = new GivingUnit( this.AnonymousGiverPersonAliasId.Value, "Anonymous", "" ); lbAccountEntryBack.Attributes.Add( "back-to", "search" ); HidePanels(); ShowAccountPanel(); }