@model GODATA.Models.Inventory.ManageFleet @Html.ValidationSummary(true) @Html.HiddenFor(model => model.CityId, new { id = "CityName" }) @Html.HiddenFor(model => model.DealerId, new { id = "hdnDealerId" }) @Html.HiddenFor(model => model.DealerDealerDefaultLattitude, new { id = "hdnDealerDefaultLatitude" }) @Html.HiddenFor(model => model.DealerDealerDefaultLongitude, new { id = "hdnDealerDefaultLongitude" }) @Html.HiddenFor(model => model.DealerState, new { id = "hdnDealerStateId" })
@**@
@Html.LabelFor(model => model.NewDealerId) * @Html.TextBoxFor(model => model.NewDealerId, new { @onkeypress = "return AlphaNumeic(event,this)", @onblur = "CheckDealerNameExistOrNot()" }) *
help Ex: 1A1234,
   1A12345,
  1A123456
@Html.LabelFor(model => model.DealerOrganizationId) * @Html.DropDownListFor(model => model.DealerOrganizationId, (IEnumerable)ViewBag.OrganizationList, "-Select-", new { @id = "ddOrganization", @onchange = "LoadStateListRegionWise(id, 'ddState','ddCity')" }) @*@Html.DropDownListFor(model => model.DealerOrganizationId, (IEnumerable)ViewBag.OrganizationList, "-Select-", new { @id = "ddOrganization" })*@ @Html.TextBoxFor(model => model.DealerOrganizationName, new { @readonly = "readonly", @style = "display:none" }) *
@Html.LabelFor(model => model.DealerDealerName) * @Html.EditorFor(model => model.DealerDealerName, new { @id = "DealerName" }) * @Html.LabelFor(model => model.DealerState) * @**@ @Html.DropDownListFor(model => model.DealerState, (IEnumerable)ViewBag.StateList, "-Select-", new { @id = "ddState", @onchange = "LoadCityListAndUpdateGrid()" }) @Html.TextBoxFor(model => model.DealerStateName, new { @readonly = "readonly", @style = "display:none" }) *
@Html.LabelFor(model => model.DealerCity) * @Html.TextBoxFor(model => model.DealerCity, new { @readonly = "readonly", @style = "display:none" }) @Html.LabelFor(model => model.DealerContactNo) * @Html.TextBoxFor(model => model.DealerContactNo, new { @onblur = "CheckDealerDupContactNo()", @onkeypress = "return isNumber(event,this);" }) *
Product Variant
Product Variant
Dealer location *    
@(Html.Kendo().Grid(Model.VanList) .Name("gridDealer").Filterable().Pageable().Scrollable().Resizable(resize => resize.Columns(true)) .Events(events => events.DataBound("onRowBoundDealer").ColumnResize("onColumnResize")).Sortable() .Columns(columns => { columns.Bound(model => model.VanAlias); columns.Bound(model => model.VanState); columns.Bound(model => model.VanCity); columns.Bound(model => model.VanModelName); columns.Bound(model => model.VanRegistrationNo); columns.Bound(model => model.ServiceEngineerName); columns.Bound(model => model.ServiceEngineerAlias).Title("Fuel Type"); columns.Bound(model => model.ServiceEngineerContactNumber); columns.Bound(model => model.ServiceEngineerApplicationLicenseKey).Title("License Key #"); columns.Command(command => command.Custom("SetVanLocation").Text("Van Location").Click("ShowVanLocation").HtmlAttributes(new { title = "Show Details", @id = "cmdVanLocation" })).Width(150); columns.Command(command => { command.Custom("Edit").Text("").Click("editDealer").HtmlAttributes(new { title = "Edit" }); command.Custom("Delete").Text("").Click("DeleteDealer").HtmlAttributes(new { title = "Delete", @id = "cmdDelete" }); }).Title("Device Actions"); columns.Bound(model => model.IsVanRelease).ClientTemplate( "# if (IsVanRelease == true) { #" + "Van Not Release" + "# } else { #" + "Van Release" + "# } #" ); columns.Bound(model => model.IsDeletedVan).Hidden(); columns.Bound(model => model.IsVanRelease).Hidden(); columns.Bound(model => model.VanIsVisitedInterState).ClientTemplate("#= VanIsVisitedInterState ? 'Yes' : 'No' #").Hidden(); columns.Bound(model => model.VanId).HtmlAttributes(new { @id = "hdnvanid" }).Hidden(); columns.Bound(model => model.VanDefaultLatitude).Hidden(); columns.Bound(model => model.VanDefaultLongitude).Hidden(); columns.Bound(model => model.ServiceEngineerId).Hidden(); }) .DataSource(dataSource => dataSource .Ajax() .Batch(true) .PageSize((int)ViewBag.pageSize) .ServerOperation(false) ) )
@*
*@