1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "Report";
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var SchoolyearID;
- var CollegeID;
- var StandardID;
- var Year;
- var EducationID;
- var LearningformID;
- var LearnSystem;
- var GrademajorID;
- var ConditionString;
- var TempTableName;
- var urlStr = location.href;
- var isWindowCanClose = false;
- //var str = decodeURI(location.href); //取得整个地址栏
- var num = urlStr.indexOf("?");
- if (num != -1) {
- urlStr = urlStr.substr(num + 1); //取得所有参数
- //各个参数放到数组里
- var arr = urlStr.split("&");
- for (var i = 0; i < arr.length; i++) {
- switch (arr[i].split("=")[0]) {
- case "SchoolyearID":
- SchoolyearID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "CollegeID":
- CollegeID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "StandardID":
- StandardID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "Year":
- Year = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "EducationID":
- EducationID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "LearningformID":
- LearningformID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "LearnSystem":
- LearnSystem = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "GrademajorID":
- GrademajorID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "ConditionString":
- ConditionString = arr[i].split("=#")[1];
- ConditionString = " and " + ConditionString;
- break;
- case "TempTableName":
- TempTableName = arr[i].split("=#")[1];
- TempTableName = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- }
- }
- }
- Report();
- function Report() {
- var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationManage%2fSpecialtyStatistics&SchoolyearID_RAP=" + SchoolyearID
- + "&CollegeID_RAP=" + CollegeID
- + "&YearID_RAP=" + Year
- + "&StandardID_RAP=" + StandardID
- + "&EducationID_RAP=" + EducationID
- + "&LearningformID_RAP=" + LearningformID
- + "&LearnSystem_RAP=" + LearnSystem
- + "&GrademajorID_RAP=" + GrademajorID
- + "&TempTableName_RAP=" + TempTableName
- + "&ConditionString_RAP=" + escape(ConditionString);
- $("#reportContent").attr("src", str);
- isWindowCanClose = true;
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <div class="search_list">
- <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 95%; position: absolute;
- left: 5px;"></iframe>
- </div>
- </div>
|