Exemplo n.º 1
0
 public override void ApplySettings()
 {
     try {
         Owner.BeginUpdate();
         IAnalysisInfo analysisInfo = GetAnalysisInfo();
         if (analysisInfo != null)
         {
             ITypeInfo objectTypeInfo = XafTypesInfo.Instance.FindTypeInfo(analysisInfo.DataType);
             foreach (string propertyName in analysisInfo.DimensionProperties)
             {
                 IMemberInfo memberInfo = objectTypeInfo.FindMember(propertyName);
                 _propertyModel = GetPropertyModel(memberInfo);
                 if (memberInfo != null)
                 {
                     PivotGridFieldBase field = FindPivotGridField(GetBindingName(memberInfo));
                     if (field != null)
                     {
                         SetupPivotGridField(field, memberInfo.MemberType, GetMemberDisplayFormat(memberInfo));
                         field.Caption = CaptionHelper.GetFullMemberCaption(objectTypeInfo, propertyName);
                     }
                 }
             }
         }
     }
     finally {
         Owner.EndUpdate();
     }
 }
Exemplo n.º 2
0
 public AnalysisEditorArgs(AnalysisEditorBase analysisEditorBase, IAnalysisInfo analysisInfo)
 {
     AnalysisEditorBase = analysisEditorBase;
     AnalysisInfo       = analysisInfo;
 }
Exemplo n.º 3
0
 public CriteriaOperatorArgs(AnalysisEditorBase analysisEditorBase, IAnalysisInfo analysisInfo) : base(analysisEditorBase, analysisInfo)
 {
 }
 public CriteriaOperatorArgs(AnalysisEditorBase analysisEditorBase,IAnalysisInfo analysisInfo) : base(analysisEditorBase,analysisInfo) {
 }
 public AnalysisEditorArgs(AnalysisEditorBase analysisEditorBase, IAnalysisInfo analysisInfo) {
     _analysisEditorBase = analysisEditorBase;
     _analysisInfo = analysisInfo;
 }