e461e1166a943f4bce6106636c12a3a41d8e3104.svn-base 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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="../../../../include2.jsp" %>
  9. <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/pageNumber.js"></script>
  10. <script type="text/javascript" src="/nwyj/scripts/ECM_gridtemplate/changeFormat.js"></script>
  11. <link href="<%=path%>/scripts/ECM_gridtemplate/changeFormat.css" rel="stylesheet" type="text/css"/>
  12. <!--引用资源文件,JS CSS-->
  13. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  16. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  17. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  18. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
  19. <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
  20. <!--基本选项卡start-->
  21. <!--框架必需end-->
  22. <!-- 按钮权限start -->
  23. <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
  24. <!-- 按钮权限end -->
  25. <script type="text/javascript">
  26. var g;
  27. //列表加载参数
  28. var condition = ""
  29. var value1 = (window.location.href).split('?')[1];
  30. var value2 = (window.location.href).split('?')[2];
  31. if(value2=="13"){
  32. condition = "IS_DEL='0' AND TEAM_COMP_ID in (select dept_id from SYS_DEPARTMENT WHERE dept_type='1' start with dept_id = '"+value1+"' connect by prior dept_id = parent_id) AND (TEAM_STAT=1 OR TEAM_STAT=3)";
  33. }else if(value2=="24"){
  34. condition = "IS_DEL='0' AND TEAM_COMP_ID in (select dept_id from SYS_DEPARTMENT WHERE dept_type='1' start with dept_id = '"+value1+"' connect by prior dept_id = parent_id) AND (TEAM_STAT=2 OR TEAM_STAT=4)";
  35. }else{
  36. condition = "IS_DEL='0' AND TEAM_COMP_ID in (select dept_id from SYS_DEPARTMENT WHERE dept_type='1' start with dept_id = '"+value1+"' connect by prior dept_id = parent_id) ";
  37. }
  38. var loadParams = {
  39. "listId" : '261',
  40. "condition" : condition,
  41. direction:'DESC',
  42. sort: 'UPDATEDATE'
  43. };
  44. function initComplete(){
  45. /**
  46. * 工具条
  47. */
  48. var roleCons = roleButtonArr();
  49. var toolBarOpt1 = {
  50. items:[],
  51. roleCons:roleCons
  52. };
  53. /**
  54. * 树形列
  55. */
  56. var grid_option1 = {
  57. columns: [
  58. { display: '队伍名称', name: 'TEAM_NAME_261', align: 'center', width: "10%"/* ,isPrimaryKey:true,
  59. render : function(rowdata, value) {
  60. return '<a href="javascript:void(0)" '
  61. + 'onclick=jumpPage("'
  62. + rowdata.FD_OBJECTID261
  63. + '","'
  64. + rowdata.TEAM_SYSTEM_261
  65. + '","'
  66. + rowdata.COLUMN_1_261
  67. +'")>'+ rowdata.TEAM_NAME_261 +'</a>';
  68. } */
  69. },
  70. { display: '系统区分', name: 'TEAM_SYSTEM_261_SHOW', align: 'center', width: "10%"},
  71. { display: '所属单位', name: 'TEAM_COMP_ID_261_SHOW', align: 'center', width: "10%"},
  72. { display: '队伍类型', name: 'TEAM_TYPE_261_SHOW', align: 'center', width: "10%"},
  73. // { display: '状态', name: 'TEAM_STAT_261_SHOW', align: 'center', width: "5%"},
  74. { display: '所在地区', name: 'TEAM_AEAR_261', align: 'center', width: "10%"},
  75. { display: '负责人', name: 'TEAM_LEADER_261', align: 'center', width: "10%"},
  76. { display: '值班电话', name: 'TEAM_TEL_261', align: 'center', width: "10%"},
  77. { display: '手机', name: 'TEAM_PHONE_261', align: 'center', width: "10%"},
  78. { display: '办公电话', name: 'TEAM_OFFICE_TEL_261', align: 'center', width: "10%"},
  79. { display: '人数', name: 'TEAM_MEMBER_NUMBER_261', align: 'center', width: "10%"}/* ,
  80. { display: '操作', name: 'TEAM_STAT_261_SHOW', align: 'center', width: "10%",
  81. render: function (rowdata, rowindex, value, column){
  82. //判断是否已经发布。取发布的状态,如果已经上报为“1”;未上报为“0”fashang_09fashang_plan
  83. var diaobo1='';
  84. if(rowdata.TEAM_STAT_261=="1"||rowdata.TEAM_STAT_261=="3"){
  85. diaobo1 = '<span class="getdiaobo11 hand" title="待命" onclick="diaobo1()"></span>';
  86. }else{
  87. diaobo1 = '<span class="getdiaobo1 hand" title="待命" onclick="diaobo(' + rowindex + ',1)"></span>';
  88. }
  89. var diaobo2='';
  90. if(rowdata.TEAM_STAT_261=="2"||rowdata.TEAM_STAT_261=="4"){
  91. diaobo2 = '<span class="getdiaobo22 hand" title="任务中" onclick="diaobo2()"></span>';
  92. }else{
  93. diaobo2 = '<span class="getdiaobo2 hand" title="任务中" onclick="diaobo(' + rowindex + ',2)"></span>';
  94. }
  95. return diaobo1+diaobo2;
  96. }
  97. } */
  98. ],
  99. rownumbers : true,
  100. checkbox : true,
  101. pageSize : 10,
  102. percentWidthMode : true
  103. };
  104. var options1={
  105. url :'/nwyj/ws/crud/CRUDService/queryQui',
  106. params:loadParams,
  107. gridOptions:grid_option1,
  108. singleRecodeOptions:{a:"aa"},
  109. paperOpration:{showInput:"true"},
  110. toolBarOptions:toolBarOpt1
  111. };
  112. g=gridAndSingleRecode=$("#maingrid").quickgridAndSingleRecode(options1);
  113. }
  114. </script>
  115. </head>
  116. <body>
  117. <div class="padding_right5">
  118. <div id="maingrid"></div>
  119. </div>
  120. </body>
  121. </html>