49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
@model IList<EnVisage.Models.CompanyModel>
|
|
<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>
|
|
@{
|
|
var ParentCompanyName = string.Empty;
|
|
}
|
|
@if (Model != null)
|
|
{
|
|
foreach (var company in Model)
|
|
{
|
|
if (ParentCompanyName != company.ParentCompanyName)
|
|
{
|
|
<tr class="text-bold">
|
|
<td colspan="2">@company.ParentCompanyName</td>
|
|
</tr>
|
|
{
|
|
ParentCompanyName = company.ParentCompanyName;
|
|
}
|
|
}
|
|
<tr>
|
|
<td style="width:30px;text-align: right;">
|
|
<input type="checkbox" value="@company.Id" name="CompanyId" id="companyId_@company.Id"/>
|
|
</td>
|
|
<td>@company.Name</td>
|
|
</tr>
|
|
}
|
|
}
|
|
</tbody>
|
|
</table> |