@model EMIS.ViewModel.TeachingMaterial.SupplierDiscountSetView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgop = new ComboGridOptions { TextField = "UnitName", ValueField = "PublishID", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="PublishID", HeaderText="出版社ID", Align=AlignStyle.Center, IsHidden = true }, new BoundFieldColumn { FieldName="UnitName", HeaderText="供应名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Publisher/SupplierList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("Edit")
@Html.HiddenFor(x => x.SupplierDiscountSetID)
@Html.LabelFor(x => x.UnitName): @Html.ComboGridFor(x => x.PublishID, cgop) @Html.LabelFor(x => x.Discount): @Html.TextBoxFor(x => x.Discount)
@Html.LabelFor(x => x.IsDefault): @Html.CheckBoxFor(x => x.IsDefault)
}