1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //刷新
- function reload() {
- $("#dgSpecialtyNoAddList").cmsXDataTable("load", $.getDataGridParams("dgSpecialtyNoAddList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgSpecialtyNoAddList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.SpecialtyID);
- });
- return d;
- }
- //确定生成成功后不关闭弹出页面
- function formSuccessReloadNoClose(data) {
- if (data.IsSuccess == true) {
- reload();
- }
- $.messager.alert("系统提示", data.Message);
- }
- //确定
- function RecruitSpecialtyBatchAdd_Confirm() {
- var semesterID = $("#SemesterID").combogridX("getValue");
- if (semesterID == "" || semesterID == "-1" || semesterID == null) {
- $.messager.alert("系统提示", "请选择要新增的学期。");
- return;
- }
- var gradeID = $("#GradeID").combogridX("getValue");
- if (gradeID == "" || gradeID == "-1" || gradeID == null) {
- $.messager.alert("系统提示", "请选择要新增的年级。");
- return;
- }
- var collegeID = $("#CollegeID").combogridX("getValue");
- if (collegeID == "" || collegeID == "-1" || collegeID == null) {
- $.messager.alert("系统提示", "请选择要新增的" + college + "。");
- return;
- }
- var d = validChoose();
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要新增的专业信息。");
- return;
- }
- $("#specialtyIDs").val(JSON.stringify(d));
- $(document.forms[0]).submit();
- }
- //联动
- function queryCollege(data) {
- reload();
- }
|