EvaluationResult.js 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. //评价记录
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. });
  7. function reload() {
  8. $("#dgEvaluationRecordList").cmsXDataTable("load", $.getDataGridParams("dgEvaluationRecordList"));
  9. }
  10. //获取选中数据
  11. function validChoose() {
  12. var d = [];
  13. $.each($("#dgEvaluationRecordList").cmsXDataTable("getSelections"), function (index) {
  14. d.push(this.EvaluationEnterID);
  15. });
  16. return d;
  17. }
  18. //进入评价导出
  19. function EvaluationRecord_Export() {
  20. $("#formQuery").submit();
  21. }
  22. //删除
  23. function EvaluationRecord_Delete() {
  24. var d = validChoose().join(',');
  25. if (d == "") {
  26. $.messager.alert("系统提示", "请选择您要删除的评价信息!");
  27. return;
  28. }
  29. $.messager.confirm("系统提示", "您确定要删除该评价信息?", function (r) {
  30. if (r) {
  31. $.post(CMS_SystemConfig.VirtualDirectoryPath + '/EvaluationRecord/Delete', { ids: d }, function (data) {
  32. if (data == "删除成功") {
  33. $.messager.alert("系统提示", "删除成功!");
  34. $("#dgEvaluationRecordList").cmsXDataTable('load');
  35. } else {
  36. $.messager.alert("系统提示", data);
  37. }
  38. });
  39. }
  40. });
  41. }
  42. //学年
  43. function SchoolYearDropdownList(data) {
  44. reload();
  45. }
  46. //评价表
  47. function QueryEvaluationTableDropdownList(data) {
  48. $("#EvaluationTypeDropdown").combobox("reload", CMS_SystemConfig.VirtualDirectoryPath + "/EvaluationRecord/EvaluationTypeDropdownListBanid?evaluationTableID=" + data.Value + "");
  49. reload();
  50. }
  51. function QueryEvaluationTypeDropdownList(data) {
  52. reload();
  53. }
  54. //联动查询
  55. function queryStandard(data) {
  56. queryClass();
  57. }
  58. function queryCollege(data) {
  59. queryClass();
  60. }
  61. function queryClass() {
  62. var jsonString = "";
  63. var parameterString = "";
  64. var campusID = $("#CampusDropdown").combogridX("getValue");
  65. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  66. var schoolYearID = $("#SchoolyearDictionaryDropDown").combobox("getValue");
  67. var standardID = $("#StandardDictionaryDropDown").combogridX("getValue");
  68. var educationID = $("#DictionaryEducation").combobox("getValue");
  69. var LearnSystem = $("#DictionaryLearnSystem").combogridX("getValue");
  70. var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue");
  71. if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
  72. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  73. if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
  74. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  75. if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
  76. if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
  77. if (LearnSystem != nonSelect) parameterString += "DictionaryLearnSystem|*|" + LearnSystem + "|@|";
  78. if (parameterString != "") {
  79. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  80. $("#ClassmajorDropdown").combogridX("reload", eval(jsonString));
  81. $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
  82. } else {
  83. $("#ClassmajorDropdown").combogridX("reload");
  84. $("#StandardDictionaryDropDown").combogridX("reload");
  85. }
  86. reload();
  87. }