ChargeAggregate.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. var url = CMS_SystemConfig.VirtualDirectoryPath + "/ChargeAggregate/Edit";
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. })
  7. //刷新
  8. function reload() {
  9. $("#dgChargeAggregateList").cmsXDataTable("load", $.getDataGridParams("dgChargeAggregateList"));
  10. }
  11. //获取选中的数据ID
  12. function validChoose() {
  13. var d = [];
  14. $.each($("#dgChargeDelayList").cmsXDataTable("getSelections"), function (index) {
  15. d.push(this.StudentChargeID);
  16. });
  17. return d;
  18. }
  19. //设置列颜色为红色
  20. function SetRedColumn(index, row, value) {
  21. return " <span style=\"color: red;\">" + value + "</span>";
  22. }
  23. //设置相应的行颜色为红色
  24. function SetRedGrid(rowIndex, rowData) {
  25. if (rowData.IsArrear == 1) {
  26. return "color: red;";
  27. } else {
  28. return "";
  29. }
  30. }
  31. //Excel导出
  32. function ChargeAggregate_Excel() {
  33. $("#formQuery").submit();
  34. }
  35. //联动查询
  36. function queryStandard(data) {
  37. queryClass();
  38. reload();
  39. }
  40. function queryCollege(data) {
  41. var campusID = $("#CampusDropdown").combogridX("getValue");
  42. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  43. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|";
  44. jsonString += "CollegeDropdown|*|" + collegeID + "|@|'})";
  45. $("#CollegeDropdown").combogridX("reload", eval(jsonString));
  46. $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
  47. queryClass();
  48. reload();
  49. }
  50. function queryClass() {
  51. var jsonString = "";
  52. var parameterString = "";
  53. var campusID = $("#CampusDropdown").combogridX("getValue");
  54. var collegeID = $("#CollegeDropdown").combogridX("getValue");
  55. var educationID = $("#DictionaryEducation").combobox("getValue");
  56. var schoolYearID = $("#SchoolyearDictionaryDropDown").combobox("getValue");
  57. var standardID = $("#StandardDictionaryDropDown").combogridX("getValue");
  58. var learningFormID = $("#DictionaryLearningform").combobox("getValue");
  59. if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
  60. if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
  61. if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
  62. if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
  63. if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
  64. if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
  65. if (parameterString != "") {
  66. jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
  67. $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
  68. } else {
  69. $("#StandardDictionaryDropDown").combogridX("reload");
  70. }
  71. reload();
  72. }