List.cshtml 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "异动统计";
  6. var gridOptions = new DataGridOptions
  7. {
  8. Columns = new List<DataGridColumn>()
  9. {
  10. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  11. //new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center , },
  12. //new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center , },
  13. //new BoundFieldColumn { FieldName="DifferentDynamicTypeName", HeaderText="异动类型", Align=AlignStyle.Center, },
  14. //new BoundFieldColumn { FieldName="Reason", HeaderText="异动原因", Align=AlignStyle.Center, },
  15. //new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, },
  16. //new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, },
  17. //new BoundFieldColumn { FieldName="StandardName", HeaderText="异动前专业", Align=AlignStyle.Center, },
  18. //new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="异动前班级", Align=AlignStyle.Center, },
  19. //new BoundFieldColumn { FieldName="AfterStandardName", HeaderText="异动后专业", Align=AlignStyle.Center, },
  20. //new BoundFieldColumn { FieldName="AfterClassmajorName", HeaderText="异动后班级", Align=AlignStyle.Center, },
  21. //new BoundFieldColumn { FieldName="AfterInSchoolStatusName", HeaderText="异动后在校状态", Align=AlignStyle.Center, },
  22. //new BoundFieldColumn { FieldName="AfterStudentStatusName", HeaderText="异动后学籍状态", Align=AlignStyle.Center, },
  23. //new BoundFieldColumn { FieldName="ReturnSchoolyearCode", HeaderText="返校学期", Align=AlignStyle.Center, },
  24. //new BoundFieldColumn { FieldName="ApprovalStatusName", HeaderText="审批状态", Align=AlignStyle.Center, },
  25. //new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center, },
  26. },
  27. IsCheckOnSelect = true,
  28. DataSourceUrl = Url.Action("List"),
  29. ID = "dgList",
  30. IsPagination = false,
  31. IsShowRowNumbers = true,
  32. IsSingleSelect = false
  33. };
  34. var differentDynamicTypes = (IEnumerable<Sys_DictionaryItem>)ViewBag.DifferentDynamicTypes;
  35. foreach (var item in differentDynamicTypes)
  36. {
  37. gridOptions.Columns.Add(new BoundFieldColumn { FieldName = "Item" + item.Value, HeaderText = item.Name, Align = AlignStyle.Center, });
  38. }
  39. }
  40. @section scripts{
  41. <script src="~/Scripts/Business/DifferentDynamic/Statistics.js" type="text/javascript"></script>
  42. }
  43. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  44. @Html.Position()
  45. <div class="p_SearchTitle">
  46. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  47. 查询条件</div>
  48. </div>
  49. <form id="formQuery" method="post" action="@Url.Action("Excel")">
  50. <div class="search_keyword">
  51. <div class="search_input">
  52. <ul>
  53. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  54. <li class="sv">
  55. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  56. </li>
  57. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  58. <li class="sv">
  59. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  60. </li>
  61. <li class="sn" style="padding-left: 5px;">异动学期:</li>
  62. <li class="sv">
  63. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  64. </li>
  65. </ul>
  66. </div>
  67. </div>
  68. </form>
  69. <div class="p_title">
  70. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  71. 异动统计列表</div>
  72. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  73. </div>
  74. <div class="search_list">
  75. @Html.DataGrid(gridOptions)
  76. </div>
  77. </div>