예제 #1
0
        //пдф клиент
        public void SaveCarsSparesToPdfFile(string fileName, int id, string email)
        {
            string title = "Список заказов";

            SaveToPdf.CreateDoc(new PdfInfoClient
            {
                FileName = fileName,
                Title    = title,
                Orders   = GetClientOrders(id),
                Cars     = GetCars()
            });
            SendMail(email, fileName, title);
        }
예제 #2
0
        //пдф админ
        public void SaveCarsRequestsToPdfFile(ReportBindingModel req, string email)
        {
            string title = "Машины и Заявки в период c " + req.DateFrom.ToString() + " по " + req.DateTo.ToString();

            SaveToPdf.CreateDoc(new PdfInfo
            {
                FileName = req.FileName,
                Title    = title,
                Cars     = carLogic.Read(null).ToList(),
                Requests = GetRequests(req)
            });
            SendMail(email, req.FileName, title);
        }