925ac64533b067fc408dbfbc780c614f980a361d.svn-base 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. var param=decodeURIComponent(window.location.href);
  2. var dept_id = param.split('?')[1];
  3. var deptName = param.split('?')[2];
  4. var value = param.split('?')[3];
  5. var condition = " (1=1) " ;
  6. var name = param.split('?')[4];
  7. var grid;
  8. var columns= [{display : '客户编号',name : 'FD_OBJECTID' , width : "20%", align : 'center',showTitle:true},
  9. {display : '客户名称',name : 'CUSTOMER_NAME', width : "20%", align : 'center',showTitle:true},
  10. {display : '客户类别',name : 'CUSTOMER_KIND', width : "10%", align : 'center',showTitle:true},
  11. {display : '供电单位',name : 'OWNER_STATION', width : "20%", align : 'center',showTitle:true},
  12. {display : '电压等级(Kv)' ,name : 'VOLTAGE_CODE',width : "10%",align : 'center',showTitle:true},
  13. {display : '装见容量(kVA)',name : 'AGREEMENT_CAPACITY',width : "10%",align : 'center',showTitle:true},
  14. {display : '保安负荷(kW)' ,name : 'SECUIRITY_LOAD',width : "10%",align : 'center',showTitle:true}
  15. ];
  16. var loadParams = { "id" : dept_id, "condition":condition };
  17. var options={
  18. columns : columns,
  19. url :'/nwyj/ws/customerHuiZong/customerHuiZongService/getCustomerModel2',
  20. params:loadParams,
  21. pageSize:10,
  22. usePager:false,
  23. percentWidthMode:true,
  24. height:"100%",
  25. method: "post",
  26. width:"100%",
  27. usePager : true,
  28. isScroll: true,
  29. percentWidthMode : false,
  30. alternatingRow: false,
  31. rowAttrRender: function(rowdata, rowindex, rowid){
  32. return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
  33. }
  34. };
  35. $(function(){
  36. if(value=="hejiSum"){
  37. condition ="IMPORT_LEVEL = '4' ";
  38. }else if(value=="hejidmSum"){
  39. condition ="IMPORT_LEVEL = '4' and (IS_MEET_OF_SUPPLY = '1') and ";
  40. }else if(value=="hejizbSum"){
  41. condition ="IMPORT_LEVEL = '4' and (IS_MEET_OF_SELF_PROVIDE = '1') and ";
  42. }else if(value=="hejisfSum"){
  43. condition ="IMPORT_LEVEL = '4' and (IS_MEET_OF_SELF_PROVIDE = '0') and (IS_MEET_OF_SUPPLY = '0') and";
  44. };
  45. loadParams = { "id" : dept_id, "condition":condition };
  46. options={
  47. columns : columns,
  48. url :'/nwyj/ws/customerHuiZong/customerHuiZongService/getCustomerModel2',
  49. params:loadParams,
  50. pageSize:10,
  51. usePager:false,
  52. percentWidthMode:true,
  53. height:"100%",
  54. method: "post",
  55. width:"100%",
  56. usePager : true,
  57. isScroll: true,
  58. percentWidthMode : false,
  59. alternatingRow: false,
  60. rowAttrRender: function(rowdata, rowindex, rowid){
  61. return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
  62. }
  63. };
  64. grid=$("#i_page_grid").quiGrid(options);
  65. setTitle();
  66. close();
  67. });
  68. function setTitle(){
  69. $("#i_page_hed").text(name+"重点关注用户详情表");
  70. };