123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "StudentScoreNewReport";
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var LoginID, CollegeID, StandardID, YearID, SchoolyearNumID, SchoolcodeID, ClassmajorID, CourseTypeID;
- var str = decodeURI(location.href); //取得整个地址栏
- var num = str.indexOf("?");
- if (num != -1) {
- str = str.substr(num + 1); //取得所有参数
- //各个参数放到数组里
- var arr = str.split("&");
- for (var i = 0; i < arr.length; i++) {
- switch (arr[i].split("=")[0]) {
- case "CollegeID":
- CollegeID = arr[i].split("=")[1];
- break;
- case "StandardID":
- StandardID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "YearID":
- YearID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "SchoolyearNumID":
- SchoolyearNumID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "SchoolcodeID":
- SchoolcodeID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "ClassmajorID":
- ClassmajorID = arr[i].split("=")[1] != nonSelect ? arr[i].split("=")[1] : "";
- break;
- case "LoginID":
- LoginID = arr[i].split("=")[1];
- break;
- case "CourseTypeID":
- CourseTypeID = arr[i].split("=")[1];
- break;
- }
- }
- }
- Report();
- function Report() {
- var i = document.getElementById("selReport").value;
- if (i == 1) {
- var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fGZtyPersonalStudentScoreView&LoginID_RAP=&UserID_RAP="
- + "&CollegeID_RAP=" + CollegeID + "&StandardID_RAP=" + StandardID + "&YearID_RAP=" + YearID
- + "&SchoolyearNumID_RAP=" + SchoolyearNumID + "&SchoolcodeID_RAP=" + SchoolcodeID + "&ClassmajorID_RAP=" + ClassmajorID;
- $("#reportContent").attr("src", str);
- }
- else if (i == 2) {
- var str = CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationResult%2fGZtySpecialityScoreSumView&LoginID_RAP=&UserID_RAP="
- + "&CollegeID_RAP=" + CollegeID + "&StandardID_RAP=" + StandardID + "&YearID_RAP=" + YearID
- + "&SchoolyearNumID_RAP=" + SchoolyearNumID + "&SchoolcodeID_RAP=" + SchoolcodeID + "&ClassmajorID_RAP=" + ClassmajorID + "&CourseTypeID_RAP=" + CourseTypeID;
- $("#reportContent").attr("src", str);
- }
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <select id="selReport" onchange="Report()">
- <option value="0" selected="selected">请选择报表</option>
- <option value="1">个人成绩报表</option>
- <option value="2">专业成绩汇总报表</option>
- </select>
- <div class="search_list">
- <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 95%; position: absolute;
- left: 5px;"></iframe>
- </div>
- </div>
|