@model ca.AgNition.HyCropScout.Common.CustomerReportModel @{ ViewBag.Title = "CustomerReport"; Layout = "~/Views/Shared/_Layout.cshtml"; }
@if (!String.IsNullOrEmpty(Model.Message)) { @Html.Message(Model.Message); }

Customer Report For @String.Join(", ", Model.RecNames)

@using (Html.BeginForm("CustomerReport", "Export")) { @Html.HiddenFor(m => m.RepName) foreach (int recId in Model.RecIdList) { @Html.Raw("") // This was acting weird (always using the first id in the hidden field) //@Html.Hidden("recIdList", recId) } @Html.HiddenFor(m => m.FilterCategory) @Html.HiddenFor(m => m.FilterClient)
@Html.LabelFor(m => m.StartDate) - @Html.Label(Model.StartDate.ToString("yyyy-MM-dd")) @Html.HiddenFor(m => m.StartDate)
@Html.LabelFor(m => m.EndDate) - @Html.Label(Model.EndDate.ToString("yyyy-MM-dd")) @Html.HiddenFor(m => m.EndDate)
Html.RenderPartial("GeneralPartial/CheckboxPartial", Model.Columns.Where(col => col.IsClientViewable));
}