Beispiel #1
0
 public ColumnSpec SetPropertyPath(PropertyPath value)
 {
     return(new ColumnSpec(this)
     {
         Name = value == null ? string.Empty : value.ToString()
     });
 }
Beispiel #2
0
        public IColumnCaption GetColumnCaption(PivotKey pivotKey)
        {
            IColumnCaption columnCaption;

            if (null != ColumnSpec.Caption)
            {
                columnCaption = ColumnCaption.UnlocalizableCaption(ColumnSpec.Caption);
            }
            else if (null == ColumnDescriptor)
            {
                columnCaption = ColumnCaption.UnlocalizableCaption(PropertyPath.ToString());
            }
            else
            {
                columnCaption = DataSchema.GetColumnCaption(ColumnDescriptor);
            }
            return(QualifyColumnCaption(pivotKey, columnCaption));
        }
        public string GetColumnCaption(PivotKey pivotKey, ColumnCaptionType columnCaptionType)
        {
            string columnCaption;

            if (null != ColumnSpec.Caption)
            {
                columnCaption = ColumnSpec.Caption;
            }
            else if (null == ColumnDescriptor)
            {
                columnCaption = PropertyPath.ToString();
            }
            else
            {
                columnCaption = DataSchema.GetColumnCaption(DataSchema.GetColumnCaption(ColumnDescriptor), columnCaptionType);
            }
            return(QualifyColumnCaption(pivotKey, columnCaption));
        }
Beispiel #4
0
 public ColumnSpec(PropertyPath propertyPath)
 {
     Name = propertyPath.ToString();
 }
Beispiel #5
0
 public FilterSpec SetColumnId(PropertyPath columnId)
 {
     return(SetColumn(columnId.ToString()));
 }
Beispiel #6
0
 public FilterSpec(PropertyPath propertyPath, FilterPredicate predicate)
 {
     Column    = propertyPath.ToString();
     Predicate = predicate;
 }
Beispiel #7
0
 public FilterSpec(PropertyPath propertyPath, IFilterOperation filterOperation, string operand)
 {
     Column  = propertyPath.ToString();
     OpName  = filterOperation == null ? null : filterOperation.OpName;
     Operand = operand;
 }