35 lines
1.5 KiB
Plaintext
35 lines
1.5 KiB
Plaintext
@model Dictionary<KeyValuePair<Guid, string>, List<EnVisage.Models.CompanyModel>>
|
|
<table class="table table-striped table-bordered dataTable" id="uom">
|
|
<thead></thead>
|
|
<tbody>
|
|
@if (Model != null)
|
|
{
|
|
foreach (var parentCompany in Model)
|
|
{
|
|
<tr class="text-bold">
|
|
<td style="width:30px;text-align: right;">
|
|
@if (!parentCompany.Value.Any())
|
|
{
|
|
<input type="checkbox" value="@parentCompany.Key.Key" name="CompanyId" id="companyId_@parentCompany.Key.Key" checked disabled />
|
|
<input type="hidden" value="@parentCompany.Key.Key" name="CompanyId"/>
|
|
}
|
|
else
|
|
{
|
|
<input type="checkbox" value="@parentCompany.Key.Key" name="CompanyId" id="companyId_@parentCompany.Key.Key" />
|
|
}
|
|
</td>
|
|
<td>@parentCompany.Key.Value</td>
|
|
</tr>
|
|
foreach (var child in parentCompany.Value)
|
|
{
|
|
<tr>
|
|
<td style="width:30px;text-align: right;">
|
|
<input type="checkbox" value="@child.Id" name="CompanyId" id="companyId_@child.Id" />
|
|
</td>
|
|
<td>@child.Name</td>
|
|
</tr>
|
|
}
|
|
}
|
|
}
|
|
</tbody>
|
|
</table> |