List.cshtml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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='HighBaseAgeCountView']").attr("customName");
  11. ReportName = ReportName == "" || ReportName == null ? "HighBaseAgeCountView" : ReportName;
  12. function Update() {
  13. $.messager.confirm("系统提示", "您确定要更新在校生分年龄情况表?", function (r) {
  14. if (r) {
  15. $.post(CMS_SystemConfig.VirtualDirectoryPath + '/HighbaseInschoolAgeStatus/Update', { SchoolYear: $("#SchoolYearDropdown").combobox("getValue") }, 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. @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, SelectedValue = BaseExtensions.GetCurrentYearID(), ItemSourceUrl = Url.Content("~/HighbaseInschoolAgeStatus/SchoolYearDropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" })*@
  39. </div>
  40. <div style="margin-right: 10px; line-height: 30px; font-size: 12px; float: right">@Html.ContextMenuBar("List")</div>
  41. </div>
  42. <div class="search_list">
  43. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 85%; position: absolute;
  44. left: 5px;"></iframe>
  45. </div>
  46. </div>