@model EMIS.ViewModel.ExaminationManage.ExaminationPlanGdssView @using EMIS.Web.Controls; @using EMIS.ViewModel; @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.HiddenFor(x => x.SchoolyearID) @Html.HiddenFor(x => x.ExaminationPlanID)
考场安排
@if (Request["isView"] != "1") {
@Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "ExamPlan_Confirm" : "Hiddened")
}
@Html.LabelFor(x => x.SchoolyearID): @Html.DisplayFor(x => x.SchoolyearCode) @Html.LabelFor(x => x.CampusID): @Html.DisplayFor(x => x.CampusName)
@Html.LabelFor(x => x.CollegeID): @Html.DisplayFor(x => x.CollegeName) @Html.LabelFor(x => x.CoursematerialID): @Html.DisplayFor(x => x.CoursematerialName)
@Html.LabelFor(x => x.ClassName): @Html.DisplayFor(x => x.ClassName) @Html.LabelFor(x => x.ExaminationModeID): @Html.DisplayFor(x => x.ExaminationModeName)
@Html.LabelFor(x => x.StudentCount): @Html.DisplayFor(x => x.StudentCount) @Html.LabelFor(x => x.ExaminationDate): @Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnChange = "queryClassroom" })
@Html.LabelFor(x => x.StartTime): @Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "queryClassroom" }) @Html.LabelFor(x => x.EndTime): @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "queryClassroom" })
@Html.LabelFor(x => x.BuildingsInfoID): @Html.ComboGridFor(x => x.BuildingsInfoID, new ComboGridOptions { TextField = "Name", ValueField = "BuildingsInfoID", OnSelect = "buildingSelected", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="建筑名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Buildings/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }) @Html.LabelFor(x => x.ClassroomID): @Html.ComboGridFor(x => x.ClassroomID, new ComboGridOptions { TextField = "Name", ValueField = "ClassroomID", 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 } }, IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationRoomSetting/AvailableListGdss?examinationPlanID=" + Request["ExaminationPlanID"] + "&examinationDate=" + (Model.ExaminationDate.HasValue ? Model.ExaminationDate.Value.ToString("yyyy-MM-dd") : "") + "&startTime=" + (Model.StartTime.HasValue ? Model.StartTime.Value.ToString("hh\\:mm\\:ss") : "") + "&endTime=" + (Model.EndTime.HasValue ? Model.EndTime.Value.ToString("hh\\:mm\\:ss") : "")), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } })
@Html.LabelFor(x => x.StudentOrderType): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentOrderType, x => x.StudentOrderType)  
@Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "Edit-TeacherGrid" : "Hiddened") @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/GetExaminationTeachersGdss?examinationPlanID=" + Request["ExaminationPlanID"]), IsPostBack = true, ID = "dgRoomTeacher", IsPagination = false, IsShowRowNumbers = true, IsSingleSelect = false })
@Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "Edit-StudentGrid" : "Hiddened") @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"}, new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center } }, OnLoadSuccessFun = "queryClassroom", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationPlanStudentList?examinationPlanID=" + Request["ExaminationPlanID"]), IsPostBack = true, ID = "dgStudent", IsPagination = false, IsShowRowNumbers = true, IsSingleSelect = false })
}