private object GetColumnHtml(DataItemBase item, int columnIndex) { ColumnInfoAttribute ci = this.ColumnInfos[columnIndex]; if (string.Equals(ci.Name, "Text", StringComparison.Ordinal)) { return(((ParametricString)this.GetColumnValue(item, columnIndex)).ToHtml()); } else { return(this.GetColumnValue(item, columnIndex)); } }
public override object GetColumnValue(DataItemBase item, int columnIndex) { ColumnInfoAttribute ci = this.ColumnInfos[columnIndex]; if (string.Equals(ci.Name, "ActId", StringComparison.OrdinalIgnoreCase)) { return(this.GetFileMetaData(item.FileIndex).ActivityIds[item.ActivityIdIndex]); } else { return(base.GetColumnValue(item, columnIndex)); } }
public object GetColumnValue(DataItemBase baseItem, int columnIndex) { ColumnInfoAttribute ci = this.ColumnInfos[columnIndex]; // only process the tag column if (string.Equals(ci.Name, "Tag", StringComparison.Ordinal)) { return(this.Tags?.Where(kvp => kvp.Value.Match(baseItem, this.Source.Templates[baseItem.TemplateId])).Select(kvp => kvp.Key).ToList()); } else { return(this.Source.GetColumnValue(baseItem, columnIndex)); } }
public virtual object GetColumnValue(DataItemBase item, int columnIndex) { ColumnInfoAttribute ci = this.ColumnInfos[columnIndex]; if (string.Equals(ci.Name, "Text", StringComparison.Ordinal)) { return(new ParametricString( this.Templates[item.TemplateId], item.Parameters)); } else if (string.Equals(ci.Name, "Time", StringComparison.Ordinal)) { return(item.Time.ToString("s")); } else if (string.Equals(ci.Name, "File", StringComparison.Ordinal)) { return(this.files[item.FileIndex]); } else { PropertyInfo pi = this.PropertyInfos[columnIndex]; return(pi.GetMethod.Invoke(item, null)); } }