AdultExaminationScheduleList.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "AdultExaminationScheduleList";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/ExaminationManage/AdultExaminationSchedule.js"
  8. type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }<div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @Html.Position()
  14. <div class="p_SearchTitle">
  15. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  16. 查询条件</div>
  17. </div>
  18. <form id="formQuery" method="post">
  19. <div class="search_keyword">
  20. <div class="search_input">
  21. <ul>
  22. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  23. <li class="sv">
  24. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload", OnLoadSuccess = "SchoolyearLoaded" })
  25. </li>
  26. <li class="sn" style="padding-left: 5px;">时间段:</li>
  27. <li class="sv">
  28. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, ID = "txtStartDate", Name = "txtStartDate", OnClear = "startDateCleared", OnChange = "startDateChanged" })-
  29. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, ID = "txtEndDate", Name = "txtEndDate", OnClear = "endDateCleared", OnChange = "endDateChanged" })
  30. </li>
  31. <li class="sn" style="padding-left: 5px;">考试科目:</li>
  32. <li class="sv">
  33. @Html.ComboGrid(new ComboGridOptions
  34. {
  35. TextField = "CourseName",
  36. ValueField = "CoursematerialID",
  37. OnSelect = "reload",
  38. ID = "cbgCoursematerial",
  39. Name = "cbgCoursematerial",
  40. GridOptions = new DataGridOptions
  41. {
  42. Columns = new List<DataGridColumn>()
  43. {
  44. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  45. },
  46. IsCheckOnSelect = true,
  47. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  48. IsPagination = true,
  49. IsShowRowNumbers = true,
  50. IsSingleSelect = false,
  51. }
  52. })
  53. </li>
  54. <li class="sn" style="padding-left: 5px;">考试性质:</li>
  55. <li class="sv">
  56. @Html.DictionaryDropDownList((EMIS.ViewModel.DictionaryItem.CF_ExamsCategory), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExamsCategory", Name = "ddlExamsCategory", OnSelect = "reload" })
  57. </li>
  58. </ul>
  59. <ul>
  60. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  61. <li class="sv">
  62. @Html.ComboGrid(new ComboGridOptions
  63. {
  64. TextField = "Name",
  65. ValueField = "CollegeID",
  66. Name = "cbgCollege",
  67. ID = "cbgCollege",
  68. OnSelect = "queryStandard",
  69. GridOptions = new DataGridOptions
  70. {
  71. Columns = new List<DataGridColumn>()
  72. {
  73. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  74. },
  75. IsCheckOnSelect = true,
  76. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  77. IsPagination = true,
  78. IsShowRowNumbers = true,
  79. IsSingleSelect = false
  80. }
  81. })
  82. </li>
  83. <li class="sn" style="padding-left: 5px;">年级:</li>
  84. <li class="sv">
  85. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { ID = "ddlYear", Name = "ddlYear", BindType = DropdownListBindType.SelectAll, OnSelect = "queryStandard" })
  86. </li>
  87. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  88. <li class="sv">
  89. @Html.ComboGrid(new ComboGridOptions
  90. {
  91. TextField = "StandardName",
  92. ValueField = "StandardID",
  93. OnSelect = "queryClassmajor",
  94. Name = "cbgStandard",
  95. ID = "cbgStandard",
  96. GridOptions = new DataGridOptions
  97. {
  98. Columns = new List<DataGridColumn>()
  99. {
  100. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  101. },
  102. IsAutoLoad = false,
  103. IsCheckOnSelect = true,
  104. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  105. IsPagination = true,
  106. IsShowRowNumbers = true,
  107. IsSingleSelect = false,
  108. }
  109. })
  110. </li>
  111. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  112. <li class="sv">
  113. @Html.ComboGrid(new ComboGridOptions
  114. {
  115. TextField = "Name",
  116. ValueField = "ClassmajorID",
  117. Name = "cbgClassmajor",
  118. ID = "cbgClassmajor",
  119. OnSelect = "reload",
  120. GridOptions = new DataGridOptions
  121. {
  122. Columns = new List<DataGridColumn>()
  123. {
  124. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  125. },
  126. IsAutoLoad = false,
  127. IsCheckOnSelect = true,
  128. DataSourceUrl = Url.Content("~/Classmajor/List"),
  129. IsPagination = true,
  130. IsShowRowNumbers = true,
  131. IsSingleSelect = false
  132. }
  133. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentList" } })
  134. </li>
  135. </ul>
  136. <ul>
  137. <li class="sn" style="padding-left: 5px;">教室:</li>
  138. <li class="sv">
  139. @Html.ComboGrid(new ComboGridOptions
  140. {
  141. TextField = "Name",
  142. ValueField = "ClassroomID",
  143. OnSelect = "reload",
  144. ID = "cbgClassroom",
  145. GridOptions = new DataGridOptions
  146. {
  147. Columns = new List<DataGridColumn>()
  148. {
  149. new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center },
  150. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center },
  151. new BoundFieldColumn { FieldName="FloorLevel", HeaderText="所在楼层", Align=AlignStyle.Center },
  152. new BoundFieldColumn { FieldName="Examinationseating", HeaderText="总座位数", Align=AlignStyle.Center },
  153. new BoundFieldColumn { FieldName="RemainSeatCount", HeaderText="剩余座位数", Align=AlignStyle.Center }
  154. },
  155. IsCheckOnSelect = true,
  156. DataSourceUrl = Url.Content("~/ExaminationRoomSetting/List"),
  157. IsPagination = true,
  158. IsShowRowNumbers = true,
  159. IsSingleSelect = false
  160. }
  161. })
  162. </li>
  163. <li class="sn" style="padding-left: 5px;">监考员:</li>
  164. <li class="sv">
  165. @Html.ComboGrid(new ComboGridOptions
  166. {
  167. TextField = "Name",
  168. ValueField = "UserID",
  169. OnSelect = "reload",
  170. ID = "cbgExaminationTeacher",
  171. GridOptions = new DataGridOptions
  172. {
  173. Columns = new List<DataGridColumn>()
  174. {
  175. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  176. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center },
  177. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center }
  178. },
  179. IsCheckOnSelect = true,
  180. DataSourceUrl = Url.Content("~/ExaminationTeacher/List"),
  181. IsPagination = true,
  182. IsShowRowNumbers = true,
  183. IsSingleSelect = false
  184. }
  185. })
  186. </li>
  187. <li class="sn" style="padding-left: 5px;">班主任:</li>
  188. <li class="sv">
  189. @Html.ComboGrid(new ComboGridOptions
  190. {
  191. TextField = "Name",
  192. ValueField = "UserID",
  193. OnSelect = "reload",
  194. ID = "cbgAssistant",
  195. GridOptions = new DataGridOptions
  196. {
  197. Columns = new List<DataGridColumn>()
  198. {
  199. new LinkButtonColumn { FieldName="StaffCode", HeaderText="教职工号", Width=0.1, Align=AlignStyle.Center },
  200. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Width=0.3, Align=AlignStyle.Center }
  201. },
  202. IsCheckOnSelect = true,
  203. DataSourceUrl = Url.Content("~/Staff/List"),
  204. IsPagination = true,
  205. IsShowRowNumbers = true,
  206. IsSingleSelect = false
  207. }
  208. })
  209. </li>
  210. <li class="sn" style="padding-left: 5px;">状态:</li>
  211. <li class="sv">
  212. @Html.DictionaryDropDownList((EMIS.ViewModel.DictionaryItem.EX_ExaminationPlanStatus), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlExaminationPlanStatus", Name = "ddlExaminationPlanStatus", OnSelect = "reload" })
  213. </li>
  214. </ul>
  215. </div>
  216. </div>
  217. </form>
  218. <div class="search_list">
  219. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 85%; position: absolute; left: 5px;"></iframe>
  220. </div>
  221. </div>