示例#1
0
 protected override void Process(OperandProperty theOperand)
 {
     base.Process(theOperand);
     theOperand.PropertyName =
         CaptionHelper.GetFullMemberCaption(XafTypesInfo.Instance.FindTypeInfo(objectType),
                                            theOperand.PropertyName);
 }
示例#2
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();
     }
 }