function reload() { $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList")); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgStudentList").cmsXDataTable("getSelections"), function (index) { d.push(this); }); return d; } 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(); } function QueryPhotoUrltmentDropdownList(data) { reload(); } function QuerygraduationtmentDropdownList(date) { reload(); } function queryCollege(data) { $("#CollegeDropdown").combobox("reload", CMS_SystemConfig.VirtualDirectoryPath + "/College/CollegeDropdownListBanid?campusID=" + data.Value + ""); reload(); } function queryClass(data) { if (((data.length && data.length > 0) || data) && $("#CampusDropdown").length > 0 && $.data($("#CampusDropdown")[0], "combobox") && $("#CollegeDropdown").length > 0 && $.data($("#CollegeDropdown")[0], "combobox") && $("#Education").length > 0 && $.data($("#Education")[0], "combobox") && $("#SchoolYear").length > 0 && $.data($("#SchoolYear")[0], "combobox") && $("#Standard").length > 0 && $.data($("#Standard")[0], "combobox") && $("#Learningform").length > 0 && $.data($("#Learningform")[0], "combobox")) { var url = CMS_SystemConfig.VirtualDirectoryPath + "/Classmajor/BindDropdownList?bindType=1"; var campusID = $("#CampusDropdown").combobox("getValue"); var collegeID = $("#CollegeDropdown").combobox("getValue"); var educationID = $("#Education").combobox("getValue"); var schoolYearID = $("#SchoolYear").combobox("getValue"); var standardID = $("#Standard").combobox("getValue"); var learningFormID = $("#Learningform").combobox("getValue"); if (campusID != nonSelect) url += "&campusID=" + campusID; if (collegeID != nonSelect) url += "&collegeID=" + collegeID; if (educationID != nonSelect) url += "&educationID=" + educationID; if (schoolYearID != nonSelect) url += "&schoolYear=" + schoolYearID; if (standardID != nonSelect) url += "&standardID=" + standardID; if (learningFormID != nonSelect) url += "&learningFormID=" + learningFormID; $("#ClassmajorDropdown").combobox("reload", url); reload(); } }