1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //刷新
- function reload() {
- $("#dgSpecialtyNoApplyList").cmsXDataTable("load", $.getDataGridParams("dgSpecialtyNoApplyList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgSpecialtyNoApplyList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.SpecialtyID);
- });
- return d;
- }
- //确定生成成功后不关闭弹出页面
- function formSuccessReloadNoClose(data) {
- if (data.IsSuccess == true) {
- reload();
- }
- $.messager.alert("系统提示", data.Message);
- }
- //确定
- function SpecialtyApplyBatchAdd_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();
- }
|