123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- @model EMIS.ViewModel.ExaminationManage.ExaminationRoomLayoutView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- }
- @section scripts{
- <script src="~/Scripts/Business/ExaminationManage/ExaminationPlanClassroomLayout.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 考场安排</div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar(Model.IsSubmitted ? "Hiddened" : "Edit-Layout")</div>
- </div>
- <div class="search_list popupWindowContent">
- <table cellpadding="0" cellspacing="0">
- <tr>
- <td>@Html.LabelFor(x => x.ClassroomID):
- </td>
- <td>@Html.ComboGridFor(x => x.ClassroomID, new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassroomID",
- OnSelect = "ClassroomSelected",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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"
- }
- })
- </td>
- <td>@Html.LabelFor(x => x.StudentOrderType):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentOrderType ,x => x.StudentOrderType)
- </td>
- </tr>
- @*<tr>
- <td>@Html.LabelFor(x => x.RowSpacing):
- </td>
- <td>@Html.TextBoxFor(x => x.RowSpacing, new TextBoxOptions { TextBoxType = TextBoxType.Normal })
- </td>
- <td>@Html.LabelFor(x => x.ColumnSpacing):
- </td>
- <td>@Html.TextBoxFor(x => x.ColumnSpacing, new TextBoxOptions { TextBoxType = TextBoxType.Normal })
- </td>
- </tr>*@
- <tr>
- <td>
- <label>监考老师:</label>
- </td>
- <td colspan="3">
- @Html.ContextMenuBar(Model.IsSubmitted ? "Hiddened" : "Edit-TeacherGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- })
- </td>
- </tr>
- <tr>
- <td>
- <label>考生:</label>
- </td>
- <td colspan="3">
- @Html.ContextMenuBar(Model.IsSubmitted ? "Hiddened" : "Edit-StudentGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- 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
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|