@model EMIS.ViewModel.MinorGraduation.MinorGraduationSetting.MinorGraduationConditionPackageView @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.MinorGraduationConditionPackageID)
@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.MinorGraduationCondition): @Html.ContextMenuBar("Settings") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorGraduationConditionID" }, //new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="Title", HeaderText="条件名称", Align=AlignStyle.Center, Width=0.2 } }, IsPostBack = true, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/MinorGraduationConditionPackage/MinorGraduationConditionViewList?minorGraduationConditionPackageID=" + Model.MinorGraduationConditionPackageID), ID = "dgMinorGraduationConditionList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, })
}