@model EMIS.ViewModel.ExamManage.LevelSettingView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var url = ViewBag.Url; ComboGridOptions ExaminationType = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationTypeID", ID = "ExaminationTypeID", Name = "ExaminationTypeID", OnSelect = "queryProject", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="类型名称", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationType/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions ExaminationSubject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationProjectID", ID = "ExaminationProjectID", Name = "ExaminationProjectID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request["type"] != "detail") { @Html.ContextMenuBar("Edit") }
@Html.HiddenFor(x => x.LevelSettingID)
@Html.LabelFor(x => x.ExaminationTypeName): @Html.ComboGridFor(x => x.ExaminationTypeID, ExaminationType) @Html.LabelFor(x => x.ExaminationProjectName): @Html.ComboGridFor(x => x.ExaminationProjectID, ExaminationSubject)
@Html.LabelFor(x => x.LevelName): @Html.TextBoxFor(x => x.LevelName, new Dictionary { }) @Html.LabelFor(x => x.IsPassed): @Html.CheckBoxFor(x => x.IsPassedEdit)
@Html.LabelFor(x => x.IsPassedEdit): @Html.CheckBoxFor(x => x.IsPassLineEdit)
@if (Request["type"] != "detail") { @Html.ContextMenuBar("Edit-SubjectGrid") } @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn { FieldName="ExaminationSubjectID" }, new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="科目考核项", Align=AlignStyle.Center }, new TextBoxColumn { FieldName="PassScore", HeaderText="分数", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/LevelSetting/GetLevelSettingSubjectList?levelSettingID=" + Model.LevelSettingID), IsPostBack = true, ID = "dgLevelSettingSubjectList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}