List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopSchoolYear = new ComboGridOptions
  7. {
  8. TextField = "Code",
  9. ValueField = "SchoolYearID",
  10. ID = "SchoolYearCode",
  11. Name = "SchoolYearCode",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Code", HeaderText="学年学期", Align=AlignStyle.Center ,Width=0.2},
  17. new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center ,Width=0.2},
  18. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center ,Width=0.2},
  19. },
  20. PageSize = 5,
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/SchoolYear/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. },
  27. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  28. OnSelect = "cgopSchoolYearSelect",
  29. OnChange = "cgopSchoolYearSelect",
  30. };
  31. ComboGridOptions cgopBatch = new ComboGridOptions
  32. {
  33. TextField = "Name",
  34. ValueField = "ExaminationBatchID",
  35. ID = "ExaminationBatchID",
  36. Name = "ExaminationBatchID",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center ,Width=0.3}
  42. },
  43. PageSize = 5,
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/ExaminationBatch/GetProjectListViewGrid"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false
  49. },
  50. OnSelect = "cgopBatchSelect"
  51. };
  52. ComboGridOptions cgopExamType = new ComboGridOptions
  53. {
  54. TextField = "Name",
  55. ValueField = "ExaminationTypeID",
  56. ID = "ExaminationTypeID",
  57. Name = "ExaminationTypeID",
  58. GridOptions = new DataGridOptions
  59. {
  60. Columns = new List<DataGridColumn>()
  61. {
  62. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
  63. },
  64. PageSize = 5,
  65. IsCheckOnSelect = true,
  66. DataSourceUrl = Url.Content("~/ExamPersonControl/GetControlExamTypeListViewGrid"),
  67. IsPagination = true,
  68. IsShowRowNumbers = true,
  69. IsSingleSelect = false
  70. },
  71. OnSelect = "cgopExamTypeSelect"
  72. };
  73. ComboGridOptions cgopBatchProject = new ComboGridOptions
  74. {
  75. TextField = "Name",
  76. ValueField = "ExaminationBatchProjectID",
  77. ID = "ExaminationBatchProjectID",
  78. Name = "ExaminationBatchProjectID",
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3}
  84. },
  85. PageSize = 5,
  86. IsCheckOnSelect = true,
  87. DataSourceUrl = Url.Content("~/ExamPersonControl/GetControlProjectListViewGrid"),
  88. IsPagination = true,
  89. IsShowRowNumbers = true,
  90. IsSingleSelect = false
  91. }
  92. ,
  93. OnSelect = "reload"
  94. };
  95. ComboGridOptions cgopCollege = new ComboGridOptions
  96. {
  97. TextField = "Name",
  98. ValueField = "CollegeID",
  99. Name = "CollegeID",
  100. ID = "CollegeID",
  101. GridOptions = new DataGridOptions
  102. {
  103. Columns = new List<DataGridColumn>()
  104. {
  105. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  106. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  107. },
  108. //OnLoadSuccessFun = "queryClass",
  109. IsCheckOnSelect = true,
  110. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  111. IsPagination = true,
  112. IsShowRowNumbers = true,
  113. IsSingleSelect = false,
  114. },
  115. OnSelect = "reloadClass",
  116. };
  117. ComboGridOptions cgopClassmajor = new ComboGridOptions
  118. {
  119. TextField = "Name",
  120. ValueField = "ClassmajorID",
  121. Name = "ClassmajorID",
  122. ID = "ClassmajorID",
  123. GridOptions = new DataGridOptions
  124. {
  125. Columns = new List<DataGridColumn>()
  126. {
  127. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  128. },
  129. IsCheckOnSelect = true,
  130. DataSourceUrl = Url.Content("~/Classmajor/List"),
  131. IsPagination = true,
  132. IsShowRowNumbers = true,
  133. IsSingleSelect = false
  134. },
  135. OnSelect = "reload"
  136. };
  137. }
  138. @section scripts{
  139. <script src="~/Scripts/Business/ExamManage/ExamPersonControl.js" type="text/javascript"></script>
  140. }
  141. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  142. @Html.Position()
  143. <form id="formQuery" method="post" action="@Url.Content("~/ExamPersonControl/Excel")">
  144. @Html.Hidden("SelectedID")
  145. @Html.PositionCondition()
  146. <div class="search_keyword">
  147. <div class="search_input">
  148. <ul>
  149. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  150. <li class="sv">
  151. @Html.ComboGrid(cgopSchoolYear, new Dictionary<string, string> { { "data-condition", "dgList" } })
  152. </li>
  153. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  154. <li class="sv">
  155. @Html.ComboGrid(cgopBatch, new Dictionary<string, string> { { "data-condition", "dgList" } })
  156. </li>
  157. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  158. <li class="sv">
  159. @Html.ComboGrid(cgopExamType, new Dictionary<string, string> { { "data-condition", "dgList" } })
  160. </li>
  161. </ul>
  162. <ul>
  163. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  164. <li class="sv">
  165. @Html.ComboGrid(cgopBatchProject, new Dictionary<string, string> { { "data-condition", "dgList" } })
  166. </li>
  167. <li class="sn" style="padding-left: 5px;">院系所:</li>
  168. <li class="sv">
  169. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgList" } })
  170. </li>
  171. <li class="sn" style="padding-left: 5px;">年级:</li>
  172. <li class="sv">
  173. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "Years", Name = "Years", OnSelect = "reloadClass" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  174. </li>
  175. </ul>
  176. <ul>
  177. <li class="sn" style="padding-left: 5px;">专业:</li>
  178. <li class="sv">
  179. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Standard, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "StandardID", Name = "StandardID", OnSelect = "reloadClass" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  180. </li>
  181. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  182. <li class="sv">
  183. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgList" } })
  184. </li>
  185. </ul>
  186. </div>
  187. </div>
  188. <div class="p_title">
  189. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  190. 批次报名控制列表
  191. </div>
  192. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  193. </div>
  194. </form>
  195. @Html.PositionBatchModify()
  196. <div class="search_list">
  197. @Html.DataGrid(new DataGridOptions
  198. {
  199. Columns = new List<DataGridColumn>()
  200. {
  201. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationSubjectCountLimitID"},
  202. new BoundFieldColumn { FieldName="Schoolyear", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.1 },
  203. new LinkButtonColumn { FieldName="ExaminationBatchProject", HeaderText="考试批次项目", Align=AlignStyle.Center , Handle="edit",Width=0.1 },
  204. new BoundFieldColumn { FieldName="ExaminationType", HeaderText="项目类型", Align=AlignStyle.Center,Width=0.1 },
  205. new BoundFieldColumn { FieldName="ProjectName", HeaderText="项目名称", Align=AlignStyle.Center,Width=0.1 },
  206. new BoundFieldColumn { FieldName="IsOnlinePayName", HeaderText="是否在线缴费", Align=AlignStyle.Center,Width=0.04 },
  207. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center,Width=0.1 },
  208. new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center,Width=0.04 },
  209. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center,Width=0.1 },
  210. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center,Width=0.1 },
  211. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.04 },
  212. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Align=AlignStyle.Center,Width=0.14 },
  213. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width=0.04 },
  214. new BoundFieldColumn { FieldName="EndDate", HeaderText="报名截止时间", Align=AlignStyle.Center , Formatter= Formatter.OnlyYearMonthDay,Width=0.1 },
  215. },
  216. IsCheckOnSelect = true,
  217. DataSourceUrl = Url.Content("~/ExamPersonControl/List"),
  218. ID = "dgList",
  219. IsPagination = true,
  220. IsShowRowNumbers = true,
  221. IsSingleSelect = false
  222. })
  223. </div>
  224. </div>