private void UpdateRecordingActParty(RecordingActParty rap) { rap.Notes = txtNotes.Value; rap.PartyAddress = txtAddress.Value; if (!String.IsNullOrEmpty(Request.Form[cboAddressPlace.Name])) { rap.PartyAddressPlace = GeographicRegionItem.Parse(int.Parse(Request.Form[cboAddressPlace.Name])); } else { rap.PartyAddressPlace = GeographicRegionItem.Unknown; } rap.PartyMarriageStatus = MarriageStatus.Parse(int.Parse(cboMarriageStatus.Value)); rap.PartyOccupation = Occupation.Parse(int.Parse(cboOccupation.Value)); rap.Save(); }
private void FillPartyData(RecordingActParty rap) { if (this.party is HumanParty) { rap.Notes = txtNotes.Value; rap.PartyAddress = txtAddress.Value; if (!String.IsNullOrEmpty(Request.Form[cboAddressPlace.Name])) { rap.PartyAddressPlace = GeographicRegionItem.Parse(int.Parse(Request.Form[cboAddressPlace.Name])); } else { rap.PartyAddressPlace = GeographicRegionItem.Unknown; } if (!String.IsNullOrEmpty(Request.Form[cboMarriageStatus.Name])) { rap.PartyMarriageStatus = MarriageStatus.Parse(int.Parse(Request.Form[cboMarriageStatus.Name])); } else { rap.PartyMarriageStatus = MarriageStatus.Unknown; } if (!String.IsNullOrEmpty(Request.Form[cboOccupation.Name])) { rap.PartyOccupation = Occupation.Parse(int.Parse(Request.Form[cboOccupation.Name])); } else { rap.PartyOccupation = Occupation.Unknown; } } }