Get export working for Vehicle Service
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user