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

159 lines
7.3 KiB
Plaintext

@model GODATA.Models.Inventory.VanList
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.VanId, new { id = "hdnVanId" })
@Html.HiddenFor(model => model.vanCityId, new { id = "CityName" })
<div>
<table class="themeTable" cellpadding="5" cellspacing="0" width="100%" style="border-top: 1px solid #dedede; margin-top: 2px;">
<tbody class="">
<tr>
<td class="tableCelllabel bordernone">
<span class="darktxt">
@Html.LabelFor(model => model.VanAlias)
</span>
<span class="error" color: red"> * </span>
</td>
<td class="tableCellinfo bordernone SelectDD">
@Html.TextBoxFor(model => model.VanAlias)
<span class="error" id="spnVanName" color: red"> * </span>
</td>
<td class="tableCelllabel">
<span class="darktxt">
@Html.LabelFor(model => model.VanState)
</span><span class="error" color: red"> * </span>
</td>
<td class="tableCellinfo SelectDD">
@Html.TextBoxFor(model => model.VanState, new { @readonly = "readonly", @class = "disable_btn" })
<span class="error" id="spnVanState" color: red"> * </span>
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">
@Html.LabelFor(model => model.VanCity)
</span><span class="error" color: red"> * </span>
</td>
<td class="tableCellinfo">
<select id="ddVanCity" data-val="true" data-val-required="*" name="City">
<option value="-Select-">-Select-</option>
</select>
@* @Html.TextBoxFor(model => model.VanCity)*@
<span id="spanVanCity" class="error" style="display: none; color: red">*</span>
</td>
<td class="tableCelllabel">
<span class="darktxt">
@Html.LabelFor(model => model.VanModelName)
</span><span class="error" color: red"> * </span>
</td>
<td class="tableCellinfo bordernone SelectDD">
@Html.TextBoxFor(model => model.VanModelName)
<span id="spanVanModelName" class="error" style="display: none; color: red">*</span>
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">
@Html.LabelFor(model => model.VanRegistrationNo)
</span><span class="error" color: red"> * </span>
</td>
<td class="tableCellinfo bordernone SelectDD">
@Html.Partial("RegistrationNo", new ViewDataDictionary { { "RegNo", Model.VanRegistrationNo }, { "id", "VanRegistrationNo" }, { "BlurFunction", "CheckVanDupRegistrationNo()" }, { "name", "VanRegistrationNo" } })
@*@Html.TextBoxFor(model => model.VanRegistrationNo, new { @onblur = "" })*@
<span id="spanVanRegistration" class="error" style="display: none; color: red">*</span>
</td>
<td class="tableCelllabel">
<span class="darktxt">
@Html.LabelFor(model => model.ServiceEngineerAlias)
</span><span class="error" color: red"> * </span>
</td>
<td class="tableCellinfo bordernone SelectDD">
@Html.TextBoxFor(model => model.ServiceEngineerName)
<span id="spanVanServiceEngineerName" class="error" style="display: none; color: red">*</span>
</td>
</tr>
@*<tr>
<td class="tableCelllabel">
<span class="darktxt">
Product Variant
</span><span class="error" style="color: red;display:none;" id="spnproductVariantvan"></span>
</td>
<td class="tableCellinfo">
<select id="ddVehicleTypevan" name="VehicleTypeVan">
<option value="Diesel">Diesel</option>
<option value="CNG">CNG</option>
<option value="Electric">Electric</option>
</select>
</td>
</tr>*@
<tr>
<td class="tableCelllabel">
<span class="darktxt">Product Variant</span>
</td>
<td class="tableCellinfo darktxt fleet_combo">
<input id="fueltypeComboboxVan" onchange="setvalvan();" placeholder="Fuel type" onfocus="this.select();" style="width: 200px;" />
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">
@Html.LabelFor(model => model.ServiceEngineerContactNumber)
</span><span class="error" color: red"> * </span>
</td>
<td class="tableCellinfo bordernone SelectDD">
@Html.TextBoxFor(model => model.ServiceEngineerContactNumber, new { @onblur = "CheckVanDupContactNo()", @onkeypress = "return isNumber(event,this);" })
<span id="spanVanServiceEngineerContactNo" class="error" style="display: none; color: red">*</span>
</td>
<td class="tableCelllabel">
<span class="darktxt">
@Html.LabelFor(model => model.ServiceEngineerApplicationLicenseKey)
</span><sup>#</sup>
</td>
<td class="tableCellinfo bordernone SelectDD">
@Html.TextBoxFor(model => model.ServiceEngineerApplicationLicenseKey, new { @readonly = true, @class = "disable_btn" })
</td>
</tr>
<tr>
<td class="tableCelllabel" style="display:none;">
<span class="darktxt">
@Html.LabelFor(model => model.VanIsVisitedInterState)
</span>
</td>
<td class="tableCellinfo bordernone SelectDD" style="display:none;">
@Html.CheckBoxFor(model => model.VanIsVisitedInterState)
</td>
</tr>
</tbody>
</table>
</div>
<div class="Create_Wrp">
<input type="button" value="Save" class="button_blue" id="btnSaveVan" onclick="btnAddVanDetail();" />
<input type="submit" value="Reset " class="button_blue" onclick="btnUndoVanDealerDetail();" />
<input type="button" value="Cancel" class="button_blue CancelBtnBg" onclick="closeWindow('#divCreateDealer')" />
</div>
<script>
$(document).ready(function () {
loadfuelTypeVan();
});
</script>
<style type="text/css">
.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;
border-radius: 0;
border-bottom: 0;
}
div.k-window {
box - shadow: 20px 20px 30px #555 !important;
border-radius: 0;
}
</style>