ExaminationSubjectCollegeControlEdit.js 969 B

12345678910111213141516171819202122232425262728
  1. function validChoose() {
  2. var d = [];
  3. $.each($("#dgFacultymajorList").cmsXDataTable("getSelections"), function (index) {
  4. d.push(this.FacultymajorID);
  5. });
  6. return d;
  7. }
  8. function ExaminationSubjectCollegeControl_Save() {
  9. var selectFacultymajorID = validChoose().join(',');
  10. $("#selectFacultymajorIDs").val(selectFacultymajorID);
  11. $(document.forms[0]).submit();
  12. }
  13. function BindSubject() {
  14. var jsonString = "";
  15. var parameterString = "";
  16. var examinationTypeID = $("#ExaminationTypeID").combobox("getValue");
  17. if (examinationTypeID != nonSelect && examinationTypeID != "") {
  18. parameterString += "ExaminationTypeDropdown|*|" + examinationTypeID + "|@|";
  19. }
  20. if (parameterString != "") {
  21. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  22. $("#ExaminationSubjectID").combogridX("reload", eval(jsonString));
  23. } else {
  24. $("#ExaminationSubjectID").combogridX("reload");
  25. }
  26. }