WorktimeAdditionEdit.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. function WorktimeAddition_Save() {
  2. $(document.forms[0]).submit();
  3. }
  4. function queryUser() {
  5. try {
  6. var collegeID = $("#CollegeID").combogridX("getValue");
  7. var jsonString = "({'QueryParamsDatas':'";
  8. if (collegeID != nonSelect) {
  9. jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
  10. }
  11. jsonString += "'})";
  12. $("#UserID").combogridX("reload", eval(jsonString));
  13. } catch (e) {
  14. }
  15. }
  16. function queryStandard() {
  17. try {
  18. var jsonString = "({'QueryParamsDatas':'";
  19. var collegeID = $("#StudentCollegeID").combogridX("getValue");
  20. var yearID = $("#GradeYearID").combobox("getValue");
  21. if (collegeID != nonSelect) {
  22. jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
  23. }
  24. if (yearID != nonSelect) {
  25. jsonString += "DictionaryGrade|*|" + yearID + "|@|";
  26. }
  27. jsonString += "'})";
  28. $("#StandardID").combogridX("reload", eval(jsonString));
  29. reload();
  30. } catch (e) {
  31. }
  32. }
  33. function queryGrademajor() {
  34. try {
  35. var jsonString = "({'QueryParamsDatas':'";
  36. var collegeID = $("#StudentCollegeID").combogridX("getValue");
  37. var yearID = $("#GradeYearID").combobox("getValue");
  38. var standardID = $("#StandardID").combogridX("getValue");
  39. if (collegeID != nonSelect) {
  40. jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
  41. }
  42. if (yearID != nonSelect) {
  43. jsonString += "DictionaryGrade|*|" + yearID + "|@|";
  44. }
  45. if (standardID != nonSelect) {
  46. jsonString += "DictionaryStandard|*|" + standardID + "|@|";
  47. }
  48. jsonString += "'})";
  49. $("#GrademajorID").combogridX("reload", eval(jsonString));
  50. reload();
  51. } catch (e) {
  52. }
  53. }