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

288 lines
11 KiB
Plaintext

@model IEnumerable<GODATA.Models.UserInventory.UserCreateModel>
@if (Model != null && Model.Count() > 0)
{
foreach (var item in Model)
{
if (item.Status == "1")
{
if (item.Designation.ToString().ToLower() != "viewer")
{
<div id="divDetails" class="listDetails">
<div class="ldSection">
<table class="themeTable" id="tblUserInventory" cellpadding="5" cellspacing="0">
<tbody class="StructureTD">
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.FirstName)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.FirstName)
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.Designation)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.Designation)
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.Language)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.Language)
</td>
<td class="tableCelllabel bordernone">
<span class="darktxt">@Html.DisplayNameFor(model => model.UserName)</span>
</td>
<td class="tableCellinfo bordernone">
@Html.DisplayFor(modelItem => item.UserName)
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.State)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.State)
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.City)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.City)
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.OrganizationName)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.OrganizationName)
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.OrganizationRegion)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.OrganizationRegion)
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.OrganizationCountry)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.OrganizationCountry)
</td>
@if (item.ObjectId == "")
{
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.VehicleTagging)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.VehicleTagging)
</td>
}
else
{
<td class="tableCelllabel">&nbsp;
</td>
<td class="tableCellinfo">&nbsp;
</td>
}
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.IsLocked)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.IsLocked)
@Html.HiddenFor(modelItem => item.IsLocked)
</td>
</tr>
<tr style="display: none;">
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.Region)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.Region)
</td>
</tr>
</tbody>
</table>
</div>
@if ((item.Designation).ToString().ToLower() == "dealer")
{
<div class="ldSection">
@{Html.RenderAction("ManageUserInventory_GetDealerUserDetails", "UserInventory", new { dealerId = ViewBag.ObjectId });}
</div>
}
</div>
}
else
{
<div id="divDetails" class="listDetails">
<div class="ldSection">
<table class="themeTable" id="tblDealerPrincipalInventory" cellpadding="5" cellspacing="0">
<tbody class="StructureTD">
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.FirstName)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.FirstName)
</td>
<td class="tableCelllabel bordernone">
<span class="darktxt">@Html.DisplayNameFor(model => model.UserName)</span>
</td>
<td class="tableCellinfo bordernone">
@Html.DisplayFor(modelItem => item.UserName)
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.State)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.State)
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.City)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.City)
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.OrganizationName)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.OrganizationName)
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.OrganizationRegion)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.OrganizationRegion)
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.OrganizationCountry)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.OrganizationCountry)
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.IsLocked)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.IsLocked)
@Html.HiddenFor(modelItem => item.IsLocked)
</td>
</tr>
<tr style="display: none;">
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.Region)</span>
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.Region)
</td>
</tr>
</tbody>
</table>
</div>
<div class="ldSection">
@{Html.RenderAction("ManageUserInventory_GetDealerPrincipalDetails", "UserInventory", new { dealerPrincipalId = ViewBag.ObjectId });}
</div>
</div>
}
}
}
}
else
{
<div id="divNoDataFound_DRCRate" class="divNoDataFound no_data">
<span>
<p class="fs16">@*No Details Available!!!*@
@System.Configuration.ConfigurationManager.AppSettings["no_details_available"].ToString()
</p>
</span>
</div>
}
<style type="text/css">
.Tbl_gridcellList {
border: 1px solid #c5c5c5;
border-left: 0; /*margin-top: 10px;*/
border-top: 0;
}
.Tbl_gridcellList td, .Tbl_gridcellList th {
border: 1px solid #c5c5c5;
padding: 6px 5px;
border-right: 0;
border-bottom: 0;
}
.Tbl_gridcellList th {
background: #4a8bc2;
color: #fff;
font-weight: normal;
padding-left: 10px;
padding-right: 10px;
}
.themeTable tbody td {
/*width: 12.5% !important;*/
text-align: left !important;
}
.Cell_Deatil_Heading {
box-shadow: 0px 0px 0px 1px #fff inset;
background: -webkit-linear-gradient(top, #e3e3e3, #fcfcfc);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e3e3e3), to(#fcfcfc));
font-weight: bold;
padding: 5px;
margin-top: 22px;
border: 1px solid #c5c5c5;
text-align: center;
border-left: 0;
border-right: 0;
}
.GridTbl_wrp {
width: 100%;
overflow: auto;
}
.Pre_Navi pre {
font-family: Verdana;
}
/*.structureTD td:nth-child(odd) {
width: 11.3% !important;
}*/
/*.structureTD td:nth-child(even) {
width: ;
}*/
</style>