Exemple #1
0
 /// <summary>
 /// Crate a new copy of collection
 /// </summary>
 /// <param name="ireport">owner report</param>
 /// <returns>a new copy of collection</returns>
 public DataSourceItemCollection Copy(IReport ireport)
 {
     DataSourceItemCollection newCollection = new DataSourceItemCollection(ireport);
     foreach (DataSourceItem item in this)
     {
         newCollection.Add(item.Copy());
     }
     return newCollection;
 }
Exemple #2
0
        public WebEasilyReport()
        {
            headerItems = new ReportItemCollection(this);
            footerItems = new ReportItemCollection(this);

            fieldItems = new DataSourceItemCollection(this);
            dataSource = new WebDataSourceItemCollection(this);
            mailSetting = new MailConfig();
            format = new ReportFormat();
            parameters = new ParameterItemCollection();
            images = new ImageItemCollection();
            dbGateway = new DBGateway(this);
            serializer = new BinarySerialize();

            this.reportID = ComponentInfo.DefaultReportID + DateTime.Now.ToString("yyyyMMdd");
            this.reportName = "";

            fontConvert = new FontConverter();
            Visible = false;

            if (this.UIType == EasilyReportUIType.AspNet)
            {
                render = new AspNetRender(this);
            }
            else
            {
                render = new ExtJsRender(this);
            }
        }
Exemple #3
0
 internal void SetCollection(DataSourceItemCollection col)
 {
     collection = col;
 }