var windowID; //加载 $(function () { windowID = $.SystemGeneral.getUrlParam("WindowID"); }) function Student_Synchr() { var selectedColumns = ""; $("[name='SynchColumn']:checked").each(function(){ if (selectedColumns != "") { selectedColumns += ","; } selectedColumns += $(this).val(); }); if (selectedColumns == "") { $.messager.alert("系统提示", "请选择需要同步的项。"); return; } var collegeID = $("#ddlCollege").combobox('getValue'); var year = $("#ddlYear").combobox('getValue'); var schoolAreaID = $("#ddlSchoolArea").combobox('getValue'); if (collegeID == nonSelect) { collegeID = null; } if (year == nonSelect) { year = null; } if (schoolAreaID == nonSelect) { schoolAreaID = null; } $.messager.confirm("系统提示", "您确定要从数据中心同步学籍信息?", function (r) { if (r) { $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/Students/Synchr', { collegeID: collegeID, year: year, schoolAreaID: schoolAreaID, selectedColumns: selectedColumns }, function (ret) { $.messager.alert("系统提示", ret.Message); if (ret.IsSuccess) { top.$("#" + windowID).data("resultData", true); top.$("#" + windowID).dialog("close"); } }); } }); }