private void MultiSelectTransactionTypesUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { // adds select all / unselect event handlers EventHandler <InvokeActionEventArgs> eventHandler1 = new EventHandler <InvokeActionEventArgs>(this._selectall_InvokeAction); EventHandler <InvokeActionEventArgs> eventHandler2 = new EventHandler <InvokeActionEventArgs>(this._unselectall_InvokeAction); this._selectall.InvokeAction += eventHandler1; this._unselectall.InvokeAction += eventHandler2; // adds form validated arguments EventHandler <ValidatedEventArgs> eh3 = new EventHandler <ValidatedEventArgs>(this._form_validated); this.Validated += eh3; if (this._transactiontypesdelimited.Value != null) { foreach (string type in this._transactiontypesdelimited.Value.Split('|')) { foreach (BooleanField bf in this._transactionTypes) { if (bf.Caption == type) { bf.Value = true; } } } } }
private void ExampleDataListUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { // adds event handler for confirming transaction types form EventHandler <CustomFormConfirmedEventArgs> eh = new EventHandler <CustomFormConfirmedEventArgs>(this._showtransactiontypesform_CustomFormConfirmed); _showtransactiontypesform.CustomFormConfirmed += eh; // adds event handler for showing transaction types form EventHandler <ShowCustomFormEventArgs> eh2 = new EventHandler <ShowCustomFormEventArgs>(this._showtransactiontypesform_ShowCustomForm); _showtransactiontypesform.InvokeAction += eh2; // adds event handler for transaction types enabler EventHandler <ValueChangedEventArgs> eh3 = new EventHandler <ValueChangedEventArgs>(this._transactiontypesselector_ValueChanged); _transactiontypesselector.ValueChanged += eh3; // add event handlers for applications multi-select EventHandler <CustomFormConfirmedEventArgs> eh4 = new EventHandler <CustomFormConfirmedEventArgs>(this._showapplicationsform_CustomFormConfirmed); _showapplicationsform.CustomFormConfirmed += eh4; EventHandler <ShowCustomFormEventArgs> eh5 = new EventHandler <ShowCustomFormEventArgs>(this._showapplicationsform_ShowCustomForm); _showapplicationsform.InvokeAction += eh5; EventHandler <ValueChangedEventArgs> eh6 = new EventHandler <ValueChangedEventArgs>(this._applicationsselector_ValueChanged); this._applicationsselector.ValueChanged += eh6; }
private void UMHSDocumentationFormUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { switch (this.Mode) { case Blackbaud.AppFx.UIModeling.Core.DataFormMode.Edit: this.FORMHEADER.Value = "Edit MIMED Documentation Note"; break; case Blackbaud.AppFx.UIModeling.Core.DataFormMode.Add: this.FORMHEADER.Value = "Add MIMED Documentation Note"; break; } if (this.Mode == Blackbaud.AppFx.UIModeling.Core.DataFormMode.Add) { this.DATEENTERED.Value = DateTime.Today; } this.NOTETYPECODEID.CodeTableName = this.FormMetaData.GetFormFieldByID("NOTETYPECODEID").CodeTableDescriptor.CodeTableName; CodeTablePerm[] codeTablePermArray = this.CodeTableSecurityPermissions(); int index = 0; while (index < codeTablePermArray.Length) { CodeTablePerm codeTablePerm = codeTablePermArray[index]; if (codeTablePerm.CodeTableName.Equals(this.NOTETYPECODEID.CodeTableName, StringComparison.OrdinalIgnoreCase)) { this.NOTETYPECODEID.AllowAdd = codeTablePerm.AllowAdd; this.NOTETYPECODEID.AllowUpdate = codeTablePerm.AllowUpdate; this.NOTETYPECODEID.AllowDelete = codeTablePerm.AllowDelete; } checked { ++index; } } }
private void UMHSAddressViewDataFormUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { this.HYPHEN.Value = " - "; this.UpdateConfidentialImage(); this.UpdatePrimaryImage(); this.UpdateDoNotEmailDescription(); this.UpdateDateRangeInformation(); }
private void MIMEDTeamMemberGlobalChangeUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { if (this.FORMHEADER.Caption == "Add MIMED Team Member") { _teamrolecodeid.Required = true; _startdate.Required = true; } }
private void UMHSPhoneViewDataFormUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { this.HYPHEN.Value = " - "; this.UpdateConfidentialImage(); this.UpdatePrimaryImage(); this.UpdateDateRangeInformation(); this.UpdateDoNotCallDescription(); // this.UpdateCallBeforeAfter(); // this.UpdateInformationSource(); // this.UpdateContactInfo(); }
private void AddDataFormTemplateSpecAddDataFormUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { this.IMPORTFILEERROR.ValueDisplayStyle = ValueDisplayStyle.WarningImageAndText; this.IMPORTFILEERROR.Visible = false; this.RECORDTYPEID.Visible = true; this.SaveButtonCaption = "Save Import Selection"; this.FILENAME.Value = "File Not Specified"; this.IDFIELDUI.Enabled = false; this.IDTYPECODEUI.Enabled = false; this.ALTERNATELOOKUPIDTYPECODEID.Visible = false; }
private void UMHSDataViewFormUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { this.UpdatePrimaryImage(); if (_isdmineligible.Value == true) { _dmineligiblereasoncodeid.Visible = true; } else { _dmineligiblereasoncodeid.Visible = false; } }
private void UMHSInteractionFormUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { this.UpdateActualDateEnabledRequired(); this.UpdateSubCategoryEnabledRequired(); switch (this.Mode) { case Blackbaud.AppFx.UIModeling.Core.DataFormMode.Edit: this.FORMHEADER.Value = "Edit MIMED Interaction"; break; case Blackbaud.AppFx.UIModeling.Core.DataFormMode.Add: this.FORMHEADER.Value = "Add MIMED Interaction"; break; } }
private void UMHSDuplicateConstituentSearchUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { Type type = typeof(DuplicateResolutionUIModel); CreateCustomUIModelArgs createCustomUIModelArg = new CreateCustomUIModelArgs() { AssemblyName = type.Assembly.ToString(), ClassName = type.FullName, RootModel = this, Context = this.GetRequestContext() }; this._customModel = (DuplicateResolutionUIModel)CustomUIModel.CreateModel(createCustomUIModelArg); this._customModel.Initialize(); _customModel.SaveCaptionChanged += _customModel_SaveCaptionChanged; this.HostedModels.Add(this._customModel); this.DialogActions.Add(this.SAVE); this.DialogActions.Add(this.CANCEL); UMHSDuplicateConstituentSearchUIModel _umhsDupeCheck = this; this._customModel.GOTONEXTRECORD.ValueChanged += new EventHandler <ValueChangedEventArgs>(_umhsDupeCheck.nextRecord_ValueChanged); }
private void UMHSPhoneFormUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { this._countryCodesDictionary = new Dictionary <Guid, string>(); switch (this.Mode) { case Blackbaud.AppFx.UIModeling.Core.DataFormMode.Edit: this.FORMHEADER.Value = "Edit MIMED Phone"; break; case Blackbaud.AppFx.UIModeling.Core.DataFormMode.Add: this.FORMHEADER.Value = "Add MIMED Phone"; break; } _infosourcecodeid.ResetDataSource(); this._countryFormats = GetCountryFormats(this.GetRequestContext()); this.ReformatPhoneNumber(); // this.GetCountryCodes(); this.DONOTCALLREASONCODEID.Enabled = this.DONOTCALL.Value; if (this.ISPRIMARY.Value) { this.ISPRIMARY.Enabled = false; } }
private void UMHSBatchDupeCheckUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { Type type = typeof(DuplicateResolutionUIModel); CreateCustomUIModelArgs createCustomUIModelArg = new CreateCustomUIModelArgs() { AssemblyName = type.Assembly.ToString(), ClassName = type.FullName, RootModel = this, Context = this.GetRequestContext() }; this._customModel = (DuplicateResolutionUIModel)CustomUIModel.CreateModel(createCustomUIModelArg); this._customModel.Initialize(); _customModel.SaveCaptionChanged += _customModel_SaveCaptionChanged; this.HostedModels.Add(this._customModel); this.DialogActions.Add(this.SAVE); this.DialogActions.Add(this.CANCEL); UMHSBatchDupeCheckUIModel _UMHSBatchDupeCheckUIModel = this; this._customModel.GOTONEXTRECORD.ValueChanged += new EventHandler <ValueChangedEventArgs>(_UMHSBatchDupeCheckUIModel.nextRecord_ValueChanged); this._customModel.SaveButtonCaption = "Save"; this.SAVE.Caption = "Save"; this.DUPLICATERECORDID.Value = BATCHCONSTITUENTID.Value; //if (this._conflictFields.Count == 0 && !this._isAlias && (this._primaryAddressModelInstanceId.Equals(Guid.Empty) && this._secondaryAddressModelInstanceId.Equals(Guid.Empty)) && (this._primaryEmailAddressModelInstanceId.Equals(Guid.Empty) && this._secondaryEmailAddressModelInstanceId.Equals(Guid.Empty) && (this._primaryPhoneModelInstanceId.Equals(Guid.Empty) && this._secondaryPhoneModelInstanceId.Equals(Guid.Empty))) && this._constituentUpdateBatchID.Equals(Guid.Empty)) // flag = false; //typeof(DuplicateResolutionUIModel) // .GetField("CONSTITUENTDUPLICATEMATCHEDITFORMID", BindingFlags.Instance | BindingFlags.NonPublic) // .SetValue(_customModel, "4417055D-0EFD-4F02-AF00-EA24CD901E7E"); //FieldInfo field = typeof(DuplicateResolutionUIModel).GetField("CONSTITUENTDUPLICATEMATCHEDITFORMID", BindingFlags.Instance | BindingFlags.NonPublic); //field.SetValue(_customModel, "4417055D-0EFD-4F02-AF00-EA24CD901E7E"); }
private void UMHSRelationshipEditFormUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { this.RELATIONSHIPTYPECODEID.Caption = string.Format("{0} is the", this.PATIENTNAME.Value); this.RECIPROCALTYPECODEID.Caption = string.Format("{0} is the", this.RELATEDINDIVIDUAL.Value); }
private void MIMEDLoggingReportReportUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { }
private void UMHSInteractionCopyUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { this.SaveButtonCaption = "Copy"; this.INTERACTIONS.AllowAdd = false; }
private void MIMEDInteractionsDeleteGlobalChangeUIModel_Loaded(object sender, Blackbaud.AppFx.UIModeling.Core.LoadedEventArgs e) { CRMDataRepo crmData = new CRMDataRepo(); //< FormFieldOverrides > //< FormFieldOverride FieldID = "RECORDTYPEID" ReadOnly = "true" DefaultValueText = "82CA852C-C3C9-430F-BC4C-ACA70AF90C16" /> //</ FormFieldOverrides > Guid recordTypeID = crmData.GetRecordTypeID("MIMED Data"); FieldOverride item = new FieldOverride(); item.ReadOnly = true; item.FieldId = "RECORDTYPEID"; item.DefaultValueText = recordTypeID.ToString(); this.IDSETREGISTERID.SearchFieldOverrides.Add(item); }