var param=decodeURIComponent(window.location.href); var dept_id = param.split('?')[1]; var deptName = param.split('?')[2]; var value = param.split('?')[3]; var condition = " (1=1) " ; var name = param.split('?')[4]; var grid; var columns= [{display : '客户编号',name : 'FD_OBJECTID' , width : "20%", align : 'center',showTitle:true}, {display : '客户名称',name : 'CUSTOMER_NAME', width : "20%", align : 'center',showTitle:true}, {display : '客户类别',name : 'CUSTOMER_KIND', width : "10%", align : 'center',showTitle:true}, {display : '供电单位',name : 'OWNER_STATION', width : "20%", align : 'center',showTitle:true}, {display : '电压等级(Kv)' ,name : 'VOLTAGE_CODE',width : "10%",align : 'center',showTitle:true}, {display : '装见容量(kVA)',name : 'AGREEMENT_CAPACITY',width : "10%",align : 'center',showTitle:true}, {display : '保安负荷(kW)' ,name : 'SECUIRITY_LOAD',width : "10%",align : 'center',showTitle:true} ]; var loadParams = { "id" : dept_id, "condition":condition }; var options={ columns : columns, url :'/nwyj/ws/customerHuiZong/customerHuiZongService/getCustomerModel2', params:loadParams, pageSize:10, usePager:false, percentWidthMode:true, height:"100%", method: "post", width:"100%", usePager : true, isScroll: true, percentWidthMode : false, alternatingRow: false, rowAttrRender: function(rowdata, rowindex, rowid){ return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ; } }; $(function(){ if(value=="hejiSum"){ condition ="IMPORT_LEVEL = '4' "; }else if(value=="hejidmSum"){ condition ="IMPORT_LEVEL = '4' and (IS_MEET_OF_SUPPLY = '1') and "; }else if(value=="hejizbSum"){ condition ="IMPORT_LEVEL = '4' and (IS_MEET_OF_SELF_PROVIDE = '1') and "; }else if(value=="hejisfSum"){ condition ="IMPORT_LEVEL = '4' and (IS_MEET_OF_SELF_PROVIDE = '0') and (IS_MEET_OF_SUPPLY = '0') and"; }; loadParams = { "id" : dept_id, "condition":condition }; options={ columns : columns, url :'/nwyj/ws/customerHuiZong/customerHuiZongService/getCustomerModel2', params:loadParams, pageSize:10, usePager:false, percentWidthMode:true, height:"100%", method: "post", width:"100%", usePager : true, isScroll: true, percentWidthMode : false, alternatingRow: false, rowAttrRender: function(rowdata, rowindex, rowid){ return rowdata["__index"] % 2 == 0 ? "style='background-color:rgb(44,51,79);'" : "style='background-color:rgb(34,40,62);'" ; } }; grid=$("#i_page_grid").quiGrid(options); setTitle(); close(); }); function setTitle(){ $("#i_page_hed").text(name+"重点关注用户详情表"); };