@model EMIS.ViewModel.ExaminationManage.ExaminationRoomLayoutView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
考场安排
@Html.ContextMenuBar(Model.IsSubmitted ? "Hiddened" : "Edit-Layout")
@**@
@Html.LabelFor(x => x.ClassroomID): @Html.ComboGridFor(x => x.ClassroomID, new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", OnSelect = "ClassroomSelected", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="FloorLevel", HeaderText="所在楼层", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Examinationseating", HeaderText="总座位数", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="RemainSeatCount", HeaderText="剩余座位数", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationRoomSetting/AvailableList?examinationPlanID=" + Request["ExaminationPlanID"] + "&examinationRoomLayoutID=" + Request["ExaminationRoomLayoutID"]), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, OnLoadSuccessFun = "Classroom_LoadSuccess" } }) @Html.LabelFor(x => x.StudentOrderType): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentOrderType ,x => x.StudentOrderType)
@Html.LabelFor(x => x.RowSpacing): @Html.TextBoxFor(x => x.RowSpacing, new TextBoxOptions { TextBoxType = TextBoxType.Normal }) @Html.LabelFor(x => x.ColumnSpacing): @Html.TextBoxFor(x => x.ColumnSpacing, new TextBoxOptions { TextBoxType = TextBoxType.Normal })
@Html.ContextMenuBar(Model.IsSubmitted ? "Hiddened" : "Edit-TeacherGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" }, new BoundFieldColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationTeachers?examinationRoomLayoutID=" + Request["ExaminationRoomLayoutID"]), IsPostBack = true, ID = "dgRoomTeacher", IsPagination = false, IsShowRowNumbers = true, IsSingleSelect = false })
@Html.ContextMenuBar(Model.IsSubmitted ? "Hiddened" : "Edit-StudentGrid") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center }, new TextBoxColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationStudents?examinationRoomLayoutID=" + Request["ExaminationRoomLayoutID"]), IsPostBack = true, ID = "dgStudent", IsPagination = false, IsShowRowNumbers = true, IsSingleSelect = false })
}