GrademajorEdit.js 760 B

123456789101112131415161718192021
  1. //保存
  2. function Grademajor_Save() {
  3. $(document.forms[0]).submit();
  4. }
  5. //联动
  6. function queryFacultymajor(data) {
  7. var facultymajorID = $("#FacultymajorID").combogridX("getValue");
  8. if (facultymajorID == "" || facultymajorID == "-1" || facultymajorID == null) {
  9. $("#EducationID").combogridX("setValue", "-1");
  10. $("#LearningformID").combogridX("setValue", "-1");
  11. $("#LearnSystem").val("");
  12. $("#CollegeID").combogridX("setValue", "-1");
  13. }
  14. else {
  15. $("#EducationID").combogridX("setValue", data.EducationID);
  16. $("#LearningformID").combogridX("setValue", data.LearningformID);
  17. $("#LearnSystem").val(data.LearnSystem);
  18. $("#CollegeID").combogridX("setValue", data.CollegeID);
  19. }
  20. }