List.cshtml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. //校区
  7. ComboGridOptions cgopCampus = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "CampusID",
  11. ID = "CampusDropdown",
  12. Name = "CampusDropdown",
  13. OnSelect = "queryCampus",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  19. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Campus/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. //院系所
  29. ComboGridOptions cgopCollege = new ComboGridOptions
  30. {
  31. TextField = "Name",
  32. ValueField = "CollegeID",
  33. ID = "CollegeDropdown",
  34. Name = "CollegeDropdown",
  35. OnSelect = "queryCollege",
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  41. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  42. },
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false,
  48. }
  49. };
  50. //List列表
  51. var gridOptions = new DataGridOptions()
  52. {
  53. Columns = new List<DataGridColumn>()
  54. {
  55. new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" },
  56. //new BoundFieldColumn { FieldName="CampusCode", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.02 },
  57. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center, Width=0.03, OverflowLength=10 },
  58. //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.02 },
  59. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.04, OverflowLength=12 },
  60. },
  61. PageSize = 100,
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/ChangeTotal/List"),
  64. ID = "dgChangeTotalList",
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false
  68. };
  69. var changeTypeList = (IEnumerable<Sys_DictionaryItem>)ViewBag.ChangeTypeList;
  70. foreach (var changeType in changeTypeList)
  71. {
  72. gridOptions.Columns.Add(new BoundFieldColumn { FieldName = "ChangeType_" + changeType.Value, HeaderText = changeType.Name, Align = AlignStyle.Center, Width = 0.02, CustomFormatFun = "SetRedColumn" });
  73. }
  74. gridOptions.Columns.Add(new BoundFieldColumn { FieldName = "ChangeTypeTotal", HeaderText = "总数", Align = AlignStyle.Center, Width = 0.02, CustomFormatFun = "SetRedColumn" });
  75. }
  76. @section scripts{
  77. <script src="~/Scripts/Business/StudentManage/StudentChange/ChangeTotal.js" type="text/javascript"></script>
  78. <script type="text/javascript">
  79. var nonSelect = "@DropdownList.SELECT_ALL";
  80. </script>
  81. }
  82. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  83. @Html.Position()
  84. <div class="p_SearchTitle">
  85. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  86. 查询条件</div>
  87. </div>
  88. <form id="formQuery" method="post" action="@Url.Content("~/ChangeTotal/Excel")">
  89. @Html.PositionCondition()
  90. <div class="search_keyword">
  91. <div class="search_input">
  92. <ul>
  93. <li class="sn" style="padding-left: 5px;color: red;">异动学期:</li>
  94. <li class="sv">
  95. @Html.DropdownList(new DropdownListOptions
  96. {
  97. ID = "SchoolyearDropdown",
  98. Name = "SchoolyearDropdown",
  99. BindType = DropdownListBindType.SelectAll,
  100. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  101. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  102. OnSelect = "reload"
  103. }, new Dictionary<string, string> { { "data-condition", "dgChangeTotalList" } })
  104. </li>
  105. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  106. <li class="sv">
  107. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgChangeTotalList" } })
  108. </li>
  109. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  110. <li class="sv">
  111. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgChangeTotalList" } })
  112. </li>
  113. </ul>
  114. </div>
  115. </div>
  116. </form>
  117. <div class="p_title">
  118. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  119. 异动统计列表</div>
  120. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  121. </div>
  122. <div class="search_list">
  123. @Html.DataGrid(gridOptions)
  124. </div>
  125. </div>