ClassroomEidt.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //保存
  2. function Classroom_Save() {
  3. if ($("input[name='ClassroomTypeIDList']:checked").length == 0) {
  4. $.messager.alert("系统提示", "请选择至少一种教室类型。");
  5. return;
  6. }
  7. //总座位数
  8. var totalseating = $("#Totalseating").val();
  9. //有效座位数
  10. var effectiveseating = $("#Effectiveseating").val();
  11. //考试座位数
  12. var examinationseating = $("#Examinationseating").val();
  13. if (totalseating != "" && totalseating != null) {
  14. if (effectiveseating != "" && effectiveseating != null) {
  15. if (parseInt(effectiveseating) > parseInt(totalseating)) {
  16. $.messager.alert("系统提示", "有效座位数不能大于总座位数。");
  17. return;
  18. }
  19. }
  20. if (effectiveseating != "" && effectiveseating != null) {
  21. if (parseInt(examinationseating) > parseInt(totalseating)) {
  22. $.messager.alert("系统提示", "考试座位数不能大于总座位数。");
  23. return;
  24. }
  25. }
  26. }
  27. $(document.forms[0]).submit();
  28. }
  29. //联动
  30. function queryBuildings() {
  31. //暂时不考虑联动
  32. }
  33. function queryCollege() {
  34. //暂时不考虑联动
  35. }