function ExaminationTeacher_Export() { $(document.forms[0]).submit(); } var mnu = ""; //加载 $(function () { mnu = $.SystemGeneral.getUrlParam("MNU"); }) function ExaminationTeacher_Add() { $.popupTopWindow('监考员信息', CMS_SystemConfig.VirtualDirectoryPath + '/Common/TeacherSelect?FromMNU=' + mnu, 900, 500, TeacherSelect_Close, null); } function TeacherSelect_Close(teacherList) { if (!teacherList) return; $.post(CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationTeacher/Add', { userIDs: $.map(teacherList, function (x) { return x.UserID; }).join(',') }, function (data) { if (data == "添加成功") { $.messager.alert("系统提示", "添加成功!"); $("#dgExaminationTeacherList").cmsXDataTable('load'); } else { $.messager.alert("系统提示", data); } }); } function reload() { $("#dgExaminationTeacherList").cmsXDataTable("load", $.getDataGridParams("dgExaminationTeacherList")); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgExaminationTeacherList").cmsXDataTable("getSelections"), function (index) { d.push(this.UserID); }); return d; } //删除 function ExaminationTeacher_Delete() { var d = validChoose().join(','); if (d == "") { $.messager.alert("系统提示", "请选择您要删除的监考员。"); return; } $.messager.confirm("系统提示", "您确定要删除该监考员?", function (r) { if (r) { $.post(CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationTeacher/Delete', { userIDs: d }, function (data) { if (data == "删除成功") { $.messager.alert("系统提示", "删除成功!"); $("#dgExaminationTeacherList").cmsXDataTable('load'); } else { $.messager.alert("系统提示", data); } }); } }); } function QueryCampusDropdownList(data) { $("#CollegeDropdown").combobox("reload", CMS_SystemConfig.VirtualDirectoryPath + "/College/CollegeDropdownListBanid?campusID=" + data.Value + ""); reload(); } function QueryCollegeDropdownList(data) { $("#DepartmentDropdown").combobox("reload", CMS_SystemConfig.VirtualDirectoryPath + "/Department/DepartmentDropdownListBanid?collegeID=" + data.Value + ""); reload(); } function QueryDepartmentDropdownList(data) { reload(); } function QueryPhotoUrltmentDropdownList(data) { reload(); }