MyEvaluation.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //我的评价
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. });
  7. function reload() {
  8. $("#dgMyEvaluationList").cmsXDataTable("load", $.getDataGridParams("dgMyEvaluationList"));
  9. }
  10. //获取选中数据
  11. function validChoose() {
  12. var d = [];
  13. $.each($("#dgMyEvaluationList").cmsXDataTable("getSelections"), function (index) {
  14. d.push(this.EvaluationAdviseID);
  15. });
  16. return d;
  17. }
  18. //我的评价导出
  19. function MyEvaluation_Export() {
  20. // var d = validChoose().join(',')
  21. // if (d != "") {
  22. // document.getElementById("EvaluationAdviseID").value = d;
  23. // }
  24. // else {
  25. // document.getElementById("EvaluationAdviseID").value = "";
  26. // }
  27. $("#formQuery").submit();
  28. }
  29. //学年
  30. function SchoolYearDropdownList(data) {
  31. reload();
  32. }
  33. //评价表
  34. function QueryEvaluationTableDropdownList(data) {
  35. if (data.Value != "-1") {
  36. $("#EvaluationTypeDropdown").combobox("reload", CMS_SystemConfig.VirtualDirectoryPath + "/EvaluationRecord/EvaluationTypeDropdownListBanid?evaluationTableID=" + data.Value + "");
  37. }
  38. else {
  39. $("#EvaluationTypeDropdown").combobox("reload", CMS_SystemConfig.VirtualDirectoryPath + "/EvaluationRecord/EvaluationTypeDropdownListBanid");
  40. }
  41. reload();
  42. }
  43. function QueryEvaluationTypeDropdownList(data) {
  44. reload();
  45. }
  46. function QueryCollegeDropdownList(data) {
  47. $("#DepartmentDropdown").combobox("reload", "/Department/DepartmentDropdownListBanid?collegeID=" + data.Value + "");
  48. reload();
  49. }
  50. function SelectDepartmentDropdownList(data) {
  51. var url = CMS_SystemConfig.VirtualDirectoryPath + "/Staff/GetDepartmentStaffDataBind?bindType=PleaseSelect"; //"/Staff/GetDepartmentStaffDataBind?bindType=2";
  52. var departmentID = $("#DepartmentDropdown").combobox("getValue");
  53. if (departmentID != nonSelect) url += "&DepartmentDropdown=" + departmentID;
  54. // $("#StaffDropdown").combobox("reload", url);
  55. var jsonString = "({'QueryParamsDatas':'DepartmentDropdown|*|" + departmentID + "|@|'})";
  56. $("#StaffDropdown").combogridX("reload", eval(jsonString));
  57. //$("#StaffDropdown").combobox("reload", "/Staff/GetDepartmentStaffDataBind?DepartmentDropdown=" + data.Value + "");
  58. reload();
  59. }
  60. function QueryStaffDropdownList(data) {
  61. reload();
  62. }