DepartmentSelector.js 836 B

1234567891011121314151617181920212223242526
  1. //获取选中的数据
  2. function validChoose() {
  3. var d = [];
  4. $.each($("#dgDepartmentList").cmsXDataTable("getSelections"), function (index) {
  5. d.push(this);
  6. });
  7. return d;
  8. }
  9. function Department_Confirm() {
  10. var windowID = $.SystemGeneral.getUrlParam("WindowID");
  11. top.$("#" + windowID).data("resultData", validChoose());
  12. top.$("#" + windowID).dialog("close");
  13. }
  14. //联动
  15. function QueryCampusComboGridList() {
  16. var campusID = $("#CampusDropdown").combogridX("getValue");
  17. if (campusID != nonSelect) {
  18. var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
  19. $("#CollegeDropdown").combogridX("reload", eval(jsonString));
  20. }
  21. reload();
  22. }
  23. function reload() {
  24. $("#dgDepartmentList").cmsXDataTable("load", $.getDataGridParams("dgDepartmentList"));
  25. }