List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. ID = "cgCollege",
  11. Name = "cgCollege",
  12. OnSelect = "queryCollege",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. OnLoadSuccessFun = "reload",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. ComboGridOptions cgopExamination = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "ExaminationTypeID",
  31. Name = "cgExamination",
  32. ID = "cgExamination",
  33. OnSelect = "SelectExaminationSubjectDropdown",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/ExaminationType/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. ComboGridOptions cgExaminationSubject = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "ExaminationSubjectID",
  51. Name = "ddlExaminationSubject",
  52. ID = "ddlExaminationSubject",
  53. OnSelect = "reload",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. new BoundFieldColumn { FieldName="Name", HeaderText="考试科目名称", Align=AlignStyle.Center }
  59. },
  60. IsCheckOnSelect = true,
  61. DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
  62. IsPagination = true,
  63. IsShowRowNumbers = true,
  64. IsSingleSelect = false
  65. }
  66. };
  67. ComboGridOptions cgopClassmajor = new ComboGridOptions
  68. {
  69. TextField = "Name",
  70. ValueField = "ClassmajorID",
  71. Name = "cgClassmajor",
  72. ID = "cgClassmajor",
  73. OnSelect = "queryClass",
  74. GridOptions = new DataGridOptions
  75. {
  76. Columns = new List<DataGridColumn>()
  77. {
  78. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  79. },
  80. IsCheckOnSelect = true,
  81. DataSourceUrl = Url.Content("~/Classmajor/List"),
  82. IsPagination = true,
  83. IsShowRowNumbers = true,
  84. IsSingleSelect = false
  85. }
  86. };
  87. ComboGridOptions cgopStandard = new ComboGridOptions
  88. {
  89. TextField = "StandardName",
  90. ValueField = "StandardID",
  91. OnSelect = "queryClass",
  92. Name = "ddlStandard",
  93. ID = "ddlStandard",
  94. GridOptions = new DataGridOptions
  95. {
  96. Columns = new List<DataGridColumn>()
  97. {
  98. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  99. },
  100. IsCheckOnSelect = true,
  101. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  102. IsPagination = true,
  103. IsShowRowNumbers = true,
  104. IsSingleSelect = false,
  105. }
  106. };
  107. }
  108. @section scripts{
  109. <script src="~/Scripts/Business/ExaminationApply/StudentList.js" type="text/javascript"></script>
  110. <script type="text/javascript">
  111. var nonSelect = "@DropdownList.SELECT_ALL";
  112. </script>
  113. }
  114. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  115. @Html.Position()
  116. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationApplayStudentList/Excel")">
  117. @Html.PositionCondition()
  118. <div class="search_keyword">
  119. <div class="search_input">
  120. <ul>
  121. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  122. <li class="sv">
  123. @Html.ComboGrid(cgopExamination, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  124. </li>
  125. <li class="sn" style="padding-left: 5px;">考试科目:</li>
  126. <li class="sv">
  127. @Html.ComboGrid(cgExaminationSubject, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  128. @* @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList"), ID = "ddlExaminationSubject", Name = "ddlExaminationSubject", OnSelect = "SelectExaminationSubjectDropdown" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })*@
  129. </li>
  130. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  131. <li class="sv">
  132. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  133. </li>
  134. <li class="sn" style="padding-left: 5px;">年级:</li>
  135. <li class="sv">
  136. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryGrademajor" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  137. </li>
  138. @*<li class="sn" style="padding-left: 5px;">年级:</li>
  139. <li class="sv">
  140. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryClass", OnLoadSuccess = "reloadClassmajor" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  141. </li>*@
  142. </ul>
  143. <ul>
  144. <li class="sn" style="padding-left: 5px;">考试学年学期:</li>
  145. <li class="sv">
  146. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload", SelectedValue = ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  147. </li>
  148. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  149. <li class="sv">
  150. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  151. </li>
  152. @*<li class="sn" style="padding-left: 5px;">专业名称:</li>
  153. <li class="sv">
  154. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), Name = "ddlStandard", ID = "ddlStandard", OnSelect = "queryClass", OnLoadSuccess = "reloadStandard" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  155. </li>*@
  156. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  157. <li class="sv">
  158. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  159. </li>
  160. <li class="sn" style="padding-left: 5px;">是否已缴费:</li>
  161. <li class="sv">
  162. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { Name = "IsPay", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  163. </li>
  164. </ul>
  165. </div>
  166. </div>
  167. <div class="p_title">
  168. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  169. 学生名单列表
  170. </div>
  171. <div style="margin-right: 10px; line-height: 30px; font-size: 12px ;" width="0.7">@Html.ContextMenuBar("List")</div>
  172. </div>
  173. </form>
  174. <div class="search_list">
  175. @Html.DataGrid(new DataGridOptions
  176. {
  177. Columns = new List<DataGridColumn>()
  178. {
  179. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRegistrationID",Width=0.05},
  180. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="考试学年学期", Align=AlignStyle.Center,Width=0.04},
  181. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center,Width=0.03},
  182. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width=0.02 },
  183. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width=0.01 },
  184. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center,OverflowLength=25 },
  185. new BoundFieldColumn { FieldName="SubjectName", HeaderText="科目名称", Align=AlignStyle.Center,OverflowLength=25 },
  186. new BoundFieldColumn { FieldName="CertificatesTypeName", HeaderText="证件类型", Align=AlignStyle.Center,Width=0.03 },
  187. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center,Width=0.06 },
  188. new BoundFieldColumn { FieldName="Cost", HeaderText="报名费", Align=AlignStyle.Center, Width=0.02 },
  189. new BoundFieldColumn { FieldName="IsPay", HeaderText="是否交费", Align=AlignStyle.Center, Width=0.02}
  190. },
  191. IsCheckOnSelect = true,
  192. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/List"),
  193. ID = "dgStudentList",
  194. IsPagination = true,
  195. IsShowRowNumbers = true,
  196. IsSingleSelect = false
  197. })
  198. </div>
  199. </div>