SpecialtyClassSettingBatchAdd.js 844 B

123456789101112131415161718192021222324252627282930313233
  1. //刷新
  2. function reload() {
  3. $("#dgSpecialtyNoAddList").cmsXDataTable("load", $.getDataGridParams("dgSpecialtyNoAddList"));
  4. }
  5. //获取选中的数据
  6. function validChoose() {
  7. var d = [];
  8. $.each($("#dgSpecialtyNoAddList").cmsXDataTable("getSelections"), function (index) {
  9. d.push(this.SpecialtyID);
  10. });
  11. return d;
  12. }
  13. //确定生成成功后不关闭弹出页面
  14. function formSuccessReloadNoClose(data) {
  15. if (data.IsSuccess == true) {
  16. reload();
  17. }
  18. $.messager.alert("系统提示", data.Message);
  19. }
  20. //确定
  21. function SpecialtyClassSettingBatchAdd_Confirm() {
  22. var d = validChoose();
  23. if (d == "") {
  24. $.messager.alert("系统提示", "请选择您要新增的专业信息。");
  25. return;
  26. }
  27. $("#specialtyIDs").val(JSON.stringify(d));
  28. $(document.forms[0]).submit();
  29. }