AddClassroomLayout.cshtml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. @model EMIS.ViewModel.ExaminationManage.ExaminationRoomLayoutView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/ExaminationManage/AddClassroomLayout.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @using (Ajax.BeginForm(new AjaxOptions
  15. {
  16. OnSuccess = "EMISFunction.FormSuccess",
  17. OnBegin = "EMISFunction.FormSubmit",
  18. OnComplete = "EMISFunction.FormComplete"
  19. }))
  20. {
  21. <div class="p_title">
  22. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  23. 考场安排</div>
  24. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar(Model.IsSubmitted ? "Hiddened" : "Edit-Layout")</div>
  25. </div>
  26. <div class="search_list popupWindowContent">
  27. <table cellpadding="0" cellspacing="0">
  28. <tr>
  29. <td>@Html.LabelFor(x => x.ClassroomID):
  30. </td>
  31. <td>@Html.ComboGridFor(x => x.ClassroomID, new ComboGridOptions
  32. {
  33. TextField = "Name",
  34. ValueField = "ClassroomID",
  35. OnSelect = "ClassroomSelected",
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center },
  41. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center },
  42. new BoundFieldColumn { FieldName="FloorLevel", HeaderText="所在楼层", Align=AlignStyle.Center },
  43. new BoundFieldColumn { FieldName="Examinationseating", HeaderText="总座位数", Align=AlignStyle.Center },
  44. new BoundFieldColumn { FieldName="RemainSeatCount", HeaderText="剩余座位数", Align=AlignStyle.Center }
  45. },
  46. IsCheckOnSelect = true,
  47. DataSourceUrl = Url.Content("~/ExaminationRoomSetting/AddAvailableList"),
  48. IsPagination = true,
  49. IsShowRowNumbers = true,
  50. IsSingleSelect = false,
  51. OnLoadSuccessFun = "Classroom_LoadSuccess"
  52. }
  53. })
  54. </td>
  55. <td>@Html.LabelFor(x => x.StudentOrderType):
  56. </td>
  57. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentOrderType ,x => x.StudentOrderType)
  58. </td>
  59. </tr>
  60. @*<tr>
  61. <td>@Html.LabelFor(x => x.RowSpacing):
  62. </td>
  63. <td>@Html.TextBoxFor(x => x.RowSpacing, new TextBoxOptions { TextBoxType = TextBoxType.Normal })
  64. </td>
  65. <td>@Html.LabelFor(x => x.ColumnSpacing):
  66. </td>
  67. <td>@Html.TextBoxFor(x => x.ColumnSpacing, new TextBoxOptions { TextBoxType = TextBoxType.Normal })
  68. </td>
  69. </tr>*@
  70. <tr>
  71. <td>
  72. <label>监考老师:</label>
  73. </td>
  74. <td colspan="3">
  75. @Html.ContextMenuBar(Model.IsSubmitted ? "Hiddened" : "Edit-TeacherGrid")
  76. @Html.DataGrid(new DataGridOptions
  77. {
  78. Columns = new List<DataGridColumn>()
  79. {
  80. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  81. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center },
  82. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  83. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
  84. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }
  85. },
  86. IsCheckOnSelect = true,
  87. DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationTeachers?examinationRoomLayoutID=" + Request["ExaminationRoomLayoutID"]),
  88. IsPostBack = true,
  89. ID = "dgRoomTeacher",
  90. IsPagination = false,
  91. IsShowRowNumbers = true,
  92. IsSingleSelect = false
  93. })
  94. </td>
  95. </tr>
  96. <tr>
  97. <td>
  98. <label>考生:</label>
  99. </td>
  100. <td colspan="3">
  101. @Html.ContextMenuBar(Model.IsSubmitted ? "Hiddened" : "Edit-StudentGrid")
  102. @Html.DataGrid(new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  107. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
  108. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  109. new TextBoxColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center }
  110. },
  111. IsCheckOnSelect = true,
  112. DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationStudents?examinationRoomLayoutID=" + Request["ExaminationRoomLayoutID"]),
  113. IsPostBack = true,
  114. ID = "dgStudent",
  115. IsPagination = false,
  116. IsShowRowNumbers = true,
  117. IsSingleSelect = false
  118. })
  119. </td>
  120. </tr>
  121. </table>
  122. </div>
  123. }
  124. </div>