EnVisageOnline/Beta/Source/EnVisage/Views/View/_costcenters.cshtml

39 lines
1.1 KiB
Plaintext

@model IList<EnVisage.Models.CreditDepartmentModel>
<script type="text/javascript">
function SelectAll(obj)
{
$.each($("input[type='checkbox']"), function(i, o)
{
if(o.id.substr(0, 16) == 'expCatCheckedId_')
{
o.checked = obj.checked;
}
}
);
}
</script>
<table class="table table-striped table-bordered dataTable" id="uom">
<thead>
</thead>
<tbody>
@if (Model != null)
{
foreach (var costcenter in Model)
{
<tr>
<td style="width:30px;text-align: right;">
<input type="checkbox" value="@costcenter.Id" name="CostCenterId" id="costcenterId_@costcenter.Id"/>
</td>
<td>@(string.IsNullOrEmpty(costcenter.CreditNumber) ? costcenter.Name : string.Format("{0} ({1})", costcenter.Name, costcenter.CreditNumber))</td>
</tr>
}
}
</tbody>
</table>