EOS/obj/Release/Package/PackageTmp/Views/UserInventory/ManagePrincipleDealerInventory.cshtml
Nidhi Bhargava f0c1ab20e1 code push
2025-09-04 16:25:07 +05:30

241 lines
9.4 KiB
Plaintext

@{
ViewBag.Title = System.Configuration.ConfigurationManager.AppSettings["Title"] + " | Manage Principle Dealer";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@Html.ValidationSummary(true)
@model GODATA.Models.ResetPasswordModel
<div class="size25 left" id="leftPanel">
<div class="window">
<div class="titlebar">
<div class="title">
Dealer Principal List
</div>
</div>
<div class="innerWindow">
@*<div class="toolbar">
<div class="clear"></div>
</div>*@
<div class="menubar">
<div class="searchBox" title="Quick Search">
<div class="inputBox">
<input type="text" id="txtSearchUserList" />
</div>
<div class="sIcon">
<div id="btnSearchCancel" style="display: none;">
<span class="k-icon k-delete Close_Search"></span>
</div>
<div id="btnSearch">
<img border="0" src="@Url.Content("~/Content/images/search-icon.png")" alt="Search"/>
</div>
</div>
</div>
</div>
<div class="content overflow withtoolbar" style="top: 31px !important">
<div id="divPrincipleDealerUserList">
</div>
</div>
</div>
</div>
</div>
<div class="size75 right" id="rightPanel">
<div class="window">
<div class="titlebar">
<div class="title">
Dealer Principal Details
</div>
</div>
<div class="innerWindow">
<div class="toolbar">
<button class="button_blue" id="btnAdd" onclick="addPrincipleDealer()" title="Add non-Eicher user" style="margin-top: 2px; width: auto; height: 24px; overflow: hidden; line-height: 9px; min-width: 53px;">
Add</button>
<button class="button_blue" id="btnEdit" onclick="editPrincipleDealer()" title="Add non-Eicher user" style="margin-top: 2px; width: auto; height: 24px; overflow: hidden; line-height: 9px; min-width: 53px;">
Edit</button>
<button class="button_blue" id="btnDelete" onclick="deletePrincipleDealer()" title="Add non-Eicher user" style="margin-top: 2px; width: auto; height: 24px; overflow: hidden; line-height: 9px; min-width: 53px;">
Delete</button>
<button class="button_blue" id="btnResetPwd" onclick="resetUserPassword()" title="Reset user password" style="margin-top: 2px; width: auto; height: 24px; overflow: hidden; line-height: 9px; min-width: 53px;">
Reset</button>
<button class="button_blue" id="btnUnlockUser" onclick="UnlockUser()" title="Reset user password" style="margin-top: 2px; width: auto; height: 24px; overflow: hidden; line-height: 9px; min-width: 53px;">
Unlock</button>
</div>
<div class="content" style="top: 29px; /*margin-bottom: 37px; margin-top: -7px; */">
<div id="divPrincipleDealerUserDetailPanel">
</div>
<div id="dealerResetPwdPopup" style="display:none">
@using (Ajax.BeginForm("ManageDealerInventory_ResetDealerPwd", "UserInventory", new AjaxOptions { HttpMethod = "POST", OnSuccess = "onSuccessResetPwd" }, new { id = "resetPasswordForm" }))
{
@Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.")
<div>
<table class="themeTable" cellpadding="5" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="tableCelllabel">
<span class="darktxt">
@Html.LabelFor(model => model.ResetNewPassword)</span>
</td>
<td class="tableCellinfo">
@Html.HiddenFor(model => model.UserName, new { id = "hiddenUserName" })
@Html.PasswordFor(model => model.ResetNewPassword, new { @class = "k-textbox" })
@Html.ValidationMessageFor(model => model.ResetNewPassword)
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">
@Html.LabelFor(model => model.ResetConfirmPassword)</span>
</td>
<td class="tableCellinfo SelectDD">
@Html.PasswordFor(model => model.ResetConfirmPassword, new { @class = "k-textbox" })
@Html.ValidationMessageFor(model => model.ResetConfirmPassword)
</td>
</tr>
</tbody>
</table>
</div>
<br />
<div class="CreateWrp">
<input type="submit" value="Create " class="button_blue" style="margin: 0px; height: 13px; width: auto;" />
<input type="reset" value="Reset " class="button_blue" style="margin: 0px; height: 13px; width: auto;" />
<input type="button" value="Cancel " class="button_blue" style="background: #ee2e22 !important; margin: 0px; height: 13px; width: auto;" onclick='closeWindow("#dealerResetPwdPopup")' />
</div>
}
</div>
<div id="dealerUnlockPwdPopup" style="display:none">
@using (Ajax.BeginForm("ManageDealerInventory_UnlockUser", "UserInventory", new AjaxOptions { HttpMethod = "POST", OnSuccess = "onSuccessUnlockUser" }, new { id = "UnlockUserForm" }))
{
@Html.ValidationSummary(true, "Unlock User change was unsuccessful. Please correct the errors and try again.")
<div>
<table class="themeTable" cellpadding="5" cellspacing="0" width="100%" style="display:none;">
<tbody>
<tr>
<td class="tableCelllabel">
<span class="darktxt">
@Html.LabelFor(model => model.ResetNewPassword)</span>
</td>
<td class="tableCellinfo">
@Html.HiddenFor(model => model.UserName, new { id = "hiddenUserNameUnlock" })
</td>
</tr>
</tbody>
</table>
</div>
<br />
<div class="CreateWrp">
<input type="submit" value="Ok " class="button_blue" style="margin: 0px; height: 13px; width: auto;" />
<input type="button" value="Cancel " class="button_blue" style="background: #ee2e22 !important; margin: 0px; height: 13px; width: auto;" onclick='closeWindow("#dealerUnlockPwdPopup")' />
</div>
}
</div>
</div>
</div>
</div>
</div>
<link href="~/Content/css/jquery.alerts.css" rel="stylesheet" type="text/css" media="screen" />
<script src="~/Scripts/jquery.unobtrusive-ajax.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.ui.draggable.js"></script>
<script src="~/Scripts/jquery.alerts.js"></script>
<script src="~/Scripts/Inventory/principleDealerInventory.js"></script>
@*@Scripts.Render("~/bundles/jsManagePrincipleDealerInventory")*@
<style type="text/css">
.k-edit-buttons .k-button:hover, .K-btn-active {
/*background: -webkit-linear-gradient(top, #e3e3e3, #fcfcfc);
background: -moz-linear-gradient(top, #e3e3e3, #fcfcfc);
background: -ms-linear-gradient(top, #e3e3e3, #fcfcfc);
background: linear-gradient(top, #e3e3e3, #fcfcfc);*/
}
.Close_Search {
margin-top: -2px;
}
.sIcon div:hover {
cursor: pointer;
}
.toolOpener .toolPopupBox {
top: 25px;
left: -2px;
}
#btnSearch {
opacity: 0.70;
}
#btnSearch:hover {
opacity: 1;
}
.Inventory_curdBtn {
height: 20px;
margin-bottom: -5px;
margin-left: 2px;
font-size: 11px;
line-height: 14px;
border-radius: 2px;
}
.k-button {
/*background: #fcfcfc;
background: -webkit-linear-gradient(top, #fcfcfc, #e3e3e3);
background: -moz-linear-gradient(top, #fcfcfc, #e3e3e3);
background: linear-gradient(top, #fcfcfc, #e3e3e3);
color: #505050 !important;*/
}
.k-button-icontext .k-icon-small {
vertical-align: top;
margin-top: -1px !important;
margin-left: -6px;
}
.k-button:hover {
/*background: #e3e3e3;
background: -webkit-linear-gradient(top, #e3e3e3, #fcfcfc);
background: -moz-linear-gradient(top, #e3e3e3, #fcfcfc);
background: linear-gradient(top, #e3e3e3, #fcfcfc);*/
}
.themeTable tbody td {
/*width: 12.5% !important;*/
text-align: left !important;
line-height: 32px;
/*line-height:28px;*/
}
select {
width: 63%;
}
.themeTable th {
background: #ee2e22;
border-top: 1px solid #dedede;
line-height: 32px;
}
.themeTable th span {
color: #fff;
}
.StructureTD td:nth-child(odd) {
/*width: 13.9% !important;*/
}
.Row1 {
width: 14%;
}
</style>