b711248b041c9475e31f6910ee9912f3a477a97f.svn-base 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>发电车明细</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
  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. <link rel="stylesheet" type="text/css" href="/nwyj/page/cockpit/webgis/js/jsc_grid.css">
  26. <!-- <style type="text/css">
  27. .c_page_hed{background-color: #0A2951}
  28. </style> -->
  29. </head>
  30. <body>
  31. <div id="i_page_hed" class="c_page_hed">
  32. </div><div id="i_page_colse" class=" c_page_close index_icon_close_content"></div>
  33. <div id="i_page_grid_content" class="c_page_grid_content">
  34. <div id="i_page_grid" class="c_page_grid"></div>
  35. </div>
  36. <script type="text/javascript">
  37. var utils=new Util();
  38. var grid=null;
  39. var params=utils.resolveUrl();
  40. var url ="";
  41. if(params["FLAG"]==1){
  42. url="/nwyj/ws/SystemDataSourceChartServiceImpl/SystemDataSourceChartServiceImpl/getRiChangZDataInfo";
  43. }else{
  44. url="/nwyj/ws/SystemDataSourceChartServiceImpl/SystemDataSourceChartServiceImpl/getRiChangXDataInfo";
  45. }
  46. var loadParams = {
  47. "compId" : params["compId"],
  48. "tName" : "JSC_EMC_AM_GENERATOR_CAR_VIEW",
  49. };
  50. var columns=[
  51. {display: '所属单位', name: 'NAME', width: "15%", align: 'center',
  52. render:function(rowdata, rowindex, value, column){
  53. var str=value.replace(/供电局/g,"局");
  54. str=str.replace(/供电所/g,"所");
  55. return str;
  56. }
  57. },
  58. {display: '装备名称', name: 'CAR_NAME', width: "20%", align: 'center'},
  59. {display: '规格型号', name: 'CAR_TYPE', width: "20%", align: 'center'},
  60. {display: '电压等级 (V)', name: 'CAR_LEVEL', width: "10%", align: 'center'},
  61. {display: '容量(kW)', name: 'CAR_CONTENT', width: "10%", align: 'center'},
  62. {display: '供应商', name: 'CAR_PROVIDER', width: "25%", align: 'center'},
  63. //{display: '购买日期', name: 'BUY_DATE_265', width: "10%", align: 'center'}
  64. ]
  65. var options={
  66. columns:columns,
  67. url:url,
  68. params:loadParams,
  69. pageSize:10,
  70. percentWidthMode:true,
  71. height:"100%",
  72. method: "post",
  73. width:"100%",
  74. usePager : true,
  75. isScroll: true,
  76. percentWidthMode : false,
  77. alternatingRow: false,
  78. rowAttrRender: function(rowdata, rowindex, rowid){
  79. return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ;
  80. }
  81. };
  82. $(function(){
  83. grid=$("#i_page_grid").quiGrid(options);
  84. setTitle();
  85. close();
  86. });
  87. function setTitle(){
  88. $("#i_page_hed").text(params["text"]+"发电车详情");
  89. }
  90. </script>
  91. </body>
  92. </html>