コード例 #1
0
ファイル: WebEasilyReport.cs プロジェクト: san90279/UK_OAS
        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);
            }
        }
コード例 #2
0
ファイル: ReportItem.cs プロジェクト: san90279/UK_OAS
 /// <summary>
 /// Create a new copy of collection
 /// </summary>
 /// <returns>a new copy of collection</returns>
 public ImageItemCollection Copy()
 {
     ImageItemCollection newCollection = new ImageItemCollection();
     foreach (ImageItem imageItem in this)
     {
         newCollection.Add(imageItem.Copy());
     }
     return newCollection;
 }