List.cshtml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopExaminationBatch = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationBatchID",
  10. ID = "cgExaminationBatch",
  11. Name = "cgExaminationBatch",
  12. OnSelect = "queryProject",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center }
  18. },
  19. OnLoadSuccessFun = "reload",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationBatchViewGrid"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. ComboGridOptions cgopExaminationType = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "ExaminationTypeID",
  31. Name = "cgExaminationType",
  32. ID = "cgExaminationType",
  33. OnSelect = "queryProject",
  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 cgopExaminationProject = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "ExaminationProjectID",
  51. Name = "cgExaminationProject",
  52. ID = "cgExaminationProject",
  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("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
  62. IsPagination = true,
  63. IsShowRowNumbers = true,
  64. IsSingleSelect = false
  65. }
  66. };
  67. }
  68. @section scripts{
  69. <script src="~/Scripts/Business/ScoreManage/ScoreDetailList.js"></script>
  70. <script type="text/javascript">
  71. var nonSelect = "@DropdownList.SELECT_ALL";
  72. </script>
  73. }
  74. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  75. @Html.Position()
  76. <form id="formQuery" method="post" action="@Url.Content("~/StudentScoreDetail/Excel")">
  77. <div class="search_keyword">
  78. @Html.Hidden("SelectedID")
  79. <div class="search_input">
  80. <ul>
  81. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  82. <li class="sv">
  83. @Html.DropdownList(new DropdownListOptions
  84. {
  85. BindType = DropdownListBindType.SelectAll,
  86. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  87. ID = "ddlSchoolyear",
  88. Name = "ddlSchoolyear",
  89. OnSelect = "schoolyearChange",
  90. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  91. OnLoadSuccess = "schoolyearChange"
  92. },
  93. new Dictionary<string, string> { { "data-condition", "dgStudentScoreDetailList" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  96. <li class="sv">
  97. @Html.DropdownList(new DropdownListOptions
  98. {
  99. BindType = DropdownListBindType.SelectAll,
  100. ID = "ddlExaminationBatch",
  101. Name = "ddlExaminationBatch",
  102. OnSelect = "examinationBatchChange",
  103. OnLoadSuccess = "examinationBatchChange"
  104. },
  105. new Dictionary<string, string> { { "data-condition", "dgStudentScoreDetailList" } })
  106. </li>
  107. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  108. <li class="sv">
  109. @Html.DropdownList(new DropdownListOptions
  110. {
  111. BindType = DropdownListBindType.SelectAll,
  112. ID = "ddlExaminationType",
  113. Name = "ddlExaminationType",
  114. OnSelect = "examinationTypeChange",
  115. OnLoadSuccess = "examinationTypeChange"
  116. },
  117. new Dictionary<string, string> { { "data-condition", "dgStudentScoreDetailList" } })
  118. </li>
  119. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  120. <li class="sv">
  121. @Html.DropdownList(new DropdownListOptions
  122. {
  123. BindType = DropdownListBindType.SelectAll,
  124. ID = "ddlExaminationProject",
  125. Name = "ddlExaminationProject",
  126. OnSelect = "reload",
  127. },
  128. new Dictionary<string, string> { { "data-condition", "dgStudentScoreDetailList" } })
  129. </li>
  130. </ul>
  131. </div>
  132. </div>
  133. <div class="p_title">
  134. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  135. 项目成绩
  136. </div>
  137. <div style="margin-right: 10px; line-height: 30px; font-size: 12px ;" width="0.7">@Html.ContextMenuBar("List")</div>
  138. </div>
  139. </form>
  140. <div class="search_list">
  141. @Html.DataGrid(new DataGridOptions
  142. {
  143. Columns = new List<DataGridColumn>()
  144. {
  145. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationScoreID",Width=0.05 },
  146. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.04},
  147. new BoundFieldColumn { FieldName="ExaminationBatchName", HeaderText="考试批次", Align=AlignStyle.Center,Width=0.04},
  148. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center,Width=0.04},
  149. new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="考试项目", Align=AlignStyle.Center,Width=0.08 },
  150. new BoundFieldColumn { FieldName="ExaminationSubjectName", HeaderText="科目考核项", Align=AlignStyle.Center,Width=0.03},
  151. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.03 },
  152. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center,Width=0.12 },
  153. new BoundFieldColumn { FieldName="Score", HeaderText="成绩", Align=AlignStyle.Center, Width=0.02 },
  154. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.02 },
  155. },
  156. IsCheckOnSelect = true,
  157. DataSourceUrl = Url.Content("~/StudentScoreDetail/List"),
  158. ID = "dgStudentScoreDetailList",
  159. IsPagination = true,
  160. IsShowRowNumbers = true,
  161. IsSingleSelect = false
  162. })
  163. </div>
  164. </div>