@model GODATA.Models.Inventory.ManageOwner @using (Ajax.BeginForm("", "", new AjaxOptions { HttpMethod = "POST" }, new { @id = "Form2" })) { @Html.HiddenFor(model => model.CustomerId, new { @id = "hdnCustomerId" }) @Html.ValidationSummary(true) @Html.HiddenFor(model => model.OwnerCityId)
@Html.DisplayNameFor(model => model.CustomerCustomerName) @Html.TextBoxFor(model => model.CustomerCustomerName, new { @onkeypress = "return AllowSpecialCharacterForOwner(event,this)" }) @Html.DisplayNameFor(model => model.CustomerMobileNumber1) @Html.TextBoxFor(model => model.CustomerMobileNumber1, new { @onblur = "CheckDUP(3)", @onkeypress = "return isNumber(event,this);", @maxlength = "10" })
@Html.DisplayNameFor(model => model.CustomerAddress) @Html.TextBoxFor(model => model.CustomerAddress, new { @id = "OwnerAddress" }) @Html.DisplayNameFor(model => model.CustomerEmailId) @Html.TextBoxFor(model => model.CustomerEmailId)
@Html.DisplayNameFor(model => model.CustomerState) @Html.DropDownListFor(model => model.OwnerStateId, (IEnumerable)ViewBag.StateList, "-Select-", new { @id = "ddlOwnerState", @onchange = "LoadCityList('#ddlOwnerState','#ddlOwnerCity')" }) @Html.DisplayNameFor(model => model.CustomerCity)
@Html.DisplayNameFor(model => model.IsKamUser) @Html.CheckBoxFor(model => model.IsKamUser, new { @style = "height: 18px;" }) @Html.DisplayNameFor(model => model.LicenseKey) @Html.DisplayFor(model => model.LicenseKey)
Add Vehicle @(Html.Kendo().Grid(Model.plsVechileList) .Name("gridVechile").Filterable().Pageable().Scrollable().Resizable(resize => resize.Columns(true)) .Events(events => events.DataBound("onRowBoundVechile").ColumnResize("onColumnResize")).Sortable() .ClientDetailTemplateId("template") //.HtmlAttributes(new { style = "height:430px;" }) .Columns(columns => { columns.Bound(model => model.VehicleId).Hidden(); columns.Bound(model => model.CustomerId).Hidden(); columns.Bound(model => model.CustomerCustomerName).Hidden(); columns.Bound(model => model.CustomerMobileNumber1).Hidden(); columns.Bound(model => model.CustomerAddress).Hidden(); columns.Bound(model => model.CustomerState).Hidden(); columns.Bound(model => model.CustomerCity).Hidden(); columns.Bound(model => model.IsDealetedVehicle).Hidden(); columns.Bound(model => model.VehicleModelNumber).Hidden(); columns.Bound(model => model.VehicleRegistrationNumber); columns.Bound(model => model.VehicleNumberPlate); columns.Bound(model => model.CustomerVehicleModelName); columns.Bound(model => model.VehicleType); columns.Bound(model => model.CustomerVehicleModelTagging); columns.Bound(model => model.VehicleInstallationDate); columns.Command(command => command.Custom("AddCustomer").Text("Add Driver").Click("AddCustDetl").HtmlAttributes(new { title = "Add Driver", @id = "cmdVanLocation" })); columns.Command(command => { command.Custom("Edit").Text("").Click("editVechile").HtmlAttributes(new { title = "Edit" }); command.Custom("Delete").Text("").Click("DeleteVechile").HtmlAttributes(new { title = "Delete", @id = "cmdDelete" }); }).Title("Device Actions"); }) .DataSource(dataSource => dataSource .Ajax() .Batch(true) .PageSize((int)ViewBag.pageSize) .ServerOperation(false) ) )
}