DegreeCondition.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. var url = CMS_SystemConfig.VirtualDirectoryPath + "/DegreeCondition/Edit";
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. })
  7. function reload() {
  8. $("#dgDegreeConditionList").cmsXDataTable("load", $.getDataGridParams("dgDegreeConditionList"));
  9. }
  10. //获取选中的数据
  11. function validChoose() {
  12. var d = [];
  13. $.each($("#dgDegreeConditionList").cmsXDataTable("getSelections"), function (index) {
  14. d.push(this.DegreeConditionID);
  15. });
  16. return d;
  17. }
  18. //修改
  19. function DegreeCondition_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 + "?DegreeConditionID=" + d + "&MNU=" + mnu;
  30. $.popupTopWindow('学位条件修改', redirectTo, 650, 254, null, null);
  31. }
  32. //Excel导出
  33. function DegreeCondition_Export() {
  34. $("#formQuery").submit();
  35. }