59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
@using EnVisage.Code
|
|
@using EnVisage.Code.HtmlHelpers
|
|
@using EnVisage.Code.BLL
|
|
@using EnVisage.Models
|
|
@model EnVisage.Models.FiscalCalendarListModel
|
|
@{
|
|
ViewBag.Title = "Calendar Settings History";
|
|
}
|
|
|
|
<script type="text/javascript">
|
|
emulateNavUrl = "/Calendar";
|
|
</script>
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
|
<h4 class="modal-title">@ViewBag.Title</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="table-light table-responsive">
|
|
<table border="0" class="table table-striped table-bordered" id="calendarHistoryRecords">
|
|
<thead>
|
|
<tr>
|
|
<th>Status</th>
|
|
<th>Effective Date of Change</th>
|
|
<th>Calendar Type</th>
|
|
<th>Week Ending</th>
|
|
<th>Year Type</th>
|
|
<th>Adjust Period</th>
|
|
<th>First Calendar Day</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@{
|
|
if ((Model != null) && (Model.Items != null))
|
|
{
|
|
foreach (FiscalCalendarModel item in Model.Items)
|
|
{
|
|
<text>
|
|
<tr>
|
|
<td>@item.Status.ToDisplayValue()</td>
|
|
<td>@(item.EffectiveChangeDate.HasValue ? item.EffectiveChangeDate.Value.ToShortDateString() : "")</td>
|
|
<td>@item.CalendarType.ToDisplayValue()</td>
|
|
<td>@item.WeekendingDay.ToDisplayValue()</td>
|
|
<td>@item.YearTypeAsText</td>
|
|
<td>@(item.UseAdjustingPeriod ? "Yes" : "No")</td>
|
|
<td>@(item.StartingPoint.HasValue ? item.StartingPoint.Value.ToShortDateString() : "")</td>
|
|
</tr>
|
|
</text>
|
|
}
|
|
}
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!-- / .modal-body -->
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
</div>
|