SOCDetailGroup.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. 
  2. var mnu = "";
  3. //加载
  4. $(function () {
  5. mnu = $.SystemGeneral.getUrlParam("MNU");
  6. })
  7. //获取选中的数据
  8. function validChoose() {
  9. var d = [];
  10. $.each($("#dgSOCDetailGroupList").cmsXDataTable("getSelections"), function (index) {
  11. d.push(this.SOCDetailID);
  12. });
  13. return d;
  14. }
  15. function reload() {
  16. $("#dgSOCDetailGroupList").cmsXDataTable("load", $.getDataGridParams("dgSOCDetailGroupList"));
  17. }
  18. function GroupDetail(rowindex, rowdata) {
  19. var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/SOCDetailGroup/Detail?SOCDetailID=" + rowdata.SOCDetailID + "&MNU=" + mnu;
  20. $.popupTopWindow('分组详情', redirectTo, 800, 600, null, null);
  21. }
  22. function SOCDetailGroup_Group() {
  23. var d = validChoose();
  24. if (d.length == 0) {
  25. $.messager.alert("系统信息", "请选择您要进行分组的信息。");
  26. return;
  27. }
  28. if (d.length > 1) {
  29. $.messager.alert("系统信息", "只能选择单个记录进行分组。");
  30. return;
  31. }
  32. var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/SOCDetailGroup/Group?SOCDetailID=" + d + "&MNU=" + mnu;
  33. $.popupTopWindow('分组管理', redirectTo, 800, 600, reload);
  34. }
  35. function SOCDetailGroup_Excel() {
  36. }