aa6bf9dac36d059add2b03a1ab64b5f064610086.svn-base 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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="../../../../include.jsp" %>
  9. <!--框架必需end-->
  10. <style type="text/css">
  11. .l-grid-hd-cell{
  12. /* //height: 34px; */
  13. background-color: #5582b9;
  14. height: 40px;
  15. }
  16. .l-grid-hd-cell-text{
  17. font-weight:bold;
  18. color:white
  19. }
  20. </style>
  21. <script type="text/javascript" >
  22. var deptName;
  23. //数据表格
  24. var g;
  25. var myCols1= [
  26. { display: '线路', name: 'sd_xianlu', minWidth: 60,width:"5%" } ,
  27. { display: '电缆', name: 'sd_xianlang', minWidth: 60,width:"5%" } ,
  28. { display: '合计', name: 'sd_sum', minWidth: 60,width:"5%" }];
  29. var myCols2= [
  30. { display: '一次', name: 'bd_yici', minWidth: 60,width:"5%" } ,
  31. { display: '二次', name: 'bd_erci', minWidth: 60,width:"5%" } ,
  32. { display: '合计', name: 'bd_sum', minWidth: 60,width:"5%" }];
  33. var myCols3= [
  34. { display: '配电线路', name: 'pd_xianlu', minWidth: 60,width:"5%" } ,
  35. { display: '配电电缆', name: 'pd_xianlang', minWidth: 60,width:"5%" } ,
  36. { display: '低压电房', name: 'pd_dianfang', minWidth: 60,width:"5%" } ,
  37. { display: '应急保电', name: 'pd_baodian', minWidth: 60,width:"5%" } ,
  38. { display: '合计', name: 'pd_sum', minWidth: 60,width:"5%" }];
  39. var myCols4= [
  40. { display: '可调拨', name: 'kused', minWidth: 60,width:"5%" } ,
  41. { display: '不可调拨', name: 'bused', minWidth: 60,width:"5%" }];
  42. function initComplete(){
  43. deptName = (window.location.href).split('?')[1];
  44. g = $("#maingrid").quiGrid({
  45. columns: [
  46. { display : '供电局',"name" : 'name',id : 'name',width : "10%",dept_id:'dept_id',align : 'center',render: addStatus, frozen: true },
  47. { display: '队伍总数(支)', name: 'team_count', width: "5%", align: 'center' },
  48. { display: '队伍人数(人)', name: 'team_member', width: "5%", align: 'center' },
  49. { display: '输电队伍(人)', columns: myCols1, width: "5%", align: 'center' },
  50. { display: '变电队伍(人)', columns: myCols2, width: "5%", align: 'center' },
  51. { display: '配电队伍(人)', columns: myCols3, width: "5%", align: 'center' },
  52. { display: '通信队伍(人)', name: 'tongxing', width: "5%", align: 'center' },
  53. { display: '网络信息队伍(人)', name: 'wangluo', width: "5%", align: 'center' },
  54. { display: '试验队伍(人)', name: 'shiyan', width: "5%", align: 'center' },
  55. { display: '队伍调拨(支)', columns: myCols4, width: "5%", align: 'center' }
  56. ],
  57. url : $.pathname() + '/ws/Team/TeamService/getInTeamInfo',
  58. params : {
  59. id : deptName//deptName
  60. },
  61. rownumbers : true,
  62. /* height : '100%',
  63. width : "100%", */
  64. usePager : false
  65. });
  66. }
  67. function addStatus(rowdata, rowindex, value, column){
  68. var comp_id='"'+rowdata.dept_id+'"';
  69. var name = '"'+value+'"';
  70. return "<a href='javascript:newHtml("+comp_id+","+name+")'>" + value +" </a>";
  71. }
  72. function newHtml(comp_id,name){
  73. if(name=="总计"){
  74. return;
  75. }else if(deptName==comp_id){
  76. return;
  77. }else{
  78. window.open("/nwyj/page/business/am/resource/team/team-poll-in1.jsp?"+comp_id);
  79. // window.location.href = "/nwyj/page/business/am/resource/expert/expert-poll.jsp?"+comp_id;
  80. // alert(comp_id);
  81. }
  82. }
  83. </script>
  84. </head>
  85. <body>
  86. <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>
  87. <div id="maingrid" style="margin: 0; padding: 0">
  88. </div>
  89. </body>
  90. </html>