@model EMIS.ViewModel.ExaminationApply.OpenControlView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; bool IsView = true; //if (Model.ExaminationOpenControlID != Guid.Empty && Model.ExaminationOpenControlID != null) //{ // IsView = false; //} ListControlOptions lcop = new ListControlOptions { Name = "StudentTypeID", TextField = "Name", ValueField = "Value", ColumnCount = 4, IsEnabled = IsView, SelectedValueUrl = @Url.Content("~/ExaminationOpenControl/StudentType?openControlID=" + Model.ExaminationOpenControlID) }; ComboGridOptions ExaminationSubject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationSubjectID", EmptyText="全部", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Width=0.1, Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Width=0.1, Align=AlignStyle.Center }, //new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试类别", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="科目名称", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationSubject/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions ExaminationSubjectEdit = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationSubjectID", EmptyText = "请选择", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试类别", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="科目名称", Width=0.1, Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationSubject/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) { @Html.HiddenFor(x => x.ExaminationOpenControlID)
开放控制信息
@if (Request["isView"] != "1") {
@Html.ContextMenuBar("Edit")
}
@if (Model.ExaminationOpenControlID == null) { } else { }
@Html.LabelFor(x => x.ExaminationTypeID): @Html.DropdownListFor((x => x.ExaminationTypeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList"), OnSelect = "queryExaminationSubject" }) @Html.LabelFor(x => x.ExaminationSubjectID): @Html.ComboGridFor(x => x.ExaminationSubjectID, ExaminationSubject) @*@Html.DropdownListFor((x => x.ExaminationSubjectID), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList") })*@ @Html.LabelFor(x => x.ExaminationSubjectEditID): @Html.ComboGridFor(x => x.ExaminationSubjectEditID, ExaminationSubjectEdit) @*@Html.DropdownListFor((x => x.ExaminationSubjectEditID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList") })*@
@Html.LabelFor(x => x.StartDate): @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date }) @Html.LabelFor(x => x.EndDate): @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
@Html.LabelFor(x => x.PeopleNumLimit): @Html.TextBoxFor(x => x.PeopleNumLimit, new TextBoxOptions() { }) @Html.LabelFor(x => x.SchoolyearNumID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID)
@Html.LabelFor(x => x.StudentTypeID): @Html.DictionaryCheckList(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, lcop)
}
@section scripts{ }