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.
82 lines
3.7 KiB
Plaintext
82 lines
3.7 KiB
Plaintext
@using GCI.UTL
|
|
@using GCI.PortalCondomino.Models
|
|
@using GCI.PortalCondomino.Helpers
|
|
@model RecibosModel
|
|
@{
|
|
ViewBag.Title = "Recibos";
|
|
Layout = "~/Views/Backoffice/_Layout.cshtml";
|
|
}
|
|
|
|
<h3 class="oswald mt0 mb40 ac">@ViewBag.Title</h3>
|
|
|
|
<section class="col-xs-12 col-md-10">
|
|
<div class="row filtros mb20 form-inline">
|
|
@using (Html.BeginForm("Index", "Recibos", FormMethod.Get, null))
|
|
{
|
|
<div class="col-xs-12 xs-ac al mb20 form-group">
|
|
@Html.Hidden("commonholdid", @Model.CodCondominio, new { id="commonholdid" })
|
|
<label for="f_ordenar" class="control-label">Ano:</label>
|
|
@Html.DropDownList("year", ViewBag.Years as List<SelectListItem>, new { id="year", @class = "form-control" })
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
@using (Html.BeginForm("Details"))
|
|
{
|
|
<div class="table-responsive">
|
|
<table id="recibos" border="0" cellspacing="0" cellpadding="0" class="table table-striped mb40">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center" colspan="4" style="border-right: 2px solid #ddd">Documento</th>
|
|
<th class="text-center" colspan="3" style="border-left: 2px solid #ddd">Pagamento</th>
|
|
</tr>
|
|
<tr>
|
|
<th></th>
|
|
<th>Número</th>
|
|
<th>Data</th>
|
|
<th>Valor</th>
|
|
<th>Forma</th>
|
|
<th>Banco</th>
|
|
<th align="right">Nº Documento</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var linha in Model.Registos)
|
|
{
|
|
@Html.HiddenFor(model => linha.CodRecibo, new { id = "recibo-" + linha.CodRecibo, name = "recibo-" + linha.CodRecibo })
|
|
<tr id=@("recibo-"+linha.CodRecibo)>
|
|
<td align="right">
|
|
<a class="glyphicon glyphicon-plus"
|
|
data-recibo=@("recibo-"+linha.CodRecibo)
|
|
data-toggle="collapse"
|
|
data-target=@("#detalhe-recibo-"+linha.CodRecibo)></a>
|
|
</td>
|
|
<td>@linha.NRecibo</td>
|
|
<td>@linha.Data.ToShortDateString()</td>
|
|
<td>@linha.Valor.ToString("C2")</td>
|
|
<td>@linha.DadosPagamento.Tipo.GetDescription()</td>
|
|
<td>@linha.DadosPagamento.ContaBancaria.Nome</td>
|
|
<td>@linha.DadosPagamento.ContaBancaria.ID</td>
|
|
</tr>
|
|
<tr name="filler"><!-- Criado para que o estilo da tabela não seja afectado (even/odd) --></tr>
|
|
<tr>
|
|
<td class="detalhe" colspan="7">
|
|
<div id=@("detalhe-recibo-"+linha.CodRecibo) class="collapse">
|
|
<p>A Carregar...</p>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
}
|
|
@section scripts {
|
|
<script src="~/Content/js/binder.js" type="text/javascript" nonce="@Html.ScriptNonce()"></script>
|
|
<script src="~/Content/js/grid-details.js" type="text/javascript" nonce="@Html.ScriptNonce()"></script>
|
|
}
|
|
</section>
|
|
|
|
@section footer {
|
|
@Html.Partial("_ContactosAdminPartial", Model.AdminData)
|
|
} |