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

104 lines
3.7 KiB
Plaintext

@model GODATA.Models.TicketAdministration_Dealer.VehicleModelModel
@using (Ajax.BeginForm("InsertVehicleModel", "Inventory", new AjaxOptions { HttpMethod = "POST", OnBegin = "onBeginCreateVehicle", OnSuccess = "onSuccessVehicle" }))
{
<div>
@Html.ValidationSummary(true)
@Html.HiddenFor(p => p.Operation)
<table class="CreateReason_Tbl" width="100%" align="middle" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
@Html.LabelFor(model => model.VehicleTypeTagging)
</td>
<td>
@Html.DropDownListFor(model => model.VehicleTypeTagging, (IEnumerable<SelectListItem>)ViewBag.VehicleTypeTagging, "-Select-", new { @id = "ddVehicleTypeTagging" })
@* @Html.TextBoxFor(model => model.VehicleTypeTagging, new { @class = "disable_btn k-textbox", @readonly = "readonly" })*@
<span id="spanVehicleTypeTagging" style="display: none; color: red;">*</span>
</td>
</tr>
<tr style="display:none;">
<td>
@Html.LabelFor(model => model.VehicleTypeId)
</td>
<td>
@Html.TextAreaFor(model => model.VehicleTypeId, new { @style = "width:173px;" })
<span id="spanVehicleTypeId" style="display: none; color: red;">*</span>
</td>
</tr>
<tr >
<td>
@Html.LabelFor(model => model.VehicleTypeName)
</td>
<td>
@Html.TextAreaFor(model => model.VehicleTypeName, new { @style = "width:173px;" })
<span id="spanVehicleTypeName" style="display: none; color: red;">*</span>
</td>
</tr>
<tr>
<td>
@Html.LabelFor(model => model.udanVehicleProductId)
</td>
<td>
@Html.TextAreaFor(model => model.udanVehicleProductId, new { @style = "width:173px;" })
</td>
</tr>
<tr>
<td>
@Html.LabelFor(model => model.udanVehicleProductName)
</td>
<td>
@Html.TextAreaFor(model => model.udanVehicleProductName, new { @style = "width:173px;" })
</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("#divCreateVechicle")' />
</div>
</div>
}
<script type="text/ecmascript">
$("#divCreateVechicle").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>