SupervisionUserList.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. var url = CMS_SystemConfig.VirtualDirectoryPath + "/SupervisionUser/Edit";
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. })
  7. function reload() {
  8. $("#dgSupervisionUserList").cmsXDataTable("load", $.getDataGridParams("dgSupervisionUserList"));
  9. }
  10. function SupervisionUser_Add() {
  11. var redirectTo = url + "?MNU=" + mnu;
  12. $.popupTopWindow('督导组成员新增', redirectTo, 400, 300, null, null);
  13. }
  14. function validChoose() {
  15. var d = [];
  16. $.each($("#dgSupervisionUserList").cmsXDataTable("getSelections"), function (index) {
  17. d.push(this.SupervisionUserID);
  18. });
  19. return d;
  20. }
  21. function SupervisionUser_Delete() {
  22. var d = validChoose().join(',');
  23. if (d == "") {
  24. $.messager.alert("系统提示", "请选择您要删除的信息。");
  25. return;
  26. }
  27. $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) {
  28. if (r) {
  29. $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/SupervisionUser/Delete', { supervisionUserIDs: d }, function (data) {
  30. if (data.IsSuccess) {
  31. $.messager.alert("系统提示", "删除成功!");
  32. $("#dgSupervisionUserList").cmsXDataTable('load');
  33. } else {
  34. $.messager.alert("系统提示", data.Message);
  35. }
  36. });
  37. }
  38. });
  39. }