AssignCollegeBatchAdd.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //刷新
  2. function reload() {
  3. $("#dgUnAssignNewStudentList").cmsXDataTable("load", $.getDataGridParams("dgUnAssignNewStudentList"));
  4. }
  5. //获取选中的数据
  6. function validChoose() {
  7. var d = [];
  8. $.each($("#dgUnAssignNewStudentList").cmsXDataTable("getSelections"), function (index) {
  9. d.push(this.NewStudentID);
  10. });
  11. return d;
  12. }
  13. //确定生成成功后不关闭弹出页面
  14. function formSuccessReloadNoClose(data) {
  15. if (data.IsSuccess == true) {
  16. reload();
  17. }
  18. $.messager.alert("系统提示", data.Message);
  19. }
  20. //确定
  21. function AssignCollegeConfirm() {
  22. var collegeID = $("#CollegeID").combogridX("getValue");
  23. if (collegeID == "" || collegeID == -1 || collegeID == null) {
  24. $.messager.alert("系统提示", "请选择要分配的" + college + "。");
  25. return;
  26. }
  27. var d = validChoose();
  28. if (d == "") {
  29. $.messager.alert("系统提示", "请选择您要分配的信息。");
  30. return;
  31. }
  32. $("#newStudentIDs").val(JSON.stringify(d));
  33. $(document.forms[0]).submit();
  34. }
  35. //设置列颜色为红色
  36. function SetRedColumn(index, row, value) {
  37. return " <span style=\"color: red;\">" + value + "</span>";
  38. }
  39. //联动查询
  40. function queryCollege(data) {
  41. reload();
  42. }
  43. function queryGrade(data) {
  44. reload();
  45. }
  46. function queryStandard(data) {
  47. reload();
  48. }