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

137 lines
8.3 KiB
Plaintext

@model GODATA.Models.Inventory.ManageOwner
@Html.ValidationSummary(true)
<div id="divDetails" class="listDetails">
<div class="ldSection">
@Html.HiddenFor(model => model.VehicleId)
@Html.HiddenFor(model => model.CustomerCity, new { @id = "hdnCustCityIdNo" })
@Html.HiddenFor(model => model.CustomerId, new { @id = "hdnCustId" })
<table class="themeTable" cellpadding="5" cellspacing="0">
<tbody class="StructureTD">
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.VehicleRegistrationNumber)</span>
</td>
<td class="tableCellinfo">
@Html.Partial("RegistrationNo", new ViewDataDictionary { { "RegNo", Model.VehicleRegistrationNumber }, { "id", "VehicleRegistrationNumber" }, { "BlurFunction", "CheckDUP(1)" }, { "name", "VehicleRegistrationNumber" } })
@* @Html.TextBoxFor(model => model.VehicleRegistrationNumber, new { @class = "required" })*@
<span id="spanVanRegNo" class="error" style="display: none; color: red">*</span>
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.VehicleNumberPlate)</span>
</td>
<td class="tableCellinfo">
@Html.TextBoxFor(model => model.VehicleNumberPlate, new { @onblur = "CheckDUP(2)" })
<span id="spanVanPlateNo" class="error" style="display: none; color: red">*</span>
</td>
</tr>
<tr>
<td class="tableCelllabel bordernone">
<span class="darktxt">@Html.DisplayNameFor(model => model.CustomerVehicleModelName)</span>
</td>
<td class="tableCellinfo bordernone">
@Html.DropDownListFor(model => model.VehicleModelNumber, (IEnumerable<SelectListItem>)ViewBag.VehicleModelNo, "-Select-", new { @id = "ddlVechileNo", @onchange = "GetProductVar()" })
@Html.TextBoxFor(model => model.VehicleModelNumber, new { @readonly = true, @class="disable_btn" })
<span id="spanVechModelNo" class="error" style="display: none; color: red">*</span>
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.CustomerVehicleModelTagging)</span>
</td>
<td class="tableCellinfo">
@Html.TextBoxFor(model => model.CustomerVehicleModelTagging, new { @id = "VechProduct", @readonly = true , @class="disable_btn"})
</td>
</tr>
<tr>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.VehicleType)</span>
</td>
<td class="tableCellinfo">
@Html.DropDownListFor(model => model.VehicleType, (IEnumerable<SelectListItem>)ViewBag.VehicleType, "-Select-", new { @id = "ddlVechileType" })
@Html.TextBoxFor(model => model.VehicleType, new { @id = "VechVechType", @readonly = true , @class="disable_btn"})
<span id="spanVechType" class="error" style="display: none; color: red">*</span>
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.VehicleInstallationDate)</span>
</td>
<td class="tableCellinfo">
@(Html.Kendo().DatePicker()
.Name("VehicleInstallationDate")
.Start(CalendarView.Month)
.Depth(CalendarView.Month)
.Format(System.Configuration.ConfigurationManager.AppSettings["dateFormat"])
.HtmlAttributes(new { @class = "kendo-make-readonly", @width = "200px" }))
<span id="spanVehicleInstallationDate" class="error" style="display: none; color: red">*</span>
</td>
</tr>
<tr id="trCustDetl2">
<td class="tableCelllabel" id="tdCustName">
<span class="darktxt">@Html.DisplayNameFor(model => model.CustomerCustomerName)</span>
</td>
<td class="tableCellinfo" id="tdCustName1">
@Html.TextBoxFor(model => model.CustomerCustomerName, new { @id = "VechCustName" })
<span id="spanCustomerName" class="error" style="display: none; color: red">*</span>
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.CustomerMobileNumber1)</span>
</td>
<td class="tableCellinfo">
@Html.TextBoxFor(model => model.CustomerMobileNumber1, new { @id = "VechileMobileNo", @onkeypress = "return isNumber(event,this);", @maxlength = "10" })
<span id="spanCustomerMobileNo" class="error" style="display: none; color: red">*</span>
</td>
</tr>
<tr id="trCustDetl3">
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.CustomerEmailId)</span>
</td>
<td class="tableCellinfo">
@Html.TextBoxFor(model => model.CustomerEmailId, new { @id = "txtCustomerEmailId" })
<span id="spanCustEmailId" class="error" style="display: none; color: red">Enter valid Email ID</span>
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.CustomerAddress)</span>
</td>
<td class="tableCellinfo">
@Html.TextBoxFor(model => model.CustomerAddress, new { @id = "VechileAddress" })
<span id="spanCustomerAddress" class="error" style="display: none; color: red">*</span>
</td>
</tr>
<tr id="trCustDetl4">
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.CustomerState)</span>
</td>
<td class="tableCellinfo">
@Html.DropDownListFor(model => model.CustomerStateIdNo, (IEnumerable<SelectListItem>)ViewBag.StateList, "-Select-", new { @id = "ddlState", @onchange = "LoadCityList('#ddlState','#ddlCity')" })
<span id="spanCustomerState" class="error" style="display: none; color: red">*</span>
</td>
<td class="tableCelllabel">
<span class="darktxt">@Html.DisplayNameFor(model => model.CustomerCity)</span>
</td>
<td class="tableCellinfo">
<select id="ddlCity" data-val="true" data-val-required="*" name="City">
<option value="-Select-">-Select-</option>
</select>
<span id="spanCustomerCity" class="error" style="display: none; color: red">*</span>
@* @Html.TextBoxFor(model => model.CustomerCity, new { @id = "VechCity" })*@
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="divbtnVechileCust" class="Create_Wrp">
<input type="button" id="btnSaveCust" value="Save" class="button_blue" onclick="btnSaveCustDetail();" />
<input type="button" value="Save" class="button_blue" id="btnSaveVan" onclick="btnSaveVechileCust();" />
<input type="reset" value="Reset" id="btnCustReset" class="button_blue" onclick="btnUndoVanDealerDetail()" />
<input type="reset" value="Reset" class="button_blue" id="btnVechReset" onclick="btnUndoVechDetail()" />
<input type="button" value="Cancel" class="button_blue CancelBtnBg" onclick="closeWindow('#divAddCustDetl')" />
</div>