12345678910111213141516171819202122232425262728293031323334353637 |
- //保存
- function Classroom_Save() {
- if ($("input[name='ClassroomTypeIDList']:checked").length == 0) {
- $.messager.alert("系统提示", "请选择至少一种教室类型。");
- return;
- }
- //总座位数
- var totalseating = $("#Totalseating").val();
- //有效座位数
- var effectiveseating = $("#Effectiveseating").val();
- //考试座位数
- var examinationseating = $("#Examinationseating").val();
- if (totalseating != "" && totalseating != null) {
- if (effectiveseating != "" && effectiveseating != null) {
- if (parseInt(effectiveseating) > parseInt(totalseating)) {
- $.messager.alert("系统提示", "有效座位数不能大于总座位数。");
- return;
- }
- }
- if (effectiveseating != "" && effectiveseating != null) {
- if (parseInt(examinationseating) > parseInt(totalseating)) {
- $.messager.alert("系统提示", "考试座位数不能大于总座位数。");
- return;
- }
- }
- }
- $(document.forms[0]).submit();
- }
- //联动
- function queryBuildings() {
- //暂时不考虑联动
- }
- function queryCollege() {
- //暂时不考虑联动
- }
|