List.cshtml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. ID = "cgCollege",
  11. Name = "cgCollege",
  12. OnSelect = "queryClass",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. //OnLoadSuccessFun = "reloadStandard",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  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 = "queryClass",
  32. Name = "ddlStandard",
  33. ID = "ddlStandard",
  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 = "cgClassmajor",
  52. ID = "cgClassmajor",
  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. OnLoadSuccessFun = "reload",
  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/EvaluationManage/StudentEvaluationCount.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. <form id="formQuery" method="post" action="@Url.Content("~/StudentEvaluationCount/Excel")">
  78. @Html.PositionCondition()
  79. <div class="search_keyword">
  80. <div class="search_input">
  81. <ul>
  82. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  83. <li class="sv">
  84. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload", SelectedValue = ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgStudentEvaluationCountList" } })
  85. </li>
  86. <li class="sn" style="padding-left: 5px;">年级:</li>
  87. <li class="sv">
  88. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgStudentEvaluationCountList" } })
  89. </li>
  90. @*<li class="sn" style="padding-left: 5px;">年级:</li>
  91. <li class="sv">
  92. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "reloadClassmajor", OnLoadSuccess = "reloadClassmajor" }, new Dictionary<string, string> { { "data-condition", "dgStudentEvaluationCountList" } })
  93. </li>*@
  94. </ul>
  95. <ul>
  96. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  97. <li class="sv">
  98. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentEvaluationCountList" } })
  99. </li>
  100. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  101. <li class="sv">
  102. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStudentEvaluationCountList" } })
  103. </li>
  104. @* <li class="sn" style="padding-left: 5px;">专业名称:</li>
  105. <li class="sv">
  106. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Facultymajor/BindStandardDropDownList"), Name = "ddlStandard", ID = "ddlStandard", OnSelect = "reloadClassmajor", OnLoadSuccess = "reloadClassmajor" }, new Dictionary<string, string> { { "data-condition", "dgStudentEvaluationCountList" } })
  107. </li>*@
  108. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  109. <li class="sv">
  110. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentEvaluationCountList" } })
  111. </li>
  112. </ul>
  113. </div>
  114. </div>
  115. <div class="p_title">
  116. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  117. 学生名单列表
  118. </div>
  119. <div style="margin-right: 10px; line-height: 30px; font-size: 12px ;" width="0.7">@Html.ContextMenuBar("List")</div>
  120. </div>
  121. </form>
  122. <div class="search_list">
  123. @Html.DataGrid(new DataGridOptions
  124. {
  125. Columns = new List<DataGridColumn>()
  126. {
  127. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRegistrationID", Width=0.05, Align=AlignStyle.Center},
  128. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=0.04},
  129. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center,Width=0.03},
  130. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width=0.02 },
  131. //new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width=0.01 },
  132. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center,OverflowLength=25 },
  133. new BoundFieldColumn { FieldName="NeedEvaluationCount", HeaderText="需评人次", Align=AlignStyle.Center, Width=0.04 },
  134. new BoundFieldColumn { FieldName="CompleteCount", HeaderText="已评人次", Align=AlignStyle.Center, Width=0.04 },
  135. new BoundFieldColumn { FieldName="UncompletedCount", HeaderText="未评人次", Align=AlignStyle.Center, Width=0.04 }
  136. },
  137. IsCheckOnSelect = true,
  138. DataSourceUrl = Url.Content("~/StudentEvaluationCount/List"),
  139. ID = "dgStudentEvaluationCountList",
  140. IsPagination = true,
  141. IsShowRowNumbers = true,
  142. IsSingleSelect = false
  143. })
  144. </div>
  145. </div>