yavsc/Yavsc/Views/Shared/Components/Estimate/Estimate_pdf.cshtml

22 lines
451 B
Text
Raw Normal View History

2016-11-09 14:03:57 +01:00
@using System.Reflection
@using System.IO
@using Microsoft.Extensions.WebEncoders
@using System.Diagnostics
@using System.Text
@using Yavsc.Formatters
2016-11-30 11:01:22 +01:00
@using Yavsc.Helpers
2016-11-09 14:03:57 +01:00
@model Yavsc.ViewModels.Gen.PdfGenerationViewModel
2016-11-30 11:01:22 +01:00
@{
Model.GenerateEstimatePdf();
2016-11-09 14:03:57 +01:00
}
2016-11-30 11:01:22 +01:00
@if (Model.Generated) {
<div>
@(Model.BaseFileName).pdf was generated
</div>
2016-11-09 14:03:57 +01:00
} else {
2016-11-30 11:01:22 +01:00
<div class="error">
@Model.GenerationErrorMessage
<p>Something went wrong ...</p>
</div>
2016-11-09 14:03:57 +01:00
}