private void EDITCONSTITUENTCONTEXT_ValueChanged(object sender, Blackbaud.AppFx.UIModeling.Core.ValueChangedEventArgs e) { if (!this.EDITCONSTITUENTCONTEXT.HasValue()) { return; } this._customModel.LoadFromDataFormItem(this.ToDataFormItem()); this.LoadFromBatch(this.EDITCONSTITUENTCONTEXT.Value); SetRules(); DisplayRules(); string empty = string.Empty; if (this._customModel.FIRSTNAME.HasValue()) { empty = string.Concat(empty, string.Concat(this._customModel.FIRSTNAME.Value, " ")); } empty = string.Concat(empty, string.Concat(this._customModel.LASTNAME.Value, " ")); StringField formHeader = this.FORMHEADER; CultureInfo currentCulture = CultureInfo.CurrentCulture; string duplicateResolutionFormHeaderText = string.Format("Reconciliation for {0}", empty); formHeader.Value = string.Format(currentCulture, duplicateResolutionFormHeaderText); }
private void _filename_ValueChanged(object sender, Blackbaud.AppFx.UIModeling.Core.ValueChangedEventArgs e) { if (Operators.CompareString(this.FILENAME.Value, string.Empty, false) == 0) { this.FILENAME.Value = "File Not Specified"; this.IDFIELDUI.Enabled = false; this.IMPORTFILENAME.Value = (string)null; this.IDTYPECODEUI.Enabled = false; this.ALTERNATELOOKUPIDTYPECODEID.Enabled = false; this.IMPORTFILEERROR.Visible = false; } else if (!this.FILENAME.Value.EndsWith(".csv", StringComparison.InvariantCultureIgnoreCase) && Operators.CompareString(this.FILENAME.Value, "File Not Specified", false) != 0) { this.IMPORTFILEERROR.Visible = true; this.IMPORTFILEERROR.Value = "The File Must be a CSV"; } else { this.IMPORTFILENAME.Value = this.ModelInstanceId.ToString() + "." + this.FILE.Name + ".tmp"; this.IDFIELDUI.Enabled = true; this.IDTYPECODEUI.Enabled = !this.RECORDTYPEID.Value.Equals(Guid.Empty); this.ALTERNATELOOKUPIDTYPECODEID.Enabled = !this.RECORDTYPEID.Value.Equals(Guid.Empty); this.IMPORTFILEERROR.Visible = false; } this.IDFIELDUI.Value = (string)null; this.IDFIELDUI.ResetDataSource(); if (this.IDFIELDUI.DataSource != null) { return; } this.IMPORTFILEERROR.Visible = true; this.IMPORTFILEERROR.Value = "Duplicate Column Header"; }
private void RECIPROCALUMHSID_ValueChanged(object sender, Blackbaud.AppFx.UIModeling.Core.ValueChangedEventArgs e) { this.RECIPROCALTYPECODEID.Caption = string.Format("{0} is the ", this.RELATEDINDIVIDUAL.Value); RefreshReciprocalRelationshipTypeID((SimpleDataListField)this.RECIPROCALTYPECODEID); }
//private void GetCountryCodes() //{ // UIModelCollection<UMHSPhoneFormUIModel> uiModelCollection = this._countrycodes.Value; // if (uiModelCollection == null) // return; // if (uiModelCollection.Count <= 0) // return; // IEnumerator<UMHSPhoneFormUIModel> enumerator; // enumerator = uiModelCollection.GetEnumerator(); // try // { // while (enumerator.MoveNext()) // { // UMHSPhoneFormUIModel current = enumerator.Current; // this._countryCodesDictionary.Add(current.COUNTRYID.Value, current.COUNTRYCODE.Value); // } // } // finally // { // if (enumerator != null) // enumerator.Dispose(); // } //} private void _donotcall_ValueChanged(object sender, Blackbaud.AppFx.UIModeling.Core.ValueChangedEventArgs e) { this.CALLBEFORE.Enabled = !this.DONOTCALL.Value; this.CALLBEFORE.Enabled = !this.DONOTCALL.Value; this.DONOTCALLREASONCODEID.Enabled = this.DONOTCALL.Value; }
private void TEAMMEMBERID_ValueChanged(object sender, Blackbaud.AppFx.UIModeling.Core.ValueChangedEventArgs e) { MIMEDTeamMemberGlobalChange.AutoPopulateTeamMemberSite(this.GetRequestContext().AppDBConnectionString(), this.TEAMMEMBERID.Value, _teammembersiteid); }
private void _idfieldui_ValueChanged(object sender, Blackbaud.AppFx.UIModeling.Core.ValueChangedEventArgs e) { this.IDFIELD.Value = this.IDFIELDUI.Value; }
private void _idtypecodeui_ValueChanged(object sender, Blackbaud.AppFx.UIModeling.Core.ValueChangedEventArgs e) { this.IDTYPECODE.Value = (IDTYPECODES)this.IDTYPECODEUI.Value; // this.ALTERNATELOOKUPIDTYPECODEID.Visible = this.IDTYPECODE.Value == IDTYPECODES.AlternateLookupID; // this.ALTERNATELOOKUPIDTYPECODEID.Required = this.IDTYPECODE.Value == IDTYPECODES.AlternateLookupID; }