//private void _reciprocalUMHSid_ValueChanged(object sender, ValueChangedEventArgs e) //{ // if (this._relationshipsetid.Value != this.RECIPROCALUMHSID.Value) // { // this._relationshipsetid.Value = this.RECIPROCALUMHSID.Value; // this._patientname.Value = this.RECIPROCALUMHSID.SearchDisplayText; // this.UpdateReciprocalNameReference(); // } // RefreshReciprocalRelationshipTypeID((SimpleDataListField)this.RECIPROCALTYPECODEID); //} public static void RefreshReciprocalRelationshipTypeID(SimpleDataListField reciprocalTypeCodeID, bool isLoading) { if (reciprocalTypeCodeID == null) { return; } reciprocalTypeCodeID.ResetDataSource(); SimpleDataListItemCollection dataSource = reciprocalTypeCodeID.DataSource; if (isLoading) { return; } SimpleDataListItem simpleDataListItem = (SimpleDataListItem)null; if (dataSource != null && dataSource.Count > 0) { simpleDataListItem = dataSource[0]; } if (simpleDataListItem != null && Operators.CompareString(simpleDataListItem.Description, "1", false) == 0) { reciprocalTypeCodeID.ValueObject = RuntimeHelpers.GetObjectValue(simpleDataListItem.Value); } else { reciprocalTypeCodeID.ValueObject = (object)Guid.Empty; } }
public UMHDataConstituentSearchHelper(RootUIModel model, Blackbaud.AppFx.XmlTypes.SearchListOutputType outputDefinition) { _model = model; _outputDefinition = outputDefinition; _checkmergedconstituents = (BooleanField)_model.Fields["CHECKMERGEDCONSTITUENTS"]; _exactmatchonly = (BooleanField)_model.Fields["EXACTMATCHONLY"]; _includeindividuals = (BooleanField)_model.Fields["INCLUDEINDIVIDUALS"]; _checknickname = (BooleanField)_model.Fields["CHECKNICKNAME"]; _checkaliases = (BooleanField)_model.Fields["CHECKALIASES"]; _onlyprimaryaddress = (BooleanField)_model.Fields["ONLYPRIMARYADDRESS"]; _includeorganizations = (BooleanField)_model.Fields["INCLUDEORGANIZATIONS"]; _includegroups = (BooleanField)_model.Fields["INCLUDEGROUPS"]; _excludecustomgroups = (BooleanField)_model.Fields["EXCLUDECUSTOMGROUPS"]; _excludehouseholds = (BooleanField)_model.Fields["EXCLUDEHOUSEHOLDS"]; _fuzzysearchonname = (BooleanField)_model.Fields["FUZZYSEARCHONNAME"]; _countryId = (SimpleDataListField <Guid>)_model.Fields["COUNTRYID"]; _stateid = (SimpleDataListField <Guid>)_model.Fields["STATEID"]; _postcode = (SearchListField <string>)_model.Fields["POSTCODE"]; _keyname = (StringField)_model.Fields["KEYNAME"]; _firstname = (StringField)_model.Fields["FIRSTNAME"]; _addressblock = (StringField)_model.Fields["ADDRESSBLOCK"]; _city = (StringField)_model.Fields["CITY"]; _primarybusiness = (StringField)_model.Fields["PRIMARYBUSINESS"]; _emailaddress = (StringField)_model.Fields["EMAILADDRESS"]; _ssn = (StringField)_model.Fields["SSN"]; _searchin = (StringField)_model.Fields["SEARCHIN"]; _minimumdate = (DateField)_model.Fields["MINIMUMDATE"]; _classof = (YearField)_model.Fields["CLASSOF"]; UIField constituentQuickFindField = null; if (_model.Fields.TryGetValue("CONSTITUENTQUICKFIND", ref constituentQuickFindField)) { _constituentquickfind = (StringField)constituentQuickFindField; } _hideadvancedoptions = (GenericUIAction)_model.Actions["HIDEADVANCEDOPTIONS"]; _showadvancedoptions = (GenericUIAction)_model.Actions["SHOWADVANCEDOPTIONS"]; }
public static void RefreshReciprocalRelationshipTypeID(SimpleDataListField reciprocalTypeCodeID) { RefreshReciprocalRelationshipTypeID(reciprocalTypeCodeID, false); }
public static void AutoPopulateTeamMemberSite(string connectionString, Guid teamMemberId, SimpleDataListField <Guid> teamMemberSiteId) { SqlConnection con = new SqlConnection(connectionString); con.Open(); teamMemberSiteId.Value = Guid.Empty; using (SqlCommand command = con.CreateCommand()) { teamMemberSiteId.ResetDataSource(); command.CommandType = CommandType.StoredProcedure; command.CommandText = "USR_USP_MIMEDDEFAULTSITEFORMEMBER"; command.CommandTimeout = 7200; command.Parameters.AddWithValue("@TEAMMEMBERID", teamMemberId); SqlDataReader reader = command.ExecuteReader(); try { if (reader.HasRows) { reader.Read(); teamMemberSiteId.Value = reader.GetGuid(0); } } catch { } finally { reader.Close(); } } con.Close(); }