You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
executaveis/GCI.PortalCondomino/Views/Despesas/Index.cshtml

50 lines
1.5 KiB
Plaintext

@using GCI.UTL
@using GCI.PortalCondomino.Models
@using GCI.PortalCondomino.Helpers
@model DespesasModel
@{
ViewBag.Title = "Despesas do Condomínio";
Layout = "~/Views/BackOffice/_Layout.cshtml";
}
@using (Html.BeginForm("Index", "Despesas", FormMethod.Get, null))
{
@Html.Hidden("commonholdid", @Model.CodCondominio, new { id = "commonholdid" })
}
<h3 class="oswald mt0 mb40 ac">@ViewBag.Title</h3>
<div class="table-responsive">
<table id="despesas" border="0" cellspacing="0" cellpadding="0" class="table table-striped last-cell-right mb40">
<thead>
<tr>
<th>Rúbrica</th>
<th>Data</th>
<th>Total</th>
</tr>
</thead>
<tbody>
@foreach (var linha in Model.Despesas)
{
<tr>
<td>@linha.Rubrica</td>
<td>@linha.Data.ToShortDateString()</td>
<td>@linha.Total.ToString("C2")</td>
</tr>
}
<tr>
<td><b>Total:</b></td>
<td></td>
<td><b>@Model.Somatorio.ToString("C2")</b></td>
</tr>
</tbody>
</table>
</div>
@section footer {
@Html.Partial("_ContactosAdminPartial", Model.AdminData)
}
@section scripts {
<script src="~/Content/js/binder.js" type="text/javascript" nonce="@Html.ScriptNonce()"></script>
}