ProjectScoreGen.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. $(function () {
  2. mnu = $.SystemGeneral.getUrlParam("MNU");
  3. })
  4. function schoolyearChange() {
  5. try {
  6. var examinationBatchUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationBatch/DropDownList?bindType=0';
  7. var schoolyearID = $("#SchoolyearID").combobox('getValue');
  8. if (schoolyearID != nonSelect) {
  9. examinationBatchUrl += "&schoolyearID=" + schoolyearID;
  10. }
  11. $("#ExaminationBatchID").combobox('reload', examinationBatchUrl);
  12. } catch (e) {
  13. }
  14. }
  15. function examinationBatchChange() {
  16. try {
  17. var examinationTypeUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExamBatchProject/TypeDropDownList?bindType=0';
  18. var examinationBatchID = $("#ExaminationBatchID").combobox('getValue');
  19. if (examinationBatchID != nonSelect) {
  20. examinationTypeUrl += "&examinationBatchID=" + examinationBatchID;
  21. }
  22. $("#ExaminationTypeID").combobox('reload', examinationTypeUrl);
  23. } catch (e) {
  24. }
  25. }
  26. function examinationTypeChange() {
  27. try {
  28. var examinationProjectUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ExamBatchProject/DropDownList?bindType=0';
  29. var examinationBatchID = $("#ExaminationBatchID").combobox('getValue');
  30. var examinationTypeID = $("#ExaminationTypeID").combobox('getValue');
  31. if (examinationBatchID != nonSelect) {
  32. examinationProjectUrl += "&examinationBatchID=" + examinationBatchID;
  33. }
  34. if (examinationTypeID != nonSelect) {
  35. examinationProjectUrl += "&examinationTypeID=" + examinationTypeID;
  36. }
  37. $("#ExaminationProjectID").combobox('reload', examinationProjectUrl);
  38. } catch (e) {
  39. }
  40. }
  41. function ProjectScore_Generate() {
  42. $(document.forms[0]).submit();
  43. }