Get export working for Vehicle Service

This commit is contained in:
2015-10-12 20:11:02 -04:00
parent e008bc2242
commit d87f654a20
5 changed files with 30 additions and 8 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
@{
ViewBag.Title = "Vehicle Service";
var grid = new WebGrid(Model.ServiceItems, rowsPerPage: 45);
var queryParams = new { Model.Year, Model.Month, Model.MonthRange };
}
@section Scripts {
@@ -29,7 +30,7 @@
<div class="btn-toolbar pull-left">
@Html.ActionLink("Add Service", "Create", null, new{@class="btn"})
@Html.ActionLink("Export", "Export", null, new{@class="btn"})
@Html.ActionLink("Export", "Export", queryParams, new{@class="btn"})
</div>
@grid.GetHtml(columns: