123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/Score/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function reload() {
- $("#dgScoreAuditList").cmsXDataTable("load", $.getDataGridParams("dgScoreAuditList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgScoreAuditList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.FinalExaminationID);
- });
- return d;
- }
- //点击列表更新
- function edit(rowindex, rowdata) {
- var redirectTo = url + "?finalExaminationID=" + rowdata.FinalExaminationID + "&Isdisplay=true&MNU=" + mnu;
- $.popupTopWindow('成绩录入信息', redirectTo, 850, 550, null, null);
- }
- function SelectCollegeComboGrid() {
- var collegeID = $("#CollegeComboGrid").combogridX("getValue");
- if (collegeID != nonSelect) {
- var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})";
- $("#DepartmentComboGrid").combogridX("reload", eval(jsonString));
- }
- reload();
- }
- //学生成绩录入名单
- function StudentList(rowindex, rowdata) {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/ScoreAudit/StudentList?finalExaminationID=" + rowdata.FinalExaminationID + "&recordStatus=" + rowdata.ApprovalStatus + "&MNU=" + mnu;
- $.popupTopWindow('学生成绩录入名单', redirectTo, 850, 480, null, null);
- }
- //生成报表
- function ScoreAudit_Report() {
- var d = validChoose();
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要生成报表的信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统提示", "只能选择单个记录生成报表。");
- return;
- }
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/ScoreAudit/Report?FinalExaminationID=" + d + "&MNU=" + mnu;
- $.popupTopWindow('成绩单报表', redirectTo, 800, 600, null, null);
- }
- function validChooseStatus() {
- var d = [];
- $.each($("#dgScoreAuditList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.ApprovalStatusName);
- });
- return d;
- }
- //体院
- function Score_GroupReport() {
- var d = validChoose();
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要查看的成绩审核信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统提示", "只能选择单个成绩审核信息。");
- return;
- }
- var status = validChooseStatus();
- if (status != "已通过") {
- $.messager.alert("系统提示", "只能查看\"已通过\"的学生课程成绩报表");
- return;
- }
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/Score/ScoreReport?FinalExaminationID=" + d + "&MNU=" + mnu;
- $.popupTopWindow('学生课程成绩报表', redirectTo, 800, 600, null, null);
- }
- //审核
- function ScoreAudit_Audit() {
- var selected = $("#dgScoreAuditList").cmsXDataTable("getSelections");
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要审核的信息。");
- return;
- }
- var Status = [];
- for (var i = 0; i < selected.length; i++) {
- // if (selected[i].ApprovalStatus != 4 && selected[i].ApprovalStatus != 6) {
- // $.messager.alert("系统提示", "只能审核待处理的奖励信息!");
- // return;
- // }
- Status.push(selected[i].ApprovalStatus);
- }
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/ScoreAudit/ApprovalStatus', { ApprovalStatus: Status.join(',') }, function (data) {
- if (data == "成功") {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/ScoreAudit/ApprovalHandle?MNU=" + mnu + "&finalExaminationIDs=" + d;
- $.popupTopWindow('审核信息', redirectTo, 400, 200, null, d);
- } else {
- $.messager.alert("系统提示", data);
- }
- });
-
- }
- function ScoreAudit_Exce() {
- $("#formQuery").submit();
- }
- function GZMSScore_Report() {
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要打印成绩单的录入信息。");
- return;
- }
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/Score/StudentResult', { finalExaminationIDList: d }, function (data) {
- if (data.IsSuccess) {
- var redirectTo = "../../Scripts/pdf.js/web/viewer.html?file=" + data.Message;
- $.popupTopWindow('成绩单', redirectTo, 850, 480, reload);
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
|