123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <%@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="../../../../include.jsp" %>
- <!--框架必需end-->
- <style type="text/css">
- .l-grid-hd-cell{
- /* //height: 34px; */
- background-color: #5582b9;
- height: 40px;
- }
- .l-grid-hd-cell-text{
- font-weight:bold;
- color:white
- }
- </style>
- <script type="text/javascript" >
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
-
- //数据表格
- var g;
- var myCols1= [
- { display: '线路', name: 'sd_xianlu', minWidth: 60,width:"5%" } ,
- { display: '电缆', name: 'sd_xianlang', minWidth: 60,width:"5%" } ,
- { display: '合计', name: 'sd_sum', minWidth: 60,width:"5%" }];
- var myCols2= [
- { display: '一次', name: 'bd_yici', minWidth: 60,width:"5%" } ,
- { display: '二次', name: 'bd_erci', minWidth: 60,width:"5%" } ,
- { display: '合计', name: 'bd_sum', minWidth: 60,width:"5%" }];
- var myCols3= [
- { display: '配电线路', name: 'pd_xianlu', minWidth: 60,width:"5%" } ,
- { display: '配电电缆', name: 'pd_xianlang', minWidth: 60,width:"5%" } ,
- { display: '低压电房', name: 'pd_dianfang', minWidth: 60,width:"5%" } ,
- { display: '应急保电', name: 'pd_baodian', minWidth: 60,width:"5%" } ,
- { display: '合计', name: 'pd_sum', minWidth: 60,width:"5%" }];
- var myCols4= [
- { display: '可调拨', name: 'kused', minWidth: 60,width:"5%" } ,
- { display: '不可调拨', name: 'bused', minWidth: 60,width:"5%" }];
-
- function initComplete(){
- g = $("#maingrid").quiGrid({
- columns: [
- { display : '供电局',"name" : 'name',id : 'name',width : "10%",dept_id:'dept_id',align : 'center',render: addStatus, frozen: true },
- { display: '队伍总数(支)', name: 'team_count', width: "5%", align: 'center' },
- { display: '队伍人数(人)', name: 'team_member', width: "5%", align: 'center' },
- { display: '输电队伍(人)', columns: myCols1, width: "5%", align: 'center' },
- { display: '变电队伍(人)', columns: myCols2, width: "5%", align: 'center' },
- { display: '配电队伍(人)', columns: myCols3, width: "5%", align: 'center' },
- { display: '通信队伍(人)', name: 'tongxing', width: "5%", align: 'center' },
- { display: '网络信息队伍(人)', name: 'wangluo', width: "5%", align: 'center' },
- { display: '试验队伍(人)', name: 'shiyan', width: "5%", align: 'center' },
- { display: '队伍调拨(支)', columns: myCols4, width: "5%", align: 'center' }
- ],
- url : $.pathname() + '/ws/Team/TeamService/getInTeamInfo',
- params : {
- id : deptName//deptName
- },
- rownumbers : true,
- /* height : '100%',
- width : "100%", */
- usePager : false
- });
- //重设高度
- $(parent.document.body).find("iframe").height(480);
- $(top.document.body).find("#frmright").height(480);
- /*重新绑定父页面事件方法*/
- //绑定点击时样式变化事件
- $(parent.document.body).find(".leftnav").live("click",parent.checkedCurrent);
- //定期报送组点击事件
- $(parent.document.body).find(".baosong").live("click",parent.changebaosong);
- //定期维护组点击事件
- $(parent.document.body).find(".weihu").live("click",parent.changeweihu);
- $(parent.document.body).find(".weihu1").live("click",parent.changeweihu1);
- /*重新绑定父页面事件方法*/
- }
- function addStatus(rowdata, rowindex, value, column){
- var comp_id='"'+rowdata.dept_id+'"';
- var name = '"'+value+'"';
- return "<a href='javascript:newHtml("+comp_id+","+name+")'>" + value +" </a>";
- }
- function newHtml(comp_id,name){
- if(name=="总计"){
- return;
- }else if(deptName==comp_id){
- return;
- }else{
- window.open("/nwyj/page/business/am/resource/team/team-poll-in1.jsp?"+comp_id);
- // window.location.href = "/nwyj/page/business/am/resource/expert/expert-poll.jsp?"+comp_id;
- // alert(comp_id);
- }
-
- }
- </script>
- </head>
-
- <body>
- <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"><!-- <img id="back" align="left" alt="返回" src="/nwyj/images/temp/back.png" onclick="goBack()"></img> --></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;">公司应急队伍(内部)概况</font></div>
- <div id="maingrid" style="margin: 0; padding: 0">
- </div>
- </body>
- </html>
|