e4d55dbf689017559ae2c7e8fc71d364be5dcf8d.svn-base 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>装备台账明细——发电车</title>
  7. <!--框架必需start-->
  8. <%@include file="../../../../include2.jsp" %>
  9. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/pageNumber.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/ECM_gridtemplate/changeFormat.js"></script>
  11. <link href="<%=path%>/scripts/ECM_gridtemplate/changeFormat.css" rel="stylesheet" type="text/css"/>
  12. <!--引用资源文件,JS CSS-->
  13. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  16. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  17. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  18. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  19. <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  20. <!--基本选项卡start-->
  21. <!--框架必需end-->
  22. <!-- 按钮权限start -->
  23. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
  24. <!-- 按钮权限end -->
  25. <!-- echarts图表 -->
  26. <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/echarts-all.js"></script>
  27. <script type="text/javascript">
  28. //数据表格
  29. var g;
  30. var condition = "";
  31. var value1 = (window.location.href).split('?')[1];
  32. var name = (window.location.href).split('?')[2];
  33. if(name=="content_min"){
  34. condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND (CAR_CONTENT BETWEEN '0' AND '250')";
  35. }else if(name=="content_mid"){
  36. condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND (CAR_CONTENT BETWEEN '251' AND '500')";
  37. }else if(name=="content_max"){
  38. condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND (CAR_CONTENT >= '501' )";
  39. }else if(name=="level_max"){
  40. condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND CAR_LEVEL='139' ";
  41. }else if(name=="level_min"){
  42. condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND CAR_LEVEL='138' ";
  43. }else if(name=="generator"){
  44. condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND STORED_ENERGY_TYPE = '1' ";
  45. }else if(name=="ups"){
  46. condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND STORED_ENERGY_TYPE = '2' ";
  47. }else if(name=="fly_circle"){
  48. condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND STORED_ENERGY_TYPE = '3' ";
  49. }else if(name=="kused"){
  50. condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND IS_USED='1' ";
  51. }else if(name=="bused"){
  52. condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND IS_USED='2' ";
  53. }
  54. var loadParams = {
  55. "listId" : '265',
  56. "condition" : condition,
  57. direction:'DESC',
  58. sort: 'UPDATEDATE'
  59. };
  60. function initComplete(){
  61. /**
  62. * 工具条
  63. */
  64. var roleCons = roleButtonArr();
  65. var toolBarOpt1 = {
  66. items:[],
  67. roleCons:roleCons
  68. };
  69. /**
  70. * 树形列
  71. */
  72. var grid_option1 = {
  73. columns: [{display: '所属单位', name: 'COMP_ID_265_SHOW', width: "10%", align: 'center'},
  74. {display: '装备名称', name: 'CAR_NAME_265', width: "10%", align: 'center'/* ,isPrimaryKey:true,
  75. render : function(rowdata, value) {
  76. return '<a href="javascript:void(0)" '
  77. + 'onclick=jumpPage("'
  78. + rowdata.FD_OBJECTID265
  79. +'")>'+ rowdata.CAR_NAME_265 +'</a>';
  80. } */
  81. },
  82. //{display: '规格型号', name: 'CAR_TYPE_265', width: "10%", align: 'center'},
  83. {display: '电压等级 (V)', name: 'CAR_LEVEL_265_SHOW', width: "10%", align: 'center'},
  84. {display: '容量(kW)', name: 'CAR_CONTENT_265', width: "5%", align: 'center'},
  85. {display: '数量(辆)', name: 'CAR_NUM_265', width: "5%", align: 'center'},
  86. {display: '储能方式', name: 'STORED_ENERGY_TYPE_265_SHOW', width: "5%", align: 'center'},
  87. {display: '单价(万元)', name: 'CAR_PRICE_265', width: "5%", align: 'center'},
  88. {display: '燃料', name: 'CAR_GAS_265_SHOW', width: "10%", align: 'center'},
  89. {display: '供应商', name: 'CAR_PROVIDER_265', width: "10%", align: 'center'},
  90. {display: '购买日期', name: 'BUY_DATE_265', width: "10%", align: 'center'},
  91. {display: '装备存放场所', name: 'STORE_PLACE_265', width: "10%", align: 'center'},
  92. {display: '是否可调用', name: 'IS_USED_265_SHOW', width: "10%", align: 'center'}/* ,
  93. {display: '调拨状态', name: 'USED_STAT_265_SHOW', width: "15%",
  94. render: function (rowdata, rowindex, value, column){
  95. //判断是否已经发布。取发布的状态,如果已经上报为“1”;未上报为“0”fashang_09fashang_plan
  96. var diaobo1='';
  97. if(rowdata.USED_STAT_265=="1"){
  98. diaobo1 = '<span class="getdiaobo11 hand" title="未调拨" onclick="diaobo1()"></span>';
  99. }else{
  100. diaobo1 = '<span class="getdiaobo1 hand" title="未调拨" onclick="diaobo(' + rowindex + ',1)"></span>';
  101. }
  102. var diaobo2='';
  103. if(rowdata.USED_STAT_265=="2"){
  104. diaobo2 = '<span class="getdiaobo22 hand" title="调拨中" onclick="diaobo2()"></span>';
  105. }else{
  106. diaobo2 = '<span class="getdiaobo2 hand" title="调拨中" onclick="diaobo(' + rowindex + ',2)"></span>';
  107. }
  108. var diaobo3='';
  109. if(rowdata.USED_STAT_265=="3"){
  110. diaobo3 = '<span class="getdiaobo33 hand" title="已调拨" onclick="diaobo3()"></span>';
  111. }else{
  112. diaobo3 = '<span class="getdiaobo3 hand" title="已调拨" onclick="diaobo(' + rowindex + ',3)"></span>';
  113. }
  114. return diaobo1+diaobo2+diaobo3;
  115. }
  116. } */
  117. ],
  118. rownumbers : true,
  119. checkbox : true,
  120. pageSize : 10,
  121. percentWidthMode : true
  122. };
  123. var options1={
  124. url :'/nwyj/ws/crud/CRUDService/queryQui',
  125. params:loadParams,
  126. gridOptions:grid_option1,
  127. singleRecodeOptions:{a:"aa"},
  128. paperOpration:{showInput:"true"},
  129. toolBarOptions:toolBarOpt1
  130. };
  131. g=gridAndSingleRecode=$("#maingrid").quickgridAndSingleRecode(options1);
  132. }
  133. </script>
  134. </head>
  135. <body>
  136. <div class="adding_right5">
  137. <div id="maingrid"></div>
  138. </div>
  139. </body>
  140. </html>