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

169 lines
5.3 KiB
Plaintext

@model IEnumerable<GODATA.Models.UserInventory.UserCreateModel>
@if (Model.Count() > 0 && Model != null)
{
int count = 1;
foreach (var item1 in Model)
{
if (item1.Status == "1" && count == 1)
{
count = count + 1;
<div>
<table id="tableUserList" class="" cellpadding="5" cellspacing="0" width="100%">
@*<thead>
<tr>
<th class="tableCelllabel">
<span class="darktxt">User Id</span>
</th>
<th class="tableCelllabel">
<span class="darktxt">User Name</span>
</th>
</tr>
</thead>*@
<tbody>
@foreach (var item in Model)
{
@*<tr id="@item.AuthEngineId">
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.UserId)
</td>
<td class="tableCellinfo">
@Html.DisplayFor(modelItem => item.UserName)
</td>
</tr>*@
<tr id="@item.UserName" data-userName="@item.UserName" data-objectId="@item.ObjectId" data-organizationId="@item.OrganizationId" class="Admin_Wrp">
@*<td class="Row1">
<div>
<div class="LftPanel">
<img src="/Content/css/images/admin-circle.png" alt="user" border="0">
</div>
<div class="RgtPanel">
<img src="/Content/css/images/email-circle.png" alt="email" border="0">
</div>
</div>
</td>*@
<td class="Row2">
<div>
@*<div class="RgtPanel">*@
<div class="LftPanel">
<label>@Html.DisplayFor(modelItem => item.UserName)</label>
</div>
@*<div class="LftPanel">*@
@if ((item.Designation).ToString().ToLower().Trim() == "viewer")
{
<div class="RgtPanel">
[@Html.DisplayFor(modelItem => item.FirstName)]
</div>
}
else
{
if(@ViewBag.userType == "dealer"){
<div class="RgtPanel">
[@Html.DisplayFor(modelItem => item.Designation) - <label>@item.ObjectId</label>]
</div>
}
else{
<div class="RgtPanel">
[@Html.DisplayFor(modelItem => item.Designation) ]
</div>
}
}
</div>
</td>
</tr>
@*<tr>
<td class="emptyRow">&nbsp;</td>
</tr>*@
}
</tbody>
</table>
</div>
}
}
}
else
{
<div id="divNoDataFound_DRCRate" class="divNoDataFound no_data">
<span>
<p class="fs16">@*No user Available!!!*@
@System.Configuration.ConfigurationManager.AppSettings["no_user_available"].ToString()
</p>
</span>
</div>
}
<script>
showUserDetails();
//searchUser();
</script>
<style type="text/css">
.Row1 {
padding-left: 11px;
}
.LftPanel, .RgtPanel {
cursor: pointer;
font-size: 13px;
}
.LftPanel label {
cursor: pointer;
}
.listBox table tbody tr:hover {
color: #114d97;
}
.listBox table tbody tr:nth-child(even) {
padding: 2px 6px 2px 6px;
}
.userListContainer .Admin_Wrp {
border-bottom: 1px solid #c5c5c5;
}
.SelectedRow {
background-color: #f5f5f5;
}
#tableUserList .Admin_Wrp td {
/*border-bottom: 1px solid #c5c5c5;*/
background-color: #f5f5f5;
border-bottom: 5px solid #fff;
}
#tableUserList tr:hover {
background: #f5f5f5;
cursor: pointer;
}
.Row2 {
padding: 10px;
line-height: 22px;
background-image: url("/Content/css/images/user-list-icon.png");
background-repeat: no-repeat;
background-position: 95% center;
padding-left: 20px;
}
.SelectedRow td {
/*border-left: 5px solid #f00;*/
box-shadow: 5px 0px 0 0px #114287 inset;
}
.emptyRow {
line-height: 0;
cursor: default;
border-left: none !important;
}
</style>