Report.cshtml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "Report";
  5. var status = ViewBag.Status;
  6. string LoginUserID = ViewBag.UserID;
  7. var DataRange = ViewBag.DataRange;
  8. }
  9. @section scripts{
  10. <script type="text/javascript">
  11. var curWwwPath = window.document.location.href;
  12. var pathName = window.document.location.pathname;
  13. var pos = curWwwPath.indexOf(pathName);
  14. var localhostPaht = curWwwPath.substring(0, pos) + "/";
  15. var LoginUserID = '@LoginUserID';
  16. var DataRange = '@DataRange';
  17. var SchoolName = '@EMIS.Utility.RSL.Get("UniversityName")';
  18. var endStatusID = "@BaseExtensions.GetEndFlowStatus("CF_DifferentDynamic")";
  19. function Report() {//学籍卡
  20. var ApprovalStatus = endStatusID;
  21. if(ApprovalStatus=="") {
  22. ApprovalStatus = "99";
  23. }
  24. //学籍卡报表如果没有配置高校的特定版本,就用通用的StudentCardView
  25. var StudentCardName = $(CMS_SystemConfig.GetConfig()).find("configuration>reportServer>customReportName[name='StudentCardView']").attr("customName");
  26. StudentCardName = StudentCardName == "" || StudentCardName == null ? "StudentCardView" : StudentCardName;
  27. top.ReportParameter = {
  28. CampusID: null,
  29. CollegeID: null,
  30. Years: null,
  31. StandardID: null,
  32. LearningformID: null,
  33. ClassID: null,
  34. InSchoolStatusID: null,
  35. StudentStatus: null,
  36. isPhotos: null,
  37. LoginID: null,
  38. Url: localhostPaht,
  39. ApprovalStatus:ApprovalStatus,
  40. LoginUserID:LoginUserID,
  41. DataRange: DataRange,
  42. ConditionString: null,
  43. UserIDs: LoginUserID,
  44. ReportStatusID: null,
  45. SchoolName: SchoolName,
  46. Education: null,
  47. LearnSystem:null
  48. };
  49. var str = CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fStudentManage%2f" + StudentCardName;
  50. $("#reportContent").attr("src", str);
  51. }
  52. $(function () {
  53. Report();
  54. });
  55. </script>
  56. }
  57. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_StudentsReport, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "selReport", Name = "selReport", OnSelect = "Report", SelectedValue = 2 })
  58. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  59. <div class="search_list">
  60. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 95%; position: absolute;
  61. left: 5px;"></iframe>
  62. </div>
  63. </div>