List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/ScoreManage/Resit.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. @Html.Position()
  15. <form id="formQuery" method="post" action="@Url.Content("~/Resit/Excel")">
  16. @Html.PositionCondition()
  17. <div class="search_keyword">
  18. <div class="search_input">
  19. <ul>
  20. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  21. <li class="sv">
  22. @Html.DropdownList(new DropdownListOptions
  23. {
  24. BindType = DropdownListBindType.SelectAll,
  25. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  26. ID = "ddlSchoolyear",
  27. Name = "ddlSchoolyear",
  28. OnSelect = "schoolyearChange",
  29. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  30. OnLoadSuccess = "schoolyearChange"
  31. },
  32. new Dictionary<string, string> { { "data-condition", "dgResitList" } })
  33. </li>
  34. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  35. <li class="sv">
  36. @Html.DropdownList(new DropdownListOptions
  37. {
  38. BindType = DropdownListBindType.SelectAll,
  39. ID = "ddlExaminationBatch",
  40. Name = "ddlExaminationBatch",
  41. OnSelect = "examinationBatchChange",
  42. OnLoadSuccess = "examinationBatchChange"
  43. },
  44. new Dictionary<string, string> { { "data-condition", "dgResitList" } })
  45. </li>
  46. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  47. <li class="sv">
  48. @Html.DropdownList(new DropdownListOptions
  49. {
  50. BindType = DropdownListBindType.SelectAll,
  51. ID = "ddlExaminationType",
  52. Name = "ddlExaminationType",
  53. OnSelect = "examinationTypeChange",
  54. OnLoadSuccess = "examinationTypeChange"
  55. },
  56. new Dictionary<string, string> { { "data-condition", "dgResitList" } })
  57. </li>
  58. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  59. <li class="sv">
  60. @Html.DropdownList(new DropdownListOptions
  61. {
  62. BindType = DropdownListBindType.SelectAll,
  63. ID = "ddlExaminationProject",
  64. Name = "ddlExaminationProject",
  65. OnSelect = "examinationProjectLoaded",
  66. OnLoadSuccess = "examinationProjectLoaded"
  67. },
  68. new Dictionary<string, string> { { "data-condition", "dgResitList" } })
  69. </li>
  70. </ul>
  71. <ul>
  72. <li class="sn" style="padding-left: 5px;">科目:</li>
  73. <li class="sv">
  74. @Html.DropdownList(new DropdownListOptions
  75. {
  76. BindType = DropdownListBindType.SelectAll,
  77. ID = "ddlExaminationSubject",
  78. Name = "ddlExaminationSubject",
  79. OnSelect = "reload",
  80. OnLoadSuccess = "examinationSubjectLoaded"
  81. },
  82. new Dictionary<string, string> { { "data-condition", "dgResitList" } })
  83. </li>
  84. </ul>
  85. <ul>
  86. <li class="sn" style="padding-left: 5px;">校区:</li>
  87. <li class="sv">
  88. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions
  89. {
  90. BindType = DropdownListBindType.SelectAll,
  91. ID = "ddlSchoolArea",
  92. Name = "ddlSchoolArea",
  93. OnSelect = "reload"
  94. },
  95. new Dictionary<string, string> { { "data-condition", "dgResitList" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  98. <li class="sv">
  99. @Html.DropdownList(new DropdownListOptions
  100. {
  101. BindType = DropdownListBindType.SelectAll,
  102. ID = "ddlCollege",
  103. Name = "ddlCollege",
  104. OnSelect = "collegeSelect",
  105. OnLoadSuccess = "collegeChange"
  106. },
  107. new Dictionary<string, string> { { "data-condition", "dgResitList" } })
  108. </li>
  109. <li class="sn" style="padding-left: 5px;">专业:</li>
  110. <li class="sv">
  111. @Html.ComboGrid(new ComboGridOptions
  112. {
  113. GridOptions = new DataGridOptions
  114. {
  115. Columns = new List<DataGridColumn>()
  116. {
  117. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center }
  118. },
  119. OnLoadSuccessFun = "standardChange",
  120. IsAutoLoad = false,
  121. DataSourceUrl = Url.Content("~/Grademajor/StandardList"),
  122. IsPagination = true
  123. },
  124. TextField = "StandardName",
  125. ValueField = "StandardID",
  126. Name = "cgbStandard",
  127. ID = "cgbStandard",
  128. OnSelect = "standardSelect"
  129. },
  130. new Dictionary<string, string> { { "data-condition", "dgResitList" } })
  131. </li>
  132. <li class="sn" style="padding-left: 5px;">班级:</li>
  133. <li class="sv">
  134. @Html.ComboGrid(new ComboGridOptions
  135. {
  136. TextField = "Name",
  137. ValueField = "ClassmajorID",
  138. Name = "cgbClassmajor",
  139. ID = "cgbClassmajor",
  140. OnSelect = "reload",
  141. GridOptions = new DataGridOptions
  142. {
  143. Columns = new List<DataGridColumn>()
  144. {
  145. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  146. },
  147. DataSourceUrl = Url.Content("~/Classmajor/List"),
  148. IsPagination = true
  149. }
  150. },
  151. new Dictionary<string, string> { { "data-condition", "dgResitList" } })
  152. </li>
  153. </ul>
  154. </div>
  155. </div>
  156. <div class="p_title">
  157. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  158. 补考名单
  159. </div>
  160. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  161. </div>
  162. </form>
  163. <div class="search_list">
  164. @Html.DataGrid(new DataGridOptions
  165. {
  166. Columns = new List<DataGridColumn>()
  167. {
  168. new CheckBoxFieldColumn{ HeaderText="", FieldName="ResitID"},
  169. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center },
  170. new BoundFieldColumn { FieldName="ExaminationBatchName", HeaderText="考试批次", Align=AlignStyle.Center },
  171. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center },
  172. new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="考试项目", Align=AlignStyle.Center },
  173. new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="科目", Align=AlignStyle.Center },
  174. new BoundFieldColumn { FieldName="SchoolAreaName", HeaderText="校区", Align=AlignStyle.Center },
  175. new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  176. new BoundFieldColumn { FieldName="Year", HeaderText="年级", Align=AlignStyle.Center },
  177. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center },
  178. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center },
  179. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  180. new BoundFieldColumn { FieldName="CertificatesTypeName", HeaderText="证件类型", Align=AlignStyle.Center },
  181. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center, Width=150 },
  182. new BoundFieldColumn { FieldName="Score", HeaderText="成绩", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  183. new BoundFieldColumn { FieldName="Expire", HeaderText="有效期", Align=AlignStyle.Center, Formatter=Formatter.OnlyYearMonthDay }
  184. },
  185. IsAutoLoad = false,
  186. DataSourceUrl = Url.Content("~/Resit/List"),
  187. ID = "dgResitList",
  188. IsPagination = true
  189. })
  190. </div>
  191. </div>