1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function StudentCountRate_Add() {
- $.popupTopWindow('人数系数', CMS_SystemConfig.VirtualDirectoryPath + '/StudentCountRate/Edit?MNU=' + mnu, 600, 210);
- }
- function StudentCountRate_Update() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统信息", "请选择您要修改的人数系数。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统信息", "只能选择单个记录进行修改。");
- return;
- }
- $.popupTopWindow('考试时间', CMS_SystemConfig.VirtualDirectoryPath + '/StudentCountRate/Edit?MNU=' + mnu + "&StudentCountRateID=" + d[0], 600, 210);
- }
- function StudentCountRate_CommonSave() {
- $("#fmCommonStudentCount").submit();
- }
- //删除
- function StudentCountRate_Delete() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要删除的人数系数。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除该人数系数?", function (r) {
- if (r) {
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/StudentCountRate/Delete', { studentCountRateIDs: d.join(',') }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", "删除成功!");
- $("#dgStudentCountRateList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- });
- }
- function reload() {
- $("#dgStudentCountRateList").cmsXDataTable("load", $.getDataGridParams("dgStudentCountRateList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgStudentCountRateList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.StudentCountRateID);
- });
- return d;
- }
|