@model EMIS.ViewModel.DegreeManage.DegreeSetting.DegreeConditionPackageView @using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "Edit"; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限 { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.DegreeConditionPackageID)
@Html.LabelFor(x => x.Title): @Html.TextBoxFor(x => x.Title, new TextBoxOptions() { IsRequired = true }, new Dictionary { { "style", "width:75%;" } })
@Html.LabelFor(x => x.StudentTypeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, x => x.StudentTypeID) @Html.LabelFor(x => x.IsDefault): @Html.CheckBoxFor(x => x.IsDefault, new Dictionary { })
@Html.LabelFor(x => x.DegreeCondition): @Html.ContextMenuBar("Settings") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="DegreeConditionID" }, new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="Title", HeaderText="条件名称", Align=AlignStyle.Center, Width=0.2 } }, PageSize = 15, IsPostBack = true, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/DegreeConditionPackage/DegreeConditionViewList?DegreeConditionPackageID=" + Model.DegreeConditionPackageID), ID = "dgDegreeConditionList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, MaxHeight = 230 })
}