Example #1
0
        public void SavePaymentsToPdfFile(ReportBindingModel model)
        {
            string title = "Клиенты и их платежи";

            SaveToPdf.CreateDoc(new PdfInfo
            {
                FileName = model.FileName,
                Title    = title,
                Payments = GetPayments(model)
            });
        }
Example #2
0
        public void SaveOrdersToPdfFile(string fileName, OrderBindingModel order, string email)
        {
            string title = " Просмотр заказанных услуг в период с " + order.DateFrom.ToString() + " по " + order.DateTo.ToString();

            SaveToPdf.CreateDoc(new PdfInfoClient
            {
                FileName = fileName,
                Title    = title,
                Orders   = orderLogic.Read(order).ToList(),
                Payments = GetOrders(order)
            });
            SendMail(email, fileName, title);
        }