List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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. OnChange = "cgopSchoolYearSelect",
  29. OnSelect = "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("~/ExamProjectControl/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("~/ExamProjectControl/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 = "reload"
  116. };
  117. ComboGridOptions cgopStandard = new ComboGridOptions
  118. {
  119. TextField = "StandardName",
  120. ValueField = "StandardID",
  121. //OnSelect = "queryStandard",
  122. Name = "StandardID",
  123. ID = "StandardID",
  124. GridOptions = new DataGridOptions
  125. {
  126. Columns = new List<DataGridColumn>()
  127. {
  128. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  129. },
  130. IsCheckOnSelect = true,
  131. DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"),
  132. IsPagination = true,
  133. IsShowRowNumbers = true,
  134. IsSingleSelect = false,
  135. },
  136. OnSelect = "reload"
  137. };
  138. }
  139. @section scripts{
  140. <script src="~/Scripts/Business/ExamManage/ExamProjectControl.js" type="text/javascript"></script>
  141. }
  142. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  143. @Html.Position()
  144. <form id="formQuery" method="post" action="@Url.Content("~/ExamProjectControl/Excel")">
  145. @Html.Hidden("SelectedID")
  146. @Html.PositionCondition()
  147. <div class="search_keyword">
  148. <div class="search_input">
  149. <ul>
  150. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  151. <li class="sv">
  152. @Html.ComboGrid(cgopSchoolYear, new Dictionary<string, string> { { "data-condition", "dgList" } })
  153. </li>
  154. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  155. <li class="sv">
  156. @Html.ComboGrid(cgopBatch, new Dictionary<string, string> { { "data-condition", "dgList" } })
  157. </li>
  158. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  159. <li class="sv">
  160. @Html.ComboGrid(cgopExamType, new Dictionary<string, string> { { "data-condition", "dgList" } })
  161. </li>
  162. </ul>
  163. <ul>
  164. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  165. <li class="sv">
  166. @Html.ComboGrid(cgopBatchProject, new Dictionary<string, string> { { "data-condition", "dgList" } })
  167. </li>
  168. <li class="sn" style="padding-left: 5px;">院系所:</li>
  169. <li class="sv">
  170. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgList" } })
  171. </li>
  172. <li class="sn" style="padding-left: 5px;">年级:</li>
  173. <li class="sv">
  174. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearID", Name = "SchoolyearID", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  175. </li>
  176. </ul>
  177. <ul>
  178. <li class="sn" style="padding-left: 5px;">专业:</li>
  179. <li class="sv">
  180. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgList" } })
  181. @*@Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Standard, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "StandardID", Name = "StandardID", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })*@
  182. </li>
  183. <li class="sn" style="padding-left: 5px;">能否线上缴费:</li>
  184. <li class="sv">
  185. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemList = new List<DropdownListItem>() { new DropdownListItem { Text = "是", Value = "true" }, new DropdownListItem { Text = "否", Value = "false" } }, ID = "IsOnlinePay", Name = "IsOnlinePay", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  186. </li>
  187. </ul>
  188. </div>
  189. </div>
  190. <div class="p_title">
  191. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  192. 批次报名控制列表
  193. </div>
  194. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  195. </div>
  196. </form>
  197. @Html.PositionBatchModify()
  198. <div class="search_list">
  199. @Html.DataGrid(new DataGridOptions
  200. {
  201. Columns = new List<DataGridColumn>()
  202. {
  203. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationBatchProjectControlID"},
  204. new BoundFieldColumn { FieldName="Schoolyear", HeaderText="学年学期", Align=AlignStyle.Center },
  205. new LinkButtonColumn { FieldName="ExaminationBatchProject", HeaderText="考试批次", Align=AlignStyle.Center , Handle="edit" },
  206. new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型", Align=AlignStyle.Center },
  207. new BoundFieldColumn { FieldName="ProjectName", HeaderText="项目名称", Align=AlignStyle.Center },
  208. new BoundFieldColumn { FieldName="ExaminationProjectFee", HeaderText="收费标准名称", Align=AlignStyle.Center },
  209. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center },
  210. new BoundFieldColumn { FieldName="CollegeName", HeaderText="院系所", Align=AlignStyle.Center },
  211. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center },
  212. new BoundFieldColumn { FieldName="IsOnlinePayName", HeaderText="能否线上缴费", Align=AlignStyle.Center },
  213. },
  214. IsCheckOnSelect = true,
  215. DataSourceUrl = Url.Content("~/ExamProjectControl/List"),
  216. ID = "dgList",
  217. IsPagination = true,
  218. IsShowRowNumbers = true,
  219. IsSingleSelect = false
  220. })
  221. </div>
  222. </div>