12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/ClassGrouping/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //新增
- function ClassGrouping_Add() {
- var redirectTo = url + "?MNU=" + mnu;
- $.popupTopWindow('上课类型设置新增', redirectTo, 800, 450, null, null);
- }
- function reload() {
- $("#dgClassGroupingList").cmsXDataTable("load", $.getDataGridParams("dgClassGroupingList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgClassGroupingList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.ClassGroupingID);
- });
- return d;
- }
- //点击列表更新
- function edit(rowindex, rowdata) {
- var redirectTo = url + "?classGroupingID=" + rowdata.ClassGroupingID + "&MNU=" + mnu + '&isView=1';
- $.popupTopWindow('上课类型设置详情', redirectTo, 800, 450, null, null);
- }
- //修改按钮
- function ClassGrouping_Update() {
- var d = validChoose();
- if (d == "") {
- $.messager.alert("系统信息", "请选择您要修改的分班设置信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统信息", "只能选择单个记录进行修改。");
- return;
- }
- var redirectTo = url + "?classGroupingID=" + d + "&MNU=" + mnu;
- $.popupTopWindow('上课类型设置修改', redirectTo, 800, 450, null, null);
- }
- //删除
- function ClassGrouping_Delete() {
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统信息", "请选择您要删除的上课类型设置信息!!");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除该上课类型设置信息?", function (r) {
- if (r) {
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/ClassGrouping/Delete', { ClassGroupingIDs: d }, function (data) {
- if (data == "删除成功") {
- $.messager.alert("系统提示", "删除成功!");
- $("#dgClassGroupingList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- });
- }
- function ClassGrouping_Export() {
- $("#formQuery").submit();
- }
- 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 + "");
- reload();
- }
- function QueryDepartmentDropdownList(data) {
- reload();
- }
- function QueryCourseScienceDropdownList(data) {
- reload();
- }
- function QueryCourseLevelDropdownList(data) {
- reload();
- }
- function QueryIsEnableDropdownList(data) {
- reload();
- }
|