2023-06-14 22:47:30 +04:00
|
|
|
@using CanteenContracts.BindingModels;
|
|
|
|
@model ReportBindingModel
|
|
|
|
|
|
|
|
@{
|
|
|
|
ViewBag.Title = "Report";
|
|
|
|
}
|
|
|
|
|
2023-06-19 09:12:18 +04:00
|
|
|
<h2>Отчеты</h2>
|
2023-06-14 22:47:30 +04:00
|
|
|
|
|
|
|
@using (Html.BeginForm("Report", "Home", FormMethod.Post))
|
|
|
|
{
|
2023-06-19 09:12:18 +04:00
|
|
|
<div class="row">
|
|
|
|
<h4>Pdf</h4>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
@Html.LabelFor(m => m.DateBefore, "От")
|
|
|
|
@Html.TextBoxFor(m => m.DateBefore, new { type = "date", @class = "form-control" })
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-14 22:47:30 +04:00
|
|
|
|
2023-06-19 09:12:18 +04:00
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
@Html.LabelFor(m => m.DateAfter, "До")
|
|
|
|
@Html.TextBoxFor(m => m.DateAfter, new { type = "date", @class = "form-control" })
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-14 22:47:30 +04:00
|
|
|
</div>
|
2023-06-19 09:12:18 +04:00
|
|
|
<div class="form-group mt-2">
|
|
|
|
<button type="submit" class="btn btn-primary" formaction="@Url.Action("ReportPdf", "Home")">Сохранить в pdf</button>
|
|
|
|
<button type="submit" class="btn btn-primary" formaction="@Url.Action("ReportEmail", "Home")">Отправить pdf по почте</button>
|
2023-06-14 22:47:30 +04:00
|
|
|
</div>
|
|
|
|
|
2023-06-19 09:12:18 +04:00
|
|
|
<div class="mt-3">
|
|
|
|
<h4>Word, Excel</h4>
|
|
|
|
<div class="form-group mb-2">
|
|
|
|
@Html.LabelFor(m => m.ProductId, "Выбранные продукты")
|
|
|
|
@Html.DropDownListFor(m => m.ProductId, new SelectList(ViewBag.ProductList, "Id", "ProductName"), new { @class = "form-control", multiple = "multiple" })
|
|
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary" formaction="@Url.Action("ReportXsl", "Home")">Сохранить в excel</button>
|
|
|
|
<button type="submit" class="btn btn-primary" formaction="@Url.Action("ReportWord", "Home")">Сохранить в word</button>
|
|
|
|
</div>
|
2023-06-14 22:47:30 +04:00
|
|
|
}
|