123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgSOCDetailGroupScoreList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- //获取选中的数据
- function validChooseID() {
- var d = [];
- $.each($("#dgSOCDetailGroupScoreList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.SOCDetailGroupID);
- });
- return d;
- }
- function SOCDetailGroupScore_Excel() {
- $("[name='SOCDetailID']").val(socDetailID);
- var d = validChooseID().join(',');
- if (d != "") {
- $("[name='SelectIDs']").val(d);
- }
- $(document.forms[0]).submit();
- }
- function SOCDetailGroupScore_Save() {
- //$(document.forms[1]).attr("action", CMS_SystemConfig.VirtualDirectoryPath + "/SOCDetailScore/GroupSave");
- //$(document.forms[1]).submit();
- }
- function SOCDetailGroupScore_Download() {
- var d = validChooseID().join(',');
- document.getElementById("IDs").value = d;
- document.getElementById("isGroupList").value = 1;
- $("#formQuery").attr("action", CMS_SystemConfig.VirtualDirectoryPath + "/SOCDetailScore/Download");
- $(document.forms[0]).submit();
- }
- function setScore(rowIndex, rowValue) {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/GroupScore?socDetailGroupID=' + rowValue.SOCDetailGroupID + '&MNU=' + mnu;
- $.popupTopWindow('评分', redirectTo, 500, 350, null, null);
- }
- function SOCDetailGroupScore_Cancel() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择要退回的记录。");
- return;
- }
- var noValueList = $.grep(d, function (x) { return !x.SOCDetailGroupID });
- 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 socDetailGroupIDList = $.map(d, function (x) { return x.SOCDetailGroupID; }).join(',');
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/GroupCancel?socDetailGroupIDs=' + socDetailGroupIDList + '&MNU=' + mnu;
- $.popupTopWindow('退回', redirectTo, 400, 300, null, reload);
- // $.messager.confirm("系统提示", "您确定要退回这些分组的成果上传?", function (r) {
- // if (r) {
- // $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/GroupCancel', { socDetailGroupIDs: $.map(d, function (x) { return x.SOCDetailGroupID; }).join(',') }, function (data) {
- // $.messager.alert("系统提示", data.Message);
- // if (data.IsSuccess) {
- // reload();
- // }
- // });
- // }
- // });
- }
- function reload() {
- $("#dgSOCDetailGroupScoreList").cmsXDataTable("load", $.getDataGridParams("dgSOCDetailGroupScoreList"));
- }
- function remark(rowIndex, rowValue) {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/Remark?MNU=' + mnu;
- $.popupTopWindow('修改意见', redirectTo, 500, 350, null, rowValue.Remark);
- }
- 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/GroupAttachmentList?detailID=' + rowValue.SOCDetailID + '&socDetailGroupID=' + rowValue.SOCDetailGroupID + '&MNU=' + mnu;
- $.popupTopWindow('成果列表', redirectTo, 500, 350, null, null);
- }
- function showStudent(rowIndex, rowValue) {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/GroupStudentList?socDetailGroupID=' + rowValue.SOCDetailGroupID + '&MNU=' + mnu;
- $.popupTopWindow('学生列表', redirectTo, 500, 350, null, null);
- }
- function SOCDetailGroupScore_Send() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择要发送信息的记录。");
- return;
- }
- var socDetailGroupIDList = $.map(d, function (x) { return x.SOCDetailGroupID; }).join(',');
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailGroup/SendMessage?socDetailGroupIDs=' + socDetailGroupIDList + '&MNU=' + mnu;
- $.popupTopWindow('发送信息', redirectTo, 800, 800, null, null);
- }
|