42 lines
1.7 KiB
Plaintext
42 lines
1.7 KiB
Plaintext
@using CanteenContracts.BindingModels;
|
|
@model ReportBindingModel
|
|
|
|
@{
|
|
ViewBag.Title = "Report";
|
|
}
|
|
|
|
<h2>Отчеты</h2>
|
|
|
|
@using (Html.BeginForm("Report", "Home", FormMethod.Post))
|
|
{
|
|
<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>
|
|
|
|
<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>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
|
|
<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>
|
|
} |