73efa8a081ed1aec04df6a01e864f30b4a0c740c.svn-base 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>重要用户明细</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/context.js"></script>
  8. <!--框架必需start-->
  9. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/language/cn.js"></script>
  11. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/main.js"></script>
  12. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/framework.js"></script>
  13. <link href="/nwyj/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  14. <link rel="stylesheet" type="text/css" id="skin" prePath="/nwyj/scripts/qui/" scrollerY="false"/>
  15. <link rel="stylesheet" type="text/css" id="customSkin"/>
  16. <!--框架必需end-->
  17. <!--grid组件start-->
  18. <script src="/nwyj/scripts/qui/libs/js/table/quiGrid.js" type="text/javascript"></script>
  19. <!--grid组件end-->
  20. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  21. <!-- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css"> -->
  22. <script type="text/javascript" src="/nwyj/scripts/cockpit/cockpitIndex/util.js"></script>
  23. <!-- <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/gisgrid.css"> -->
  24. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/cockpit_layout/icon.css">
  25. <!-- <style type="text/css">
  26. .c_index_iframe_content{position: absolute;top:50%;left: 50%;width: 1000px;height: 500px;
  27. margin-left: -500px;margin-top: -250px;display: inline-block;background-color: #ffffff}
  28. .c_index_detail_iframe{width: 100%;height: 100%;display: inline-block;background-color: transparent;border: none;background-color: #ffffff}
  29. </style> -->
  30. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/jsc_grid.css">
  31. </head>
  32. <body>
  33. <div id="i_page_hed" class="c_page_hed" style="background-color: #144E52">
  34. </div><div id="i_page_colse" class=" c_page_close index_icon_close_content"></div>
  35. <div id="i_page_grid_content" class="c_page_grid_content">
  36. <div id="i_page_grid" class="c_page_grid"></div>
  37. </div>
  38. <script type="text/javascript">
  39. var utils=new Util();
  40. var grid=null;
  41. var params=utils.resolveUrl();
  42. var deptId = (window.location.href).split('?')[1];
  43. var type = (window.location.href).split('?')[2];
  44. //IS_DEL=0 and CUSTOMER_CLASSIFICATION='1' 重要用户
  45. //IS_DEL=0 and CUSTOMER_CLASSIFICATION='3' 重点关注用户
  46. var condition = "";
  47. if(type=="1"||type=="2"||type=="3"){
  48. condition = "IS_DEL='0' AND OWNER_STATION IN('"+ deptId +"') and CUSTOMER_LEVEL = '"+type+"'";
  49. }else{
  50. condition = "IS_DEL='0' AND OWNER_STATION IN('"+ deptId +"') and CUSTOMER_CLASSIFICATION = '"+type+"'";
  51. }
  52. var loadParams = {
  53. "listId" : '263',
  54. "condition" : condition,
  55. direction:'DESC'
  56. //sort: 'UPDATEDATE'
  57. };
  58. var columns=[
  59. { display: '用户名称', name: 'NAME_263', align: 'center', width: "15%"},
  60. { display: '用电地址', name: 'DETAILED_ADDRESS_263', align: 'center', width: "20%"},
  61. { display: '用电类别', name: 'UTILIZATION_KIND_263_SHOW', align: 'center', width: "10%"},
  62. { display: '所属单位', name: 'OWNER_STATION_263_SHOW', align: 'center', width: "10%"},
  63. { display: '电压等级', name: 'VOLTAGE_CODE_263_SHOW', align: 'center', width: "10%"},
  64. { display: '合同容量', name: 'AGREEMENT_CAPACITY_263', align: 'center', width: "10%"},
  65. { display: '负荷类型', name: 'LOAD_KIND_263_SHOW', align: 'center' , width: "10%" },
  66. { display: '重要用户等级', name: 'CUSTOMER_LEVEL_263_SHOW', align: 'center', width: "10%" }
  67. ];
  68. var options={
  69. columns:columns,
  70. url:"/nwyj/ws/crud/CRUDService/queryQui",
  71. params:loadParams,
  72. pageSize:10,
  73. usePager:false,
  74. percentWidthMode:true,
  75. height:"100%",
  76. method: "post",
  77. width:"100%",
  78. usePager : false,
  79. isScroll: true,
  80. percentWidthMode : false,
  81. alternatingRow: false,
  82. rowAttrRender: function(rowdata, rowindex, rowid){
  83. return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
  84. }
  85. };
  86. $(function(){
  87. grid=$("#i_page_grid").quiGrid(options);
  88. setTitle();
  89. close();
  90. });
  91. function setTitle(){
  92. $("#i_page_hed").text("用户停电详情");
  93. }
  94. //点击查看
  95. function jumpPage(id){
  96. var pathStr=url["http_path"]+"page/cockpit/echart_maticView/amResource/customer-focusinfo.html?"+id;
  97. utils.openIframe(pathStr);
  98. //window.location.href="customer-focusinfo.jsp?"+id;
  99. }
  100. </script>
  101. </body>
  102. </html>