123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <%@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="../../../../include2.jsp" %>
- <script type="text/javascript" src="/nwyj/scripts/qui/libs/js/nav/pageNumber.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/ECM_gridtemplate/changeFormat.js"></script>
- <link href="<%=path%>/scripts/ECM_gridtemplate/changeFormat.css" rel="stylesheet" type="text/css"/>
- <!--引用资源文件,JS CSS-->
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.js"></script>
- <link href="<%=path%>/scripts/freamwork/com/sinosoft/common/searchUtil.css" rel="stylesheet" type="text/css"/>
- <!--基本选项卡start-->
- <!--框架必需end-->
- <!-- 按钮权限start -->
- <script type="text/javascript" src="/nwyj/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <!-- 按钮权限end -->
- <script type="text/javascript">
- var g;
- //列表加载参数
- var condition = ""
- var value1 = (window.location.href).split('?')[1];
- var value2 = (window.location.href).split('?')[2];
-
- if(value2=="13"){
- 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)";
- }else if(value2=="24"){
- 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)";
- }else{
- 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) ";
- }
-
-
- var loadParams = {
- "listId" : '261',
- "condition" : condition,
- direction:'DESC',
- sort: 'UPDATEDATE'
- };
-
- function initComplete(){
- /**
- * 工具条
- */
- var roleCons = roleButtonArr();
- var toolBarOpt1 = {
- items:[],
- roleCons:roleCons
- };
- /**
- * 树形列
- */
- var grid_option1 = {
- columns: [
- { display: '队伍名称', name: 'TEAM_NAME_261', align: 'center', width: "10%"/* ,isPrimaryKey:true,
- render : function(rowdata, value) {
- return '<a href="javascript:void(0)" '
- + 'onclick=jumpPage("'
- + rowdata.FD_OBJECTID261
- + '","'
- + rowdata.TEAM_SYSTEM_261
- + '","'
- + rowdata.COLUMN_1_261
- +'")>'+ rowdata.TEAM_NAME_261 +'</a>';
- } */
- },
- { display: '系统区分', name: 'TEAM_SYSTEM_261_SHOW', align: 'center', width: "10%"},
- { display: '所属单位', name: 'TEAM_COMP_ID_261_SHOW', align: 'center', width: "10%"},
- { display: '队伍类型', name: 'TEAM_TYPE_261_SHOW', align: 'center', width: "10%"},
- // { display: '状态', name: 'TEAM_STAT_261_SHOW', align: 'center', width: "5%"},
- { display: '所在地区', name: 'TEAM_AEAR_261', align: 'center', width: "10%"},
- { display: '负责人', name: 'TEAM_LEADER_261', align: 'center', width: "10%"},
- { display: '值班电话', name: 'TEAM_TEL_261', align: 'center', width: "10%"},
- { display: '手机', name: 'TEAM_PHONE_261', align: 'center', width: "10%"},
- { display: '办公电话', name: 'TEAM_OFFICE_TEL_261', align: 'center', width: "10%"},
- { display: '人数', name: 'TEAM_MEMBER_NUMBER_261', align: 'center', width: "10%"}/* ,
- { display: '操作', name: 'TEAM_STAT_261_SHOW', align: 'center', width: "10%",
- render: function (rowdata, rowindex, value, column){
- //判断是否已经发布。取发布的状态,如果已经上报为“1”;未上报为“0”fashang_09fashang_plan
- var diaobo1='';
- if(rowdata.TEAM_STAT_261=="1"||rowdata.TEAM_STAT_261=="3"){
- diaobo1 = '<span class="getdiaobo11 hand" title="待命" onclick="diaobo1()"></span>';
- }else{
- diaobo1 = '<span class="getdiaobo1 hand" title="待命" onclick="diaobo(' + rowindex + ',1)"></span>';
- }
- var diaobo2='';
- if(rowdata.TEAM_STAT_261=="2"||rowdata.TEAM_STAT_261=="4"){
- diaobo2 = '<span class="getdiaobo22 hand" title="任务中" onclick="diaobo2()"></span>';
- }else{
- diaobo2 = '<span class="getdiaobo2 hand" title="任务中" onclick="diaobo(' + rowindex + ',2)"></span>';
- }
- return diaobo1+diaobo2;
- }
- } */
- ],
- rownumbers : true,
- checkbox : true,
- pageSize : 10,
- percentWidthMode : true
- };
-
- var options1={
- url :'/nwyj/ws/crud/CRUDService/queryQui',
- params:loadParams,
- gridOptions:grid_option1,
- singleRecodeOptions:{a:"aa"},
- paperOpration:{showInput:"true"},
- toolBarOptions:toolBarOpt1
- };
- g=gridAndSingleRecode=$("#maingrid").quickgridAndSingleRecode(options1);
- }
- </script>
- </head>
-
- <body>
- <div class="padding_right5">
- <div id="maingrid"></div>
- </div>
- </body>
- </html>
|