Get export working for Vehicle Service
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
@{
|
||||
ViewBag.Title = "Fuel Logs";
|
||||
var grid = new WebGrid(Model.FuelLogs, rowsPerPage: 45);
|
||||
var parameters = new {FiscalYear = Model.Year, Model.Month, Model.Unmatched};
|
||||
var queryParams = new {FiscalYear = Model.Year, Model.Month, Model.Unmatched};
|
||||
}
|
||||
|
||||
@section Scripts {
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
<div class="btn-toolbar clearfix">
|
||||
@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>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user