MinorGraduationCondition.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. var url = CMS_SystemConfig.VirtualDirectoryPath + "/MinorGraduationCondition/Edit";
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. })
  7. function reload() {
  8. $("#dgMinorGraduationConditionList").cmsXDataTable("load", $.getDataGridParams("dgMinorGraduationConditionList"));
  9. }
  10. //获取选中的数据
  11. function validChoose() {
  12. var d = [];
  13. $.each($("#dgMinorGraduationConditionList").cmsXDataTable("getSelections"), function (index) {
  14. d.push(this.MinorGraduationConditionID);
  15. });
  16. return d;
  17. }
  18. //修改按钮
  19. function MinorGraduationCondition_Update() {
  20. var d = validChoose();
  21. if (d == "") {
  22. $.messager.alert("系统提示", "请选择您要修改的信息。");
  23. return;
  24. }
  25. if (d.length > 1) {
  26. $.messager.alert("系统提示", "只能选择单个记录进行修改。");
  27. return;
  28. }
  29. var redirectTo = url + "?minorGraduationConditionID=" + d + "&MNU=" + mnu;
  30. $.popupTopWindow('辅修毕业条件修改', redirectTo, 650, 254, null, null);
  31. }
  32. //Excel导出
  33. function MinorGraduationCondition_Export() {
  34. var d = validChoose().join(',');
  35. $("[name='SelectedID']").val(d);
  36. $("#formQuery").submit();
  37. }