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.
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
@using GCI.UTL
|
|
@using GCI.PortalCondomino.Models
|
|
@model DebitosModel
|
|
@{
|
|
ViewBag.Title = "Débitos das Frações";
|
|
Layout = "~/Views/BackOffice/_Layout.cshtml";
|
|
}
|
|
|
|
@using (Html.BeginForm("Index", "Debitos", FormMethod.Get, null))
|
|
{
|
|
@Html.Hidden("commonholdid", @Model.CodCondominio, new { onchange = "this.form.submit();" })
|
|
}
|
|
|
|
<h3 class="oswald mt0 mb40 ac">@ViewBag.Title</h3>
|
|
|
|
<div class="table-responsive">
|
|
<table id="debitos" border="0" cellspacing="0" cellpadding="0" class="table table-striped last-cell-right mb40">
|
|
<thead>
|
|
<tr>
|
|
<th>Fração</th>
|
|
<th>Valor</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var linha in Model.Debitos)
|
|
{
|
|
<tr>
|
|
<td>@(linha.Fracao.ID + " - " + linha.Fracao.Nome)</td>
|
|
<td>@linha.Valor.ToString("C2")</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
@section footer {
|
|
@Html.Partial("_ContactosAdminPartial", Model.AdminData)
|
|
}
|
|
|
|
@section scripts {
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
// Poor mans binding
|
|
$('#condominios').val($('#commonholdid').val())
|
|
$('#condominios').change(function () {
|
|
$('#commonholdid').val($(this).val());
|
|
// Force trigger onchange
|
|
$('#commonholdid').trigger('change');
|
|
});
|
|
});
|
|
</script>
|
|
} |