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
+4 -4
View File
@@ -4,7 +4,7 @@
@{
ViewBag.Title = "Logs";
var grid = new WebGrid(Model.Logs, rowsPerPage: 45);
var parameters = new {Model.Year, Model.Month, Model.LogType, Model.MonthRange, Model.VehicleId, Model.EmployeeName};
var queryParams = new {Model.Year, Model.Month, Model.LogType, Model.MonthRange, Model.VehicleId, Model.EmployeeName};
}
@section Styles {
<link href="@Url.Content("~/Content/VehicleColors.css")" rel="stylesheet" type="text/css" />
@@ -36,16 +36,16 @@
<div class="btn-toolbar clearfix">
@Html.ActionLink("Add New Log", "Create", null, new { @class = "btn" })
@Html.ActionLink("Import", "ImportUpload", null, new { @class = "btn"})
@Html.ActionLink("Export", "Export", parameters, new { @class = "btn" })
@Html.ActionLink("Export", "Export", queryParams, new { @class = "btn" })
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Report <span class="caret"></span></a>
<ul class="dropdown-menu">
<li>
@Html.ActionLink("Vehicle Mileage", "MonthlyVehicleMileage", parameters)
@Html.ActionLink("Vehicle Mileage", "MonthlyVehicleMileage", queryParams)
</li>
<li>
@Html.ActionLink("Driver Mileage", "MonthlyDriverMileage", parameters)
@Html.ActionLink("Driver Mileage", "MonthlyDriverMileage", queryParams)
</li>
</ul>
</div>