12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/SupervisionUser/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function reload() {
- $("#dgSupervisionUserList").cmsXDataTable("load", $.getDataGridParams("dgSupervisionUserList"));
- }
- function SupervisionUser_Add() {
- var redirectTo = url + "?MNU=" + mnu;
- $.popupTopWindow('督导组成员新增', redirectTo, 400, 300, null, null);
- }
- function validChoose() {
- var d = [];
- $.each($("#dgSupervisionUserList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.SupervisionUserID);
- });
- return d;
- }
- function SupervisionUser_Delete() {
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要删除的信息。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/SupervisionUser/Delete', { supervisionUserIDs: d }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", "删除成功!");
- $("#dgSupervisionUserList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- });
- }
|