EOS/Views/UserInventory/ManageUserInventory_GetDealerPrincipalDetails.cshtml
Nidhi Bhargava f0c1ab20e1 code push
2025-09-04 16:25:07 +05:30

60 lines
2.5 KiB
Plaintext

@model IEnumerable<GODATA.Models.UserInventory.DealerChildPrincipalList>
<div class="ldSection managefleet_dealerdetail_wrapper">
<img src="~/Content/css/images/dealer-detail-tag01.png" class="detail_lables" />
<input type="hidden" id="hdnChildDealers" value="@ViewBag.childDealers" />
<table class="themeTable" cellpadding="5" cellspacing="0">
<tbody class="StructureTD">
@if (ViewBag.DealerPrincipalDetails.Count > 0)
{
foreach (var item in (List<GODATA.Models.UserInventory.DealerChildPrincipalList>)ViewBag.DealerPrincipalDetails)
{
<tr>
<td class="tableCelllabel">
<span class="darktxt">Principal Dealer Name</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(model => item.DealerName)
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.DealerContact1)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(model => item.DealerContact1)
</td>
</tr>
}
}
</tbody>
</table>
@if (Model.Count() > 0)
{
<img src="~/Content/css/images/dealer-principal-tag.png" class="detail_lables" />
@(Html.Kendo().Grid<GODATA.Models.UserInventory.DealerChildPrincipalList>(Model)
.Name("ChildDealerList")
.Columns(columns =>
{
columns.Bound(column => column.DealerName).Hidden();
columns.Bound(column => column.DealerName).Hidden();
columns.Bound(column => column.DealerName);
columns.Bound(column => column.DealerId);
columns.Bound(column => column.DealerState);
columns.Bound(column => column.DealerCity);
columns.Bound(column => column.DealerContact1);
})
.Pageable()
.Scrollable()
.Filterable()
.Resizable(resize => resize.Columns(true))
.Events(events => events
.ColumnResize("onColumnResize"))
.DataSource(dataSource => dataSource
.Ajax()
.Batch(true)
.ServerOperation(false)
)
)
}
</div>