bdbad0d768c9217d428354a06c76fc3b5f006d5a.svn-base 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. var value3 = (window.location.href).split('?')[3];
  32. //解决chrome内核传值时空格出现乱码问题
  33. value2 = decodeURI(value2);
  34. value3 = decodeURI(value3);
  35. if(value2==""){
  36. condition = " TEAM_ID in(select FD_OBJECTID from ECM_AM_EMERGENCY_TEAM where 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 is_del= '0' and column_1 = '0' "
  37. +"union all select column_1 from ECM_AM_EMERGENCY_TEAM where 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 is_del= '0' and column_1 != '0') AND IS_DEL='0'";
  38. }else if(value3!=null){
  39. condition = " "+value2+" and TEAM_ID in(select FD_OBJECTID from ECM_AM_EMERGENCY_TEAM where 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 is_del= '0' and column_1 = '0' "+value3+" "
  40. +"union all select column_1 from ECM_AM_EMERGENCY_TEAM where 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 is_del= '0' and column_1 != '0' "+value3+" ) AND IS_DEL='0'";
  41. }else{
  42. condition = " "+value2+" and TEAM_ID in(select FD_OBJECTID from ECM_AM_EMERGENCY_TEAM where 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 is_del= '0' and column_1 = '0' "
  43. +"union all select column_1 from ECM_AM_EMERGENCY_TEAM where 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 is_del= '0' and column_1 != '0') AND IS_DEL='0'";
  44. }
  45. var loadParams = {
  46. "listId" : '262',
  47. "condition" : condition,
  48. direction:'DESC',
  49. sort: 'UPDATEDATE'
  50. };
  51. function initComplete(){
  52. /**
  53. * 工具条
  54. */
  55. var roleCons = roleButtonArr();
  56. var toolBarOpt1 = {
  57. items:[],
  58. roleCons:roleCons
  59. };
  60. /**
  61. * 树形列
  62. */
  63. var grid_option1 = {
  64. columns: [
  65. { display: '姓名', name: 'NAME_262', align: 'center', width: "10%",showTitle:true},
  66. { display: '人员编号', name: 'CODE_262', align: 'center', width: "10%",showTitle:true},
  67. { display: '身份证号码', name: 'ID_NUMBER_262', align: 'center', width: "10%",showTitle:true},
  68. { display: '性别', name: 'SEX_262_SHOW', align: 'center', width: "10%",showTitle:true},
  69. { display: '所在部门', name: 'DEPT_ID_262', align: 'center', width: "10%",showTitle:true},
  70. { display: '职务岗位', name: 'DEPT_QUARTERS_262', align: 'center', width: "10%",showTitle:true},
  71. { display: '专业', name: 'PROFESSIONAL_262_SHOW', align: 'center', width: "10%",showTitle:true},
  72. { display: '电压等级', name: 'VOLTAGE_LEVEL_262_SHOW', align: 'center', width: "10%",showTitle:true},
  73. { display: '联系手机', name: 'TELEPHONE_262', align: 'center', width: "10%",showTitle:true},
  74. { display: '队伍岗位', name: 'TEAM_QUARTERS_262_SHOW', align: 'center', width: "10%",showTitle:true}
  75. ],
  76. rownumbers : true,
  77. checkbox : true,
  78. pageSize : 10,
  79. percentWidthMode : true
  80. };
  81. var options1={
  82. url :'/nwyj/ws/crud/CRUDService/queryQui',
  83. params:loadParams,
  84. gridOptions:grid_option1,
  85. singleRecodeOptions:{a:"aa"},
  86. paperOpration:{showInput:"true"},
  87. toolBarOptions:toolBarOpt1
  88. };
  89. g=gridAndSingleRecode=$("#maingrid").quickgridAndSingleRecode(options1);
  90. }
  91. </script>
  92. </head>
  93. <body>
  94. <div class="padding_right5">
  95. <div id="maingrid"></div>
  96. </div>
  97. </body>
  98. </html>