List.cshtml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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 = "SchoolYearID",
  11. Name = "SchoolYearID",
  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. ,
  28. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  29. OnChange = "cgopSchoolYearSelect",
  30. OnSelect = "cgopSchoolYearSelect"
  31. };
  32. ComboGridOptions cgopExamType = new ComboGridOptions
  33. {
  34. TextField = "Name",
  35. ValueField = "ExaminationTypeID",
  36. ID = "ExaminationTypeID",
  37. Name = "ExaminationTypeID",
  38. GridOptions = new DataGridOptions
  39. {
  40. Columns = new List<DataGridColumn>()
  41. {
  42. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center ,Width=0.4},
  43. },
  44. PageSize = 5,
  45. IsCheckOnSelect = true,
  46. DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamBatchExamTypeListViewGrid"),
  47. IsPagination = true,
  48. IsShowRowNumbers = true,
  49. IsSingleSelect = false
  50. },
  51. OnSelect = "cgopExamTypeSelect"
  52. };
  53. ComboGridOptions cgopBatch = new ComboGridOptions
  54. {
  55. TextField = "Name",
  56. ValueField = "ExaminationBatchID",
  57. ID = "ExaminationBatchID",
  58. Name = "ExaminationBatchID",
  59. GridOptions = new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center ,Width=0.3}
  64. },
  65. PageSize = 5,
  66. IsCheckOnSelect = true,
  67. DataSourceUrl = Url.Content("~/ExaminationBatch/GetProjectListViewGrid"),
  68. IsPagination = true,
  69. IsShowRowNumbers = true,
  70. IsSingleSelect = false
  71. },
  72. OnSelect = "cgopBatchSelect"
  73. };
  74. ComboGridOptions cgopBatchProject = new ComboGridOptions
  75. {
  76. TextField = "Name",
  77. ValueField = "ExaminationBatchProjectID",
  78. ID = "ExaminationBatchProjectID",
  79. Name = "ExaminationBatchProjectID",
  80. GridOptions = new DataGridOptions
  81. {
  82. Columns = new List<DataGridColumn>()
  83. {
  84. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3}
  85. },
  86. PageSize = 5,
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamBatchProjectListViewGrid"),
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false
  92. }
  93. ,
  94. OnSelect = "reload"
  95. };
  96. }
  97. @section scripts{
  98. <script src="~/Scripts/Business/ExamManage/ExamBatchProject.js" type="text/javascript"></script>
  99. <script type="text/javascript">
  100. var EMIS_CampusLabel = '@EMIS.Utility.RSL.Get("Campus")';
  101. </script>
  102. }
  103. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  104. @Html.Position()
  105. <div class="p_SearchTitle">
  106. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  107. 查询条件</div>
  108. </div>
  109. <form id="formQuery" method="post" action="@Url.Content("~/ExamBatchProject/Excel")">
  110. @Html.Hidden("SelectedID")
  111. @Html.PositionCondition()
  112. <div class="search_keyword">
  113. <div class="search_input">
  114. <ul>
  115. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  116. <li class="sv">
  117. @Html.ComboGrid(cgopSchoolYear, new Dictionary<string, string> { { "data-condition", "dgList" } })
  118. </li>
  119. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  120. <li class="sv">
  121. @Html.ComboGrid(cgopBatch, new Dictionary<string, string> { { "data-condition", "dgList" } })
  122. </li>
  123. <li class="sn" style="padding-left: 5px; width: 150px;">考试类型:</li>
  124. <li class="sv">
  125. @Html.ComboGrid(cgopExamType, new Dictionary<string, string> { { "data-condition", "dgList" } })
  126. </li>
  127. </ul>
  128. <ul>
  129. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  130. <li class="sv">
  131. @Html.ComboGrid(cgopBatchProject, new Dictionary<string, string> { { "data-condition", "dgList" } })
  132. </li>
  133. <li class="sn" style="padding-left: 5px;">报名起始时间:</li>
  134. <li class="sv">
  135. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "StartDate", ID = "StartDate", OnChange = "startDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  136. </li>
  137. <li class="sn" style="padding-left: 5px; width: 150px;">报名结束时间:</li>
  138. <li class="sv">
  139. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Name = "EndDate", ID = "EndDate", OnChange = "endDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  140. </li>
  141. </ul>
  142. </div>
  143. </div>
  144. </form>
  145. <div class="p_title">
  146. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  147. 考试批次设置信息列表</div>
  148. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  149. </div>
  150. @Html.PositionBatchModify()
  151. <div class="search_list">
  152. @Html.DataGrid(new DataGridOptions
  153. {
  154. Columns = new List<DataGridColumn>()
  155. {
  156. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationBatchProjectID"},
  157. new BoundFieldColumn { FieldName="Schoolyear", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.1, },
  158. new LinkButtonColumn { FieldName="BatchName", HeaderText="考试批次", Align=AlignStyle.Center, Width=0.1, Handle="edit" },
  159. new BoundFieldColumn { FieldName="StartDate", HeaderText="报名起始时间", Align=AlignStyle.Center, Width=0.1, Formatter= Formatter.CHSOnlyYearMonthDay },
  160. new BoundFieldColumn { FieldName="EndDate", HeaderText="报名结束时间", Align=AlignStyle.Center, Width=0.1, Formatter= Formatter.CHSOnlyYearMonthDay },
  161. new BoundFieldColumn { FieldName="ExaminationType", HeaderText="考试类型", Align=AlignStyle.Center, Width=0.1 },
  162. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width=0.06,},
  163. new BoundFieldColumn { FieldName="SimulateTime", HeaderText="预考试时间", Align=AlignStyle.Center, Width=0.1},
  164. new BoundFieldColumn { FieldName="Training", HeaderText="培训情况", Align=AlignStyle.Center, Width=0.1, Formatter= Formatter.CHSOnlyYearMonthDay },
  165. new BoundFieldColumn { FieldName="TakeCourseTime", HeaderText="预开课时间", Align=AlignStyle.Center, Width=0.1, Formatter= Formatter.CHSOnlyYearMonthDay },
  166. new BoundFieldColumn { FieldName="MaxRegistCount", HeaderText="最大报名人数", Align=AlignStyle.Center, Width=0.1 },
  167. },
  168. IsCheckOnSelect = true,
  169. DataSourceUrl = Url.Content("~/ExamBatchProject/GetExamBatchProjectListViewGrid"),
  170. ID = "dgList",
  171. IsPagination = true,
  172. IsShowRowNumbers = true,
  173. IsSingleSelect = false,
  174. IsPostBack = true
  175. })
  176. </div>
  177. </div>