var mnu = ""; //加载 $(function () { mnu = $.SystemGeneral.getUrlParam("MNU"); }); function validChoose() { var d = []; $.each($("#dgSOCStudentList").cmsXDataTable("getSelections"), function (index) { d.push(this); }); return d; } function reload() { $("#dgSOCStudentList").cmsXDataTable("load", $.getDataGridParams("dgSOCStudentList")); } function queryCourse() { try { var schoolyearID = $("#ddlSchoolyear").combobox("getValue"); var jsonString = "({'QueryParamsDatas':'"; if (schoolyearID != nonSelect) { jsonString += "Schoolyear|*|" + schoolyearID + "|@|"; } jsonString += "'})"; $("#cgbCourse").combogridX("reload", eval(jsonString)); } catch (e) { } } function remark(rowIndex, rowValue) { var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/Remark?MNU=' + mnu; $.popupTopWindow('修改意见', redirectTo, 500, 350, null, rowValue.Remark); } function SOCStudent_Submit() { var data = $.map(validChoose(), function (x) { return { SOCDetailID: x.SOCDetailID, SOCDetailGroupID: x.SOCDetailGroupID } }); var dataString = JSON.stringify(data); $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/StudentSubmit', { socDetailSubmitViews: dataString }, function (data) { $.messager.alert("系统提示", data.Message); if (data.IsSuccess == true) { $("#dgSOCStudentList").cmsXDataTable('load'); } }); } function upload(rowIndex, rowData) { $.popupTopWindow('成果管理', CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetailScore/StudentAttachmentList?MNU=' + mnu + '&socDetailID=' + rowData.SOCDetailID + '&socDetailGroupID=' + rowData.SOCDetailGroupID, 480, 320); } function showDetail(rowIndex, rowData) { $.popupTopWindow('成果详情', CMS_SystemConfig.VirtualDirectoryPath + '/SOC/StudentSOCDetail?MNU=' + mnu + '&socDetailID=' + rowData.SOCDetailID, 800, 600); }