List.cshtml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. var ReportName = $(CMS_SystemConfig.GetConfig()).find("configuration>reportServer>customReportName[name='HighBaseUnderGraduateStudentCountView']").attr("customName");
  11. ReportName = ReportName == "" || ReportName == null ? "HighBaseUnderGraduateStudentCountView" : ReportName;
  12. function Update() {
  13. $.messager.confirm("系统提示", "您确定要更新本科分专业学生数表?", function (r) {
  14. if (r) {
  15. $.post(CMS_SystemConfig.VirtualDirectoryPath + '/HighbaseAdultBachelorSpecialtyStudentCount/Update', {}, function (data) {
  16. if (data.IsSuccess = true) {
  17. reload();
  18. }
  19. $.messager.alert("系统提示", data.Message);
  20. });
  21. }
  22. });
  23. }
  24. $(function () {
  25. reload();
  26. });
  27. function reload() {
  28. var year = $("#SchoolYearDropdown").combobox("getValue");
  29. $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fStudentManage%2f" + ReportName + "&Year_RAP=" + year);
  30. }
  31. </script>
  32. }
  33. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  34. @Html.Position()
  35. <div class="p_title">
  36. <div style="float: left">
  37. 年度:@Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Year, new DropdownListOptions { BindType = DropdownListBindType.None, SelectedValue = DateTime.Now.Year, ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" })
  38. </div>
  39. <div style="margin-right: 10px; line-height: 30px; font-size: 12px; float: right">@Html.ContextMenuBar("List")</div>
  40. </div>
  41. <div class="search_list">
  42. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 85%; position: absolute;
  43. left: 5px;"></iframe>
  44. </div>
  45. </div>