/// <summary> /// The method return true if the hidden field is selected. /// </summary> /// <param name="Field">EdUserProfile.UserProfileFieldNames</param> /// <returns>bool</returns> public bool hasHiddenUserProfileField(EdUserProfile.FieldNames Field) { if (this.HiddenUserFields.Contains(Field.ToString( )) == true) { return(true); } return(false); }
// ============================================================================== /// <summary> /// This method creates an entity filter selection field object. /// </summary> /// <param name="PageGroup">Evado.Model.Uniform.Group object to add the pageGroup .</param> /// <param name="FieldName">EdOrganisation.FieldNames enumerated list value</param> // ------------------------------------------------------------------------------ private void getQueryList_StaticUserFilter ( Evado.UniForm.Model.Group PageGroup, EdUserProfile.FieldNames FieldName ) { this.LogMethod ( "getQueryList_StaticUserFilter" ); this.LogDebug ( "FieldName: {0}. ", FieldName ); // // Initialise the methods variables and objects. // String userSelectionList = this.AdapterObjects.Settings.UserCategoryList; List<EvOption> optionList = new List<EvOption> ( ); optionList.Add ( new EvOption ( ) ); // // Select the field to be displayed. // switch ( FieldName ) { case EdUserProfile.FieldNames.User_Category: { optionList = this.AdapterObjects.getSelectionOptions ( userSelectionList, String.Empty, true, true ); var field = PageGroup.createSelectionListField ( FieldName, EdLabels.UserProfile_User_Category_Field_Label, this.Session.SelectedUserCategory, optionList ); field.Layout = EuAdapter.DefaultFieldLayout; field.AddParameter ( Evado.UniForm.Model.FieldParameterList.Snd_Cmd_On_Change, 1 ); break; } case EdUserProfile.FieldNames.User_Type: { optionList = this.AdapterObjects.getSelectionOptions ( userSelectionList, String.Empty, false, true ); var field = PageGroup.createSelectionListField ( FieldName, EdLabels.UserProfile_User_Type_Field_Label, this.Session.SelectedUserType, optionList ); field.Layout = EuAdapter.DefaultFieldLayout; field.AddParameter ( Evado.UniForm.Model.FieldParameterList.Snd_Cmd_On_Change, 1 ); break; } } this.LogMethodEnd ( "getQueryList_StaticUserFilter" ); }