CollegeList.cshtml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "CollegeList";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  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, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "queryCollege",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. }
  50. @section scripts{
  51. <script src="~/Scripts/Business/StudentManage/StudentRegister/StudentReportStatistics.js" type="text/javascript"></script>
  52. <script type="text/javascript">
  53. var nonSelect = "@DropdownList.SELECT_ALL";
  54. var pageRS_Style = "College_RS";
  55. var waitReport = "@((int)EMIS.ViewModel.CF_ReportStatus.WaitReport)";
  56. var notReport = "@((int)EMIS.ViewModel.CF_ReportStatus.NotReport)";
  57. var completeReport = "@((int)EMIS.ViewModel.CF_ReportStatus.CompleteReport)";
  58. </script>
  59. }
  60. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  61. @Html.Position()
  62. <div class="p_SearchTitle">
  63. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  64. </div>
  65. <form id="formQuery" method="post" action="@Url.Content("~/StudentReportStatistics/CollegeExcel")">
  66. @Html.PositionCondition()
  67. <div class="search_keyword">
  68. <div class="search_input">
  69. <ul>
  70. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  71. <li class="sv">
  72. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgStudentReportStList" } })
  73. </li>
  74. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  75. <li class="sv">
  76. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentReportStList" } })
  77. </li>
  78. <li class="sn" style="padding-left: 5px;color: red;">学年学期:</li>
  79. <li class="sv">
  80. @Html.DropdownList(new DropdownListOptions
  81. {
  82. ID = "SchoolyearDropdown",
  83. Name = "SchoolyearDropdown",
  84. BindType = DropdownListBindType.SelectAll,
  85. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
  86. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  87. OnSelect = "reload"
  88. }, new Dictionary<string, string> { { "data-condition", "dgStudentReportStList" } })
  89. </li>
  90. <li class="sn" style="padding-left: 5px;color:red;">在校状态:</li>
  91. <li class="sv">
  92. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  93. {
  94. ID = "DictionaryInschoolStatus",
  95. Name = "DictionaryInschoolStatus",
  96. BindType = DropdownListBindType.SelectAll,
  97. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes,
  98. OnSelect = "reload"
  99. }, new Dictionary<string, string> { { "data-condition", "dgStudentReportStList" } })
  100. </li>
  101. </ul>
  102. </div>
  103. </div>
  104. </form>
  105. <div class="p_title">
  106. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">注册统计列表</div>
  107. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  108. </div>
  109. @*@Html.PositionBatchModify()*@
  110. <div class="search_list">
  111. @Html.DataGrid(new DataGridOptions
  112. {
  113. Columns = new List<DataGridColumn>()
  114. {
  115. new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" },
  116. new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  117. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  118. //new BoundFieldColumn { FieldName="CampusCode", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.05 },
  119. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Align=AlignStyle.Center, Width=0.08, OverflowLength=8 },
  120. new BoundFieldColumn { FieldName="YearID", HeaderText="学年", Align=AlignStyle.Center, OrderFieldName="YearID", Width=0.03, CustomFormatFun="SetRedColumn" },
  121. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" },
  122. new LinkButtonColumn { FieldName="WaitReportCount", HeaderText="待注册数", Align=AlignStyle.Center, Handle="editWaitReport", Width=0.04 },
  123. new LinkButtonColumn { FieldName="NotReportCount", HeaderText="暂缓注册数", Align=AlignStyle.Center, Handle="editNotReport", Width=0.05 },
  124. new LinkButtonColumn { FieldName="CompleteReportCount", HeaderText="注册学籍数", Align=AlignStyle.Center, Handle="editCompleteReport", Width=0.05 },
  125. new LinkButtonColumn { FieldName="ReportCount", HeaderText="人数", Align=AlignStyle.Center, Handle="editReport", Width=0.03 }
  126. },
  127. IsCheckOnSelect = true,
  128. DataSourceUrl = Url.Content("~/StudentReportStatistics/CollegeList"),
  129. ID = "dgStudentReportStList",
  130. IsPagination = true,
  131. IsShowRowNumbers = true,
  132. IsSingleSelect = false
  133. })
  134. </div>
  135. </div>