ClassroomGdss.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. @model EMIS.ViewModel.ExaminationManage.ExaminationPlanGdssView
  2. @using EMIS.Web.Controls;
  3. @using EMIS.ViewModel;
  4. @using Bowin.Web.Controls.Mvc;
  5. @{
  6. ViewBag.Title = "Edit";
  7. }
  8. @section scripts{
  9. <script src="~/Scripts/Business/ExaminationManage/ExaminationPlanClassroomGdss.js" type="text/javascript"></script>
  10. <script type="text/javascript">
  11. var nonSelect = "@DropdownList.SELECT_ALL";
  12. </script>
  13. }
  14. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  15. @using (Ajax.BeginForm(new AjaxOptions
  16. {
  17. OnSuccess = "EMISFunction.FormSuccess",
  18. OnBegin = "EMISFunction.FormSubmit",
  19. OnComplete = "EMISFunction.FormComplete"
  20. }))
  21. {
  22. @Html.HiddenFor(x => x.SchoolyearID)
  23. @Html.HiddenFor(x => x.ExaminationPlanID)
  24. <div class="p_title">
  25. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  26. 考场安排</div>
  27. @if (Request["isView"] != "1")
  28. {
  29. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "ExamPlan_Confirm" : "Hiddened")</div>
  30. }
  31. </div>
  32. <div class="search_list popupWindowContent">
  33. <table cellpadding="0" cellspacing="0" id="departmenttable">
  34. <tr>
  35. <td>@Html.LabelFor(x => x.SchoolyearID):
  36. </td>
  37. <td>@Html.DisplayFor(x => x.SchoolyearCode)
  38. </td>
  39. <td>@Html.LabelFor(x => x.CampusID):
  40. </td>
  41. <td>@Html.DisplayFor(x => x.CampusName)
  42. </td>
  43. </tr>
  44. <tr>
  45. <td>@Html.LabelFor(x => x.CollegeID):
  46. </td>
  47. <td>@Html.DisplayFor(x => x.CollegeName)
  48. </td>
  49. <td>@Html.LabelFor(x => x.CoursematerialID):
  50. </td>
  51. <td>@Html.DisplayFor(x => x.CoursematerialName)
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>@Html.LabelFor(x => x.ClassName):
  56. </td>
  57. <td>@Html.DisplayFor(x => x.ClassName)
  58. </td>
  59. <td>@Html.LabelFor(x => x.ExaminationModeID):
  60. </td>
  61. <td>@Html.DisplayFor(x => x.ExaminationModeName)
  62. </td>
  63. </tr>
  64. <tr>
  65. <td>@Html.LabelFor(x => x.StudentCount):
  66. </td>
  67. <td>@Html.DisplayFor(x => x.StudentCount)
  68. </td>
  69. <td>@Html.LabelFor(x => x.ExaminationDate):
  70. </td>
  71. <td>@Html.TextBoxFor(x => x.ExaminationDate, new TextBoxOptions { TextBoxType = TextBoxType.Date, OnChange = "queryClassroom" })
  72. </td>
  73. </tr>
  74. <tr>
  75. <td>@Html.LabelFor(x => x.StartTime):
  76. </td>
  77. <td>@Html.TextBoxFor(x => x.StartTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "queryClassroom" })
  78. </td>
  79. <td>@Html.LabelFor(x => x.EndTime):
  80. </td>
  81. <td>@Html.TextBoxFor(x => x.EndTime, new TextBoxOptions { TextBoxType = TextBoxType.Time, OnChange = "queryClassroom" })
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>@Html.LabelFor(x => x.BuildingsInfoID):
  86. </td>
  87. <td>@Html.ComboGridFor(x => x.BuildingsInfoID, new ComboGridOptions
  88. {
  89. TextField = "Name",
  90. ValueField = "BuildingsInfoID",
  91. OnSelect = "buildingSelected",
  92. GridOptions = new DataGridOptions
  93. {
  94. Columns = new List<DataGridColumn>()
  95. {
  96. new BoundFieldColumn { FieldName="Name", HeaderText="建筑名称", Align=AlignStyle.Center }
  97. },
  98. IsCheckOnSelect = true,
  99. DataSourceUrl = Url.Content("~/Buildings/List"),
  100. IsPagination = true,
  101. IsShowRowNumbers = true,
  102. IsSingleSelect = false
  103. }
  104. })
  105. </td>
  106. <td>@Html.LabelFor(x => x.ClassroomID):
  107. </td>
  108. <td>@Html.ComboGridFor(x => x.ClassroomID, new ComboGridOptions
  109. {
  110. TextField = "Name",
  111. ValueField = "ClassroomID",
  112. GridOptions = new DataGridOptions
  113. {
  114. Columns = new List<DataGridColumn>()
  115. {
  116. new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center },
  117. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center },
  118. new BoundFieldColumn { FieldName="FloorLevel", HeaderText="所在楼层", Align=AlignStyle.Center },
  119. new BoundFieldColumn { FieldName="Examinationseating", HeaderText="总座位数", Align=AlignStyle.Center },
  120. new BoundFieldColumn { FieldName="RemainSeatCount", HeaderText="剩余座位数", Align=AlignStyle.Center }
  121. },
  122. IsAutoLoad = false,
  123. IsCheckOnSelect = true,
  124. DataSourceUrl = Url.Content("~/ExaminationRoomSetting/AvailableListGdss?examinationPlanID=" + Request["ExaminationPlanID"]
  125. + "&examinationDate=" + (Model.ExaminationDate.HasValue ? Model.ExaminationDate.Value.ToString("yyyy-MM-dd") : "")
  126. + "&startTime=" + (Model.StartTime.HasValue ? Model.StartTime.Value.ToString("hh\\:mm\\:ss") : "")
  127. + "&endTime=" + (Model.EndTime.HasValue ? Model.EndTime.Value.ToString("hh\\:mm\\:ss") : "")),
  128. IsPagination = true,
  129. IsShowRowNumbers = true,
  130. IsSingleSelect = false
  131. }
  132. })
  133. </td>
  134. </tr>
  135. <tr>
  136. <td>@Html.LabelFor(x => x.StudentOrderType):
  137. </td>
  138. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentOrderType, x => x.StudentOrderType)
  139. </td>
  140. <td>
  141. <label></label>
  142. </td>
  143. <td>
  144. &nbsp;
  145. </td>
  146. </tr>
  147. <tr>
  148. <td>
  149. <label>监考老师:</label>
  150. </td>
  151. <td colspan="3">
  152. @Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "Edit-TeacherGrid" : "Hiddened")
  153. @Html.DataGrid(new DataGridOptions
  154. {
  155. Columns = new List<DataGridColumn>()
  156. {
  157. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  158. new BoundFieldColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center },
  159. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
  160. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
  161. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }
  162. },
  163. IsCheckOnSelect = true,
  164. DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationTeachersGdss?examinationPlanID=" + Request["ExaminationPlanID"]),
  165. IsPostBack = true,
  166. ID = "dgRoomTeacher",
  167. IsPagination = false,
  168. IsShowRowNumbers = true,
  169. IsSingleSelect = false
  170. })
  171. </td>
  172. </tr>
  173. <tr>
  174. <td>
  175. <label>考生:</label>
  176. </td>
  177. <td colspan="3">
  178. @Html.ContextMenuBar(Model.RecordStatus == (int)CF_ApprovalStatus.NotSubmitted ? "Edit-StudentGrid" : "Hiddened")
  179. @Html.DataGrid(new DataGridOptions
  180. {
  181. Columns = new List<DataGridColumn>()
  182. {
  183. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  184. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
  185. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center }
  186. },
  187. OnLoadSuccessFun = "queryClassroom",
  188. IsCheckOnSelect = true,
  189. DataSourceUrl = Url.Content("~/ExaminationPlan/GetExaminationPlanStudentList?examinationPlanID=" + Request["ExaminationPlanID"]),
  190. IsPostBack = true,
  191. ID = "dgStudent",
  192. IsPagination = false,
  193. IsShowRowNumbers = true,
  194. IsSingleSelect = false
  195. })
  196. </td>
  197. </tr>
  198. </table>
  199. </div>
  200. }
  201. </div>