示例#1
0
        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);
        }
示例#2
0
        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");
        }