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

119 lines
4.5 KiB
Plaintext

@model GODATA.Models.Inventory.InventoryModel
@using (Ajax.BeginForm("UpdateReason", "Inventory", new AjaxOptions { HttpMethod = "POST", OnBegin = "onBeginCreateReason", OnSuccess = "onSuccessReason" }))
{
<div>
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.Id)
@Html.HiddenFor(model => model.IsDeleted)
@*<div class="editor-label">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<table>
<tr>
<td>
<div class="LeftTD_Panel">@Html.LabelFor(model => model.TypeAlias)</div>
</td>
<td class="editor-field">
@Html.DropDownListFor(model => model.TypeId, (IEnumerable<SelectListItem>)ViewBag.TypeIds, "-Select-", new { @id = "ddTypeId" })
@Html.TextBoxFor(model => model.TypeAlias, new { @class = "disable_btn k-textbox", @readonly = "readonly" })
<span id="spanTypeId" style="display: none; color: red;">*</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="editor-label">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="350">
<table>
<tr>
<td>
<div class="LeftTD_Panel">@Html.LabelFor(model => model.ReasonName)</div>
</td>
<td class="editor-field">
@Html.TextAreaFor(model => model.ReasonName, new { @class = "k-textbox" })
<span id="spanReason" style="display: none; color: red;">*</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>*@
<table class="CreateVechile_Tbl" width="100%" align="middle" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
@Html.LabelFor(model => model.TypeAlias)
</td>
<td>
@Html.DropDownListFor(model => model.TypeId, (IEnumerable<SelectListItem>)ViewBag.TypeIds, "-Select-", new { @id = "ddTypeId" })
@* @Html.TextBoxFor(model => model.TypeAlias, new { @class = "disable_btn k-textbox", @readonly = "readonly" })*@
<span id="spanTypeId" style="display: none; color: #ee1d23;">*</span>
</td>
</tr>
<tr>
<td>
@Html.LabelFor(model => model.ReasonName)
</td>
<td>
@Html.TextAreaFor(model => model.ReasonName, new { @class = "k-textbox" })
<span id="spanReason" style="display: none; color: #ee1d23;">*</span>
</td>
</tr>
</table>
<div class="CreateWrp">
<input type="submit" id="btnCrt" value="Create " class="button_blue Custo_popupBtn" />
<input type="reset" value="Reset " class="button_blue Custo_popupBtn" />
<input type="button" value="Cancel" class="button_blue Custo_popupBtn CancelBtnBg" onclick='closeWindow("#divCreateReason")' />
</div>
</div>
}
<script type="text/ecmascript">
$("#divCreateReason").parent().addClass("Window_prjctrscrn");
</script>
<style>
.k-window-titlebar.k-header {
background: url("/content/css/images/infowindow_head-bg.png") repeat-x left top;
height: 18px !important;
background-color: transparent !important;
line-height: 16px;
}
div.k-window {
box-shadow: 20px 20px 30px #555 !important;
border-radius: 0;
width: 580px !important;
left: 33% !important;
}
.k-window-titlebar {
border-radius: 0px !important;
border-bottom: 0;
}
div.k-window-content {
padding: 0;
overflow-x: hidden;
}
#form0 {
margin: 0;
padding: 0;
}
.CreateWrp {
padding: 5px 10px;
border-top: 1px solid #dedede;
text-align: right;
margin: 0 0.5em;
}
</style>