EvaluationAdvise.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. //评语建议
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. });
  7. function reload() {
  8. $("#dgEvaluationAdviseList").cmsXDataTable("load", $.getDataGridParams("dgEvaluationAdviseList"));
  9. }
  10. //获取选中数据
  11. function validChoose() {
  12. var d = [];
  13. $.each($("#dgEvaluationAdviseList").cmsXDataTable("getSelections"), function (index) {
  14. d.push(this.EvaluationAdviseID);
  15. });
  16. return d;
  17. }
  18. //进入评语建议导出
  19. function EvaluationAdvise_Export() {
  20. $("#formQuery").submit();
  21. }
  22. //删除
  23. function EvaluationAdvise_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 + '/EvaluationAdvise/Delete', { ids: d }, function (data) {
  32. if (data == "删除成功") {
  33. $.messager.alert("系统提示", "删除成功!");
  34. $("#dgEvaluationAdviseList").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. function QueryCollegeDropdownList(data) {
  55. $("#DepartmentDropdown").combobox("reload", "/Department/DepartmentDropdownListBanid?collegeID=" + data.Value + "");
  56. reload();
  57. }
  58. function SelectDepartmentDropdownList(data) {
  59. var url = CMS_SystemConfig.VirtualDirectoryPath + "/Staff/GetDepartmentStaffDataBind?bindType=PleaseSelect"; //"/Staff/GetDepartmentStaffDataBind?bindType=2";
  60. var departmentID = $("#DepartmentDropdown").combobox("getValue");
  61. if (departmentID != nonSelect) url += "&DepartmentDropdown=" + departmentID;
  62. // $("#StaffDropdown").combobox("reload", url);
  63. var jsonString = "({'QueryParamsDatas':'DepartmentDropdown|*|" + departmentID + "|@|'})";
  64. $("#StaffDropdown").combogridX("reload", eval(jsonString));
  65. //$("#StaffDropdown").combobox("reload", "/Staff/GetDepartmentStaffDataBind?DepartmentDropdown=" + data.Value + "");
  66. reload();
  67. }
  68. function QueryStaffDropdownList(data) {
  69. reload();
  70. }