WorktimeAdjustmentEdit.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. $.parser.onComplete = function (context) {
  2. queryStandard();
  3. };
  4. function WorktimeAdjustment_Save() {
  5. $(document.forms[0]).submit();
  6. }
  7. function queryStandard() {
  8. try {
  9. var collegeID = $("#CollegeID").combobox("getValue");
  10. var gradeyearID = $("#GradeYearID").combobox("getValue");
  11. var jsonString = "({'QueryParamsDatas':'";
  12. if (gradeyearID != null) {
  13. if (gradeyearID != nonSelect) {
  14. jsonString += "DictionaryGrade|*|" + gradeyearID + "|@|";
  15. }
  16. }
  17. if (collegeID != null) {
  18. if (collegeID != nonSelect) {
  19. jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
  20. }
  21. }
  22. jsonString += "'})";
  23. $("#StandardID").combogridX("reload", eval(jsonString));
  24. } catch (e) {
  25. }
  26. }
  27. function queryCourse() {
  28. $("#CoursematerialID").combogridX("reload");
  29. }
  30. function adjustDateChanged() {
  31. try {
  32. var schoolyearID = $("#SchoolyearID").combobox("getValue");
  33. var userID = $("#UserID").combogridX("getValue");
  34. var adjustDate = $dp.cal.getNewDateStr();
  35. var collegeID = $("#CollegeID").combobox("getValue");
  36. var gradeyearID = $("#GradeYearID").combobox("getValue");
  37. var standardID = $("#StandardID").combogridX("getValue");
  38. var coursematerialID = $("#CoursematerialID").combogridX("getValue");
  39. var jsonString = "({'QueryParamsDatas':'";
  40. if (schoolyearID != nonSelect) {
  41. jsonString += "SchoolyearID|*|" + schoolyearID + "|@|";
  42. }
  43. if (userID != nonSelect) {
  44. jsonString += "UserID|*|" + userID + "|@|";
  45. }
  46. if (adjustDate != nonSelect) {
  47. jsonString += "AdjustDate|*|" + adjustDate + "|@|";
  48. }
  49. if (collegeID != nonSelect) {
  50. jsonString += "CollegeID|*|" + collegeID + "|@|";
  51. }
  52. if (gradeyearID != nonSelect) {
  53. jsonString += "GradeYearID|*|" + gradeyearID + "|@|";
  54. }
  55. if (standardID != nonSelect) {
  56. jsonString += "StandardID|*|" + standardID + "|@|";
  57. }
  58. if (coursematerialID != nonSelect) {
  59. jsonString += "CoursematerialID|*|" + coursematerialID + "|@|";
  60. }
  61. jsonString += "'})";
  62. $("#EducationMissionClassID").combogridX("reload", eval(jsonString));
  63. } catch (e) {
  64. }
  65. }
  66. function queryMissionClass() {
  67. try {
  68. var schoolyearID = $("#SchoolyearID").combobox("getValue");
  69. var userID = $("#UserID").combogridX("getValue");
  70. var adjustDate = $("#AdjustDate").val();
  71. var collegeID = $("#CollegeID").combobox("getValue");
  72. var gradeyearID = $("#GradeYearID").combobox("getValue");
  73. var standardID = $("#StandardID").combogridX("getValue");
  74. var coursematerialID = $("#CoursematerialID").combogridX("getValue");
  75. var jsonString = "({'QueryParamsDatas':'";
  76. if (schoolyearID != nonSelect) {
  77. jsonString += "SchoolyearID|*|" + schoolyearID + "|@|";
  78. }
  79. if (userID != nonSelect) {
  80. jsonString += "UserID|*|" + userID + "|@|";
  81. }
  82. if (adjustDate != nonSelect) {
  83. jsonString += "AdjustDate|*|" + adjustDate + "|@|";
  84. }
  85. if (collegeID != nonSelect) {
  86. jsonString += "CollegeID|*|" + collegeID + "|@|";
  87. }
  88. if (gradeyearID != nonSelect) {
  89. jsonString += "GradeYearID|*|" + gradeyearID + "|@|";
  90. }
  91. if (standardID != nonSelect) {
  92. jsonString += "StandardID|*|" + standardID + "|@|";
  93. }
  94. if (coursematerialID != nonSelect) {
  95. jsonString += "CoursematerialID|*|" + coursematerialID + "|@|";
  96. }
  97. jsonString += "'})";
  98. $("#EducationMissionClassID").combogridX("reload", eval(jsonString));
  99. } catch (e) {
  100. }
  101. }