CheckingControl.js 837 B

123456789101112131415161718192021222324252627282930313233343536
  1. var url = CMS_SystemConfig.VirtualDirectoryPath + "/CheckingControl/Edit";
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. })
  7. //刷新
  8. function reload() {
  9. $("#dgStudentEditControlList").cmsXDataTable("load", $.getDataGridParams("dgStudentEditControlList"));
  10. }
  11. //获取选中的数据
  12. function validChoose() {
  13. var d = [];
  14. $.each($("#dgStudentEditControlList").cmsXDataTable("getSelections"), function (index) {
  15. d.push(this.StudentEditControlID);
  16. });
  17. return d;
  18. }
  19. //设置
  20. function StudentEditControl_Set() {
  21. $(document.forms[0]).submit();
  22. }
  23. //设置列颜色为红色
  24. function SetRedColumn(index, row, value) {
  25. return " <span style=\"color: red;\">" + value + "</span>";
  26. }
  27. //Excel导出
  28. function StudentEditControl_Export() {
  29. $("#formQuery").submit();
  30. }