f69848155e6102f77c5cb0723d9cab46d9b540d2.svn-base 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  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. g = $("#maingrid").quiGrid({
  44. columns: [
  45. { display : '供电局',"name" : 'name',id : 'name',width : "10%",dept_id:'dept_id',align : 'center',render: addStatus, frozen: true },
  46. { display: '队伍总数(支)', name: 'team_count', width: "5%", align: 'center' },
  47. { display: '队伍人数(人)', name: 'team_member', width: "5%", align: 'center' },
  48. { display: '输电队伍(人)', columns: myCols1, width: "5%", align: 'center' },
  49. { display: '变电队伍(人)', columns: myCols2, width: "5%", align: 'center' },
  50. { display: '配电队伍(人)', columns: myCols3, width: "5%", align: 'center' },
  51. { display: '通信队伍(人)', name: 'tongxing', width: "5%", align: 'center' },
  52. { display: '网络信息队伍(人)', name: 'wangluo', width: "5%", align: 'center' },
  53. { display: '试验队伍(人)', name: 'shiyan', width: "5%", align: 'center' },
  54. { display: '队伍调拨(支)', columns: myCols4, width: "5%", align: 'center' }
  55. ],
  56. url : $.pathname() + '/ws/Team/TeamService/getInTeamInfo',
  57. params : {
  58. id : deptName//deptName
  59. },
  60. rownumbers : true,
  61. /* height : '100%',
  62. width : "100%", */
  63. usePager : false
  64. });
  65. //重设高度
  66. $(parent.document.body).find("iframe").height(480);
  67. $(top.document.body).find("#frmright").height(480);
  68. /*重新绑定父页面事件方法*/
  69. //绑定点击时样式变化事件
  70. $(parent.document.body).find(".leftnav").live("click",parent.checkedCurrent);
  71. //定期报送组点击事件
  72. $(parent.document.body).find(".baosong").live("click",parent.changebaosong);
  73. //定期维护组点击事件
  74. $(parent.document.body).find(".weihu").live("click",parent.changeweihu);
  75. $(parent.document.body).find(".weihu1").live("click",parent.changeweihu1);
  76. /*重新绑定父页面事件方法*/
  77. }
  78. function addStatus(rowdata, rowindex, value, column){
  79. var comp_id='"'+rowdata.dept_id+'"';
  80. var name = '"'+value+'"';
  81. return "<a href='javascript:newHtml("+comp_id+","+name+")'>" + value +" </a>";
  82. }
  83. function newHtml(comp_id,name){
  84. if(name=="总计"){
  85. return;
  86. }else if(deptName==comp_id){
  87. return;
  88. }else{
  89. window.open("/nwyj/page/business/am/resource/team/team-poll-in1.jsp?"+comp_id);
  90. // window.location.href = "/nwyj/page/business/am/resource/expert/expert-poll.jsp?"+comp_id;
  91. // alert(comp_id);
  92. }
  93. }
  94. </script>
  95. </head>
  96. <body>
  97. <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>
  98. <div id="maingrid" style="margin: 0; padding: 0">
  99. </div>
  100. </body>
  101. </html>