Пример #1
0
 public void CopyTo(MailConfig mail)
 {
     foreach (Attachment attach in this.Attachments)
     {
         mail.Attachments.Add(attach);
     }
     mail.Body = this.Body;
     mail.Encoding = this.Encoding;
     mail.Host = this.Host;
     mail.MailFrom = this.MailFrom;
     mail.MailTo = this.MailTo;
     mail.Password = this.Password;
     mail.Port = this.Port;
     mail.Subject = this.Subject;
 }
Пример #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);
            }
        }
Пример #3
0
 public MailConfig Copy()
 {
     MailConfig mail = new MailConfig();
     CopyTo(mail);
     return mail;
 }