Пример #1
0
        public override void Process(ReportProcessorArgs args)
        {
            IElementDictionary <IElementCustomerLookup> entries = GetElementDictionary(args);

            IList <KeyValuePair <string, IElementCustomerLookup> > companyInfoList =
                new List <KeyValuePair <string, IElementCustomerLookup> >();

            companyInfoList = (from key in entries.Keys
                               select
                               new KeyValuePair <string, IElementCustomerLookup>(key,
                                                                                 new ReadonlyElementCustomerLookup(entries[key]))
                               into kvp
                               orderby kvp.Key
                               select kvp).ToList();


            var resultTable = CompanyInfoHelper.CreateCompanyDataTable("CompanyInfo");

            foreach (var companies in companyInfoList)
            {
                DataRow dataRow = resultTable.NewRow();
                resultTable.Rows.Add(CompanyInfoHelper.FillCompanyDataTable(dataRow, companies.Value));
            }

            args.QueryResult = resultTable;
        }
Пример #2
0
 public override void Process(ReportProcessorArgs args)
 {
     args.ResultTableForView = CompanyInfoHelper.CreateCompanyDataTable("CompanyInfo");
 }