NotPassStudent.cshtml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. var year = ViewBag.SchoolYearID;
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. OnSelect = "queryCollege",
  11. Name = "CampusDropdown",
  12. ID = "CampusDropdown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. ComboGridOptions cgopStandard = new ComboGridOptions
  28. {
  29. TextField = "StandardName",
  30. ValueField = "StandardID",
  31. OnSelect = "queryStandard",
  32. Name = "StandardDictionaryDropDown",
  33. ID = "StandardDictionaryDropDown",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false,
  45. }
  46. };
  47. ComboGridOptions cgopClassmajor = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "ClassmajorID",
  51. Name = "ClassmajorDropdown",
  52. ID = "ClassmajorDropdown",
  53. OnSelect = "reload",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  59. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Classmajor/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false
  66. }
  67. };
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/ScoreManage/NotPassStudent.js" type="text/javascript"></script>
  71. <script type="text/javascript">
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. </script>
  74. }
  75. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  76. @Html.Position()
  77. <div class="p_SearchTitle">
  78. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  79. 查询条件
  80. </div>
  81. </div>
  82. <form id="formQuery" method="post" action="@Url.Content("~/Score/Excel")">
  83. @Html.PositionCondition()
  84. <div class="search_keyword">
  85. <div class="search_input">
  86. <ul>
  87. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  88. <li class="sv">
  89. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgNotPassStudent" } })
  90. </li>
  91. <li class="sn" style="padding-left: 5px;">年级:</li>
  92. <li class="sv">
  93. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass", SelectedValue = BaseExtensions.GetCurrentYearID() }, new Dictionary<string, string> { { "data-condition", "dgNotPassStudent" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  96. <li class="sv">
  97. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgNotPassStudent" } })
  98. </li>
  99. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  100. <li class="sv">
  101. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgNotPassStudent" } })
  102. </li>
  103. </ul>
  104. </div>
  105. </div>
  106. </form>
  107. <div class="p_title">
  108. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  109. 不及格名单
  110. </div>
  111. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  112. </div>
  113. <div class="search_list">
  114. @Html.DataGrid(new DataGridOptions
  115. {
  116. Columns = new List<DataGridColumn>()
  117. {
  118. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  119. new BoundFieldColumn { FieldName="CampusName", HeaderText="教学点", Align=AlignStyle.Center,Width=0.04 },
  120. new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center, Width=0.04,},
  121. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.05 },
  122. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 },
  123. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.05 },
  124. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.05 },
  125. new BoundFieldColumn { FieldName="NotPassCount", HeaderText="不及格门数", Align=AlignStyle.Center,Width=0.05 },
  126. },
  127. IsCheckOnSelect = true,
  128. DataSourceUrl = Url.Content("~/Score/NotPassStudent"),
  129. ID = "dgNotPassStudent",
  130. IsPagination = true,
  131. IsShowRowNumbers = true,
  132. IsSingleSelect = false
  133. })
  134. </div>
  135. </div>