Exemplo n.º 1
0
 public void SetDependencies(ReportParameterInfoCollection coll)
 {
     if (this.m_dependencyCollection == null)
     {
         if (this.m_dependencies == null)
         {
             this.m_dependencyCollection = new ReportParameterInfoCollection();
         }
         else
         {
             List <ReportParameterInfo> list = new List <ReportParameterInfo>();
             string[] dependencies           = this.m_dependencies;
             foreach (string name in dependencies)
             {
                 ReportParameterInfo reportParameterInfo = coll[name];
                 if (reportParameterInfo != null)
                 {
                     list.Add(reportParameterInfo);
                     reportParameterInfo.m_dependentsCollectionConstruction.Add(this);
                 }
             }
             this.m_dependencyCollection = new ReportParameterInfoCollection(list);
         }
     }
 }
Exemplo n.º 2
0
 public GridLayoutDefinition(GridLayoutCellDefinitionCollection cellDefs, int numRows, int numColumns, ReportParameterInfoCollection paramInfoCollection)
 {
     this.m_cellDefinitions   = cellDefs;
     this.m_numberOfRows      = numRows;
     this.m_numberOfColumns   = numColumns;
     this.m_columnsVisibility = new bool[numColumns];
     this.m_rowsVisibility    = new bool[numRows];
     if (paramInfoCollection != null && paramInfoCollection.Any())
     {
         int i;
         for (i = 0; i < this.m_numberOfColumns; i++)
         {
             IEnumerable <GridLayoutCellDefinition> enumerable = from p in this.m_cellDefinitions
                                                                 where p.Column == i
                                                                 select p;
             if (!enumerable.Any() && i < this.m_cellDefinitions.Max((GridLayoutCellDefinition p) => p.Column))
             {
                 this.m_columnsVisibility[i] = true;
             }
             foreach (GridLayoutCellDefinition item in enumerable)
             {
                 Func <ReportParameterInfo, bool> predicate = delegate(ReportParameterInfo p)
                 {
                     if (p.Name == item.ParameterName)
                     {
                         return(this.IsParamVisible(p));
                     }
                     return(false);
                 };
                 if (paramInfoCollection.Any(predicate))
                 {
                     this.m_columnsVisibility[i]     = true;
                     this.m_rowsVisibility[item.Row] = true;
                 }
             }
         }
         int j;
         for (j = 0; j < this.m_numberOfRows; j++)
         {
             IEnumerable <GridLayoutCellDefinition> source = from p in this.m_cellDefinitions
                                                             where p.Row == j
                                                             select p;
             if (!source.Any() && j < this.m_cellDefinitions.Max((GridLayoutCellDefinition p) => p.Row))
             {
                 this.m_rowsVisibility[j] = true;
             }
         }
     }
 }
Exemplo n.º 3
0
 public SubreportProcessingEventArgs(string subreportName, ReportParameterInfoCollection paramMetaData, string[] dataSetNames)
 {
     this.m_subReportName = subreportName;
     this.m_paramMetaData = paramMetaData;
     this.m_dsNames       = new ReadOnlyCollection <string>(dataSetNames);
 }