123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgSOCDetailStudentScoreList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- //获取选中的数据
- function validChooseID() {
- var d = [];
- $.each($("#dgSOCDetailStudentScoreList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.UserID);
- });
- return d;
- }
- function SOCDetailStudentScore_Excel() {
- $("[name='SOCDetailID']").val(socDetailID);
- var d = validChooseID().join(',');
- if (d != "") {
- $("[name='SelectIDs']").val(d);
- }
- //("#SOCDetailID").val(socDetailID);
- $(document.forms[0]).submit();
- }
- function SOCDetailStudentScore_Download() {
- var d = validChooseID().join(',');
- document.getElementById("isGroupList").value = 0;
- document.getElementById("IDs").value = d;
- $("#formQuery").attr("action", CMS_SystemConfig.VirtualDirectoryPath + "/SOCDetailScore/Download");
- $(document.forms[0]).submit();
- }
- function SOCDetailStudentScore_Save() {
- $(document.forms[1]).submit();
- }
- function SOCDetailStudentScore_Cancel() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择要退回的记录。");
- return;
- }
- var noValueList = $.grep(d, function (x) { return !x.SOCDetailStudentID });
- if (noValueList.length > 0) {
- $.messager.alert("系统提示", "只能退回已提交的记录。");
- return;
- }
- var errorStatusList = $.grep(d, function (x) { return (x.RecordStatus == startStatusID || x.RecordStatus == cancelStatusID); });
- if (errorStatusList.length > 0) {
- $.messager.alert("系统提示", "只能退回已提交的记录。");
- return;
- }
- var socDetailStudentIDList = $.map(d, function (x) { return x.SOCDetailStudentID; }).join(',');
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/StudentCancel?socDetailStudentIDs=' + socDetailStudentIDList + '&MNU=' + mnu;
- $.popupTopWindow('退回', redirectTo, 400, 300, null, reload);
- // $.messager.confirm("系统提示", "您确定要退回这些学生的成果上传?", function (r) {
- // if (r) {
- // $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/StudentCancel', { socDetailStudentIDs: $.map(d, function (x) { return x.SOCDetailStudentID; }).join(',') }, function (data) {
- // $.messager.alert("系统提示", data.Message);
- // if (data.IsSuccess) {
- // reload();
- // }
- // });
- // }
- // });
- }
- function reload() {
- $("#dgSOCDetailStudentScoreList").cmsXDataTable("load", $.getDataGridParams("dgSOCDetailStudentScoreList"));
- }
- function queryCourse() {
- try {
- var schoolyearID = $("#ddlSchoolyear").combobox("getValue");
- var jsonString = "({'QueryParamsDatas':'";
- if (schoolyearID != "" && schoolyearID != nonSelect) {
- jsonString += "Schoolyear|*|" + schoolyearID + "|@|";
- }
- jsonString += "'})";
- $("#cgbCourse").combogridX("reload", eval(jsonString));
- } catch (e) {
- }
- }
- function queryStandard() {
- try {
- var collegeID = $("#cgbCollege").combogridX("getValue");
- var yearID = $("#ddlYear").combobox("getValue");
- var jsonString = "({'QueryParamsDatas':'";
- if (collegeID != "" && collegeID != nonSelect) {
- jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
- }
- if (yearID != nonSelect) {
- jsonString += "DictionaryGrade|*|" + yearID + "|@|";
- }
- jsonString += "'})";
- $("#cbgStandard").combogridX("reload", eval(jsonString));
- } catch (e) {
- }
- }
- function queryClass() {
- try {
- var collegeID = $("#cgbCollege").combogridX("getValue");
- var yearID = $("#ddlYear").combobox("getValue");
- var standardID = $("#cbgStandard").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':'";
- if (collegeID != "" && collegeID != nonSelect) {
- jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
- }
- if (yearID != nonSelect) {
- jsonString += "DictionaryGrade|*|" + yearID + "|@|";
- }
- if (standardID != "" && standardID != nonSelect) {
- jsonString += "DictionaryStandard|*|" + standardID + "|@|";
- }
- jsonString += "'})";
- $("#cbgClassmajor").combogridX("reload", eval(jsonString));
- } catch (e) {
- }
- }
- function showAttachment(rowIndex, rowValue) {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/AttachmentList?detailID=' + rowValue.SOCDetailID + '&userID=' + rowValue.UserID + '&MNU=' + mnu;
- $.popupTopWindow('成果列表', redirectTo, 500, 350, null, null);
- }
- function remark(rowIndex, rowValue) {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/Remark?MNU=' + mnu;
- $.popupTopWindow('修改意见', redirectTo, 500, 350, null, rowValue.Remark);
- }
- function SOCDetailStudentScore_Send() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择要发送信息的记录。");
- return;
- }
- var userIDList = $.map(d, function (x) { return x.UserID; }).join(',');
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/SendMessage?studentUserIDLists=' + userIDList + '&MNU=' + mnu;
- $.popupTopWindow('发送信息', redirectTo, 800, 800, null, null);
- }
|