using System; using System.Collections.Generic; using System.Linq; using BeWo.Data.Access; using BeWo.Data.Entities; using BeWo.Service.DCEntityMapper; using BS.Shared.Core; using BS.Shared.DataContracts.Compact; namespace BeWo.Report.ReportObjects { public class CustomerListRO : AbstractBeWoReportObject { public List CustomerList { get; set; } public static CustomerListRO Create(List oids) { var ro = new CustomerListRO(); ro.CustomerList = new List(); var customers = DAOFactory.GenericDAO.LoadByIDs(oids); var dclist = MapperFactory.CustomerDC_Customer.MapToNewDCs(customers); foreach (var item in dclist) { var customerRO = CustomerDataRO.Create(item); ro.CustomerList.Add(customerRO); } return ro; } } }