1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //刷新
- function reload() {
- $("#dgCourseNoClubList").cmsXDataTable("load", $.getDataGridParams("dgCourseNoClubList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgCourseNoClubList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- //设置列颜色为红色
- function SetRedColumn(index, row, value) {
- return " <span style=\"color: red;\">" + value + "</span>";
- }
- //设置相应的行颜色为红色
- function SetRedGrid(rowIndex, rowData) {
- if (rowData.IsEnable != true) {
- return "color: red;";
- } else {
- return "";
- }
- }
- //确定生成成功后不关闭弹出页面
- function formSuccessReloadNoClose(data) {
- if (data.IsSuccess == true) {
- reload();
- }
- $.messager.alert("系统提示", data.Message);
- }
- //确定
- function ClubCourse_BatchAddConfirm() {
- var d = validChoose();
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要新增的信息。");
- return;
- }
- $("#CourseNoClubList").val(JSON.stringify(d));
- $(document.forms[0]).submit();
- }
|