@model EMIS.ViewModel.ExaminationManage.ExaminationPlanView @using EMIS.Web.Controls; @using EMIS.ViewModel; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", OnSelect = "queryCollege", Name = "CampusDropdown", ID = "CampusDropdown", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Campus/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopcollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", //OnSelect = "QueryCollegeComboGridList", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 } }, //OnLoadSuccessFun = "queryClass", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", //OnSelect = "QueryComboGridCourse", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), 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.LabelFor(x => x.SchoolyearID): @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") }) @Html.LabelFor(x => x.CampusID): @Html.ComboGridFor(x => x.CampusID, cgopCampus)
@Html.LabelFor(x => x.CollegeID): @Html.ComboGridFor(x => x.CollegeID, cgopcollege) @Html.LabelFor(x => x.CoursematerialID): @Html.ComboGridFor(x => x.CoursematerialID, cgopCourse)
@Html.LabelFor(x => x.ClassName): @Html.TextBoxFor(x => x.ClassName) @Html.LabelFor(x => x.ExaminationModeID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExaminationMode,x => x.ExaminationModeID)
@Html.LabelFor(x => x.ExamsCategoryID): @Html.DictionaryDropDownListFor(DictionaryItem.CF_ExamsCategory, x => x.ExamsCategoryID) @Html.LabelFor(x => x.ExaminationStyleID): @Html.DictionaryDropDownListFor(DictionaryItem.EX_ExaminationStyle, x => x.ExaminationStyleID)
@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "ddlTimeSegment", ItemSourceUrl = Url.Content("~/TimeSegment/Dropdown"), TextField = "Text", ValueField = "Value", OnSelect = "setDateTime" }) @Html.LabelFor(x => x.ExaminationDate): @Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnChange = "setFormChanged" })
@Html.LabelFor(x => x.StartTime): @Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "setFormChanged" }) @Html.LabelFor(x => x.EndTime): @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "setFormChanged" })
@Html.ContextMenuBar("Edit-ClassroomGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRoomLayoutID"}, new LinkButtonColumn { FieldName="ClassroomName", HeaderText="考室", Align=AlignStyle.Center, Handle="edit", Width=0.1 }, new BoundFieldColumn { FieldName="SpacingDesc", HeaderText="座位排列模式", Align=AlignStyle.Center, OverflowLength=22, Width=0.2 }, new BoundFieldColumn { FieldName="Examinationseating", HeaderText="考场座位数", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="StudentNum", HeaderText="排考人数", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="TeacherNames", HeaderText="监考老师", Align=AlignStyle.Center, Width=0.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationRoomLayoutViewList"), ID = "dgExaminationRoomLayoutList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}