123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <%@page language="java" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>装备台账明细——发电车</title>
- <!--框架必需start-->
- <%@include file="../../../../include2.jsp" %>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/pageNumber.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/ECM_gridtemplate/changeFormat.js"></script>
- <link href="<%=path%>/scripts/ECM_gridtemplate/changeFormat.css" rel="stylesheet" type="text/css"/>
- <!--引用资源文件,JS CSS-->
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
- <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
- <!--基本选项卡start-->
- <!--框架必需end-->
- <!-- 按钮权限start -->
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <!-- 按钮权限end -->
- <!-- echarts图表 -->
- <script type="text/javascript" src="/nwyj/page/cockpit/echarts-2.2.7/build/dist/echarts-all.js"></script>
- <script type="text/javascript">
- //数据表格
- var g;
- var condition = "";
- var value1 = (window.location.href).split('?')[1];
- var name = (window.location.href).split('?')[2];
- if(name=="content_min"){
- condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND (CAR_CONTENT BETWEEN '0' AND '250')";
- }else if(name=="content_mid"){
- condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND (CAR_CONTENT BETWEEN '251' AND '500')";
- }else if(name=="content_max"){
- condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND (CAR_CONTENT >= '501' )";
- }else if(name=="level_max"){
- condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND CAR_LEVEL='139' ";
- }else if(name=="level_min"){
- condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND CAR_LEVEL='138' ";
- }else if(name=="generator"){
- condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND STORED_ENERGY_TYPE = '1' ";
- }else if(name=="ups"){
- condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND STORED_ENERGY_TYPE = '2' ";
- }else if(name=="fly_circle"){
- condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND STORED_ENERGY_TYPE = '3' ";
- }else if(name=="kused"){
- condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND IS_USED='1' ";
- }else if(name=="bused"){
- condition = "IS_DEL='0' AND COMP_ID = '"+value1+"' AND IS_USED='2' ";
- }
- var loadParams = {
- "listId" : '265',
- "condition" : condition,
- direction:'DESC',
- sort: 'UPDATEDATE'
- };
-
-
- function initComplete(){
-
- /**
- * 工具条
- */
- var roleCons = roleButtonArr();
- var toolBarOpt1 = {
- items:[],
-
- roleCons:roleCons
- };
- /**
- * 树形列
- */
- var grid_option1 = {
- columns: [{display: '所属单位', name: 'COMP_ID_265_SHOW', width: "10%", align: 'center'},
- {display: '装备名称', name: 'CAR_NAME_265', width: "10%", align: 'center'/* ,isPrimaryKey:true,
- render : function(rowdata, value) {
- return '<a href="javascript:void(0)" '
- + 'onclick=jumpPage("'
- + rowdata.FD_OBJECTID265
- +'")>'+ rowdata.CAR_NAME_265 +'</a>';
- } */
- },
- //{display: '规格型号', name: 'CAR_TYPE_265', width: "10%", align: 'center'},
- {display: '电压等级 (V)', name: 'CAR_LEVEL_265_SHOW', width: "10%", align: 'center'},
- {display: '容量(kW)', name: 'CAR_CONTENT_265', width: "5%", align: 'center'},
- {display: '数量(辆)', name: 'CAR_NUM_265', width: "5%", align: 'center'},
- {display: '储能方式', name: 'STORED_ENERGY_TYPE_265_SHOW', width: "5%", align: 'center'},
- {display: '单价(万元)', name: 'CAR_PRICE_265', width: "5%", align: 'center'},
- {display: '燃料', name: 'CAR_GAS_265_SHOW', width: "10%", align: 'center'},
- {display: '供应商', name: 'CAR_PROVIDER_265', width: "10%", align: 'center'},
- {display: '购买日期', name: 'BUY_DATE_265', width: "10%", align: 'center'},
- {display: '装备存放场所', name: 'STORE_PLACE_265', width: "10%", align: 'center'},
- {display: '是否可调用', name: 'IS_USED_265_SHOW', width: "10%", align: 'center'}/* ,
- {display: '调拨状态', name: 'USED_STAT_265_SHOW', width: "15%",
- render: function (rowdata, rowindex, value, column){
- //判断是否已经发布。取发布的状态,如果已经上报为“1”;未上报为“0”fashang_09fashang_plan
- var diaobo1='';
- if(rowdata.USED_STAT_265=="1"){
- diaobo1 = '<span class="getdiaobo11 hand" title="未调拨" onclick="diaobo1()"></span>';
- }else{
- diaobo1 = '<span class="getdiaobo1 hand" title="未调拨" onclick="diaobo(' + rowindex + ',1)"></span>';
- }
- var diaobo2='';
- if(rowdata.USED_STAT_265=="2"){
- diaobo2 = '<span class="getdiaobo22 hand" title="调拨中" onclick="diaobo2()"></span>';
- }else{
- diaobo2 = '<span class="getdiaobo2 hand" title="调拨中" onclick="diaobo(' + rowindex + ',2)"></span>';
- }
- var diaobo3='';
- if(rowdata.USED_STAT_265=="3"){
- diaobo3 = '<span class="getdiaobo33 hand" title="已调拨" onclick="diaobo3()"></span>';
- }else{
- diaobo3 = '<span class="getdiaobo3 hand" title="已调拨" onclick="diaobo(' + rowindex + ',3)"></span>';
- }
- return diaobo1+diaobo2+diaobo3;
- }
- } */
- ],
- rownumbers : true,
- checkbox : true,
- pageSize : 10,
- percentWidthMode : true
- };
- var options1={
- url :'/nwyj/ws/crud/CRUDService/queryQui',
- params:loadParams,
- gridOptions:grid_option1,
- singleRecodeOptions:{a:"aa"},
- paperOpration:{showInput:"true"},
- toolBarOptions:toolBarOpt1
- };
- g=gridAndSingleRecode=$("#maingrid").quickgridAndSingleRecode(options1);
- }
- </script>
- </head>
- <body>
- <div class="adding_right5">
- <div id="maingrid"></div>
- </div>
- </body>
- </html>
|