예제 #1
0
        public void SaveAuthorsToPdfFile(ReportBindingModel model)
        {
            string title = "Авторы и их статьи";

            SaveToPdf.CreateDoc(new PdfInfo
            {
                FileName = model.FileName,
                Title    = title,
                Authors  = GetAuthors(model),
            });
        }
예제 #2
0
        public void SaveEducationPaymentsToPdfFile(string fileName, EducationBindingModel visit, string email)
        {
            var    Visits = visitLogic.Read(visit).ToList();
            string title  = "Список курсов в период с " + visit.DateFrom.ToString() + " по " + visit.DateTo.ToString();

            SaveToPdf.CreateDoc(new PdfInfo
            {
                FileName   = fileName,
                Title      = title,
                Educations = visitLogic.Read(visit).ToList(),
                Payments   = GetEducationPayments(visit)
            });
            SendMail(email, fileName, title);
        }