/// <summary> /// Initializes a new instance of the <see cref="AnalysisMetaInfoFieldInfo"/> class. /// </summary> /// <param name="tableInfo">Table info</param> /// <param name="dataSourceField">Data source field</param> /// <param name="fieldIndex">Field index</param> public AnalysisMetaInfoFieldInfo(AnalysisMetaInfoTableInfo tableInfo, ICrmDataSourceField dataSourceField, int fieldIndex) { this.DataSourceField = dataSourceField; this.FieldIndex = fieldIndex; this.TableInfo = tableInfo; this.subFieldArray = null; }
private List <object> CreateColumnInfoArray(ICrmDataSource dataSource) { var columnInfoArray = new List <object>(); foreach (AnalysisSourceField col in this.AnalysisResult.DetailsFields) { if (col.QueryResultFieldIndex < 0) { continue; } ICrmDataSourceField field = dataSource.FieldAtIndex(col.QueryResultFieldIndex); if (field == null) { continue; } columnInfoArray.Add(new AnalysisDrillThruColumn(col, field)); } return(columnInfoArray); }
/// <summary> /// Initializes a new instance of the <see cref="AnalysisDrillThruColumn"/> class. /// </summary> /// <param name="sourceField">Source field</param> /// <param name="dataSourceField">Data source field</param> public AnalysisDrillThruColumn(AnalysisSourceField sourceField, ICrmDataSourceField dataSourceField) { this.SourceField = sourceField; this.DataSourceField = dataSourceField; }