123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "StudentScoreReport";
- string LoginUserID = ViewBag.UserID;
- var DataRange = ViewBag.DataRange;
- }
- @section scripts{
- <script type="text/javascript">
- var collegeID, years, grademajorID, classmajorID, coursematerialID, courseTypeID,
- standardID, educationID, learningformID, learnSystem, starttermBegin, starttermEnd,
- schoolYearID, examsCategoryID, LoginID_RAP, userName, className, Attribute, Value, Condition, UserIDs;
- collegeID = "";
- years = "";
- grademajorID = "";
- classmajorID = "";
- coursematerialID = "";
- courseTypeID = "";
- schoolYearID = "";
- examsCategoryID = "";
- LoginID_RAP = "";
- userName = "";
- className = "";
- Attribute = "";
- Value = "";
- Condition = "";
- var str = decodeURI(location.href); //取得整个地址栏
- var num = str.indexOf("?");
- //alert(num);
- 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 "UserIDs":
- UserIDs = arr[i].split("=")[1];
- break;
- case "CollegeID":
- collegeID = arr[i].split("=")[1];
- break;
- case "Years":
- years = arr[i].split("=")[1];
- break;
- case "GrademajorID":
- grademajorID = arr[i].split("=")[1];
- break;
- case "ClassmajorID":
- classmajorID = arr[i].split("=")[1];
- break;
- case "CoursematerialID":
- coursematerialID = arr[i].split("=")[1];
- break;
- case "CourseTypeID":
- courseTypeID = arr[i].split("=")[1];
- break;
- case "SchoolYearID":
- schoolYearID = arr[i].split("=")[1];
- break;
- case "ExamsCategoryID":
- examsCategoryID = arr[i].split("=")[1];
- break;
- case "LoginID":
- LoginID_RAP = arr[i].split("=")[1];
- break;
- case "UserName":
- userName = arr[i].split("=")[1];
- break;
- case "ClassName":
- className = arr[i].split("=")[1];
- break;
- case "Attribute":
- Attribute = arr[i].split("Attribute=")[1];
- break;
- case "Condition":
- Condition = arr[i].split("Condition=")[1];
- break;
- case "Value":
- Value = $.trim(arr[i].split("=")[1]);
- break;
- case "StandardID":
- standardID = arr[i].split("=")[1];
- break;
- case "EducationID":
- educationID = arr[i].split("=")[1];
- break;
- case "LearningformID":
- learningformID = arr[i].split("=")[1];
- break;
- case "LearnSystem":
- learnSystem = arr[i].split("=")[1];
- break;
- case "StarttermBegin":
- starttermBegin = arr[i].split("=")[1];
- break;
- case "StarttermEnd":
- starttermEnd = arr[i].split("=")[1];
- break;
- }
- }
- }
- collegeID = collegeID == "" || collegeID == null ? "" : collegeID;
- years = years == "-1" || years == "" ? "" : years;
- grademajorID = grademajorID == "" || grademajorID == "-1" ? "" : grademajorID;
- classmajorID = classmajorID == "" || classmajorID == "-1" ? "" : classmajorID;
- coursematerialID = coursematerialID == "" || coursematerialID=="-1" ? "" : coursematerialID;
- courseTypeID = courseTypeID == "-1" || courseTypeID == "" ? "" : courseTypeID;
- schoolYearID = schoolYearID == "-1" || schoolYearID == "" ? "" : schoolYearID;
- examsCategoryID = examsCategoryID == "-1" || examsCategoryID == "" ? "" : examsCategoryID;
- standardID = standardID == "-1" || standardID == "" ? "" : standardID;
- educationID = educationID == "-1" || educationID == "" ? "" : educationID;
- learningformID = learningformID == "-1" || learningformID == "" ? "" : learningformID;
- learnSystem = learnSystem == "-1" || learnSystem == "" ? "" : learnSystem;
- starttermBegin = starttermBegin == "-1" || starttermBegin == "" ? "" : starttermBegin;
- starttermEnd = starttermEnd == "-1" || starttermEnd == "" ? "" : starttermEnd;
- if (Attribute == "LoginID") {
- LoginID_RAP = Value == "" || null ? "" : Value;
- userName = userName == "" || null ? "" : Value;
- className = className == "" || null ? "" : Value;
- }
- if (Attribute == "UserName") {
- LoginID_RAP = LoginID_RAP == "" || null ? "" : Value;
- userName = Value == "" || null ? "" : Value;
- className = className == "" || null ? "" : Value;
- }
- if (Attribute == "ClassName") {
- LoginID_RAP = LoginID_RAP == "" || null ? "" : Value;
- userName = userName == "" || null ? "" : Value;
- className = Value == "" || null ? "" : Value;
- }
- Condition = Condition == "" || null ? "" : Condition;
- //alert(aa);
- var str = "";
- //学籍卡报表如果没有配置高校的特定版本,就用通用的StudentCardView
- var ReportName = $(CMS_SystemConfig.GetConfig()).find("configuration>reportServer>customReportName[name='StudentScoreView']").attr("customName");
- ReportName = ReportName == "" || ReportName == null ? "StudentScoreView" : ReportName;
- if (UserIDs == "") {
- top.ReportParameter = {
- CollegeID: collegeID,
- Years: years,
- ClassmajorID: classmajorID,
- SchoolyearID: schoolYearID,
- StandardID: standardID,
- EducationID: educationID,
- LearningformID: learningformID,
- LearnSystem: learnSystem,
- CoursematerialID: coursematerialID,
- CourseTypeID: courseTypeID,
- ExamsCategoryID: examsCategoryID,
- StarttermBegin: starttermBegin,
- StarttermEnd: starttermEnd,
- Condition: Condition,
- LoginID: LoginID_RAP,
- UserName: userName,
- ClassName: className,
- GrademajorID: null,
- UserIDs: null,
- LoginUserID: '@LoginUserID',
- DataRange: @DataRange
- };
- }
- else {
- top.ReportParameter = {
- CollegeID: null,
- Years: null,
- ClassmajorID: null,
- SchoolyearID: null,
- StandardID: null,
- EducationID: null,
- LearningformID: null,
- LearnSystem: null,
- CoursematerialID: null,
- CourseTypeID: null,
- ExamsCategoryID: null,
- StarttermBegin: null,
- StarttermEnd: null,
- Condition: null,
- LoginID: null,
- UserName: null,
- ClassName: null,
- GrademajorID: null,
- UserIDs: UserIDs,
- LoginUserID: '@LoginUserID',
- DataRange: @DataRange
- };
- }
- $("#reportContent").attr("src", CMS_SystemConfig.VirtualDirectoryPath + CMS_SystemConfig.ScriptReportPagePath + "?ReportFolder=%2fEducationResult%2f" + ReportName);
- // Report();
- // function Report() {
- //
- // }
- </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>
|