123456789101112131415161718192021222324252627282930313233343536373839 |
- function reload() {
- $("#dgSpecialtyList").cmsXDataTable("load", $.getDataGridParams("dgSpecialtyList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgSpecialtyList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- function QueryStandardDropdownList(data) {
- reload();
- }
- function QueryEducationDropdownList(data) {
- reload();
- }
- function QueryLearningformDropdownList(data) {
- reload();
- }
- function Specialty_Confirm() {
- var d = validChoose();
- var windowID = $.SystemGeneral.getUrlParam("WindowID");
- var maxSelect = $.SystemGeneral.getUrlParam("MaxSelect");
- if (!maxSelect || isNaN(maxSelect)) maxSelect = 0;
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择专业。");
- return;
- }
- if (maxSelect > 0 && d.length > maxSelect) {
- $.messager.alert("系统提示", "只能选择" + maxSelect + "项记录。");
- return;
- }
- top.$("#" + windowID).data("resultData", d);
- top.$("#" + windowID).dialog("close");
- }
|